/**
 * Flight search landing — results grid (premium booking UI).
 * Light mode is the primary polish target; dark keeps existing ink/slate balance.
 */

/* -------------------------------------------------------------------------- */
/* Flight search landing — search section shell (matches home hero form area) */
#search.fc-landing-search {
    scroll-margin-top: 7rem;
}

#search.fc-landing-search .fc-search-inner {
    max-width: 80rem;
}

#search.fc-landing-search #fc-search-panel {
    margin-top: 0;
    scroll-margin-top: 7rem;
}

@media (min-width: 768px) {
    #search.fc-landing-search .fc-search-marketing h1 {
        font-size: 2rem;
    }
}

@media (max-width: 1023px) {
    #search.fc-landing-search {
        padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
    }
}

/* Section shell */
/* -------------------------------------------------------------------------- */
.fc-landing-results {
    position: relative;
}

[data-fc-theme='light'] .fc-landing-results {
    background: linear-gradient(180deg, #eef2f6 0%, #f8fafc 22%, #ffffff 55%, #f1f5f9 100%) !important;
    border-color: rgba(15, 23, 42, 0.06) !important;
}

/* When a route is active, #search is hidden until “Edit search”. Expanded = form only. */
#search.fc-search-expanded .fc-search-marketing,
#search.fc-search-expanded #fc-recap {
    display: none !important;
}

#search.fc-search-expanded #fc-search-panel {
    margin-top: 0 !important;
}

#search.fc-search-expanded .fc-search-inner {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
    #search.fc-search-expanded .fc-search-inner {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }
}

.fc-landing-results-head-premium {
    align-items: flex-end;
}

[data-fc-theme='light'] .fc-landing-results-kicker {
    color: #64748b !important;
}

[data-fc-theme='light'] .fc-landing-results-title {
    color: #0c1929 !important;
    letter-spacing: -0.02em;
}

[data-fc-theme='light'] .fc-landing-results-sub {
    color: #475569 !important;
}

/* CTAs */
.fc-landing-btn-edit {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

[data-fc-theme='light'] .fc-landing-btn-edit {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0c1929 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

[data-fc-theme='light'] .fc-landing-btn-edit:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

.fc-landing-btn-call {
    background-color: #0d6cb8 !important;
    border: 1px solid #0d6cb8 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 26px rgba(13, 108, 184, 0.38);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.fc-landing-btn-call:hover {
    background-color: #0b5ea3 !important;
    border-color: #0b5ea3 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 32px rgba(13, 108, 184, 0.45);
    transform: translateY(-1px);
}

[data-fc-theme='light'] .fc-landing-btn-call {
    background-color: #0d6cb8 !important;
    border-color: #0d6cb8 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 26px rgba(13, 108, 184, 0.35);
}

[data-fc-theme='light'] .fc-landing-btn-call:hover {
    background-color: #0b5ea3 !important;
    border-color: #0b5ea3 !important;
    color: #ffffff !important;
    box-shadow: 0 12px 32px rgba(13, 108, 184, 0.42);
    transform: translateY(-1px);
}

/* -------------------------------------------------------------------------- */
/* Sticky filter pane (glass) */
/* -------------------------------------------------------------------------- */
.fc-results-filter-pane {
    border-radius: 1.25rem;
    transition: box-shadow 0.25s ease, border-color 0.2s ease;
}

[data-fc-theme='light'] .fc-results-filter-pane {
    background: rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow:
        0 4px 24px rgba(15, 23, 42, 0.06),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
}

[data-fc-theme='light'] .fc-results-filter-pane h3 {
    color: #0c1929 !important;
}

[data-fc-theme='light'] .fc-results-filter-reset {
    background: #ffffff !important;
    border-color: rgba(24, 145, 237, 0.45) !important;
    color: #0d6cb8 !important;
}

[data-fc-theme='light'] .fc-results-filter-reset:hover {
    background: #f0f9ff !important;
}

/* Airline filter rows — CSS grid so name/price never overlap (no Tailwind dependency) */
.fc-airline-filter-item {
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.75rem;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.fc-airline-filter-label {
    display: grid !important;
    grid-template-columns: 1.125rem 2.25rem minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 0.625rem;
    row-gap: 0.2rem;
    align-items: start;
    cursor: pointer;
    width: 100%;
    margin: 0;
}

.fc-airline-filter-cb {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 1rem;
    height: 1rem;
    margin-top: 0.35rem;
    flex-shrink: 0;
    border-radius: 0.25rem;
    accent-color: #1891ed;
}

.fc-airline-filter-logo {
    position: relative;
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    overflow: hidden;
    border-radius: 0.375rem;
    background: #ffffff;
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.fc-airline-filter-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.2rem;
}

.fc-airline-filter-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(24, 145, 237, 0.12);
    font-size: 0.5625rem;
    font-weight: 800;
    color: #1891ed;
    letter-spacing: 0.02em;
}

.fc-airline-filter-name {
    grid-column: 3;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
}

.fc-airline-filter-price {
    grid-column: 3;
    grid-row: 2;
    min-width: 0;
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1891ed;
}

[data-fc-theme='light'] .fc-airline-filter-item {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-fc-theme='light'] .fc-airline-filter-item:hover {
    border-color: rgba(24, 145, 237, 0.35) !important;
    background: #f8fafc !important;
}

[data-fc-theme='light'] .fc-airline-filter-item .text-white,
[data-fc-theme='light'] .fc-airline-filter-name {
    color: #0f172a !important;
}

[data-fc-theme='light'] .fc-airline-filter-price {
    color: #1891ed !important;
}

/* -------------------------------------------------------------------------- */
/* Results column label */
/* -------------------------------------------------------------------------- */
[data-fc-theme='light'] .fc-results-col-label {
    color: #64748b !important;
}

/* -------------------------------------------------------------------------- */
/* Offer cards */
/* -------------------------------------------------------------------------- */
.fc-offer-card {
    position: relative;
    transition:
        transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.35s ease,
        border-color 0.25s ease;
}

.fc-offer-card__accent {
    opacity: 0.95;
}

@media (hover: hover) and (pointer: fine) {
    .fc-offer-card:hover {
        transform: translateY(-4px);
    }
}

[data-fc-theme='light'] .fc-offer-card {
    background: linear-gradient(165deg, #ffffff 0%, #fafbfc 100%) !important;
    border-color: rgba(12, 25, 41, 0.09) !important;
    box-shadow:
        0 4px 20px rgba(12, 25, 41, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.85) inset !important;
}

.fc-offer-card.fc-offer-card--classic {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08) !important;
    /* Tailwind overflow-hidden on <li> clips airline logos when the 4-col grid is wider than the card */
    overflow: visible !important;
}

.fc-offer-card--classic .fc-offer-classic__topbar {
    background-color: #1891ed !important;
}

/* Classic cards: icons via SVG <use> — styled here because Tailwind CDN skips JS-injected classes. */
.fc-offer-card--classic svg.fc-offer-classic__ico {
    display: block;
    flex-shrink: 0;
    overflow: visible;
    width: 1rem !important;
    height: 1rem !important;
    min-width: 1rem;
    min-height: 1rem;
    color: #1891ed !important;
    stroke: #1891ed !important;
    fill: none !important;
    stroke-width: 1.85;
}

.fc-offer-card--classic .fc-offer-classic__leg-mark {
    border: 1px solid rgba(24, 145, 237, 0.45);
    background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.fc-offer-card--classic .fc-offer-classic__ico--leg {
    stroke: #0d6cb8 !important;
    color: #0d6cb8 !important;
}

/* Leg date lives once in .fc-offer-classic__leg-head — hide under departure/arrival cells (same date was repeated for both columns). */
.fc-offer-card--classic .fc-offer-classic__leg-grid .fc-offer-classic__place-date {
    display: none !important;
}

.fc-offer-card--classic .fc-offer-classic__leg-head .fc-offer-classic__leg-date {
    max-width: 58%;
}

.fc-offer-card--classic .fc-offer-classic__cell--meta-empty {
    display: none !important;
}

@media (min-width: 640px) {
    .fc-offer-card--classic .fc-offer-classic__leg-head .fc-offer-classic__leg-date {
        max-width: none;
    }
}

/* Leg row: label + grid (dep | arr | timeline | airline) */
.fc-offer-card--classic .fc-offer-classic__place-iata,
.fc-offer-card--classic .fc-offer-classic__route-code {
    display: inline-flex;
    align-items: center;
    margin-left: 0.125rem;
    padding: 0.15rem 0.45rem;
    border-radius: 0.35rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: #0c4a6e !important;
    background: rgba(24, 145, 237, 0.12);
    border: 1px solid rgba(13, 108, 184, 0.35);
}

.fc-offer-card--classic .fc-offer-classic__leg + .fc-offer-classic__leg {
    border-top: 1px solid #f1f5f9;
}

.fc-offer-card--classic .fc-offer-classic__leg-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    align-items: stretch;
}

.fc-offer-card--classic .fc-offer-classic__leg-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.fc-offer-card--classic .fc-offer-classic__leg-body {
    min-width: 0;
    width: 100%;
}

.fc-offer-card--classic .fc-offer-classic__leg-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    width: 100%;
}

.fc-offer-card--classic .fc-offer-classic__point,
.fc-offer-card--classic .fc-offer-classic__timeline,
.fc-offer-card--classic .fc-offer-classic__airline-slot {
    min-width: 0;
    overflow: hidden;
}

/* Airline logo column: avoid clipping; JS HTML can't rely on Tailwind CDN scanning injected markup */
.fc-offer-card--classic .fc-offer-classic__airline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    text-align: center;
    min-width: 0;
    overflow: visible;
}

.fc-offer-card--classic .fc-offer-classic__logo-box {
    position: relative;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 5rem;
    min-width: 5rem;
    height: 3.5rem;
}

.fc-offer-card--classic .fc-offer-classic__logo-box .fc-airline-logo-img {
    display: block;
    position: relative;
    z-index: 1;
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fc-offer-card--classic .fc-offer-classic__logo-box .fc-airline-fallback {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    background-color: #f1f5f9;
    font-family:
        'DM Sans',
        'Inter',
        system-ui,
        sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
}

.fc-offer-card--classic .fc-offer-classic__airline-name {
    margin: 0;
    max-width: 6.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1.25;
    color: #1e293b;
}

/* Place cells: full airport names wrap inside the column (no ellipsis); overflow clips horizontal bleed only */
.fc-offer-card--classic .fc-offer-classic__cell--place {
    min-width: 0;
    overflow: hidden;
}

.fc-offer-card--classic .fc-offer-classic__place-route {
    min-width: 0;
    align-items: flex-start;
}

.fc-offer-card--classic .fc-offer-classic__place-route-text {
    flex: 1 1 0%;
    min-width: 0;
}

.fc-offer-card--classic .fc-offer-classic__place-route-line {
    display: block;
    overflow-wrap: break-word;
    word-break: normal;
}

.fc-offer-card--classic .fc-offer-classic__timeline {
    isolation: isolate;
}

.fc-offer-card--classic .fc-offer-classic__route-track {
    min-height: 1.75rem;
    position: relative;
}

.fc-offer-card--classic .fc-offer-classic__airline-slot--empty {
    display: none;
}

.fc-offer-card--classic .fc-offer-classic__price {
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.fc-offer-card--classic .fc-offer-classic__per-label {
    white-space: nowrap;
}

.fc-offer-card--classic .fc-offer-classic__trip-badge {
    line-height: 1.25;
}

.fc-offer-card--classic .fc-offer-classic__fare-meta {
    column-gap: 0.5rem;
}

.fc-offer-card--classic .fc-offer-classic__fare-breakdown {
    font-variant-numeric: tabular-nums;
}

.fc-offer-card--classic .fc-offer-classic__actions {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    padding-bottom: 1.25rem;
}

.fc-offer-card--classic .fc-offer-classic__actions a {
    min-height: 3rem;
}

@media (min-width: 768px) {
    .fc-offer-card--classic .fc-offer-classic__leg-row {
        flex-direction: row;
        align-items: center;
        gap: 1rem 1.25rem;
        padding: 1.1rem 1.5rem;
    }

    .fc-offer-card--classic .fc-offer-classic__leg-label {
        flex: 0 0 5.25rem;
        width: 5.25rem;
    }
}

/* Tablet: dep | arr on row 1 — duration/stops + airline get full width below (no column overlap) */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .fc-offer-card--classic .fc-offer-classic__leg-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        gap: 0.875rem 1rem;
        align-items: start;
    }

    .fc-offer-card--classic .fc-offer-classic__cell--place[data-leg-role='departure'],
    .fc-offer-card--classic .fc-offer-classic__point--dep {
        grid-column: 1;
        grid-row: 1;
    }

    .fc-offer-card--classic .fc-offer-classic__cell--place[data-leg-role='arrival'],
    .fc-offer-card--classic .fc-offer-classic__point--arr {
        grid-column: 2;
        grid-row: 1;
    }

    .fc-offer-card--classic .fc-offer-classic__timeline,
    .fc-offer-card--classic .fc-offer-classic__cell--meta {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .fc-offer-card--classic .fc-offer-classic__airline,
    .fc-offer-card--classic .fc-offer-classic__airline-slot {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: end;
        width: auto;
        max-width: 100%;
    }

    .fc-offer-card--classic .fc-offer-classic__airline-slot--empty {
        display: none;
        visibility: hidden;
    }
}

/* Desktop: four columns in one row — only when the card is wide enough */
@media (min-width: 1200px) {
    /* Allow tracks to shrink inside overflow-rounded cards — fixed minmax() was clipping column 4 (logos) */
    .fc-offer-card--classic .fc-offer-classic__leg-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.05fr) minmax(4.75rem, 5.5rem);
        gap: 0.65rem 0.85rem;
        align-items: center;
    }

    .fc-offer-card--classic .fc-offer-classic__cell--place[data-leg-role='departure'],
    .fc-offer-card--classic .fc-offer-classic__point--dep {
        grid-column: 1;
        grid-row: auto;
    }

    .fc-offer-card--classic .fc-offer-classic__cell--place[data-leg-role='arrival'],
    .fc-offer-card--classic .fc-offer-classic__point--arr {
        grid-column: 2;
        grid-row: auto;
    }

    .fc-offer-card--classic .fc-offer-classic__timeline,
    .fc-offer-card--classic .fc-offer-classic__cell--meta {
        grid-column: 3;
        grid-row: auto;
    }

    .fc-offer-card--classic .fc-offer-classic__airline,
    .fc-offer-card--classic .fc-offer-classic__airline-slot {
        grid-column: 4;
        grid-row: auto;
        justify-self: end;
        width: 100%;
        max-width: 5.5rem;
    }

    .fc-offer-card--classic .fc-offer-classic__airline-slot--empty {
        display: block;
        visibility: hidden;
    }
}

@media (hover: hover) and (pointer: fine) {
    .fc-offer-card.fc-offer-card--classic:hover {
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
    }
}

.fc-offer-card--classic .fc-offer-classic__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

.fc-offer-card--classic .fc-offer-classic__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 2.75rem;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none !important;
    transition:
        filter 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.fc-offer-card--classic .fc-offer-classic__action:hover,
.fc-offer-card--classic .fc-offer-classic__action:focus,
.fc-offer-card--classic .fc-offer-classic__action:focus-visible {
    text-decoration: none !important;
}

.fc-offer-card--classic .fc-offer-classic__book {
    background: #1891ed !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    box-shadow: 0 4px 16px rgba(24, 145, 237, 0.32);
}

.fc-offer-card--classic .fc-offer-classic__phone {
    background: linear-gradient(135deg, #1891ed 0%, #0d6cb8 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(13, 108, 184, 0.35) !important;
    box-shadow:
        0 8px 22px rgba(13, 108, 184, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    flex-direction: column;
    gap: 0.125rem;
    font-size: 0.6875rem;
    font-weight: 800;
    animation: fc-call-glow 2.4s ease-in-out infinite;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.fc-offer-card--classic .fc-offer-classic__phone:hover,
.fc-offer-card--classic .fc-offer-classic__phone:focus-visible {
    filter: none;
    background: linear-gradient(135deg, #1a9af5 0%, #0b5ea3 100%) !important;
    transform: translateY(-1px);
    box-shadow:
        0 12px 28px rgba(13, 108, 184, 0.38),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 0 20px rgba(24, 145, 237, 0.45);
}

.fc-offer-card--classic .fc-offer-classic__book:hover {
    filter: brightness(1.05);
    box-shadow: 0 6px 20px rgba(24, 145, 237, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .fc-offer-card--classic .fc-offer-classic__phone:hover {
        transform: none;
    }

    .fc-offer-card--classic .fc-offer-classic__phone {
        animation: none;
    }

    .fc-offer-classic__phone-rings {
        animation: none;
        opacity: 0;
    }
}

.fc-offer-card--classic .fc-offer-classic__phone .fc-offer-classic__phone-ic {
    color: #ffffff;
    vertical-align: middle;
}

.fc-offer-card--classic .fc-offer-classic__phone-label,
.fc-offer-card--classic .fc-offer-classic__phone-num {
    display: block;
    color: #ffffff !important;
    text-decoration: none !important;
    line-height: 1.2;
}

.fc-offer-card--classic .fc-offer-classic__phone-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 800;
    white-space: nowrap;
}

.fc-offer-classic__phone-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1.125rem;
    height: 1.125rem;
}

.fc-offer-classic__phone-rings {
    position: absolute;
    inset: -3px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    animation: fc-call-ring 1.8s ease-out infinite;
    pointer-events: none;
}

.fc-offer-classic__phone-digits {
    color: #ffffff !important;
    text-decoration: none !important;
    line-height: 1.2;
}

.fc-offer-card--classic .text-brand {
    color: #1891ed !important;
}

[data-fc-theme='light'] .fc-offer-card.fc-offer-card--classic:hover {
    border-color: rgba(24, 145, 237, 0.45) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
}

[data-fc-theme='light'] .fc-offer-card:hover {
    border-color: rgba(24, 145, 237, 0.28) !important;
    box-shadow:
        0 24px 48px rgba(12, 25, 41, 0.12),
        0 0 0 1px rgba(24, 145, 237, 0.12) inset !important;
}

[data-fc-theme='light'] .fc-offer-card__aside {
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(241, 245, 249, 0.85) 100%) !important;
    border-color: rgba(15, 23, 42, 0.07) !important;
}

@media (min-width: 1024px) {
    [data-fc-theme='light'] .fc-offer-card__aside {
        border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
        border-top: none !important;
    }
}

[data-fc-theme='light'] .fc-offer-card .fc-itinerary-leg {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

[data-fc-theme='light'] .fc-offer-card .fc-itinerary-leg .text-white,
[data-fc-theme='light'] .fc-offer-card .fc-route-code,
[data-fc-theme='light'] .fc-offer-card .fc-offer-route-doodle .font-display,
[data-fc-theme='light'] .fc-offer-card .fc-place-details .text-white {
    color: #0f172a !important;
}

[data-fc-theme='light'] .fc-offer-card .fc-route-code {
    background: rgba(15, 23, 42, 0.06) !important;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12) !important;
}

[data-fc-theme='light'] .fc-offer-card .fc-route-line {
    border-color: rgba(51, 65, 85, 0.45) !important;
}

[data-fc-theme='light'] .fc-offer-card .fc-place-details {
    border-color: #e2e8f0 !important;
}

[data-fc-theme='light'] .fc-offer-card .fc-itinerary-leg .text-slate-400,
[data-fc-theme='light'] .fc-offer-card .fc-place-details .text-slate-400 {
    color: #64748b !important;
}

[data-fc-theme='light'] .fc-offer-card .fc-itinerary-leg .text-slate-200 {
    color: #334155 !important;
}

[data-fc-theme='light'] .fc-offer-card .text-slate-200,
[data-fc-theme='light'] .fc-offer-card .text-slate-500,
[data-fc-theme='light'] .fc-offer-card .text-slate-100 {
    color: #475569 !important;
}

[data-fc-theme='light'] .fc-offer-card .text-sky-400\/95,
[data-fc-theme='light'] .fc-offer-card .text-sky-400\/90,
[data-fc-theme='light'] .fc-offer-card .font-bold.text-sky-400 {
    color: #0369a1 !important;
}

[data-fc-theme='light'] .fc-offer-card .font-display.text-3xl,
[data-fc-theme='light'] .fc-offer-card .font-display.text-4xl {
    color: #0c1929 !important;
}

[data-fc-theme='light'] .fc-offer-card__badge {
    background: linear-gradient(90deg, #0d6cb8 0%, #1891ed 45%, #4da3f2 50%, #1891ed 55%, #0d6cb8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(24, 145, 237, 0.35);
}

.fc-offer-card__btn-primary {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

[data-fc-theme='light'] .fc-offer-card__btn-primary {
    background: linear-gradient(135deg, #0c1929 0%, #1e3a5f 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(12, 25, 41, 0.25);
}

[data-fc-theme='light'] .fc-offer-card__btn-primary:hover {
    box-shadow: 0 12px 32px rgba(12, 25, 41, 0.32);
    transform: translateY(-1px);
}

.fc-offer-card__btn-secondary {
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

[data-fc-theme='light'] .fc-offer-card__btn-secondary {
    background: #ffffff !important;
    border: 2px solid #0c1929 !important;
    color: #0c1929 !important;
}

[data-fc-theme='light'] .fc-offer-card__btn-secondary:hover {
    background: #f8fafc !important;
}

/* -------------------------------------------------------------------------- */
/* Support / quote aside */
/* -------------------------------------------------------------------------- */
.fc-results-support-card {
    transition: box-shadow 0.3s ease, border-color 0.2s ease;
}

[data-fc-theme='light'] .fc-results-support-card {
    background: linear-gradient(165deg, #ffffff 0%, #f4f6f9 100%) !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow:
        0 16px 40px rgba(12, 25, 41, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.75) inset;
}

[data-fc-theme='light'] .fc-results-support-card h3 {
    color: #0c1929 !important;
}

[data-fc-theme='light'] .fc-results-support-card .text-slate-400 {
    color: #64748b !important;
}

.fc-results-support-primary {
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

[data-fc-theme='light'] .fc-results-support-primary {
    box-shadow: 0 8px 28px rgba(24, 145, 237, 0.3);
}

[data-fc-theme='light'] .fc-results-support-secondary {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0c1929 !important;
}

[data-fc-theme='light'] .fc-results-support-secondary:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* -------------------------------------------------------------------------- */
/* Loading / empty states */
/* -------------------------------------------------------------------------- */
.fc-results-loading-card {
    transition: box-shadow 0.25s ease;
}

[data-fc-theme='light'] .fc-results-loading-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
    color: #64748b !important;
}

[data-fc-theme='light'] .fc-results-empty-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-fc-theme='light'] .fc-results-empty-card .text-slate-300 {
    color: #334155 !important;
}

[data-fc-theme='light'] .fc-results-hint-card {
    background: rgba(240, 249, 255, 0.9) !important;
    border-color: rgba(14, 165, 233, 0.25) !important;
}

[data-fc-theme='light'] .fc-results-hint-card .text-slate-500 {
    color: #475569 !important;
}

/* Sticky vertical offset — align below premium header */
@media (min-width: 1024px) {
    .fc-results-filter-sticky,
    .fc-results-support-sticky {
        position: sticky;
        top: 6.5rem;
        align-self: flex-start;
        max-height: calc(100vh - 7rem);
        overflow-y: auto;
    }
}

[data-fc-theme='light'] .fc-offer-card .fc-itinerary-leg .bg-brand\/25 {
    background: rgba(24, 145, 237, 0.12) !important;
    color: #0c4a6e !important;
}

[data-fc-theme='light'] .fc-offer-card .text-amber-200\/90 {
    color: #92400e !important;
}

[data-fc-theme='light'] .fc-offer-card .bg-amber-500\/10 {
    background: rgba(245, 158, 11, 0.12) !important;
}

@media (prefers-reduced-motion: reduce) {
    .fc-offer-card:hover {
        transform: none;
    }
    [data-fc-theme='light'] .fc-landing-btn-call:hover,
    [data-fc-theme='light'] .fc-offer-card__btn-primary:hover {
        transform: none;
    }
}

/* -------------------------------------------------------------------------- */
/* Modern Timeline Flight Cards (Match Premium Airline Search Spec)          */
/* -------------------------------------------------------------------------- */
.fc-flight-card {
    position: relative;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.875rem !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    overflow: hidden;
    transition: box-shadow 0.22s ease, border-color 0.2s ease, transform 0.2s ease;
}

.fc-flight-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09) !important;
    border-color: #cbd5e1 !important;
    transform: translateY(-2px);
}

.fc-card-main-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
}

.fc-card-legs-col {
    flex: 1 1 0%;
    min-width: 0;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
}

.fc-leg-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
}

.fc-leg-logo-col {
    width: 3.5rem;
    min-width: 3.5rem;
    height: 2.5rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-leg-logo-box {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-leg-logo-box .fc-airline-logo-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.fc-leg-logo-box .fc-airline-fallback {
    position: absolute;
    inset: 0;
    border-radius: 0.375rem;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fc-leg-code-col {
    flex-shrink: 0;
    min-width: 3.25rem;
}

.fc-leg-code-col .fc-iata-code {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0c2d4a;
    letter-spacing: -0.02em;
    line-height: 1;
}

.fc-leg-time-col {
    flex-shrink: 0;
    min-width: 5.75rem;
}

.fc-leg-time-col .fc-leg-time {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.fc-leg-time-col .fc-leg-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.15rem;
    white-space: nowrap;
}

.fc-leg-timeline-col {
    flex: 1 1 0%;
    min-width: 5rem;
    max-width: 9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 0.35rem;
}

.fc-timeline-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.fc-timeline-graphic {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12px;
}

.fc-timeline-graphic .fc-tl-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1.5px;
    background: #94a3b8;
}

.fc-timeline-graphic .fc-tl-dot {
    position: relative;
    z-index: 1;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #1e293b;
    background: #ffffff;
    box-shadow: 0 0 0 2px #f8fafc;
}

.fc-tl-2stops {
    gap: 1.5rem;
}

.fc-timeline-via {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.25rem;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-leg-dur-col {
    flex-shrink: 0;
    min-width: 5.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    color: #475569;
}

.fc-leg-dur-col .fc-clock-icon {
    width: 0.95rem;
    height: 0.95rem;
    color: #64748b;
    flex-shrink: 0;
}

.fc-leg-dur-col .fc-dur-val {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.fc-leg-divider {
    height: 1px;
    width: 100%;
    background: #f1f5f9;
    margin: 0.15rem 0;
}

/* Right Fare Column */
.fc-card-fare-col {
    width: 14.5rem;
    min-width: 14.5rem;
    flex-shrink: 0;
    padding: 1.25rem 1rem;
    border-left: 1px solid #e2e8f0;
    background: #fafbfc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

.fc-card-fare-col .fc-fare-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
}

.fc-card-fare-col .fc-fare-price {
    font-family: 'DM Sans', 'Inter', system-ui, sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: #0c2d4a;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.fc-card-fare-col .fc-fare-pax-note {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.2rem;
}

.fc-card-fare-col .fc-btn-book {
    margin-top: 0.75rem;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1a3b68 !important;
    color: #ffffff !important;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.65rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none !important;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 8px rgba(26, 59, 104, 0.25);
    box-sizing: border-box;
}

.fc-card-fare-col .fc-btn-book:hover {
    background: #112847 !important;
    box-shadow: 0 4px 14px rgba(26, 59, 104, 0.35);
    transform: translateY(-1px);
}

.fc-card-phone-cta {
    margin-top: 0.65rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.45rem 0.5rem;
    border-radius: 0.5rem;
    background: #fffbeb !important;
    border: 1px solid #fde68a !important;
    text-decoration: none !important;
    transition: all 0.18s ease;
}

.fc-card-phone-cta:hover {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.18);
    transform: translateY(-1px);
}

.fc-phone-deal-tag {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #b45309;
    line-height: 1;
}

.fc-phone-cta-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 800;
    color: #9a3412;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.fc-phone-svg {
    width: 0.8rem;
    height: 0.8rem;
    flex-shrink: 0;
    color: #d97706;
}

.fc-live-assist-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

/* Footer row */
.fc-card-footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
}

.fc-btn-flight-details {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #047857;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.fc-btn-flight-details:hover {
    color: #065f46;
}

.fc-details-arrow {
    width: 0.875rem;
    height: 0.875rem;
    transition: transform 0.2s ease;
}

.fc-btn-flight-details.fc-expanded .fc-details-arrow {
    transform: rotate(180deg);
}

.fc-btn-more-options {
    background: transparent;
    border: none;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s ease;
}

.fc-btn-more-options:hover {
    color: #0d6cb8;
    text-decoration: underline;
}

/* Expandable Flight Drawer */
.fc-flight-drawer .fc-drawer-inner {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.fc-drawer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.fc-drawer-leg {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
}

.fc-drawer-leg-badge {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0d6cb8;
    margin-bottom: 0.75rem;
}

.fc-drawer-point {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.fc-point-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #0d6cb8;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.fc-point-dot-end {
    background: #047857;
}

.fc-point-time {
    font-size: 0.875rem;
    font-weight: 800;
    color: #0f172a;
}

.fc-point-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.fc-drawer-seg {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.5rem 0 0.5rem 4px;
}

.fc-seg-line {
    width: 2px;
    background: #cbd5e1;
    margin-right: 0.25rem;
}

.fc-seg-info {
    font-size: 0.6875rem;
    color: #475569;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.fc-seg-stop {
    font-weight: 600;
    color: #b45309;
}

.fc-seg-direct {
    font-weight: 600;
    color: #047857;
}

.fc-drawer-perks {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.75rem;
    color: #475569;
}

/* Responsive adjustments for mobile & small screens */
@media (max-width: 820px) {
    .fc-card-main-row {
        flex-direction: column;
    }

    .fc-card-fare-col {
        width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding: 1rem 1.25rem;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .fc-card-fare-col .fc-fare-label {
        font-size: 0.6875rem;
        margin-bottom: 0;
    }

    .fc-card-fare-col .fc-fare-price {
        font-size: 1.5rem;
    }

    .fc-card-fare-col .fc-btn-book {
        width: auto;
        margin-top: 0;
        padding: 0.5rem 1.5rem;
    }

    .fc-card-fare-col .fc-card-phone-deal {
        width: 100%;
        margin-top: 0.5rem;
        justify-content: flex-start;
    }
}

@media (max-width: 639px) {
    .fc-card-legs-col {
        padding: 1rem;
        gap: 1rem;
    }

    .fc-leg-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .fc-leg-logo-col {
        width: 2.75rem;
        min-width: 2.75rem;
        height: 2rem;
    }

    .fc-leg-code-col .fc-iata-code {
        font-size: 1.15rem;
    }

    .fc-leg-time-col {
        min-width: 4.75rem;
    }

    .fc-leg-time-col .fc-leg-time {
        font-size: 0.9375rem;
    }

    .fc-leg-timeline-col {
        min-width: 4rem;
        max-width: 6rem;
    }

    .fc-leg-dur-col {
        width: 100%;
        justify-content: flex-start;
        padding-top: 0.25rem;
        border-top: 1px dashed #f1f5f9;
    }

    .fc-card-footer-row {
        padding: 0.625rem 1rem;
    }
}

