/* =====================================================================
   MVIAA B2C — Ayodhya theme: temple saffron & gold on deep navy dusk
   ===================================================================== */
:root {
    --navy: #0b1f4b;
    --navy-2: #13306e;
    --saffron: #f28c28;
    --saffron-deep: #e8590c;
    --gold: #f5b301;
    --sand: #fff6ea;
    --ink: #1c2437;
    --muted: #5f6b80;
    --line: #e7e9f0;
    --radius: 16px;
    --shadow-sm: 0 2px 8px rgba(11, 31, 75, .06);
    --shadow: 0 12px 32px rgba(11, 31, 75, .12);
    --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    /* kept for existing pages */
    --mviaa: var(--navy);
    --mviaa-accent: var(--saffron);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body { background: #f7f8fc; color: var(--ink); font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .navbar-brand strong { font-family: var(--font-head); color: var(--navy); }
a { color: var(--navy-2); }
.text-saffron { color: var(--gold); }
.skip-link { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }

/* ---------- buttons ---------- */
.btn-mviaa { background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); color: #fff; border: 0; font-weight: 600; box-shadow: 0 6px 16px rgba(232, 89, 12, .28); }
.btn-mviaa:hover, .btn-mviaa:focus { background: linear-gradient(135deg, #f59a3d, #d9480f); color: #fff; }
.btn-mviaa:active { transform: translateY(1px); }
.btn-navy { background: var(--navy); color: #fff; border: 0; font-weight: 600; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline-navy { border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; }
.btn-outline-navy:hover { background: var(--navy); color: #fff; }
.bg-mviaa { background: var(--navy); }

/* ---------- top bar & header ---------- */
.topbar { background: var(--navy); color: rgba(255, 255, 255, .85); font-size: .8rem; padding: .4rem 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.site-header { background: #fff; box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 1030; }
.site-header .navbar { padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.brand span { display: flex; flex-direction: column; line-height: 1.05; }
.brand strong { font-size: 1.3rem; letter-spacing: .5px; color: var(--navy); }
.brand small { font-size: .68rem; color: var(--saffron-deep); font-weight: 600; letter-spacing: .3px; }
.brand-light strong { color: #fff; }
.brand-light small { color: var(--gold); }
.site-header .nav-link { color: var(--ink); font-weight: 500; padding: .5rem .9rem !important; position: relative; }
.site-header .nav-link:hover { color: var(--saffron-deep); }
.site-header .nav-link.active { color: var(--saffron-deep); }
.site-header .nav-link.active::after { content: ""; position: absolute; left: .9rem; right: .9rem; bottom: .15rem; height: 3px; border-radius: 3px; background: var(--saffron); }
.navbar-toggler { border: 0; font-size: 1.7rem; color: var(--navy); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(242, 140, 40, .35); }

/* ---------- hero ---------- */
.hero-ayodhya { position: relative; color: #fff; overflow: hidden; min-height: 460px; display: flex; align-items: center; }
.hero-bg {
    position: absolute; inset: 0;
    background:
        linear-gradient(100deg, rgba(8, 22, 58, .92) 0%, rgba(11, 31, 75, .72) 38%, rgba(11, 31, 75, .15) 70%, rgba(242, 140, 40, .10) 100%),
        url("../images/ayodhya-airport.jpg") center 35% / cover no-repeat;
    transform: scale(1.02);
}
.hero-inner { position: relative; padding: 4.5rem 12px 7.5rem; }
.hero-kicker { display: inline-flex; align-items: center; gap: .4rem; background: rgba(245, 179, 1, .16); border: 1px solid rgba(245, 179, 1, .45); color: #ffd978; padding: .3rem .8rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.hero-ayodhya h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.12; margin: 1rem 0 .8rem; max-width: 720px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-ayodhya .lead { max-width: 600px; color: rgba(255, 255, 255, .9); font-size: 1.1rem; }
.hero-badges { list-style: none; padding: 0; margin: 1.4rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; font-weight: 500; }
.hero-badges i { color: var(--gold); margin-right: .3rem; }

/* ---------- hotels (shared styles: _content/Ventrip.Web.Common/css/hotels.css) ---------- */
.hotel-hero { position: relative; color: #fff; overflow: hidden; min-height: 420px; display: flex; align-items: center;
    background:
        radial-gradient(circle at 85% 15%, rgba(245, 179, 1, .35), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(232, 89, 12, .35), transparent 45%),
        linear-gradient(120deg, #08163a 0%, var(--navy) 45%, var(--navy-2) 100%); }
.hotel-hero::after { content: ""; position: absolute; inset: auto -10% -35% auto; width: 520px; height: 520px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.hotel-hero h1 { color: #fff; font-weight: 800; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.12; margin: .4rem 0 .8rem; max-width: 720px; }
.hotel-hero .lead { max-width: 600px; color: rgba(255, 255, 255, .88); font-size: 1.1rem; }
.hero-ayodhya .product-tabs { display: flex; width: fit-content; }
.stay-card { display: flex; flex-direction: column; gap: .3rem; height: 100%; background: #fff; border-radius: var(--radius); padding: 1.2rem 1.25rem; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); border-top: 4px solid var(--saffron); transition: transform .18s, box-shadow .18s; }
.stay-card:hover, .stay-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.stay-card strong { font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); }
.stay-card small { color: var(--muted); }
.stay-card .route-cta { margin-top: auto; padding-top: .5rem; }
.stay-icon { width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--saffron-deep); font-size: 1.3rem; margin-bottom: .3rem; }

/* ---------- search card ---------- */
.search-wrap { position: relative; margin-top: -5.5rem; z-index: 5; }
.search-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem 1.25rem 1.4rem; margin-bottom: 1.5rem; }
.trip-type { display: flex; gap: .5rem; margin-bottom: 1rem; }
.trip-pill { border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .95rem; font-size: .88rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .15s; }
.btn-check:checked + .trip-pill { background: var(--sand); border-color: var(--saffron); color: var(--saffron-deep); }
.btn-check:focus-visible + .trip-pill { box-shadow: 0 0 0 3px rgba(242, 140, 40, .35); }
.search-grid { display: grid; gap: .75rem; grid-template-columns: 1.25fr auto 1.25fr 1fr 1fr 1.35fr auto; align-items: end; }
.sf { position: relative; background: #f6f7fb; border: 1.5px solid transparent; border-radius: 12px; padding: .5rem .8rem .45rem; transition: border-color .15s, background .15s; min-width: 0; }
.sf:focus-within { border-color: var(--saffron); background: #fff; }
.sf label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); margin-bottom: .1rem; }
.sf label i { color: var(--saffron-deep); }
.sf-input { width: 100%; border: 0; background: transparent; padding: .15rem 0; font-weight: 600; color: var(--ink); font-size: 1rem; outline: none; min-width: 0; }
.sf-input::placeholder { color: #9aa3b5; font-weight: 500; }
.sf.is-disabled { opacity: .55; cursor: pointer; }
.sf.is-disabled .sf-input { pointer-events: none; }
.sf-date { cursor: pointer; }
.sf-date:has(.cal-trigger[aria-expanded="true"]) { border-color: var(--saffron); background: #fff; }
.sf-swap { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; align-self: center; margin-top: 1rem; box-shadow: var(--shadow-sm); transition: transform .2s; }
.sf-swap:hover { transform: rotate(180deg); background: var(--navy-2); }
.sf-pax-btn { display: flex; justify-content: space-between; align-items: center; gap: .5rem; text-align: left; cursor: pointer; }
.sf-pax-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-submit { height: 58px; padding: 0 1.6rem; border-radius: 12px; font-size: 1.02rem; white-space: nowrap; }
.sf-submit.is-loading { pointer-events: none; opacity: .85; }
.sf-submit.is-loading i { animation: spin 1s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.sf-error { margin-top: .8rem; background: #fff1f0; color: #b42318; border-radius: 10px; padding: .55rem .85rem; font-size: .9rem; }
.pax-menu { width: 300px; border: 0; border-radius: 14px; box-shadow: var(--shadow); }
.pax-row { display: flex; justify-content: space-between; align-items: center; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.stepper { display: flex; align-items: center; gap: .35rem; }
.stepper .step { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--saffron); background: #fff; color: var(--saffron-deep); font-weight: 700; line-height: 1; }
.stepper .step:disabled { border-color: var(--line); color: #c3c8d4; }
.stepper input { width: 34px; text-align: center; border: 0; font-weight: 700; background: transparent; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.airport-suggest { border-radius: 12px; overflow: hidden; margin-top: .5rem; min-width: 320px !important; }
.airport-suggest .list-group-item.active { background: var(--sand); color: var(--ink); border-color: var(--line); }

/* ---------- sections ---------- */
.section { padding: 4.5rem 0; }
.section-tint { background: linear-gradient(180deg, var(--sand), #fff); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head h2, #ayodhya h2, .cta-band h2 { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head h2::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 4px; margin: .7rem auto 0; background: linear-gradient(90deg, var(--saffron), var(--gold)); }
.section-head p { color: var(--muted); margin: .8rem 0 0; }
.eyebrow { display: inline-block; color: var(--saffron-deep); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; margin-bottom: .4rem; }

/* route cards */
.route-card { display: block; background: #fff; border-radius: var(--radius); padding: 1.25rem 1.3rem; box-shadow: var(--shadow-sm); border-top: 4px solid var(--saffron); text-decoration: none; color: var(--ink); height: 100%; transition: transform .18s, box-shadow .18s; }
.route-card:hover, .route-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.route-cities { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.route-cities .code { display: block; font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--navy); line-height: 1; }
.route-cities .city { font-size: .88rem; color: var(--muted); }
.route-line { flex: 1; position: relative; height: 2px; background: repeating-linear-gradient(90deg, #cfd5e2 0 6px, transparent 6px 11px); }
.route-line i { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(90deg); color: var(--saffron); background: #fff; padding: 0 .35rem; font-size: 1.05rem; }
.route-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.1rem; padding-top: .85rem; border-top: 1px dashed var(--line); }
.route-cta { color: var(--saffron-deep); font-weight: 700; font-size: .92rem; }
.route-card:hover .route-cta i { transform: translateX(3px); }
.route-cta i { display: inline-block; transition: transform .15s; }

/* destination chips */
.dest-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: .9rem; }
.dest-chip { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem .5rem; display: flex; flex-direction: column; align-items: center; gap: .25rem; font-weight: 700; color: var(--navy); transition: all .18s; }
.dest-chip i { font-size: 1.5rem; color: var(--saffron); }
.dest-chip small { color: var(--muted); font-weight: 500; font-size: .75rem; }
.dest-chip:hover, .dest-chip:focus-visible { border-color: var(--saffron); background: var(--navy); color: #fff; transform: translateY(-3px); }
.dest-chip:hover small, .dest-chip:focus-visible small { color: rgba(255, 255, 255, .7); }
.dest-chip:hover i, .dest-chip:focus-visible i { color: var(--gold); }

/* visit ayodhya */
.ayodhya-photo { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.ayodhya-photo img { width: 100%; height: auto; display: block; aspect-ratio: 16 / 10; object-fit: cover; }
.ayodhya-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%; background: linear-gradient(transparent, rgba(8, 22, 58, .75)); }
.photo-tag { position: absolute; left: 1rem; bottom: 1rem; z-index: 1; color: #fff; font-weight: 600; font-size: .9rem; }
.photo-tag i { color: var(--gold); }
.highlights { list-style: none; padding: 0; margin: 1.4rem 0; display: grid; gap: 1rem; }
.highlights li { display: flex; gap: .9rem; align-items: flex-start; }
.highlights i { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sand); color: var(--saffron-deep); font-size: 1.25rem; }
.highlights strong { display: block; color: var(--navy); }
.highlights span { color: var(--muted); font-size: .94rem; }

/* features */
.feature { background: #fff; border-radius: var(--radius); padding: 2rem 1.3rem; height: 100%; box-shadow: var(--shadow-sm); transition: transform .18s; }
.feature:hover { transform: translateY(-4px); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, var(--navy-2), var(--navy)); box-shadow: 0 0 0 6px rgba(242, 140, 40, .15); }
.feature h3 { font-size: 1.1rem; font-weight: 700; }
.feature p { color: var(--muted); font-size: .93rem; margin: 0; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.steps li { display: flex; gap: 1rem; background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow-sm); }
.step-no { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; color: #fff; background: linear-gradient(135deg, var(--saffron), var(--saffron-deep)); }
.steps strong { font-family: var(--font-head); color: var(--navy); font-size: 1.05rem; }
.steps p { color: var(--muted); margin: .2rem 0 0; font-size: .93rem; }

/* call-to-action band */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2.2rem 2.4rem; border-radius: 22px; color: #fff; position: relative; overflow: hidden;
    border-left: 6px solid var(--saffron);
    background: radial-gradient(circle at 88% 0%, rgba(255, 255, 255, .10), transparent 42%), linear-gradient(120deg, var(--navy), var(--navy-2)); }
.cta-band h2 { color: #fff; margin: 0 0 .3rem; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .8); }
.cta-form { display: flex; gap: .6rem; flex-wrap: wrap; flex: 1 1 520px; max-width: 620px; }
.cta-form .form-control { flex: 1 1 170px; width: auto; min-width: 0; border: 0; border-radius: 10px; padding: .65rem .9rem; }
.cta-form .btn { flex: none; border-radius: 10px; padding: .65rem 1.3rem; }
.text-uppercase::placeholder { text-transform: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .75); padding: 3.5rem 0 1.2rem; margin-top: 3rem; }
main#main + .site-footer { margin-top: 0; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: 1px; font-size: .8rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer li { margin-bottom: .5rem; font-size: .92rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.2rem; padding-top: 1.1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom i { color: var(--gold); }

/* ---------- existing pages ---------- */
.card { border: 0; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); border-radius: 12px; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--navy); }

/* Fields rejected by server-side validation (ASP.NET adds these classes) */
.input-validation-error { border-color: #dc3545 !important; }
.field-validation-error { display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
    .search-grid { grid-template-columns: 1fr auto 1fr 1fr 1fr; }
    .sf-pax { grid-column: 1 / 4; }
    .sf-submit { grid-column: 4 / 6; }
    .dest-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 991.98px) {
    .site-header .navbar-collapse { padding: .5rem 0 .8rem; }
    .site-header .nav-link.active::after { display: none; }
    .hero-ayodhya { min-height: 380px; }
    .hero-inner { padding: 3.2rem 12px 6.5rem; }
    .search-grid { grid-template-columns: 1fr auto 1fr; }
    .sf-depart { grid-column: 1 / 2; }
    .sf-return { grid-column: 2 / 4; }
    .sf-pax, .sf-submit { grid-column: 1 / -1; }
    .steps { grid-template-columns: 1fr; }
    .section { padding: 3.2rem 0; }
}
@media (max-width: 575.98px) {
    .topbar { font-size: .74rem; }
    .hero-bg { background-position: 70% center; }
    .hero-inner { padding: 2.4rem 12px 5.5rem; }
    .hero-ayodhya .lead { font-size: 1rem; }
    .hero-badges { gap: .4rem 1rem; font-size: .9rem; }
    .search-wrap { margin-top: -4.5rem; }
    .search-card { padding: 1rem; }
    .search-grid { grid-template-columns: 1fr; gap: .6rem; }
    .search-grid > * { grid-column: 1 / -1 !important; }
    .sf-swap { justify-self: end; margin: -1.6rem .8rem -1.6rem 0; position: relative; z-index: 2; transform: rotate(90deg); }
    .sf-swap:hover { transform: rotate(270deg); }
    .sf-submit { width: 100%; }
    .pax-menu { width: calc(100vw - 2.5rem); }
    .airport-suggest { min-width: 100% !important; }
    .dest-grid { grid-template-columns: repeat(2, 1fr); }
    .route-cities .code { font-size: 1.35rem; }
    .feature { padding: 1.3rem .8rem; }
    .feature-icon { width: 52px; height: 52px; font-size: 1.3rem; }
    .feature h3 { font-size: .98rem; }
    .feature p { font-size: .84rem; }
    .cta-band { padding: 1.6rem 1.3rem; }
    .cta-form, .cta-form .form-control, .cta-form .btn { width: 100%; min-width: 0; }
}

@media print { .no-print, nav, footer, .topbar { display: none !important; } body { background: #fff; } .card { box-shadow: none; } }

/* =====================================================================
   Flight results (Views/Flights/Results.cshtml, _FlightCard.cshtml)
   ===================================================================== */
.results-page { --fcols: minmax(0, 1.35fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, .95fr); --pricecol: 150px; }
body:has(.selection-bar) { padding-bottom: 6.5rem; }
.modify-bar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; background: #fff; border-radius: 12px; padding: .7rem .9rem; box-shadow: var(--shadow-sm); margin-bottom: .8rem; }
.modify-bar strong { display: block; font-family: var(--font-head); color: var(--navy); }
.modify-bar small { color: var(--muted); }
.results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: .4rem 0 1rem; }
.results-head h1 { font-size: 1.45rem; font-weight: 800; margin: 0; }
.results-head p { margin: .2rem 0 0; color: var(--muted); }
.head-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.head-actions .btn-light { background: #fff; border: 1px solid var(--line); font-weight: 600; }

/* filters */
.filters { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 1rem 1.2rem; margin-bottom: 1.2rem; }
.filter-grid { display: grid; grid-template-columns: 1.25fr 1.25fr .8fr 1.1fr 1fr; gap: 1.2rem; }
.filters fieldset { min-width: 0; }
.filters legend { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--navy); margin-bottom: .5rem; float: none; }
.filters .form-check { display: flex; align-items: center; gap: .45rem; font-size: .9rem; margin-bottom: .3rem; padding-left: 0; }
.filters .form-check-input { margin: 0; flex: none; }
.filters .form-check-input:checked { background-color: var(--saffron-deep); border-color: var(--saffron-deep); }
.airline-opt small { margin-left: auto; color: var(--muted); font-size: .75rem; }
.slot-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; }
.slot { display: flex; flex-direction: column; align-items: center; gap: .05rem; border: 1.5px solid var(--line); border-radius: 10px; padding: .45rem .2rem; cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--ink); text-align: center; transition: all .15s; }
.slot i { font-size: 1.15rem; color: var(--saffron); }
.slot small { color: var(--muted); font-weight: 500; font-size: .7rem; }
.btn-check:checked + .slot { border-color: var(--saffron); background: var(--sand); }
.btn-check:focus-visible + .slot { box-shadow: 0 0 0 3px rgba(242, 140, 40, .35); }

/* split round trip */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; align-items: start; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: 0 .2rem .4rem; }
.col-head strong { font-family: var(--font-head); color: var(--navy); }
.col-head span { color: var(--muted); font-size: .88rem; }
.sort-head { display: grid; grid-template-columns: var(--fcols) var(--pricecol); align-items: center; gap: .5rem; background: linear-gradient(120deg, var(--navy), var(--navy-2)); color: #fff; border-radius: 12px; padding: .55rem 1rem; margin-bottom: .7rem; font-size: .85rem; font-weight: 600; position: sticky; top: 72px; z-index: 3; }
.sort-head button { background: none; border: 0; color: rgba(255, 255, 255, .85); font-weight: 600; padding: 0; text-align: left; display: inline-flex; gap: .3rem; align-items: center; }
.sort-head button:last-child { justify-content: flex-end; }
.sort-head button.is-active { color: var(--gold); }
.sort-head button:hover { color: #fff; }
.list-title { font-size: 1.15rem; font-weight: 700; margin: 2rem 0 .8rem; }
.no-match { background: #fff; border-radius: 12px; padding: 1rem; color: var(--muted); text-align: center; }

/* result card */
.card-list { display: grid; gap: .75rem; }
.fcard { position: relative; background: #fff; border-radius: 14px; box-shadow: var(--shadow-sm); border: 2px solid transparent; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.fcard:hover { box-shadow: var(--shadow); }
.fcard.is-selectable { cursor: pointer; }
.fcard.is-picked { border-color: var(--saffron); box-shadow: 0 0 0 4px rgba(242, 140, 40, .15), var(--shadow-sm); }
.fcard-ribbon { display: inline-flex; align-items: center; gap: .3rem; background: linear-gradient(90deg, #7b2ff7 0%, var(--saffron) 100%); color: #fff; font-size: .74rem; font-weight: 600; padding: .22rem .9rem .22rem .8rem; border-bottom-right-radius: 14px; }
.fcard-body { display: grid; grid-template-columns: 1fr var(--pricecol); gap: .5rem; align-items: center; padding: .85rem 1rem .75rem; }
.fcard-legs { display: grid; gap: .7rem; min-width: 0; }
.fleg { display: grid; grid-template-columns: var(--fcols); gap: .5rem; align-items: center; position: relative; }
.fleg + .fleg { padding-top: .7rem; border-top: 1px dashed var(--line); }
.fleg-dir { position: absolute; right: 0; top: -.1rem; font-size: .68rem; font-weight: 700; text-transform: uppercase; color: var(--saffron-deep); letter-spacing: .5px; }
.fleg + .fleg .fleg-dir { top: .6rem; }
.fleg-airline { display: flex; align-items: center; gap: .55rem; min-width: 0; }
.fleg-airline div { min-width: 0; }
.fleg-airline strong { display: block; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleg-airline small { display: block; color: var(--muted); font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fleg-time strong { display: block; font-family: var(--font-head); font-size: 1.15rem; color: var(--navy); line-height: 1.1; white-space: nowrap; }
.fleg-time span { font-weight: 600; font-size: .85rem; }
.fleg-time small { display: block; color: var(--muted); font-size: .74rem; }
.plus-day { color: #d92d20; font-size: .68rem; font-weight: 700; margin-left: .15rem; top: -.6em; }
.fleg-path { text-align: center; min-width: 0; }
.fleg-path small { display: block; font-size: .75rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.path-line { display: block; height: 2px; margin: .3rem .4rem; position: relative; background: repeating-linear-gradient(90deg, #9fb0d8 0 4px, transparent 4px 7px); }
.path-line::before, .path-line::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--navy-2); }
.path-line::before { left: -4px; }
.path-line::after { right: -4px; }
.stop-0 { color: #067647 !important; font-weight: 700; }
.stop-n { color: #b54708 !important; font-weight: 600; }
.fcard-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: .15rem; }
.fcard-price strong { font-family: var(--font-head); font-size: 1.2rem; color: var(--navy); white-space: nowrap; }
.fcard-price small { color: var(--muted); font-size: .72rem; }
.fcard-price .btn { margin-top: .3rem; }
.fcard-radio { width: 1.35rem; height: 1.35rem; margin-top: .35rem; accent-color: var(--saffron-deep); cursor: pointer; }
.fcard-note { background: #fffaeb; color: #93370d; font-size: .78rem; border-radius: 8px; padding: .3rem .6rem; }
.fcard-note i { color: #f79009; }
.fcard-foot { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding: .5rem 1rem; background: #fbfcfe; }
.chip { display: inline-flex; align-items: center; gap: .3rem; background: #eef4ff; color: #1d4ed8; border-radius: 999px; padding: .15rem .6rem; font-size: .75rem; font-weight: 500; }
.chip-warn { background: #fff4ed; color: #c4320a; }
.details-toggle { margin-left: auto; background: none; border: 0; color: var(--navy-2); font-weight: 600; font-size: .82rem; }
.details-toggle[aria-expanded="true"] i { transform: rotate(180deg); }
.details-toggle i { display: inline-block; transition: transform .15s; }
.fcard-details { padding: .8rem 1rem 1rem; border-top: 1px dashed var(--line); font-size: .88rem; cursor: auto; }
.fcard-details h6 { font-size: .85rem; margin: .4rem 0; }
.seg-list { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .5rem; }
.seg-list li { display: flex; gap: .6rem; align-items: flex-start; }
.seg-list li.layover { color: #b54708; font-size: .8rem; padding-left: 2.4rem; }

/* sticky selection bar (domestic round trip) */
.selection-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: var(--navy); color: #fff; box-shadow: 0 -8px 24px rgba(11, 31, 75, .25); padding: .7rem 0; }
.sel-inner { display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: center; }
.sel-leg { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: .45rem .8rem; display: grid; grid-template-columns: 1fr auto; column-gap: .6rem; min-width: 0; }
.sel-leg small { grid-column: 1 / -1; color: var(--gold); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; }
.sel-leg .sel-text { font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255, 255, 255, .9); }
.sel-leg .sel-price { font-family: var(--font-head); white-space: nowrap; }
.sel-leg:not(.is-set) .sel-text { color: rgba(255, 255, 255, .55); font-style: italic; }
.sel-total { display: flex; align-items: center; gap: 1rem; }
.sel-total strong { display: block; font-family: var(--font-head); font-size: 1.35rem; color: #fff; white-space: nowrap; }
.sel-total small { display: block; font-size: .7rem; color: rgba(255, 255, 255, .7); max-width: 190px; }
.sel-total .btn { white-space: nowrap; padding: .6rem 1.3rem; }

/* mobile tabs for the split view */
.split-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: .8rem; position: sticky; top: 64px; z-index: 4; }
.split-tabs button { background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: .45rem .6rem; text-align: left; display: grid; }
.split-tabs button small { color: var(--muted); font-size: .7rem; text-transform: uppercase; font-weight: 700; }
.split-tabs button strong { font-family: var(--font-head); color: var(--navy); font-size: .95rem; }
.split-tabs button span { color: var(--saffron-deep); font-weight: 700; font-size: .85rem; }
.split-tabs button.is-active { border-color: var(--saffron); background: var(--sand); }

.empty-state { text-align: center; background: #fff; border-radius: var(--radius); padding: 3rem 1rem; box-shadow: var(--shadow-sm); }
.empty-state i { font-size: 2.4rem; color: var(--saffron); }
.empty-state h2 { font-size: 1.3rem; margin: .6rem 0 .3rem; }
.empty-state p { color: var(--muted); margin: 0; }

@media (max-width: 1199.98px) {
    .filter-grid { grid-template-columns: repeat(3, 1fr); }
    .results-page { --pricecol: 130px; }
}
@media (max-width: 991.98px) {
    .split { grid-template-columns: 1fr; }
    .split-col { display: none; }
    .split-col.is-active { display: block; }
    .split-col .col-head { display: none; }
    .sort-head { top: 128px; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .sel-inner { grid-template-columns: 1fr 1fr; }
    .sel-total { grid-column: 1 / -1; justify-content: space-between; }
}
@media (max-width: 575.98px) {
    .results-page { --pricecol: 1fr; }
    .filter-grid { grid-template-columns: 1fr; gap: .9rem; }
    .sort-head { grid-template-columns: repeat(4, auto); justify-content: space-between; top: 124px; padding: .5rem .8rem; }
    .sort-head .sh-airline { display: none; }
    .fcard-body { grid-template-columns: 1fr; padding: .75rem .8rem .6rem; }
    .fleg { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); row-gap: .5rem; }
    .fleg-airline { grid-column: 1 / -1; }
    .fleg-time:last-child, .fleg > .fleg-time + .fleg-path + .fleg-time { text-align: right; }
    .fleg-dir { top: .1rem; }
    .fcard-price { flex-direction: row; justify-content: space-between; align-items: center; border-top: 1px dashed var(--line); padding-top: .55rem; }
    .fcard-price small { margin-right: auto; margin-left: .5rem; }
    .fcard-price .btn, .fcard-radio { margin-top: 0; }
    .selection-bar { padding: .5rem 0; }
    .sel-leg { padding: .3rem .55rem; }
    .sel-leg .sel-text { display: none; }
    .sel-total strong { font-size: 1.15rem; }
    body:has(.selection-bar) { padding-bottom: 8.5rem; }
}
