/* =========================================================
   AeroFlow — cinematic empty-leg browser
   Scroll choreography is pure CSS driven by --seq (0..1) written by
   motion.js, so every effect reverses exactly when scrolling up.
   ========================================================= */

.aeroflow { background: var(--navy); }
.af-sub { font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-left: 4px; align-self: flex-end; padding-bottom: 6px; }
.af-h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.015em; margin-top: 12px; }
.af-h2 em { color: var(--gold); font-style: italic; }
.link-accent { color: var(--gold); }

/* ---------- Hero ---------- */
.af-hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.af-hero-media { position: absolute; inset: -4vh 0 0 0; z-index: -3; background: radial-gradient(70% 60% at 70% 30%, rgba(201,167,106,0.18), transparent 60%), linear-gradient(180deg, #0C1A2E, #081321); }
.af-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); }
.af-slide.is-on { opacity: 1; }
.af-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.af-slide.is-on img { animation: af-kb 9s linear both; }
@keyframes af-kb { from { transform: scale(1.04) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.af-shade { background: linear-gradient(90deg, rgba(8,19,33,0.86) 0%, rgba(8,19,33,0.45) 55%, rgba(8,19,33,0.2) 100%), linear-gradient(180deg, rgba(8,19,33,0.4) 0%, transparent 35%, rgba(8,19,33,0.95) 100%); }
.af-hero .hero-title .ht-line:nth-child(2) { color: var(--gold); font-style: italic; }

/* ---------- Featured departure (4-step sticky sequence) ---------- */
.af-feature { position: relative; height: 440vh; --seq: 0; }
.af-feature-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; isolation: isolate; background: #060E19; }
.ft-photo, .ft-cabin, .ft-map { position: absolute; inset: 0; }
.ft-photo-in, .ft-cabin-in { position: absolute; inset: 0; }
.ft-photo img, .ft-cabin img { width: 100%; height: 100%; object-fit: cover; }
.ft-photo { z-index: -3; }
.ft-photo img {
  transform: scale(calc(1.28 - min(var(--seq), 0.5) * 0.44)) translate3d(calc(min(var(--seq), 0.5) * -6%), 0, 0);
  filter: brightness(calc(0.92 - min(var(--seq), 0.5) * 1.1)) saturate(calc(1 - min(var(--seq), 0.5) * 0.8));
}
.ft-map { z-index: -2; display: grid; place-items: center;
  opacity: calc(clamp(0, (var(--seq) - 0.2) * 8, 1) - clamp(0, (var(--seq) - 0.74) * 8, 1)); }
.ft-map svg { width: 112%; height: auto; max-height: 100%; margin-left: 16%; }
.ft-map svg > rect:first-of-type { fill: transparent; }
.ft-map .map-land path { fill: rgba(30,52,82,0.55); }
.ft-map .map-route { stroke-width: 3; }
.ft-route-line { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, (var(--seq) - 0.25) * 5, 1)); filter: drop-shadow(0 0 6px rgba(201,167,106,0.6)); }
.ft-map .map-label { font-size: 15px; fill: var(--ivory); }
.ft-cabin { z-index: -1; clip-path: circle(calc(clamp(0, (var(--seq) - 0.74) * 4.2, 1) * 120%) at 78% 55%); }
.ft-cabin img { transform: scale(calc(1.15 - clamp(0, (var(--seq) - 0.74) * 4, 1) * 0.12)); filter: brightness(0.62); }
.af-feature-stage::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(6,14,25,0.88) 0%, rgba(6,14,25,0.5) 45%, transparent 75%); }
.ft-grid { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; }
.ft-copy { max-width: 560px; }
.ft-route { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.6rem, 9vw, 8rem); line-height: 0.95; display: flex; align-items: center; gap: 0.25em; margin: 14px 0 6px; letter-spacing: 0.02em; }
.ft-route i { font-style: normal; color: var(--gold); font-size: 0.5em; transform: translateY(-0.05em); }
.ft-cities { color: var(--text-2); }
.ft-steps { list-style: none; padding: 0; margin: 34px 0 30px; display: grid; gap: 16px; border-left: 1px solid var(--line-strong); }
.ft-steps li { padding-left: 20px; display: grid; gap: 4px; opacity: 0.32; transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); position: relative; }
.ft-steps li::before { content: ""; position: absolute; left: -1px; top: 0; bottom: 0; width: 2px; background: var(--gold); transform: scaleY(0); transform-origin: top; transition: transform 0.6s var(--ease); }
.ft-steps li.is-active { opacity: 1; transform: translateX(6px); }
.ft-steps li.is-active::before { transform: scaleY(1); }
.ft-steps li > b { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.ft-steps li > span { font-size: var(--fs-md); color: var(--text); }
.ft-steps s { color: var(--text-3); }
.ft-live { font-family: var(--font-display); font-weight: 400; font-size: 2.2rem; color: var(--gold); margin-left: 6px; }
.ft-save { font-style: normal; display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 600; vertical-align: 6px; }
.ft-progress { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 28px; height: 1px; background: var(--line-strong); z-index: 2; }
.ft-progress i { display: block; height: 100%; width: calc(var(--seq) * 100%); background: var(--gold); }

/* ---------- Browser ---------- */
.af-browse { padding: clamp(80px, 11vw, 150px) 0 40px; }
.listings-topbar { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.af-sort { display: flex; gap: 6px; flex-wrap: wrap; }
.af-browse .filter-panel { background: rgba(17,28,42,0.9); backdrop-filter: blur(8px); border-color: var(--gold-line); }
.af-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); margin-top: 18px; }
.af-card { display: flex; flex-direction: column; text-decoration: none; background: linear-gradient(180deg, var(--surface-2), #0D1726); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), translate var(--dur) var(--ease); }
.af-card:hover, .af-card:focus-visible { border-color: var(--gold-line); box-shadow: 0 24px 50px rgba(0,0,0,0.4); translate: 0 -4px; }
.af-card-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(160deg, #1B2E4A, #0B1626); }
.af-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity 0.4s; }
.af-card:hover .af-card-media img { transform: scale(1.04); }
.af-card-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,19,33,0.1) 40%, rgba(8,19,33,0.75)); }
.af-save { position: absolute; z-index: 1; left: 14px; top: 14px; padding: 4px 11px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 600; font-size: 12px; letter-spacing: 0.04em; }
.af-class { position: absolute; z-index: 1; right: 14px; top: 14px; padding: 4px 11px; border-radius: 999px; background: rgba(8,19,33,0.55); border: 1px solid rgba(244,241,234,0.2); backdrop-filter: blur(6px); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.af-card-body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.af-route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.af-route b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1; letter-spacing: 0.04em; }
.af-route small { display: block; font-size: 12px; color: var(--text-3); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.af-route .r { text-align: right; }
.af-line { position: relative; height: 1px; background: linear-gradient(90deg, var(--gold-line), var(--line-strong)); }
.af-line i { position: absolute; left: 50%; top: -11px; transform: translateX(-50%); font-style: normal; color: var(--gold); font-size: 13px; background: var(--surface-2); padding: 0 6px; }
.af-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--text-2); flex-wrap: wrap; }
.af-price { display: flex; align-items: baseline; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; flex-wrap: wrap; }
.af-price s { color: var(--text-3); font-size: 13px; }
.af-price b { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; }
.af-price small { color: var(--text-3); font-size: 12px; margin-left: auto; }
.af-note { margin-top: 28px; color: var(--text-3); font-size: 13px; max-width: 80ch; }

/* ---------- Market in motion ---------- */
.af-market { position: relative; height: 380vh; --seq: 0; background: linear-gradient(180deg, var(--navy), #0A1626 25%, #0A1626 75%, var(--navy)); }
.af-market-stage { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 48px; align-items: center; }
.mk-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.mk-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; color: var(--text-3); transition: color var(--dur) var(--ease); }
.mk-steps .k { font-family: var(--font-display); font-size: 1.2rem; }
.mk-steps b { font-weight: 500; display: block; }
.mk-steps small { display: block; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.6s var(--ease), opacity 0.6s var(--ease); font-size: var(--fs-sm); color: var(--text-2); }
.mk-steps li.is-active { color: var(--ivory); }
.mk-steps li.is-active .k { color: var(--gold); }
.mk-steps li.is-active small { max-height: 80px; opacity: 1; margin-top: 4px; }
.mk-visual { position: relative; height: min(68vh, 580px); border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-1); overflow: hidden; }
.mk-panel { position: absolute; inset: 0; padding: 26px; opacity: 0; transform: translate3d(0, 20px, 0) scale(0.985); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); pointer-events: none; display: grid; align-content: center; }
.mk-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.mk-map { padding: 0; }
.mk-map svg { width: 100%; height: 100%; }
.mk-map svg > rect:first-of-type { fill: transparent; }
.mk-route-line { stroke-dasharray: 1; stroke-dashoffset: calc(1 - clamp(0, var(--seq) * 3.3 * var(--n) - var(--i), 1)); }
.mk-pill { position: absolute; top: 16px; right: 16px; z-index: 2; }
.mk-bar-row { display: flex; align-items: stretch; justify-content: space-around; gap: 16px; height: min(46vh, 380px); }
.mk-bar { flex: 1; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; justify-items: center; gap: 8px; text-align: center; }
.mk-bar-v { font-family: var(--font-display); font-size: 1.8rem; }
.mk-bar-col { width: min(64px, 70%); height: 100%; position: relative; border-radius: 10px 10px 4px 4px; background: rgba(244,241,234,0.04); overflow: hidden; }
.mk-bar-col i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--gold), rgba(201,167,106,0.35)); height: calc(var(--v) * clamp(0, (var(--seq) - 0.36) * 4, 1)); }
.mk-bar-l { font-size: 12px; color: var(--text-2); }
.mk-bar-l small { display: block; color: var(--text-3); }
.mk-cap { text-align: center; color: var(--text-3); font-size: 12px; margin-top: 14px; }
.mk-totals { grid-template-columns: repeat(3, 1fr); gap: 20px; align-content: center; }
.mk-tot { display: grid; gap: 8px; text-align: center; }
.mk-tot b { font-family: var(--font-display); font-weight: 300; font-size: clamp(2.6rem, 5vw, 4.6rem); color: var(--gold); line-height: 1; }
.mk-tot span { color: var(--text-2); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---------- Helicopters ---------- */
.af-rotor { position: relative; overflow: hidden; padding: clamp(110px, 16vw, 220px) 0 clamp(60px, 8vw, 100px); isolation: isolate; }
.af-rotor-bg { position: absolute; inset: -18% 0; z-index: -2; background: linear-gradient(160deg, #13243B, #081321); }
.af-rotor-bg img { width: 100%; height: 100%; object-fit: cover; }
.af-rotor::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,19,33,0.92) 10%, rgba(8,19,33,0.45) 70%), linear-gradient(180deg, var(--navy) 0%, transparent 25%, transparent 70%, var(--navy) 100%); }
.af-rotor-in { max-width: 1240px; }
.af-rotor-in > p { color: var(--text-2); max-width: 46ch; margin: 18px 0 26px; font-size: var(--fs-md); }
.af-rotor-count { color: var(--text-3); font-size: 13px; }
.af-rotor-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(60px, 9vw, 110px); }
.af-rotor-tile { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-1); }
.af-rotor-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.af-rotor-tile:hover img { transform: scale(1.04); }

/* ---------- My Flights ---------- */
.af-my { padding: clamp(80px, 10vw, 140px) 0 20px; }
.af-dash { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 30px; }
.af-dash-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.af-dash-card.wide { grid-column: 1 / -1; }
.dash-label { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.af-list { list-style: none; margin: 0; padding: 0; }
.af-list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.af-list li:last-child { border-bottom: 0; }
.af-list b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; letter-spacing: 0.04em; }
.af-list span { color: var(--text-3); font-size: 13px; flex: 1; }
.af-empty { color: var(--text-3); }
.af-recs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---------- Detail overlay (original "details" + "booking") ---------- */
.af-detail { position: fixed; inset: 0; z-index: 95; background: var(--navy); opacity: 0; transition: opacity 0.35s var(--ease); }
.af-detail.open { opacity: 1; }
.af-detail-scroll { height: 100%; overflow-y: auto; overscroll-behavior: contain; }
.af-close { position: fixed; top: 18px; right: 18px; z-index: 5; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244,241,234,0.3); background: rgba(8,19,33,0.6); color: var(--ivory); font-size: 26px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.af-close:hover { border-color: var(--gold); color: var(--gold); }
.dt-hero { position: relative; height: 72vh; min-height: 420px; overflow: hidden; background: linear-gradient(160deg, #1B2E4A, #0B1626); }
.dt-hero-img { position: absolute; inset: 0; }
.dt-hero-img img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(0, calc(var(--dt-y, 0) * 0.35px), 0) scale(1.08); }
.dt-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,19,33,0.2) 30%, var(--navy) 98%); }
.dt-hero-txt { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 1; animation: dt-in 0.9s var(--ease) both 0.1s; }
@keyframes dt-in { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
.dt-route { font-family: var(--font-display); font-weight: 300; font-size: clamp(3.4rem, 9vw, 7.5rem); line-height: 0.95; display: flex; gap: 0.25em; align-items: center; margin-top: 10px; }
.dt-route i { font-style: normal; color: var(--gold); font-size: 0.5em; }
.dt-cities { color: var(--text-2); margin-top: 8px; }
.dt-body { padding-top: 30px; padding-bottom: 80px; }
.dt-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 32px; align-items: start; }
.dt-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0 0 20px; }
.dt-specs > div { background: var(--surface-2); padding: 14px 16px; }
.dt-specs dt { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.dt-specs dd { margin: 4px 0 0; font-size: var(--fs-md); }
.dt-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.dt-map svg { width: 100%; height: auto; display: block; }
.dt-cabin { position: relative; margin-top: 20px; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-1); }
.dt-cabin img { width: 100%; height: 100%; object-fit: cover; }
.dt-cabin span { position: absolute; left: 14px; bottom: 12px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ivory); text-shadow: 0 1px 6px rgba(0,0,0,0.6); }
.dt-price { position: sticky; top: 24px; background: linear-gradient(180deg, rgba(201,167,106,0.09), var(--surface-2) 40%); border: 1px solid var(--gold-line); border-radius: 18px; padding: 24px; }
.dt-amount { font-family: var(--font-display); font-weight: 300; font-size: 3.4rem; line-height: 1; margin: 8px 0; }
.dt-retail { color: var(--text-2); font-size: 14px; margin-bottom: 8px; }
.dt-retail b { color: var(--gold); font-weight: 500; }
.dt-book-btn { width: 100%; margin-top: 18px; min-height: 48px; }
.dt-book { margin-top: 18px; }
.dt-book .steps { gap: 4px; }
.dt-book .steps li:not([aria-current]) .st-l { display: none; }
.dt-book .steps .step-line { width: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .af-feature { height: 400vh; }
  .ft-grid { align-items: flex-end; padding-bottom: 70px; }
  .af-feature-stage::after { background: linear-gradient(180deg, transparent 15%, rgba(6,14,25,0.92) 62%); }
  .ft-steps { margin: 20px 0; gap: 10px; }
  .ft-steps li:not(.is-active) { display: none; }
  .ft-map svg { width: 150%; margin-left: 0; }
  .af-market-stage { grid-template-columns: 1fr; gap: 16px; align-content: center; padding-top: 72px; }
  .mk-steps li:not(.is-active) { display: none; }
  .mk-visual { height: 50svh; }
  .mk-totals { grid-template-columns: 1fr; gap: 10px; }
  .af-dash { grid-template-columns: 1fr; }
  .dt-grid { grid-template-columns: 1fr; }
  .dt-price { position: relative; top: 0; }
  .dt-specs { grid-template-columns: repeat(2, 1fr); }
  .af-rotor-strip { grid-template-columns: 1fr 1fr; }
  .af-rotor-strip .af-rotor-tile:last-child { display: none; }
}
@media (max-width: 560px) {
  .af-route b { font-size: 1.7rem; }
  .ft-route { font-size: 3.4rem; }
  .ft-live { font-size: 1.7rem; }
  .mk-bar-v { font-size: 1.3rem; }
}

/* ---------- Reduced motion: unpin sequences, show every step ---------- */
@media (prefers-reduced-motion: reduce) {
  .af-slide.is-on img { animation: none; }
  .af-feature, .af-market { height: auto; --seq: 1; }
  .af-feature-stage { position: relative; height: auto; min-height: 100vh; padding: 100px 0 60px; }
  .ft-grid { height: auto; }
  .ft-map, .ft-cabin { display: none; }
  .ft-photo img { transform: none; filter: brightness(0.4); }
  .ft-steps li, .ft-steps li:not(.is-active) { opacity: 1; display: grid; transform: none; }
  .af-market-stage { position: relative; height: auto; padding: 80px var(--gutter); }
  .mk-visual { height: auto; display: grid; gap: 16px; padding: 16px; }
  .mk-panel { position: relative; opacity: 1; transform: none; min-height: 300px; }
  .mk-steps small { max-height: none; opacity: 1; }
  .mk-steps li, .mk-steps li:not(.is-active) { display: grid; color: var(--ivory); }
  .af-detail, .dt-hero-txt { transition: none; animation: none; }
  .dt-hero-img img { transform: none; }
}
@media (max-width: 560px) {
  .mk-bar-row { gap: 4px; height: min(38vh, 300px); }
  .mk-bar-l { font-size: 10px; word-break: break-word; }
  .mk-pill { top: auto; bottom: 12px; right: 12px; }
}

/* =========================================================
   AeroFlow search engine (v3)
   ========================================================= */
.sx-hero { height: auto; min-height: 100vh; align-items: center; padding: 118px 0 80px; }
.sx-hero-in { position: relative; }
.sx-title { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 18px 0 30px; }
.sx-facts { margin-top: 30px; }

/* glass search panel */
.sw { position: relative; background: rgba(8,19,33,0.74); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid var(--gold-line); border-radius: 22px; padding: 18px 20px 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); max-width: 1180px; }
.sw-top { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.sw-trip, .sw-type { display: flex; gap: 4px; flex-wrap: wrap; border: 0; margin: 0; padding: 0; }
.sw-trip label, .sw-type-opt { position: relative; cursor: pointer; }
.sw-trip input, .sw-type-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.sw-trip span { display: inline-block; padding: 8px 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); border-bottom: 2px solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast); }
.sw-trip input:checked + span { color: var(--ivory); border-bottom-color: var(--gold); }
.sw-legend { float: left; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); padding: 9px 8px 0 0; }
.sw-type-opt span { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 13px; color: var(--text-2); transition: all var(--dur-fast); }
.sw-type-opt input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.sw-type-opt:hover span { border-color: var(--gold-line); }
.sw-trip input:focus-visible + span, .sw-type-opt input:focus-visible + span { box-shadow: var(--focus); border-radius: 999px; }

.sw-legs { display: grid; gap: 10px; }
.sw-row { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 190px; gap: 8px; align-items: stretch; }
.is-round .sw-row { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 170px 170px; }
.is-multi .sw-row { grid-template-columns: 30px minmax(0, 1fr) 38px minmax(0, 1fr) 180px 34px; }
.sw-f { position: relative; background: rgba(244,241,234,0.055); border: 1px solid var(--line-strong); border-radius: 14px; padding: 9px 14px 8px; min-width: 0; transition: border-color var(--dur-fast), background var(--dur-fast); }
.sw-f:focus-within { border-color: var(--gold); background: rgba(244,241,234,0.09); }
.sw-f label { display: block; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
.sw .sw-f input { width: 100%; border: 0; background: transparent; padding: 0; min-height: 34px; box-shadow: none; color: var(--ivory); }
.sw .sw-air input { font-family: var(--font-display); font-size: 1.7rem; letter-spacing: 0.06em; text-transform: uppercase; }
.sw .sw-air input::placeholder { font-family: var(--font-ui); font-size: 0.95rem; letter-spacing: 0; text-transform: none; color: var(--text-3); }
.sw .sw-date input { font-size: 1rem; min-height: 40px; }
.sw .sw-f input[aria-invalid="true"] { color: #F0A9A7; }
.sw-f:has(input[aria-invalid="true"]) { border-color: var(--danger); }
.sw-hint { display: block; font-size: 12px; color: var(--text-3); min-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sw .fp-dropdown { top: calc(100% + 6px); z-index: 30; }
.sw-swap { align-self: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(8,19,33,0.6); color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: transform var(--dur) var(--ease), border-color var(--dur-fast), color var(--dur-fast); }
.sw-swap:hover { border-color: var(--gold); color: var(--gold); transform: rotate(180deg); }
.sw-swap svg { transform: rotate(90deg); }
.sw-leg-n { align-self: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); }
.sw-rm { align-self: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--text-3); font-size: 20px; cursor: pointer; }
.sw-rm:hover { color: #F0A9A7; border-color: var(--danger); }
.sw-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.sw-add { margin-right: auto; }
.sw-pax { display: flex; align-items: center; gap: 12px; }
.sw-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-3); }
.sw-stepper { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; }
.sw-stepper button { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(244,241,234,0.06); color: var(--ivory); font-size: 18px; cursor: pointer; }
.sw-stepper button:hover { background: var(--gold); color: var(--navy); }
.sw-stepper output { min-width: 78px; text-align: center; font-variant-numeric: tabular-nums; }
.sw-go { min-height: 52px; padding: 0 30px; font-size: 1rem; }
.sw-error { color: #F0A9A7; font-size: 13px; min-height: 0; margin-top: 8px; }
.sw-error:empty { display: none; }

/* results */
.sx-results { padding: clamp(80px, 9vw, 120px) 0 60px; background: linear-gradient(180deg, #0A1626, var(--navy)); scroll-margin-top: 60px; }
.rs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
#rs-title { outline: none; }
.rs-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.rs-chip { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--gold-line); color: var(--gold); font-size: 12px; letter-spacing: 0.06em; }
.rs-legs { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 16px; scroll-margin-top: 90px; }
.rs-leg { display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); cursor: pointer; }
.rs-leg b { display: block; color: var(--ivory); font-weight: 500; letter-spacing: 0.04em; }
.rs-leg small { color: var(--text-3); }
.rs-leg[aria-selected="true"] { border-color: var(--gold); background: rgba(201,167,106,0.08); }
.rs-leg-n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); font-size: 13px; }
.rs-leg.is-done .rs-leg-n { background: var(--success); border-color: var(--success); color: var(--navy); }
.rs-refine { display: flex; gap: 14px 22px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.rs-refine .pills:empty { display: none; }
.rs-route { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: center; margin-bottom: 28px; }
.rs-route > svg, .rs-route .map { border-radius: 16px; border: 1px solid var(--line); max-height: 260px; width: 100%; height: auto; }
.rs-route-txt h3 { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.1; margin: 8px 0; }
.rs-route-txt h3 span { color: var(--gold); }
.rs-sec { margin-bottom: 30px; }
.rs-sec > h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin-bottom: 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.rs-sec > h3 small { font-family: var(--font-ui); font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }
.rs-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-bottom: 12px; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease); animation: rs-in 0.6s var(--ease) both; }
.rs-row:nth-child(3) { animation-delay: 0.05s; } .rs-row:nth-child(4) { animation-delay: 0.1s; } .rs-row:nth-child(5) { animation-delay: 0.15s; } .rs-row:nth-child(n+6) { animation-delay: 0.2s; }
@keyframes rs-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
.rs-row:hover { border-color: var(--gold-line); box-shadow: 0 18px 40px rgba(0,0,0,0.3); }
.rs-row.is-deal { background: linear-gradient(90deg, rgba(201,167,106,0.07), var(--surface-2) 40%); }
.rs-row.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.rs-img { position: relative; min-height: 140px; background: linear-gradient(160deg, #1B2E4A, #0B1626); overflow: hidden; }
.rs-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.rs-row:hover .rs-img img { transform: scale(1.04); }
.rs-info { padding: 16px 20px; min-width: 0; }
.rs-kind { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.rs-info h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; margin: 6px 0 6px; }
.rs-meta { font-size: 13px; color: var(--text-2); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.rs-warn { color: #EBC48A; }
.rs-price { padding: 16px 20px; text-align: right; display: grid; align-content: center; gap: 4px; min-width: 210px; }
.rs-price b { font-family: var(--font-display); font-weight: 400; font-size: 2rem; line-height: 1; }
.rs-price s, .rs-price small { color: var(--text-3); font-size: 12px; }
.rs-none { color: var(--text-3); padding: 14px 18px; border: 1px dashed var(--line-strong); border-radius: 14px; }

/* trip bar */
.tripbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(8,19,33,0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--gold-line); animation: tb-in 0.5s var(--ease) both; }
@keyframes tb-in { from { transform: translateY(100%); } to { transform: none; } }
.tripbar-in { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.tb-legs { display: flex; gap: 8px; flex: 1; overflow-x: auto; }
.tb-leg { display: grid; text-align: left; padding: 6px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); background: transparent; color: var(--text-3); cursor: pointer; font-size: 12px; white-space: nowrap; }
.tb-leg b { color: var(--ivory); font-weight: 500; font-size: 13px; }
.tb-leg.is-done { border-style: solid; border-color: var(--gold-line); color: var(--gold); }
.tb-total { display: grid; text-align: right; }
.tb-total span { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.tb-total b { font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
body.has-tripbar { padding-bottom: 84px; }
body.has-tripbar .toast-region { bottom: 100px; }

/* How it works */
.sx-how { padding: clamp(90px, 12vw, 160px) 0; }
.how-wrap { position: relative; }
.how-line { position: absolute; left: 0; right: 0; top: 27px; width: 100%; height: 4px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); position: relative; }
.how-step { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.how-n { order: -1; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); border: 1px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-size: 1.6rem; position: relative; z-index: 1; }
.how-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #1B2E4A, #0B1626); margin: 10px 0 4px; }
.how-img .mask-inner { width: 100%; height: 100%; }
.how-img img { width: 100%; height: 100%; object-fit: cover; }
.how-step h3 { font-family: var(--font-display); font-weight: 400; font-size: 2rem; }
.how-step p { color: var(--text-2); max-width: 36ch; }

/* aircraft types */
.sx-types { padding: clamp(90px, 12vw, 150px) 0; }
.ty-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ty-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: border-color var(--dur) var(--ease); }
.ty-card:hover { border-color: var(--gold-line); }
.ty-img { aspect-ratio: 4 / 3; background: linear-gradient(160deg, #1B2E4A, #0B1626); }
.ty-img img { width: 100%; height: 100%; object-fit: cover; }
.ty-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; flex: 1; }
.ty-ico { color: var(--gold); }
.ty-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; }
.ty-body p { color: var(--text-2); font-size: 14px; }
.ty-body .ty-from { color: var(--gold); font-size: 12px; letter-spacing: 0.04em; }
.ty-body .btn { justify-self: start; margin-top: 6px; }

@media (max-width: 1100px) {
  .ty-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .is-round .sw-row, .sw-row { grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr); }
  .sw-row .sw-date { grid-column: span 3; }
  .is-round .sw-row .sw-date { grid-column: span 1; }
  .is-round .sw-row .sw-date:first-of-type { grid-column: 1 / 2; }
  .is-round .sw-row .sw-date:last-of-type { grid-column: 3 / 4; }
  .is-multi .sw-row { grid-template-columns: 30px minmax(0, 1fr) 38px minmax(0, 1fr) 34px; }
  .is-multi .sw-row .sw-date { grid-column: 2 / 5; grid-row: 2; }
}
@media (max-width: 760px) {
  .sx-hero { padding-top: 96px; }
  .sw { padding: 14px; border-radius: 18px; }
  .sw-top { flex-direction: column; align-items: stretch; }
  .sw-legend { float: none; display: block; padding: 0 0 6px; }
  .sw-row, .is-round .sw-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .sw-row .sw-date, .is-round .sw-row .sw-date { grid-column: auto !important; }
  .sw-swap { justify-self: end; margin: -24px 14px -24px 0; position: relative; z-index: 2; }
  .is-multi .sw-row { grid-template-columns: 30px minmax(0, 1fr) 34px; padding-top: 8px; border-top: 1px solid var(--line); }
  .is-multi .sw-row > * { grid-column: 2; }
  .is-multi .sw-row .sw-leg-n { grid-column: 1; grid-row: 1; }
  .is-multi .sw-row .sw-rm { grid-column: 3; grid-row: 1; }
  .is-multi .sw-row .sw-date { grid-row: auto; grid-column: 2 !important; }
  .sw-bottom { justify-content: space-between; }
  .sw-go { width: 100%; }
  .rs-route { grid-template-columns: 1fr; }
  .rs-row { grid-template-columns: 1fr; }
  .rs-img { min-height: 170px; }
  .rs-price { text-align: left; min-width: 0; padding-top: 0; }
  .rs-price .row { justify-content: flex-start !important; }
  .how-steps { grid-template-columns: 1fr; }
  .how-line { display: none; }
  .ty-grid { grid-template-columns: 1fr; }
  .tb-total b { font-size: 1.3rem; }
  .tripbar-in .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .rs-row, .tripbar { animation: none; }
  .sw-swap:hover { transform: none; }
}
.sw, #search { scroll-margin-top: 90px; }
/* itinerary list in booking overlay */
.it-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 10px; }
.it-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.it-list .it-n { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold-line); color: var(--gold); display: grid; place-items: center; font-family: var(--font-display); }
.it-list li > div b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: 0.04em; }
.it-list li > div span { color: var(--text-3); font-size: 13px; }
.it-list li > b { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
@media (max-width: 760px) {
  .sw-trip span { padding: 8px 9px; font-size: 11.5px; letter-spacing: 0.04em; }
  .sw-trip { flex-wrap: nowrap; }
  .it-list li { grid-template-columns: 34px minmax(0, 1fr); }
  .it-list li > .badge, .it-list li > b { grid-column: 2; justify-self: start; }
}
@media (max-width: 560px) {
  .tb-legs { display: none; }
  .tripbar-in { flex-wrap: nowrap; }
  .tb-total { text-align: left; }
}
