.flight-search-panel {
    position: relative;
    z-index: 2;
    padding: 32px 0 27px;
    background: #f5f7fa;
    border-bottom: 1px solid #e2e8f0;
}

.flight-search-shell { width: min(calc(100% - 48px), 1220px); margin: 0 auto; }
.flight-search-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 21px; }
.flight-search-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #b6810e; font: 700 10px/1 'DM Sans', Arial, sans-serif; letter-spacing: 1.5px; text-transform: uppercase; }
.flight-search-eyebrow i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #f7c948; box-shadow: 0 0 0 4px rgba(247,201,72,.15); }
.flight-search-heading h1 { margin: 10px 0 0; color: #0b2040; font: 800 25px/1.15 'Manrope', Arial, sans-serif; letter-spacing: -.8px; }
.flight-trip-tabs { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; background: #e6ecf3; }
.flight-trip-tabs button { min-width: 105px; padding: 9px 12px; border: 0; border-radius: 6px; background: transparent; color: #637089; font: 700 12px/1 'DM Sans', Arial, sans-serif; cursor: pointer; }
.flight-trip-tabs button.is-active { background: #0b2040; color: #fff; box-shadow: 0 4px 10px rgba(11,32,64,.15); }
.flight-search-form { padding: 19px; border: 1px solid #e1e7ee; border-radius: 11px; background: #fff; box-shadow: 0 8px 20px rgba(15,34,66,.06); }
.flight-search-fields { display: grid; grid-template-columns: 1.05fr 1.05fr .86fr .86fr .82fr .95fr auto; gap: 10px; align-items: end; }
.flight-search-field label { display: block; margin: 0 0 7px 2px; color: #526078; font: 700 10px/1 'DM Sans', Arial, sans-serif; letter-spacing: .7px; text-transform: uppercase; }
.flight-search-input-wrap { display: flex; align-items: center; gap: 7px; min-height: 45px; padding: 0 10px; border: 1px solid #d9e1eb; border-radius: 7px; background: #fff; }
.flight-search-input-wrap > span { color: #b6810e; font-size: 14px; line-height: 1; }
.flight-search-input-wrap input, .flight-search-input-wrap select { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; background: transparent; color: #17233a; font: 600 12px/1.2 'DM Sans', Arial, sans-serif; }
.flight-search-input-wrap input::placeholder { color: #8b98aa; }
.flight-search-input-wrap input[type="date"] { color-scheme: light; }
.flight-search-submit { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; padding: 0 19px; border: 0; border-radius: 7px; background: #f7c948; color: #0b2040; font: 800 12px/1 'DM Sans', Arial, sans-serif; white-space: nowrap; cursor: pointer; box-shadow: 0 7px 14px rgba(247,201,72,.2); transition: transform .2s ease, background .2s ease; }
.flight-search-submit:hover { background: #ffda6c; transform: translateY(-2px); }
.flight-search-help { margin: 11px 2px 0; color: #8290a4; font-size: 11px; }
.flight-search-panel .is-hidden { display: none; }
.flight-mobile-hero,
.flight-mobile-product-tabs,
.flight-mobile-contact-fields,
.flight-mobile-multicity { display: none; }

@media (max-width: 1120px) {
    .flight-search-fields { grid-template-columns: repeat(3, 1fr); }
    .flight-search-submit { width: 100%; }
}

@media (max-width: 700px) {
    .flight-search-panel { padding: 25px 0 21px; }
    .flight-search-shell { width: min(calc(100% - 32px), 1220px); }
    .flight-search-heading { display: block; }
    .flight-search-heading h1 { font-size: 22px; }
    .flight-trip-tabs { margin-top: 17px; }
    .flight-search-form { padding: 14px; }
    .flight-search-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
    .flight-search-airport, .flight-search-submit { grid-column: span 2; }
}

@media (max-width: 430px) {
    .flight-search-fields { grid-template-columns: 1fr; }
    .flight-search-airport, .flight-search-submit { grid-column: span 1; }
    .flight-trip-tabs { width: 100%; }
    .flight-trip-tabs button { flex: 1; }
}

/* Phone layout for the flight search page. Desktop keeps the existing results layout. */
@media (max-width: 700px) {
    .flight-page .journey-shared-header { display: none; }
    .flight-mobile-hero {
        display: block;
        height: 160px;
        background-image: linear-gradient(rgba(5, 25, 52, .08), rgba(5, 25, 52, .08)), url('/assets/destinaion/cancun.jpg');
        background-position: center;
        background-size: cover;
    }

    .flight-page .flight-search-panel {
        padding: 0 0 25px;
        background: #fff;
        border-bottom: 0;
    }

    .flight-mobile-product-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 18px 8px 8px;
        background: #fff;
    }

    .flight-mobile-product-tabs button {
        min-height: 43px;
        border: 0;
        border-radius: 999px;
        background: #25c1ca;
        color: #fff;
        font: 800 18px/1 'DM Sans', Arial, sans-serif;
        cursor: pointer;
    }

    .flight-mobile-product-tabs button.is-active {
        background: #3F00FF;
    }

    .flight-search-shell { width: 100%; }
    .flight-search-heading { display: block; margin: 0; }
    .flight-search-heading > div:first-child { display: none; }
    .flight-trip-tabs {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        padding: 15px 22px 7px;
        border-radius: 0;
        background: #fff;
    }

    .flight-trip-tabs button,
    .flight-trip-tabs button.is-active {
        min-width: 0;
        padding: 5px 0;
        background: transparent;
        color: #535353;
        box-shadow: none;
        font: 700 11px/1.2 'DM Sans', Arial, sans-serif;
        text-align: left;
        text-transform: uppercase;
    }

    .flight-trip-tabs .flight-mobile-multicity { display: block; }

    .flight-trip-tabs button::before {
        content: '';
        display: inline-block;
        width: 18px;
        height: 18px;
        margin-right: 5px;
        vertical-align: -5px;
        border: 1px solid #777;
        border-radius: 50%;
        background: #fff;
    }

    .flight-trip-tabs button.is-active::before {
        border-color: #555;
        background: radial-gradient(circle at center, #11b4bf 0 5px, #fff 6px);
    }

    .flight-search-form {
        padding: 4px 22px 18px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .flight-search-fields {
        grid-template-columns: 1fr 1fr;
        column-gap: 22px;
        row-gap: 0;
        align-items: end;
    }

    .flight-search-airport,
    .flight-search-submit { grid-column: auto; }

    .flight-search-field {
        min-width: 0;
        margin-bottom: 12px;
    }

    .flight-search-field label {
        margin: 0 0 3px;
        color: #222;
        font: 500 14px/1.3 'DM Sans', Arial, sans-serif;
        letter-spacing: 0;
        text-transform: none;
    }

    .flight-search-input-wrap {
        min-height: 43px;
        padding: 0;
        border: 0;
        border-bottom: 1px solid #c8c8c8;
        border-radius: 0;
        background: #fff;
    }

    .flight-search-input-wrap > span {
        flex: 0 0 auto;
        color: #10b7c2;
        font-size: 18px;
    }

    .flight-search-input-wrap input,
    .flight-search-input-wrap select {
        min-width: 0;
        color: #444;
        font: 500 17px/1.2 'DM Sans', Arial, sans-serif;
    }

    .flight-search-input-wrap input::placeholder { color: #929292; }
    .flight-search-input-wrap input[type="date"] { font-size: 16px; }

    .flight-mobile-contact-fields {
        display: grid;
        grid-column: 1 / -1;
        grid-template-columns: 1fr 1fr;
        gap: 0 22px;
        margin-top: 3px;
    }

    .flight-mobile-contact-fields .flight-search-field { margin-bottom: 14px; }

    .flight-search-submit {
        grid-column: 1 / -1;
        width: 100%;
        min-height: 54px;
        margin-top: 4px;
        border: 0;
        border-radius: 999px;
        background: #3F00FF;
        color: #fff;
        font-size: 19px;
        letter-spacing: .2px;
        text-transform: uppercase;
        box-shadow: 0 9px 18px rgba(63, 0, 255, .18);
    }

    .flight-search-submit:hover { background: #3200CC; }
    .flight-search-help { margin: 10px 0 0; color: #7c8795; font-size: 11px; text-align: center; }

    .flight-page .journey-mobile-call-bar { background: #034e5c; }
    .flight-page .journey-mobile-call-bar a,
    .flight-page .journey-mobile-call-bar a span,
    .flight-page .journey-mobile-call-bar a strong { color: #fff !important; }

    .flight-page { padding-bottom: 105px !important; }
    .flight-page .phone-view-list { width: 100%; overflow: visible; }
    .flight-page .phone-flight-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 88px;
        column-gap: 10px;
        width: 100%;
        padding: 14px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .flight-page .phone-flight-label {
        grid-column: 1 / -1;
        margin-bottom: 8px;
        color: #64748b;
        font: 800 10px/1.2 'DM Sans', Arial, sans-serif;
        letter-spacing: .7px;
        text-transform: uppercase;
    }

    .flight-page .phone-flight-details {
        min-width: 0;
        margin-right: 0;
    }

    .flight-page .phone-times-route {
        display: grid;
        grid-template-columns: auto auto minmax(12px, 1fr) auto auto;
        gap: 4px;
        min-width: 0;
        margin-bottom: 10px;
        align-items: center;
    }

    .flight-page .phone-times-route .time,
    .flight-page .phone-times-route .code {
        min-width: 0;
        margin-left: 0;
        font-size: 16px;
        white-space: nowrap;
    }

    .flight-page .phone-times-route .arrow {
        margin: 0;
        justify-self: center;
        color: #64748b;
    }

    .flight-page .phone-meta-info {
        display: grid;
        grid-template-columns: 22px minmax(0, 1fr);
        column-gap: 7px;
        align-items: center;
        min-width: 0;
        margin: 0;
    }

    .flight-page .phone-meta-info img {
        grid-row: 1 / 3;
        width: 22px;
        height: 22px;
        margin: 0;
    }

    .flight-page .phone-meta-info .airline-name {
        min-width: 0;
        overflow: hidden;
        font-size: 14px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flight-page .phone-duration-emissions {
        min-width: 0;
        margin: 2px 0 0;
        color: #5f6368;
        font-size: 12px;
        line-height: 1.35;
    }

    .flight-page .phone-emissions {
        display: inline-block;
        margin: 3px 0 0;
        padding: 2px 4px;
        border-radius: 4px;
        background: #eef2ff;
        color: #4338ca;
        font-size: 11px;
        white-space: nowrap;
    }

    .flight-page .phone-ticket-warning {
        margin: 10px 0 0;
        font-size: 11px;
        line-height: 1.25;
    }

    .flight-page .phone-price-container {
        min-width: 0;
        align-self: start;
        text-align: right;
    }

    .flight-page .phone-price-container .price-amount {
        overflow: hidden;
        font-size: 20px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .flight-page .phone-price-container .price-type {
        font-size: 12px;
        white-space: nowrap;
    }

    .flight-page .phone-select-btn {
        width: 100%;
        min-height: 44px;
        margin-top: 10px;
        padding: 7px 5px;
        border-radius: 7px;
        background: #3F00FF;
        color: #fff;
        font-size: 14px;
        white-space: nowrap;
    }

    .flight-page .phone-select-btn:hover { background: #3200CC; }
}

@media (max-width: 430px) {
    .flight-search-fields { grid-template-columns: 1fr 1fr; }
    .flight-mobile-contact-fields { grid-template-columns: 1fr; }
}
