:root {
    --navy: #0b1f3a;
    --navy-2: #123156;
    --sky: #1a8cff;
    --sky-soft: #e8f3ff;
    --sand: #f4f7fb;
    --ink: #10243f;
    --muted: #5b6b82;
    --line: #d7e2ef;
    --white: #ffffff;
    --accent: #ff6a3d;
    --accent-2: #ff8f4a;
    --ok: #0f9f6e;
    --warn: #b45309;
    --danger: #c81e4a;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(11, 31, 58, 0.12);
    --font-display: "Bricolage Grotesque", sans-serif;
    --font-body: "Karla", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100%;
    color: var(--ink);
    font-family: var(--font-body);
    background: var(--sand);
}

body.flights-pro {
    background:
        radial-gradient(900px 420px at 0% 0%, rgba(26, 140, 255, 0.18), transparent 55%),
        radial-gradient(700px 380px at 100% 8%, rgba(255, 106, 61, 0.12), transparent 50%),
        linear-gradient(180deg, #eef5ff 0%, #f7f9fc 42%, #f3f6fa 100%);
}

.fx-shell { min-height: 100vh; position: relative; }

.fx-container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

.fx-topnav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.fx-topnav .fx-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 72px;
}

.fx-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--navy);
    flex-shrink: 0;
}

.fx-brand-logo {
    height: 40px;
    width: auto;
    border-radius: 10px;
}

.fx-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, var(--navy), #184a86);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 24px rgba(11, 31, 58, 0.25);
}

.fx-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.fx-brand-text strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
}

.fx-brand-text span {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.fx-nav-links {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    flex-wrap: wrap;
}

.fx-nav-links a {
    text-decoration: none;
    color: var(--navy-2);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 0.45rem 0.75rem;
    border-radius: 10px;
}

.fx-nav-links a:hover,
.fx-nav-links a.is-active {
    background: var(--sky-soft);
    color: var(--sky);
}

.fx-nav-links form { margin: 0; }

.fx-nav-btn {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.88rem !important;
}

.fx-nav-cta {
    padding: 0.55rem 1rem !important;
    font-size: 0.88rem !important;
    margin-left: 0.25rem;
}

.fx-nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0.45rem 0.7rem;
    cursor: pointer;
    color: var(--navy);
}

.fx-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.8rem;
}

.fx-hero {
    position: relative;
    padding: 2.4rem 0 1.2rem;
    overflow: hidden;
}

.fx-hero-visual {
    position: absolute;
    inset: auto -4% -20% auto;
    width: min(520px, 70vw);
    height: 320px;
    background:
        linear-gradient(135deg, rgba(26, 140, 255, 0.28), rgba(11, 31, 58, 0.08)),
        url("data:image/svg+xml,%3Csvg width='160' height='160' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80h160M80 0v160' stroke='%231a8cff' stroke-opacity='.12'/%3E%3C/svg%3E");
    border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
    filter: blur(0.2px);
    animation: fx-drift 10s ease-in-out infinite;
    pointer-events: none;
}

@keyframes fx-drift {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(14px) rotate(2deg); }
}

.fx-kicker {
    display: inline-block;
    margin-bottom: 0.85rem;
    color: var(--sky);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fx-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 0.75rem;
    max-width: 11ch;
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 6.5vw, 4.6rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.04em;
    color: var(--navy);
}

.fx-hero h1 em {
    font-style: normal;
    color: var(--sky);
}

.fx-hero p {
    position: relative;
    z-index: 1;
    margin: 0;
    max-width: 34rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.55;
}

.fx-panel {
    position: relative;
    z-index: 2;
    margin: 1.5rem 0 2.5rem;
    padding: 1.35rem;
    border-radius: calc(var(--radius) + 4px);
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(215, 226, 239, 0.95);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    animation: fx-rise 0.55s ease both;
}

@keyframes fx-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.fx-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.fx-input,
.fx-select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.fx-input:focus,
.fx-select:focus {
    border-color: rgba(26, 140, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(26, 140, 255, 0.12);
}

.fx-grid { display: grid; gap: 0.9rem; }
.fx-grid-5 { grid-template-columns: 1.2fr 1.2fr 1fr 1fr 0.7fr; }

@media (max-width: 960px) {
    .fx-grid-5 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .fx-grid-5 { grid-template-columns: 1fr; }
}

/* —— Flight search menu —— */
.fx-search {
    margin: 1.35rem 0 2.4rem;
    padding: 1.15rem;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    animation: fx-rise 0.55s ease both;
}

.fx-trip-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.28rem;
    margin-bottom: 0;
    border-radius: 12px;
    background: var(--sky-soft);
    border: 1px solid #d6e8fb;
}

.fx-trip-tabs button {
    border: none;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s;
}

.fx-trip-tabs button.is-active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(11, 31, 58, 0.08);
}

.fx-search-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.fx-cabin-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.28rem;
    border-radius: 12px;
    background: #fff7f2;
    border: 1px solid #ffd8c7;
}

.fx-cabin-tabs button {
    border: none;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s;
}

.fx-cabin-tabs button.is-active {
    background: #fff;
    color: var(--navy);
    box-shadow: 0 4px 14px rgba(11, 31, 58, 0.08);
}

.fx-search-row {
    display: grid;
    grid-template-columns: 1.15fr auto 1.15fr 1fr 1fr 0.72fr auto;
    gap: 0.65rem;
    align-items: end;
}

.fx-search-row.is-oneway {
    grid-template-columns: 1.25fr auto 1.25fr 1.1fr 0.8fr auto;
}

.fx-search-row.is-oneway .fx-field-return {
    display: none;
}

.fx-field {
    min-width: 0;
}

.fx-field-swap {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0.15rem;
}

.fx-swap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--sky);
    font-size: 1.15rem;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: all 0.18s;
    box-shadow: 0 4px 12px rgba(11, 31, 58, 0.06);
}

.fx-swap:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    transform: rotate(180deg);
}

.fx-search-submit {
    height: 48px;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
    white-space: nowrap;
}

.fx-quick {
    margin-top: 1rem;
    padding-top: 0.95rem;
    border-top: 1px solid #eef2f7;
}

.fx-quick-label {
    margin-bottom: 0.55rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

@media (max-width: 1100px) {
    .fx-search-row,
    .fx-search-row.is-oneway {
        grid-template-columns: 1fr 44px 1fr;
    }
    .fx-field-depart,
    .fx-field-return,
    .fx-field-adults,
    .fx-field-action {
        grid-column: span 1;
    }
    .fx-search-row {
        grid-template-columns: 1fr 44px 1fr 1fr 1fr;
    }
    .fx-search-row .fx-field-action {
        grid-column: 1 / -1;
    }
    .fx-search-row.is-oneway {
        grid-template-columns: 1fr 44px 1fr 1fr;
    }
    .fx-search-row.is-oneway .fx-field-action {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .fx-search-row,
    .fx-search-row.is-oneway {
        grid-template-columns: 1fr;
    }
    .fx-field-swap {
        justify-content: center;
        padding: 0;
    }
    .fx-search-submit {
        width: 100%;
    }
}

.fx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    border-radius: 14px;
    padding: 0.9rem 1.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
}

.fx-btn:hover { transform: translateY(-2px); }
.fx-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.fx-btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 28px rgba(255, 106, 61, 0.3);
}

.fx-btn-secondary {
    color: #fff;
    background: linear-gradient(135deg, var(--navy), #1c4f8c);
    box-shadow: 0 12px 28px rgba(11, 31, 58, 0.22);
}

.fx-btn-ghost {
    color: var(--navy);
    background: #fff;
    border: 1px solid var(--line);
}

.fx-btn-block { width: 100%; }

.fx-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1rem;
}

.fx-chip {
    border: 1px solid var(--line);
    background: var(--sky-soft);
    color: var(--navy-2);
    border-radius: 999px;
    padding: 0.38rem 0.72rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.fx-chip:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.fx-alert {
    border-radius: 14px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    font-size: 0.92rem;
}

.fx-alert-danger { background: #fff1f4; border-color: #f5c2cf; color: #8f1235; }
.fx-alert-info { background: #eef6ff; border-color: #c9dff8; color: #15487a; }
.fx-alert-warn { background: #fff7ed; border-color: #f5d0a9; color: #8a4b12; }
.fx-alert-ok { background: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

.airport-field { position: relative; }

.airport-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 40;
    max-height: 280px;
    overflow-y: auto;
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
}

.airport-suggestions.show { display: block; }

.airport-suggestions button,
.airport-suggestions .loading-item,
.airport-suggestions .empty-item {
    width: 100%;
    text-align: left;
    border: none;
    background: transparent;
    color: var(--ink);
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #eef2f7;
    cursor: pointer;
    font: inherit;
}

.airport-suggestions button:hover,
.airport-suggestions button.active { background: var(--sky-soft); }

.airport-code {
    display: inline-block;
    min-width: 2.6rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--sky);
}

.airport-meta { color: var(--muted); font-size: 0.78rem; }

.fx-page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1rem;
    margin: 1.4rem 0 1.1rem;
    flex-wrap: wrap;
}

.fx-page-head h1,
.fx-page-head h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    letter-spacing: -0.03em;
    color: var(--navy);
}

.fx-page-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.fx-offer {
    display: grid;
    grid-template-columns: 1.7fr 0.8fr;
    gap: 1rem;
    align-items: center;
    padding: 1.15rem 1.25rem;
    margin-bottom: 0.85rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.05);
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
    animation: fx-rise 0.45s ease both;
}

.fx-offer[hidden],
#no-filter-results[hidden] {
    display: none !important;
}

.fx-offer:hover {
    transform: translateY(-3px);
    border-color: #b9d5f5;
    box-shadow: 0 16px 36px rgba(11, 31, 58, 0.1);
}

@media (max-width: 760px) {
    .fx-offer { grid-template-columns: 1fr; }
}

/* ── Offer card: meta row (airline + pills) ── */
.fx-offer-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.45rem;
}

.fx-airline {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--navy);
}

/* ── Small pill badges ── */
.fx-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.fx-pill-ghost {
    background: var(--sky-soft);
    border: 1px solid var(--line);
    color: var(--muted);
}
.fx-pill-ok {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}
.fx-pill-warn {
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
}

/* ── Route line ── */
.fx-route-line {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.4rem 0 0.45rem;
}

.fx-route-point { flex-shrink: 0; }

.fx-route-mid {
    flex: 1;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.fx-duration-label {
    font-size: 0.72rem;
    white-space: nowrap;
}

.fx-code {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
    color: var(--navy);
}

.fx-dash {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--sky), transparent);
    position: relative;
}

.fx-dash::after {
    content: "✈";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -55%);
    font-size: 0.8rem;
    color: var(--sky);
}

.fx-meta { color: var(--muted); font-size: 0.88rem; }

/* ── Layover stops ── */
.fx-stops {
    margin-top: 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fx-stop-item {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
    padding: 0.35rem 0.7rem;
    border-radius: 10px;
    background: #fff7f2;
    border: 1px solid #ffd8c7;
    color: #9a3412;
    font-size: 0.8rem;
}

.fx-stop-item strong { font-weight: 700; color: var(--accent); }
.fx-stop-item span   { color: #7c2d12; }

/* ── Price box ── */
.fx-price-box {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0.75rem;
    padding-left: 1.1rem;
    border-left: 1px solid var(--line);
    min-width: 168px;
}
@media (max-width: 760px) {
    .fx-price-box {
        text-align: left;
        padding-left: 0;
        padding-top: 0.85rem;
        border-left: 0;
        border-top: 1px solid var(--line);
        min-width: 0;
    }
}

.fx-fare {
    display: grid;
    gap: 0.35rem;
}

.fx-fare-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: 0.45rem;
}

.fx-fare-amount {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--navy);
    line-height: 1.05;
}

.fx-fare-code {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sky);
}

.fx-fare-row.is-usd .fx-fare-amount {
    font-size: 1.45rem;
    color: var(--navy-2);
}

.fx-fare-row.is-usd .fx-fare-code {
    color: var(--muted);
}

.fx-due {
    margin-bottom: 1.4rem;
    padding: 1rem 1.1rem;
    background: var(--sky-soft);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.fx-due-label {
    margin-bottom: 0.65rem;
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fx-due .fx-fare {
    gap: 0.45rem;
}

.fx-due .fx-fare-amount {
    font-size: 1.7rem;
}

.fx-price {
    margin: 0 0 0.65rem;
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.1;
}

.fx-price-currency {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--sky);
}

.fx-offer-form { width: 100%; margin: 0; }

.fx-price-tag {
    display: inline-block;
    margin-bottom: 0.4rem;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.fx-split {
    display: grid;
    grid-template-columns: 1.5fr 0.9fr;
    gap: 1.25rem;
}
@media (max-width: 900px) { .fx-split { grid-template-columns: 1fr; } }

.fx-section-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--navy);
}

.fx-summary { position: sticky; top: 1rem; }

.fx-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 1.6rem 0 2.2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}

.fx-empty { text-align: center; padding: 2.8rem 1.4rem; }
.fx-empty h3 {
    margin: 0 0 0.45rem;
    font-family: var(--font-display);
    color: var(--navy);
}

/* Results refine + filters (Skyscanner-style) */
.fx-refine {
    margin: 0.5rem 0 0.25rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.06);
}

.fx-refine-grid {
    display: grid;
    grid-template-columns: 0.85fr 0.85fr 1fr 1fr 0.65fr 1.05fr 0.85fr;
    gap: 0.65rem;
    align-items: end;
}

.fx-refine-grid.is-oneway {
    grid-template-columns: 0.9fr 0.9fr 1.1fr 0.7fr 1.1fr 0.9fr;
}

@media (max-width: 900px) {
    .fx-refine-grid,
    .fx-refine-grid.is-oneway {
        grid-template-columns: 1fr 1fr;
    }
}

.fx-sort-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.fx-sort-btn {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font: inherit;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s;
}

.fx-sort-btn.is-active,
.fx-sort-btn:hover {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.fx-sort-bar .fx-meta {
    margin-left: auto;
}

.fx-results-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .fx-results-layout {
        grid-template-columns: 1fr;
    }
}

.fx-filters {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.05);
}

.fx-filters-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    font-family: var(--font-display);
    color: var(--navy);
}

.fx-link-btn {
    border: none;
    background: none;
    color: var(--sky);
    font: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    padding: 0;
}

.fx-filter-group {
    padding: 0.75rem 0;
    border-top: 1px solid #eef2f7;
}

.fx-filter-title {
    margin-bottom: 0.55rem;
    font-weight: 800;
    font-size: 0.86rem;
    color: var(--navy);
}

.fx-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
    color: var(--ink);
    font-size: 0.88rem;
    cursor: pointer;
}

.fx-check input {
    accent-color: var(--sky);
    width: 16px;
    height: 16px;
}

.fx-airline-list {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.fx-price-range input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

.fx-offers-col {
    min-width: 0;
}

.fx-summary { top: 88px; }

.fx-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 1.35rem 0 0.4rem;
}

.fx-step {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.fx-step span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--sky-soft);
    color: var(--sky);
    font-size: 0.72rem;
}

.fx-step.is-done { color: var(--navy); }
.fx-step.is-active {
    border-color: transparent;
    background: var(--navy);
    color: #fff;
}
.fx-step.is-active span {
    background: rgba(255,255,255,.16);
    color: #fff;
}

.fx-checkout-head {
    margin: 0.9rem 0 1.2rem;
}

.fx-checkout-head h1 {
    margin: 0 0 0.35rem;
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    letter-spacing: -0.03em;
    color: var(--navy);
}

.fx-checkout-head p {
    margin: 0;
    color: var(--muted);
    max-width: 42rem;
}

.fx-card-block {
    padding: 1.15rem 1.2rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #f8fbff;
}

.fx-card-block h3 {
    margin: 0 0 0.95rem;
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--navy);
}

.fx-phone {
    display: grid;
    grid-template-columns: minmax(168px, 0.95fr) 1.35fr;
    gap: 0.5rem;
}

.fx-wallet-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.55rem;
}

.fx-route-big {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 0.25rem;
}

@media (max-width: 900px) {
    .fx-nav-toggle { display: inline-flex; }
    .fx-nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 0.85rem;
    }
    .fx-nav-links.open { display: flex; }
    .fx-topnav .fx-container { flex-wrap: wrap; }
    .fx-nav-cta { margin-left: 0; text-align: center; }
    .fx-phone { grid-template-columns: 1fr; }
    .fx-summary { position: static; }
}

.fx-ticket-instructions {
    margin: 0;
    padding-left: 1.15rem;
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1.55;
}

.fx-ticket-instructions li {
    margin-bottom: 0.55rem;
}

.fx-ticket-instructions li:last-child {
    margin-bottom: 0;
}

/* ════════════════════════════════════════
   Checkout — Payment tabs
   ════════════════════════════════════════ */

.fx-hidden { display: none !important; }

.fx-divider {
    height: 1px;
    background: var(--line);
    margin: 1rem 0;
}

/* Tab buttons row */
.fx-pay-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    margin-bottom: 1.2rem;
}
@media (max-width: 540px) {
    .fx-pay-tabs { grid-template-columns: 1fr; }
}

.fx-pay-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.9rem 1.1rem;
    border-radius: 14px;
    border: 2px solid var(--line);
    background: #fff;
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    text-align: left;
    font-family: var(--font-body);
}

.fx-pay-tab:hover {
    border-color: #b9d5f5;
    background: var(--sky-soft);
}

.fx-pay-tab.is-active {
    border-color: var(--sky);
    background: var(--sky-soft);
    box-shadow: 0 0 0 3px rgba(26,140,255,0.12);
}

.fx-pay-tab-icon {
    font-size: 1.25rem;
    margin-bottom: 0.2rem;
}

.fx-pay-tab span:nth-child(2) {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--navy);
}

.fx-pay-tab-sub {
    font-size: 0.8rem;
    color: var(--sky);
    font-weight: 600;
}

/* Stripe card fields */
.fx-stripe-field-wrap { margin-bottom: 1rem; }

.fx-stripe-field {
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    transition: border-color 0.18s;
}

.fx-stripe-field:focus-within {
    border-color: var(--sky);
    box-shadow: 0 0 0 3px rgba(26,140,255,0.12);
}

.fx-stripe-errors {
    color: var(--danger);
    font-size: 0.82rem;
    margin-top: 0.4rem;
    min-height: 1.1em;
}

.fx-stripe-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--sky-soft);
    border: 1px solid #c7dff7;
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1rem;
}

.fx-stripe-total strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
}

.fx-stripe-secure {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.75rem;
    font-size: 0.78rem;
    color: var(--muted);
    justify-content: center;
}

.fx-stripe-secure svg {
    flex-shrink: 0;
    color: var(--ok);
}
