/* ==========================================================================
   VTC Booking — Clean minimal UI
   ========================================================================== */

/* Sortir de la contrainte de largeur du thème block WordPress */
.is-layout-constrained > .vtc,
.is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) > .vtc {
    max-width: none;
    width: 100%;
}

.vtc {
    --c-black: #000000;
    --c-dark: #1a1a1a;
    --c-grey-900: #282828;
    --c-grey-700: #545454;
    --c-grey-500: #8a8a8a;
    --c-grey-300: #d6d6d6;
    --c-grey-100: #f3f3f3;
    --c-white: #ffffff;
    --c-green: #34a853;
    --c-red: #ea4335;
    --c-blue: #4285f4;
    --radius: 8px;
    --font: "UberMove", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    font-family: var(--font);
    color: var(--c-dark);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

.vtc *, .vtc *::before, .vtc *::after {
    box-sizing: border-box;
}

/* ======= Layout 2 colonnes ======= */

.vtc__layout {
    display: grid;
    grid-template-columns: 480px 1fr;
    min-height: 650px;
    border: 1px solid var(--c-grey-300);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--c-white);
    max-width: 1200px;
    margin: 0 auto;
}

.vtc__panel {
    padding: 32px 28px;
    overflow-y: auto;
    max-height: 750px;
}

.vtc__map-col {
    position: relative;
}

.vtc__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* ======= Titre ======= */

.vtc__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--c-black);
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.vtc__subtitle {
    font-size: 18px;
    font-weight: 700;
    color: var(--c-black);
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}

/* ======= Route fields (dots + inputs) ======= */

.vtc__route-fields {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.vtc__route-dots {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 0;
    flex-shrink: 0;
    width: 20px;
}

.vtc__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vtc__dot--origin {
    background: var(--c-black);
}

.vtc__dot-line {
    flex: 1;
    width: 1px;
    background: var(--c-grey-300);
    margin: 4px 0;
    min-height: 20px;
}

.vtc__dot--dest {
    width: 8px;
    height: 8px;
    background: transparent;
    border: 2px solid var(--c-black);
    border-radius: 50%;
}

.vtc__route-inputs {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ======= Inputs ======= */

.vtc__input-wrap {
    position: relative;
}

.vtc__input-wrap select,
.vtc__input-wrap input[type="text"],
.vtc__input-wrap input[type="number"],
.vtc__input-wrap input[type="datetime-local"] {
    width: 100%;
    padding: 12px 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--c-grey-100);
    font-size: 15px;
    font-family: var(--font);
    color: var(--c-dark);
    transition: background 0.15s;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.vtc__input-wrap select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6' fill='%23545454'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 32px;
    cursor: pointer;
}

.vtc__input-wrap input:focus,
.vtc__input-wrap select:focus {
    background: var(--c-grey-300);
}

.vtc__input-wrap input::placeholder {
    color: var(--c-grey-500);
}

.vtc__input-wrap--icon {
    position: relative;
}

.vtc__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--c-grey-500);
    pointer-events: none;
    z-index: 1;
}

.vtc__input-wrap--icon input,
.vtc__input-wrap--icon input[type="text"],
.vtc__input-wrap--icon input[type="number"],
.vtc__input-wrap--icon input[type="datetime-local"] {
    padding-left: 40px;
}

.vtc__input-wrap--icon input[type="datetime-local"] {
    min-height: 46px;
}

.vtc__input-wrap--icon input[type="datetime-local"]::-webkit-datetime-edit {
    padding-left: 0;
}

.vtc__input-wrap--icon input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    margin-left: 4px;
}

/* ======= Row (date + passagers) ======= */

.vtc__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
}

/* ======= Autocomplete ======= */

.vtc__autocomplete {
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--c-white);
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.vtc__autocomplete.active {
    display: block;
}

.vtc__ac-item {
    padding: 12px 16px;
    cursor: pointer;
    font-size: 14px;
    color: var(--c-dark);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: background 0.12s;
}

.vtc__ac-item:hover,
.vtc__ac-item.selected {
    background: var(--c-grey-100);
}

.vtc__ac-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--c-grey-500);
    margin-top: 6px;
    flex-shrink: 0;
}

.vtc__ac-text {
    line-height: 1.35;
}

.vtc__ac-main {
    font-weight: 600;
    display: block;
}

.vtc__ac-sub {
    font-size: 12px;
    color: var(--c-grey-500);
    display: block;
}

/* ======= Section (véhicules) ======= */

.vtc__section {
    margin-bottom: 16px;
}

/* ======= Véhicules — liste ======= */

.vtc__vehicles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.vtc__vehicle {
    display: block;
    cursor: pointer;
}

.vtc__vehicle input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vtc__vehicle-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 12px;
    border-radius: var(--radius);
    transition: background 0.12s;
    gap: 12px;
}

.vtc__vehicle:hover .vtc__vehicle-inner {
    background: var(--c-grey-100);
}

.vtc__vehicle input[type="radio"]:checked + .vtc__vehicle-inner {
    background: var(--c-grey-100);
    outline: 2px solid var(--c-black);
    outline-offset: -2px;
}

.vtc__vehicle--disabled {
    opacity: 0.35;
    pointer-events: none;
}

.vtc__vehicle-info {
    flex: 1;
    min-width: 0;
}

.vtc__vehicle-top {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.vtc__vehicle-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-black);
}

.vtc__vehicle-cap {
    font-size: 12px;
    color: var(--c-grey-500);
    white-space: nowrap;
}

.vtc__vehicle-desc {
    display: block;
    font-size: 12px;
    color: var(--c-grey-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.vtc__vehicle-price {
    text-align: right;
    flex-shrink: 0;
}

.vtc__vehicle-estimate {
    font-size: 15px;
    font-weight: 600;
    color: var(--c-black);
    white-space: nowrap;
}

/* ======= Summary ======= */

.vtc__summary {
    border-top: 1px solid var(--c-grey-300);
    padding-top: 14px;
    margin-bottom: 16px;
}

.vtc__summary-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--c-grey-700);
}

.vtc__summary-row span:last-child {
    font-weight: 600;
    color: var(--c-dark);
}

.vtc__summary-row--total {
    border-top: 1px solid var(--c-grey-300);
    margin-top: 6px;
    padding-top: 10px;
    font-size: 16px;
}

.vtc__summary-row--total span:first-child {
    font-weight: 700;
    color: var(--c-black);
}

.vtc__summary-row--total span:last-child {
    font-size: 20px;
    font-weight: 700;
    color: var(--c-black);
}

/* ======= Message ======= */

.vtc__message {
    padding: 10px 14px;
    border-radius: var(--radius);
    margin-bottom: 12px;
    font-size: 13px;
}

.vtc__message--success {
    background: #e6f4ea;
    color: #1e7e34;
}

.vtc__message--error {
    background: #fce8e6;
    color: #c5221f;
}

.vtc__message--info {
    background: var(--c-grey-100);
    color: var(--c-grey-700);
}

/* ======= Button ======= */

.vtc__btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    background: var(--c-black);
    color: var(--c-white);
    font-size: 16px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: background 0.15s;
    letter-spacing: -0.01em;
}

.vtc__btn:hover:not(:disabled) {
    background: var(--c-grey-900);
}

.vtc__btn:disabled {
    background: var(--c-grey-300);
    color: var(--c-grey-500);
    cursor: default;
}

/* ======= Loading ======= */

.vtc__loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: vtc-spin 0.7s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes vtc-spin {
    to { transform: rotate(360deg); }
}

/* ======= Responsive ======= */

@media (max-width: 860px) {
    .vtc__layout {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .vtc__panel {
        max-height: none;
        padding: 20px 16px;
    }

    .vtc__map-col {
        position: relative;
        height: 300px;
    }

    .vtc__map {
        position: relative;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .vtc__row {
        grid-template-columns: 1fr;
    }

    .vtc__title {
        font-size: 20px;
    }
}
