/* =============================================================
   TRANSFERS — mockup stylesheet
   Covers: home page search tabs + transfer results page.
   Kept in its own file while this is a mockup; fold the keepers
   into main.css when we productionise.
   ============================================================= */

:root {
    --tr-navy: #1e3a5f;
    --tr-blue: #1d4ed8;
    --tr-blue-soft: #dbeafe;
    --tr-green: #178c48;
    --tr-line: #e3e7ea;
    --tr-muted: #6b7480;
}


/* =============================================================
   1. SEARCH TABS (home page)
   A pill switcher sitting on the hero, above the search card.
   ============================================================= */

/* Bootstrap 3 predates [hidden]; make sure the inactive panel really is hidden */
[hidden] {
    display: none !important;
}

.search-tabs-wrap {
    text-align: center;
}

.search-tabs {
    display: inline-flex;
    padding: 4px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.search-tab {
    -webkit-appearance: none;
    appearance: none;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    padding: 9px 26px;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.search-tab .fa {
    margin-right: 8px;
}

.search-tab:hover,
.search-tab:focus {
    background: rgba(255, 255, 255, 0.16);
    outline: none;
}

.search-tab.is-active {
    background: #fff;
    color: var(--tr-navy);
    text-shadow: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.search-tab.is-active:hover {
    background: #fff;
}

@media (max-width: 480px) {
    .search-tabs {
        display: flex;
    }
    .search-tab {
        flex: 1 1 50%;
        padding: 9px 10px;
        font-size: 14px;
    }
    .search-tab .fa {
        margin-right: 5px;
    }
}

/* main.css does this for #datepicker-pickup / #datepicker-return */
#datepicker-transfer-pickup input {
    background-color: #fff;
    cursor: pointer;
}

/* Reassurance line under the transfer search button */
.search-reassurance {
    text-align: center;
    font-size: 13px;
    color: #56606b;
    margin: 10px 0 0 0;
    line-height: 1.9;
}

.search-reassurance span {
    display: inline-block;
    white-space: nowrap;
    margin: 0 4px;
}

.search-reassurance .fa {
    color: var(--tr-green);
    margin-right: 4px;
}

/* Route fields on the transfer search: airport -> hotel, reversed by the swap button */
.transfer-route-fields {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px; /* extra space before the date / time / passengers row */
}

.transfer-route-fields.is-reversed {
    flex-direction: column-reverse;
}

.transfer-route-swap {
    text-align: center;
    margin: -8px 0 7px 0;
}

.transfer-route-swap .btn {
    border-radius: 16px;
}

/* stacked fields: arrows point up/down */
.transfer-route-swap .fa {
    transform: rotate(90deg);
}

/* Desktop: airport and hotel side by side, icon-only swap button between them.
   A two-row grid: labels on top, controls below, centred on each other so a
   hotel name that wraps to two lines stays centred on the airport dropdown.
   The .row / .form-group wrappers use display: contents so their children
   become grid items. Phones and tablets keep the stacked layout above. */
@media (min-width: 1200px) {
    .transfer-route-fields {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        column-gap: 10px;
        align-items: center;
        margin-bottom: 25px; /* form-group margin (now display: contents) + extra space before the date row */
    }

    .transfer-route-fields > .row,
    .transfer-route-fields > .row > .form-group {
        display: contents;
    }

    .transfer-route-fields > .row:before,
    .transfer-route-fields > .row:after {
        display: none; /* Bootstrap clearfix would become grid items */
    }

    .transfer-route-fields label {
        grid-row: 1;
        align-self: end;
    }

    [data-route-point="airport"] label,
    .transfer-airport-select {
        grid-column: 1;
    }

    [data-route-point="hotel"] label,
    #transfer-hotel-lookup,
    #transfer-hotel-selected {
        grid-column: 3;
    }

    .transfer-airport-select,
    #transfer-hotel-lookup,
    #transfer-hotel-selected,
    .transfer-route-swap {
        grid-row: 2;
    }

    .transfer-route-fields.is-reversed [data-route-point="airport"] label,
    .transfer-route-fields.is-reversed .transfer-airport-select {
        grid-column: 3;
    }

    .transfer-route-fields.is-reversed [data-route-point="hotel"] label,
    .transfer-route-fields.is-reversed #transfer-hotel-lookup,
    .transfer-route-fields.is-reversed #transfer-hotel-selected {
        grid-column: 1;
    }

    /* same height as Google's hotel box next to it
       (!important: the landing-page variant sets height inline on the select) */
    .transfer-route-fields #transfer_iata {
        height: 50px !important;
    }

    .transfer-route-swap {
        grid-column: 2;
        margin: 0;
    }

    .transfer-route-swap .btn {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 50%;
    }

    .transfer-route-swap .fa {
        transform: none;
    }

    .transfer-route-swap-text {
        display: none;
    }
}

/* Airport dropdown with a plane icon inside, like the search icon in the hotel box.
   Options in a native select can only hold text, so the icon sits on the field. */
.transfer-airport-select {
    position: relative;
}

.transfer-airport-select .fa {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #5f6368;
    font-size: 16px;
    pointer-events: none; /* clicks go through to the select */
}

.transfer-airport-select select {
    padding-left: 40px !important; /* the landing-page variant sets padding inline */
}

/* Hotel lookup on the transfer search (Google PlaceAutocompleteElement) */
#transfer-hotel-pac-container gmp-place-autocomplete {
    color-scheme: light;
    font-size: 14px;
    width: 100%;
}

.transfer-hotel-selected {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--tr-line);
    border-radius: 4px;
    background: #fff;
    padding: 8px 10px;
}

.transfer-hotel-selected[hidden] {
    display: none;
}

.transfer-hotel-selected > .fa {
    font-size: 20px;
    color: #5f6368; /* same grey as the plane icon on the airport field */
}

.transfer-hotel-selected-body {
    flex: 1;
    min-width: 0;
    line-height: 1.3;
}

/* hotel name wraps in full (the address is only sent with the search, not shown) */
.transfer-hotel-selected-body #transfer-hotel-selected-name {
    display: block;
    overflow-wrap: break-word;
}


/* =============================================================
   2. TRANSFER RESULTS — route summary card
   ============================================================= */

.transfer-summary {
    padding: 18px 20px;
}

.transfer-route {
    display: flex;
    align-items: center;
    gap: 14px;
}

.transfer-route-point {
    flex: 1 1 0;
    min-width: 0;
}

.transfer-route-point .label-kicker {
    display: block;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--tr-muted);
    font-weight: 700;
}

.transfer-route-point strong {
    display: block;
    font-size: 17px;
    line-height: 1.35;
    color: #313131;
}

.transfer-route-point small {
    color: var(--tr-muted);
}

.transfer-route-arrow {
    flex: 0 0 auto;
    position: relative;
    width: 90px;
    height: 24px;
    color: #9aa4ae;
    text-align: center;
}

.transfer-route-arrow:before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    border-top: 2px dashed #ccd3d9;
}

.transfer-route-arrow .fa {
    position: relative;
    background: #fff;
    padding: 0 6px;
    font-size: 15px;
    line-height: 24px;
    color: var(--tr-blue);
}

.transfer-summary-meta {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--tr-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 26px;
    font-size: 14px;
}

.transfer-summary-meta .fa {
    color: var(--tr-muted);
    margin-right: 7px;
}

.transfer-summary-meta .edit-search-link {
    margin-left: auto;
}

@media (max-width: 767px) {
    .transfer-route {
        display: block;
    }
    .transfer-route-arrow {
        width: 24px;
        height: 30px;
        margin: 4px 0 4px 4px;
    }
    .transfer-route-arrow:before {
        top: 0;
        bottom: 0;
        left: 11px;
        right: auto;
        border-top: 0;
        border-left: 2px dashed #ccd3d9;
    }
    .transfer-route-arrow .fa {
        padding: 6px 0;
        transform: rotate(90deg);
    }
    .transfer-summary-meta .edit-search-link {
        margin-left: 0;
        width: 100%;
    }
}


/* =============================================================
   3. TRUST RIBBON (above the result list)
   ============================================================= */

.transfer-trust-ribbon {
    display: flex;
    flex-wrap: wrap;
    background: var(--tr-blue-soft);
    border-radius: 5px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 13.5px;
    color: var(--tr-navy);
    gap: 6px 28px;
}

.transfer-trust-ribbon > div {
    font-weight: 600;
}

.transfer-trust-ribbon .fa {
    color: var(--tr-blue);
    margin-right: 8px;
}


/* =============================================================
   4. TRANSFER RESULT CARD
   ============================================================= */

.transfer-card {
    padding: 0;
}

.transfer-card-ribbon {
    background: #19d895;
    color: #10402f;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    padding: 7px 16px;
}

.transfer-card-ribbon .fa {
    margin-right: 7px;
}

.transfer-card-body {
    padding: 18px 16px 16px 16px;
}

.transfer-card-media {
    text-align: center;
}

.transfer-card-media img {
    max-width: 190px;
    width: 100%;
}

.transfer-card-title {
    margin: 0 0 2px 0;
    font-size: 20px;
    font-weight: 700;
    padding-top: 0;
}

.transfer-card-subtitle {
    color: var(--tr-muted);
    font-size: 13.5px;
    margin-bottom: 10px;
}

.transfer-capacity {
    list-style: none;
    margin: 0 0 12px 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.transfer-capacity li {
    background: #f2f4f6;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 600;
    color: #46505b;
    white-space: nowrap;
}

.transfer-capacity .fa {
    margin-right: 6px;
    color: #7d8792;
}

.transfer-includes {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13.5px;
    line-height: 1.85;
}

.transfer-includes .fa {
    color: var(--tr-green);
    margin-right: 8px;
}

.transfer-includes .text-muted .fa {
    color: #9aa4ae;
}

/* --- price column --- */
.transfer-card-price {
    text-align: center;
}

@media (min-width: 768px) {
    /* flex row so the price column stretches to the card height
       (keeps the divider full height) and its content can be centred */
    .transfer-card-body {
        display: flex;
    }
    .transfer-card-body:before,
    .transfer-card-body:after {
        display: none; /* Bootstrap .row clearfix would become flex items */
    }

    .transfer-card-price {
        border-left: 1px solid var(--tr-line);
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .transfer-card-price {
        border-top: 1px solid var(--tr-line);
        margin-top: 14px;
        padding-top: 14px;
    }
}

.transfer-price {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: #313131;
}

.transfer-price-unit {
    font-size: 13px;
    color: var(--tr-muted);
    display: block;
    margin-bottom: 12px;
}

.transfer-price-note {
    font-size: 12.5px;
    color: var(--tr-green);
    margin-top: 9px;
    line-height: 1.5;
}

.transfer-price-note .fa {
    margin-right: 5px;
}


/* =============================================================
   5. "WHY BOOK WITH US" PANEL + FAQ
   ============================================================= */

.transfer-why {
    padding: 22px 20px 8px 20px;
}

.transfer-why h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 6px;
}

.transfer-why-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.transfer-why-icon {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--tr-blue-soft);
    color: var(--tr-blue);
    text-align: center;
    line-height: 42px;
    font-size: 17px;
}

.transfer-why-item h4 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 2px 0;
    padding-top: 0;
}

.transfer-why-item p {
    font-size: 13.5px;
    color: #4a545f;
    margin: 0;
    line-height: 1.6;
}

.transfer-faq {
    padding: 20px;
}

.transfer-faq h3 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 14px;
}

.transfer-faq dt {
    font-weight: 700;
    margin-top: 14px;
}

.transfer-faq dt:first-child {
    margin-top: 0;
}

.transfer-faq dd {
    color: #4a545f;
    font-size: 14px;
    margin: 2px 0 0 0;
}

.transfer-help {
    text-align: center;
    padding: 18px 20px;
    font-size: 14px;
}

.transfer-help .fa {
    color: var(--tr-blue);
    margin-right: 7px;
}

/* no-results message */
.transfer-help .fa-exclamation-triangle {
    color: #f57c00;
}

/* Night supplement disclosure — states that it is already in the price,
   never how much. Neutral, not an alert. */
.transfer-price-included {
    font-size: 12.5px;
    color: var(--tr-muted);
    margin: -6px 0 12px 0;
    line-height: 1.5;
}

.transfer-price-included .fa {
    color: #7d8792;
    margin-right: 5px;
}


/* =============================================================
   6. TRANSFER CHECKOUT
   ============================================================= */

.checkout-section h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
}

.checkout-inline-note {
    font-size: 13px;
    line-height: 34px;
    display: inline-block;
}

/* --- payment --- */
.checkout-payment-box {
    border: 1px solid var(--tr-line);
    border-radius: 5px;
    padding: 16px;
    background: #fafbfc;
}

/* Stripe tags its mount point .StripeElement, which main.css sizes as a fixed 40px
   card input (car rental checkout). The Payment Element grows, so undo that box. */
#payment-element.StripeElement {
    height: auto;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}

.checkout-payment-secure {
    font-size: 12.5px;
    color: var(--tr-muted);
    margin-top: 10px;
}

.checkout-payment-secure .fa {
    color: var(--tr-green);
    margin-right: 6px;
}

.checkout-terms {
    margin: 18px 0 6px 0;
}

/* --- summary column --- */
@media (min-width: 768px) {
    .transfer-checkout-summary {
        position: sticky;
        top: 15px;
    }
}

.transfer-checkout-summary .transfer-capacity {
    margin-bottom: 0;
}

/* itinerary: two points joined by a dotted spine */
.transfer-itinerary {
    list-style: none;
    margin: 0;
    padding: 0;
}

.transfer-itinerary li {
    position: relative;
    padding-left: 26px;
    padding-bottom: 18px;
    line-height: 1.5;
}

.transfer-itinerary li:last-child {
    padding-bottom: 0;
}

.transfer-itinerary li:before {
    content: "";
    position: absolute;
    left: 3px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--tr-blue);
    background: #fff;
}

.transfer-itinerary li.is-destination:before {
    background: var(--tr-blue);
}

.transfer-itinerary li:not(:last-child):after {
    content: "";
    position: absolute;
    left: 7px;
    top: 20px;
    bottom: 0px;
    border-left: 2px dotted #ccd3d9;
}

.transfer-itinerary .label-kicker {
    display: block;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--tr-muted);
    font-weight: 700;
}

/* pick-up date and time, above the pick-up / drop-off list */
.transfer-itinerary-when {
    font-size: 14px;
    font-weight: 700;
    color: #313131;
    margin-bottom: 12px;
}

.transfer-itinerary-when .fa {
    color: var(--tr-muted);
    margin-right: 6px;
}

.transfer-itinerary strong {
    display: block;
    font-size: 15px;
}

.transfer-itinerary small {
    color: var(--tr-muted);
}

.transfer-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 16px;
}

.transfer-summary-total strong {
    font-size: 26px;
    font-weight: 700;
}

.transfer-summary-included {
    background: #f6fbf8;
    border-top: 1px solid var(--tr-line);
    padding: 14px 20px;
    font-size: 13px;
    line-height: 1.9;
}

.transfer-summary-included .fa {
    color: var(--tr-green);
    margin-right: 8px;
}

.transfer-summary-total-note {
    font-size: 12.5px;
    line-height: 1.7;
    margin: 6px 0 0 0;
}
