/* ==========================================================================
   7x4Flights — Premium OTA Design System (v4)
   Inspired by classic OTA conversion patterns, elevated above legacy templates.
   Palette: midnight navy · ocean teal · sunset coral CTA
   Type: Sora + Fraunces
   ========================================================================== */

:root {
    --navy-950: #07111f;
    --navy-900: #0b1a2e;
    --navy-800: #13233b;
    --navy-700: #1c334f;
    --teal-400: #2dd4bf;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --coral-400: #fb7185;
    --coral-500: #f43f5e;
    --coral-600: #e11d48;
    --sand-50: #f6f8fb;
    --sand-100: #eef2f7;
    --white: #ffffff;

    --bg: var(--sand-50);
    --surface: var(--white);
    --text: #0f1c2e;
    --text-2: #4b5f78;
    --text-3: #7a8fa8;
    --line: rgba(15, 28, 46, 0.1);
    --shadow-sm: 0 6px 20px rgba(7, 17, 31, 0.06);
    --shadow-md: 0 18px 50px rgba(7, 17, 31, 0.12);
    --shadow-lg: 0 30px 80px rgba(7, 17, 31, 0.18);

    --font: "Sora", system-ui, sans-serif;
    --display: "Fraunces", Georgia, serif;
    --radius: 14px;
    --radius-lg: 22px;
    --header-h: 72px;
    --topbar-h: 40px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --bs-body-font-family: var(--font);
    --bs-body-color: var(--text);
    --bs-body-bg: var(--bg);
}

[data-theme="dark"] {
    --bg: #060d18;
    --surface: #0d1828;
    --text: #e8f0fa;
    --text-2: #9bb0c7;
    --text-3: #6f869f;
    --line: rgba(255, 255, 255, 0.1);
    --sand-100: #122033;
    --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.site-body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }

.container-xl {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.skip-link {
    position: absolute; top: -100%; left: 1rem; z-index: 10000;
    padding: .75rem 1.1rem; background: var(--coral-500); color: #fff;
    font-weight: 700; border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.eyebrow {
    display: inline-block;
    margin: 0 0 .6rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--teal-600);
}
.eyebrow--light { color: var(--teal-400); }

.section-title {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text);
}
.section-title--light { color: #fff; }

.section-intro { margin-bottom: 2rem; }
.section-intro--row {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.text-link {
    color: var(--teal-600);
    font-weight: 600;
    text-decoration: none;
}
.text-link:hover { color: var(--coral-500); }

.text-center { text-align: center; }

/* Buttons */
.btn-accent {
    display: inline-flex; align-items: center; justify-content: center;
    gap: .5rem; padding: .7rem 1.25rem;
    background: var(--coral-500); color: #fff !important;
    border: none; border-radius: 999px;
    font-weight: 700; text-decoration: none;
    box-shadow: 0 10px 24px rgba(244, 63, 94, 0.28);
    transition: transform .2s var(--ease), background .2s;
}
.btn-accent:hover { background: var(--coral-600); transform: translateY(-1px); color: #fff; }

.btn-soft {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .65rem 1.1rem; border-radius: 999px;
    background: transparent; color: var(--text) !important;
    border: 1px solid var(--line); font-weight: 600; text-decoration: none;
}
.btn-soft:hover { border-color: var(--teal-500); color: var(--teal-600) !important; }

.btn-primary-lg {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .95rem 1.5rem; border-radius: 999px;
    background: #fff; color: var(--navy-900) !important;
    font-weight: 800; text-decoration: none;
}
.btn-primary-lg:hover { transform: translateY(-1px); }

.btn-ghost-light {
    display: inline-flex; align-items: center; justify-content: center;
    padding: .95rem 1.5rem; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.35); color: #fff !important;
    font-weight: 700; text-decoration: none;
}
.btn-ghost-light:hover { background: rgba(255,255,255,.08); }

.icon-btn {
    width: 40px; height: 40px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface);
    display: grid; place-items: center; color: var(--text); cursor: pointer;
}
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon,
:root:not([data-theme="dark"]) .icon-moon { display: none; }
[data-theme="dark"] .icon-moon { display: block; }

/* Topbar */
.topbar {
    background: var(--navy-950);
    color: rgba(255,255,255,.82);
    font-size: .8rem;
    min-height: var(--topbar-h);
}
.topbar__inner {
    min-height: var(--topbar-h);
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.topbar__note { margin: 0; }
.topbar__links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.topbar__links a {
    color: #fff; text-decoration: none; font-weight: 600;
    display: inline-flex; align-items: center; gap: .35rem;
}
.topbar__links a:hover { color: var(--teal-400); }
@media (max-width: 720px) {
    .topbar__note { display: none; }
}

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(246, 248, 251, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
[data-theme="dark"] .site-header { background: rgba(6, 13, 24, 0.9); }

.site-header .navbar { padding: .7rem 0; }
.site-header .container-xl {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    flex-wrap: wrap;
}
.brand {
    display: inline-flex; align-items: center; gap: .7rem;
    text-decoration: none; color: var(--text);
}
.brand__mark {
    width: 44px; height: 44px; border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, var(--navy-800), var(--teal-600));
    color: #fff; font-weight: 800; font-size: .95rem;
    box-shadow: 0 10px 24px rgba(13, 148, 136, 0.25);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.brand__text small { font-size: .68rem; color: var(--text-3); font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.navbar-toggler {
    border: 1px solid var(--line); border-radius: 10px; padding: .45rem .55rem;
}
.navbar-toggler:focus { box-shadow: none; }

.navbar-collapse {
    flex-basis: 100%;
}
@media (min-width: 992px) {
    .navbar-collapse {
        flex-basis: auto; display: flex !important;
        align-items: center; gap: 1.5rem; margin-left: auto;
    }
    .header-actions { order: 3; margin-left: 0; }
    .navbar-toggler { display: none; }
}

.navbar-nav {
    display: flex; gap: .15rem; margin: .75rem 0 0; padding: 0; list-style: none;
}
@media (min-width: 992px) {
    .navbar-nav { margin: 0; }
}
.navbar-nav .nav-link {
    color: var(--text-2) !important; font-weight: 600; font-size: .92rem;
    padding: .55rem .8rem !important; border-radius: 999px;
}
.navbar-nav .nav-link:hover { color: var(--text) !important; background: var(--sand-100); }
.nav-cta { display: flex; gap: .5rem; margin: .75rem 0 0; }
@media (min-width: 992px) { .nav-cta { margin: 0; } }

/* Hero */
.hero {
    position: relative;
    min-height: min(78vh, 720px);
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 4.5rem 0 0;
    overflow: visible;
}
.hero__media {
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(7,17,31,.25) 0%, rgba(7,17,31,.55) 55%, rgba(7,17,31,.88) 100%),
        url("https://images.unsplash.com/photo-1436491865332-7a61a109cc05?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
    animation: heroZoom 18s var(--ease) infinite alternate;
}
.hero__veil {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(20,184,166,.25), transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 15%, rgba(244,63,94,.18), transparent 50%);
    pointer-events: none;
}
@keyframes heroZoom {
    from { transform: scale(1); }
    to { transform: scale(1.06); }
}

.hero__content {
    position: relative; z-index: 2;
    color: #fff;
    padding-bottom: 1.5rem;
    animation: riseIn .8s var(--ease) both;
}
.hero__brand {
    margin: 0 0 .75rem;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
}
.hero__title {
    margin: 0 0 .85rem;
    max-width: 16ch;
    font-family: var(--display);
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
}
.hero__lead {
    margin: 0;
    max-width: 38ch;
    font-size: 1.05rem;
    color: rgba(255,255,255,.86);
}

.hero__search {
    position: relative; z-index: 3;
    margin-top: 1.75rem;
    margin-bottom: -3.5rem;
    animation: riseIn .9s .12s var(--ease) both;
}

@keyframes riseIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

/* Search panel */
.search-panel {
    background: var(--surface);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 1rem 1.1rem 1.15rem;
}
.search-panel__tabs {
    display: flex; gap: .35rem; margin-bottom: .9rem; flex-wrap: wrap;
}
.search-tab {
    border: 0; background: transparent; color: var(--text-2);
    font-weight: 700; font-size: .88rem; padding: .5rem .95rem;
    border-radius: 999px; cursor: pointer;
}
.search-tab.active {
    background: rgba(20, 184, 166, 0.12);
    color: var(--teal-600);
}
.search-panel__grid {
    display: grid;
    grid-template-columns: 1.2fr auto 1.2fr 1fr 1fr 1.35fr auto;
    gap: .65rem;
    align-items: end;
}
@media (max-width: 1100px) {
    .search-panel__grid { grid-template-columns: 1fr 1fr; }
    .search-swap { justify-self: center; }
    .search-field--submit { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .search-panel__grid { grid-template-columns: 1fr; }
}

.search-field {
    display: flex; flex-direction: column; gap: .28rem;
    background: var(--sand-100);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: .55rem .75rem .65rem;
    position: relative;
    transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within {
    border-color: rgba(20,184,166,.55);
    box-shadow: 0 0 0 4px rgba(20,184,166,.12);
    background: var(--surface);
}
.search-field label {
    font-size: .68rem; font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-3); margin: 0;
}
.search-field input,
.search-field select {
    border: 0; outline: 0; background: transparent;
    font: inherit; font-weight: 600; color: var(--text); width: 100%;
    padding: 0; min-height: 1.5rem;
}
.search-field__split {
    display: grid; grid-template-columns: 1fr 1fr; gap: .4rem;
}
.search-swap {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--surface);
    display: grid; place-items: center; color: var(--teal-600);
    cursor: pointer; align-self: center; margin-bottom: .2rem;
    transition: transform .25s var(--ease), background .2s;
}
.search-swap:hover { background: rgba(20,184,166,.1); transform: rotate(180deg); }

.search-field--submit { background: transparent; border: 0; padding: 0; }
.btn-search {
    width: 100%; min-height: 56px; border: 0; border-radius: 14px;
    background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
    color: #fff; font-weight: 800; font-size: 1rem;
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    cursor: pointer; box-shadow: 0 14px 30px rgba(225, 29, 72, 0.28);
    transition: transform .2s var(--ease), filter .2s;
}
.btn-search:hover { transform: translateY(-1px); filter: brightness(1.05); }

.search-panel__extras {
    display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .85rem;
}
.check-pill {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .35rem .7rem; border-radius: 999px;
    background: var(--sand-100); color: var(--text-2);
    font-size: .8rem; font-weight: 600; cursor: pointer;
}
.check-pill input { accent-color: var(--teal-600); }
.search-panel__multi {
    margin-top: .85rem; padding: .85rem 1rem;
    background: rgba(20,184,166,.08); border-radius: 12px; color: var(--text-2);
}
.search-panel__multi a { color: var(--teal-600); font-weight: 700; }

.suggestions {
    position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
    margin: 0; padding: .35rem; list-style: none;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: var(--shadow-md); max-height: 240px; overflow: auto;
}
.suggestions li {
    padding: .65rem .75rem; border-radius: 8px; cursor: pointer; font-size: .9rem;
}
.suggestions li:hover,
.suggestions li[aria-selected="true"] { background: rgba(20,184,166,.1); }

/* Travellers popover */
.search-field--travellers { position: relative; }
.travellers-toggle {
    width: 100%; border: 0; background: transparent; padding: 0;
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    font: inherit; font-weight: 600; color: var(--text); cursor: pointer; text-align: left;
}
.travellers-popover {
    position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30;
    background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-md); padding: 1rem; min-width: 280px;
}
@media (min-width: 1100px) {
    .travellers-popover { left: auto; right: 0; width: 320px; }
}
.traveller-row {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .55rem 0; border-bottom: 1px solid var(--line);
}
.traveller-row:last-of-type { border-bottom: 0; }
.traveller-row strong { display: block; font-size: .92rem; }
.traveller-row small { color: var(--text-3); font-size: .75rem; }
.traveller-row--cabin { flex-direction: column; align-items: stretch; gap: .45rem; }
.traveller-row--cabin select {
    border: 1px solid var(--line); border-radius: 10px; padding: .55rem .7rem;
    font: inherit; background: var(--bg); color: var(--text);
}
.stepper { display: inline-flex; align-items: center; gap: .35rem; }
.stepper-btn {
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--bg); font-size: 1.1rem; cursor: pointer; color: var(--text);
}
.stepper-btn:hover { border-color: var(--teal-500); color: var(--teal-600); }
.stepper input {
    width: 2rem; border: 0; background: transparent; text-align: center;
    font-weight: 800; color: var(--text);
}
.travellers-done { width: 100%; margin-top: .75rem; border: 0; cursor: pointer; }

/* Services */
.services {
    padding: 6.5rem 0 4.5rem;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}
@media (max-width: 980px) { .services__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .services__grid { grid-template-columns: 1fr; } }

.service-tile {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem 1.25rem 1.4rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s;
}
.service-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-tile__icon {
    width: 48px; height: 48px; border-radius: 14px;
    display: grid; place-items: center;
    background: rgba(20,184,166,.12); color: var(--teal-600);
    margin-bottom: .9rem;
}
.service-tile h3 {
    margin: 0 0 .45rem; font-size: 1.05rem; font-weight: 700;
}
.service-tile p {
    margin: 0; color: var(--text-2); font-size: .92rem;
}

/* Destinations mosaic */
.destinations { padding: 1rem 0 4.5rem; }
.dest-mosaic {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 220px 220px;
    gap: .85rem;
}
.dest-tile--lg { grid-row: span 2; min-height: 100%; }
.dest-tile--md { min-height: 220px; }
.dest-tile--sm { min-height: 220px; }
@media (max-width: 900px) {
    .dest-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .dest-tile--lg { grid-row: auto; min-height: 280px; grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .dest-mosaic { grid-template-columns: 1fr; }
}

.dest-tile {
    position: relative; overflow: hidden; border-radius: 18px;
    background: var(--navy-800) var(--dest-img) center/cover no-repeat;
    text-decoration: none; color: #fff;
    display: flex; align-items: flex-end;
    min-height: 220px;
    transition: transform .35s var(--ease);
}
.dest-tile:hover { transform: scale(1.01); }
.dest-tile::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 25%, rgba(7,17,31,.85) 100%);
}
.dest-tile__shade { position: absolute; inset: 0; }
.dest-tile__body {
    position: relative; z-index: 1; padding: 1.2rem;
    display: flex; flex-direction: column; gap: .2rem;
}
.dest-tile__name {
    font-family: var(--display); font-size: 1.55rem; font-weight: 600;
}
.dest-tile__meta { font-size: .85rem; color: rgba(255,255,255,.78); }
.dest-tile__price {
    margin-top: .45rem; font-weight: 800; color: var(--teal-400); font-size: .95rem;
}

/* Airlines */
.airlines { padding: 1rem 0 4rem; overflow: hidden; }
.airline-marquee {
    margin-top: 1.75rem;
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.airline-marquee__track {
    display: flex; gap: .75rem; width: max-content;
    animation: marquee 32s linear infinite;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}
.airline-chip {
    display: inline-flex; align-items: center;
    padding: .7rem 1.1rem; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line);
    font-weight: 700; color: var(--text-2); white-space: nowrap;
}

/* Offers */
.offers-band { padding: 1rem 0 4.5rem; }
.offer-rail {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
@media (max-width: 900px) { .offer-rail { grid-template-columns: 1fr; } }
.offer-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem;
    box-shadow: var(--shadow-sm);
}
.offer-card__kicker {
    margin: 0 0 .4rem; font-size: .72rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; color: var(--coral-500);
}
.offer-card h3 { margin: 0 0 .45rem; font-size: 1.15rem; }
.offer-card p { margin: 0 0 1rem; color: var(--text-2); font-size: .92rem; }
.offer-card__code {
    display: flex; align-items: center; justify-content: space-between;
    padding: .7rem .85rem; border-radius: 12px;
    background: rgba(20,184,166,.1); font-size: .85rem;
}
.offer-card__code strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .04em;
}

/* Support CTA */
.support-cta {
    margin: 0 0 3rem;
}
.support-cta__inner {
    border-radius: 24px;
    padding: clamp(1.5rem, 4vw, 2.75rem);
    background:
        radial-gradient(circle at 85% 20%, rgba(244,63,94,.35), transparent 40%),
        linear-gradient(135deg, var(--navy-900), #12324a 55%, #0f766e);
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; flex-wrap: wrap;
}
.support-cta__copy {
    max-width: 46ch; color: rgba(255,255,255,.82); margin: .75rem 0 0;
}
.support-cta__actions { display: flex; gap: .65rem; flex-wrap: wrap; }

/* Newsletter */
.newsletter { padding: 0 0 4.5rem; }
.newsletter__inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.25rem; flex-wrap: wrap;
    padding: 1.5rem 1.6rem; border-radius: 18px;
    background: var(--surface); border: 1px solid var(--line);
}
.newsletter__inner p { margin: .4rem 0 0; color: var(--text-2); }
.newsletter__form {
    display: flex; gap: .5rem; flex-wrap: wrap; min-width: min(100%, 360px);
}
.newsletter__form input {
    flex: 1; min-width: 200px;
    border: 1px solid var(--line); border-radius: 999px;
    padding: .8rem 1rem; font: inherit; background: var(--bg); color: var(--text);
}

/* Footer */
.site-footer {
    background: var(--navy-950); color: rgba(255,255,255,.78);
    padding: 3.5rem 0 1.5rem;
}
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand-col p { margin: .85rem 0; max-width: 34ch; }
.footer-phone a { color: #fff; font-weight: 700; text-decoration: none; }
.site-footer h3 {
    color: #fff; font-size: .85rem; letter-spacing: .08em;
    text-transform: uppercase; margin: 0 0 1rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: .45rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--teal-400); }
.brand--footer .brand__mark { width: 40px; height: 40px; }
.footer-bottom {
    margin-top: 2.5rem; padding-top: 1.25rem;
    border-top: 1px solid rgba(255,255,255,.1);
    font-size: .85rem;
}

/* Inner pages shared */
.page-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, rgba(20,184,166,.08), transparent);
}
.page-hero h1 {
    margin: 0; font-family: var(--display);
    font-size: clamp(2rem, 4vw, 3rem);
}
.content-section { padding: 2rem 0 4rem; }

/* Auth / forms generic */
.auth-shell {
    max-width: 440px; margin: 3rem auto; padding: 1.75rem;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--shadow-sm);
}
.form-control, .form-select {
    border-radius: 12px !important; border-color: var(--line) !important;
    padding: .75rem .9rem !important;
}

/* Toast */
.toast-stack {
    position: fixed; right: 1rem; bottom: 1rem; z-index: 11000;
    display: flex; flex-direction: column; gap: .5rem;
}
.toast-item {
    min-width: 260px; padding: .85rem 1rem; border-radius: 12px;
    background: var(--navy-900); color: #fff; box-shadow: var(--shadow-md);
    animation: riseIn .35s var(--ease);
}

/* Results page compatibility */
.flight-results, .results-list { padding: 0; }
.flight-card, .result-card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; padding: 1rem 1.2rem; margin-bottom: .75rem;
}

/* ==========================================================================
   Flight results — OTA itinerary layout
   ========================================================================== */
.fr-summary {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 55%, #1a4a5c 100%);
    color: #fff;
    padding: 1.15rem 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.fr-summary__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.fr-summary__airports {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.fr-code {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1;
}
.fr-arrow { opacity: .7; display: inline-flex; }
.fr-summary__meta {
    margin: .4rem 0 0;
    color: rgba(255,255,255,.72);
    font-size: .9rem;
}
.fr-summary__modify {
    background: rgba(255,255,255,.1) !important;
    border: 1px solid rgba(255,255,255,.22) !important;
    color: #fff !important;
    border-radius: 999px !important;
    padding: .55rem 1.1rem !important;
    font-weight: 600;
}
.fr-summary__modify:hover {
    background: rgba(255,255,255,.18) !important;
    color: #fff !important;
}

.fr-page {
    padding: 1.5rem 0 3.5rem;
    background:
        radial-gradient(900px 320px at 10% -10%, rgba(20,184,166,.08), transparent 60%),
        var(--bg);
}
.fr-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.fr-filters__card {
    position: sticky;
    top: calc(var(--header-h) + .75rem);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.1rem 1.15rem 1.25rem;
    box-shadow: var(--shadow-sm);
}
.fr-filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .85rem;
}
.fr-filters__head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.fr-link-btn {
    border: 0;
    background: none;
    color: var(--teal-600);
    font-weight: 600;
    font-size: .85rem;
    cursor: pointer;
    padding: 0;
}
.fr-filter-group {
    padding: .85rem 0;
    border-top: 1px solid var(--line);
}
.fr-filter-group h3 {
    margin: 0 0 .55rem;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-3);
    font-weight: 700;
}
.fr-check {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .9rem;
    color: var(--text);
    margin: 0 0 .4rem;
    cursor: pointer;
}
.fr-check span {
    margin-left: auto;
    color: var(--text-3);
    font-size: .78rem;
}
.fr-check input {
    accent-color: var(--teal-600);
    width: 1rem;
    height: 1rem;
}

.fr-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: .85rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: var(--shadow-sm);
}
.fr-toolbar__count {
    font-size: .95rem;
    color: var(--text-2);
}
.fr-toolbar__count strong {
    color: var(--text);
    font-size: 1.05rem;
}
.fr-toolbar__hint {
    margin-left: .45rem;
    color: var(--teal-600);
    font-weight: 600;
}
.fr-toolbar__sort {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--text-2);
}
.fr-toolbar__sort select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: .45rem .7rem;
    background: var(--bg);
    color: var(--text);
    font-weight: 600;
    font-family: inherit;
}

.fr-alert {
    background: rgba(244, 63, 94, .07);
    border: 1px solid rgba(244, 63, 94, .22);
    border-radius: 14px;
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
}
.fr-alert strong { display: block; margin-bottom: .25rem; }
.fr-alert p { margin: 0 0 .5rem; color: var(--text-2); font-size: .92rem; }
.fr-alert a { font-weight: 700; color: var(--coral-600); }

.fr-empty {
    text-align: center;
    background: var(--surface);
    border: 1px dashed var(--line);
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
}
.fr-empty h3 { margin: 0 0 .4rem; }
.fr-empty p { margin: 0 0 1rem; color: var(--text-2); }

.fr-list {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.fr-card {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 160px;
    gap: 1rem;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.15rem 1.25rem;
    box-shadow: var(--shadow-sm);
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
    animation: frRise .45s var(--ease) both;
    animation-delay: calc(var(--fr-i, 0) * 40ms);
}
.fr-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(20, 184, 166, .35);
}
@keyframes frRise {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fr-card__airline {
    display: flex;
    align-items: center;
    gap: .75rem;
    min-width: 0;
}
.fr-airline-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--navy-900);
    background: linear-gradient(145deg, #e8f7f5, #d5eefc);
    border: 1px solid rgba(20,184,166,.25);
    flex-shrink: 0;
}
.fr-airline-name {
    display: block;
    font-size: .95rem;
    line-height: 1.25;
}
.fr-flight-no {
    display: block;
    font-size: .8rem;
    color: var(--text-3);
    margin-top: .15rem;
}

.fr-card__timeline {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    gap: .65rem;
    align-items: center;
}
.fr-leg {
    display: flex;
    flex-direction: column;
}
.fr-leg--arrive { text-align: right; align-items: flex-end; }
.fr-time {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    color: var(--text);
}
.fr-plus-day {
    font-size: .65rem;
    color: var(--coral-600);
    font-weight: 800;
    margin-left: .1rem;
}
.fr-airport {
    font-size: .82rem;
    color: var(--text-2);
    font-weight: 600;
    margin-top: .2rem;
}
.fr-path {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .2rem;
    min-width: 0;
    padding: 0 .25rem;
}
.fr-duration {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-2);
}
.fr-path__line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--teal-500), transparent);
    position: relative;
    border-radius: 2px;
}
.fr-path__line::before,
.fr-path__line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal-500);
    transform: translateY(-50%);
}
.fr-path__line::before { left: 0; }
.fr-path__line::after { right: 0; }
.fr-stops {
    font-size: .75rem;
    font-weight: 700;
    color: var(--teal-600);
}
.fr-layover {
    font-size: .7rem;
    color: var(--text-3);
    text-align: center;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fr-card__fare {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    gap: .15rem;
    padding-left: .5rem;
    border-left: 1px solid var(--line);
}
.fr-fare-label {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-3);
    font-weight: 700;
}
.fr-fare-value {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: -.02em;
    line-height: 1.15;
}
[data-theme="dark"] .fr-fare-value { color: var(--text); }
.fr-fare-note {
    font-size: .72rem;
    color: var(--text-3);
    margin-bottom: .35rem;
}
.fr-select {
    min-width: 110px;
    border-radius: 999px !important;
    font-weight: 700 !important;
    padding: .5rem 1rem !important;
}

.fr-disclaimer {
    margin: 1.25rem 0 0;
    font-size: .8rem;
    color: var(--text-3);
}

@media (max-width: 980px) {
    .fr-layout { grid-template-columns: 1fr; }
    .fr-filters__card { position: static; }
    .fr-card {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .fr-card__fare {
        align-items: stretch;
        text-align: left;
        border-left: 0;
        border-top: 1px solid var(--line);
        padding: .85rem 0 0;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: .35rem .75rem;
    }
    .fr-fare-value { margin-right: auto; }
    .fr-select { margin-left: auto; }
}

@media (max-width: 560px) {
    .fr-card__timeline {
        grid-template-columns: 64px minmax(0, 1fr) 64px;
    }
    .fr-time { font-size: 1.15rem; }
    .fr-code { font-size: 1.3rem; }
}

/* Legacy class bridges used by other views */
.hero--fullbleed { /* kept for older pages */ }
.section { padding: 3rem 0; }
.glass-panel {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-sm);
}
.btn.btn-amber {
    background: var(--coral-500); border-color: var(--coral-500); color: #fff;
    font-weight: 700; border-radius: 999px;
}
.btn.btn-amber:hover { background: var(--coral-600); border-color: var(--coral-600); color: #fff; }
.display-serif { font-family: var(--display); }
.site-header.glass-nav { /* compat */ }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
