:root {
  --navy: #0332c8; --navy-ink: #021a6e; --navy-2: #2453e0; --red: #bb222b; --lagoon: #0b8f8a; --sun: #f2a33a;
  --bg: #ffffff; --surface: #ffffff; --surface-2: #eef3ff; --line: #dce5fb;
  --ink: #0b1636; --ink-2: #44507a; --ink-3: #7682a6;
  --ok: #128a4b; --warn: #b26a00; --warn-bg: #fff4e0; --info-bg: #eaf0ff;
  --on-brand: #ffffff; --logo-blue: #0332c8; --logo-red: #bb222b;
  --fill: #0332c8; --fill-2: #2453e0; --poc-bg: #021a6e; --poc-fg: #ffffff; --hero-veil: rgba(3, 40, 170, .55);
  --side-bg: linear-gradient(180deg, #0332c8 0%, #0228a8 45%, #021a6e 100%); --side-fg: #e6ecff; --side-on-bg: #ffffff; --side-on-fg: #0332c8; --side-grp: #a9bbff;
  --shadow: 0 1px 2px rgba(3, 30, 120, .06), 0 10px 30px rgba(3, 30, 120, .08);
  --shadow-lg: 0 20px 50px rgba(3, 30, 120, .18);
  --r: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --navy: #8eaaff; --navy-ink: #dde5ff; --navy-2: #a9bfff; --red: #ff7d84; --lagoon: #4fd1c9;
  --bg: #0f1218; --surface: #171b23; --surface-2: #20262f; --line: #2c3340;
  --ink: #eef1f7; --ink-2: #b6bdcc; --ink-3: #848ca0; --ok: #53d18f; --warn: #f5b450; --warn-bg: #2a2215; --info-bg: #1a2338;
  --on-brand: #ffffff; --logo-blue: #ffffff; --logo-red: #ff8a90;
  --fill: #2f5cf0; --fill-2: #4a72ff; --poc-bg: #171b23; --poc-fg: #b6bdcc; --hero-veil: rgba(10, 14, 24, .55);
  --side-bg: #12151c; --side-fg: #c9cfdc; --side-on-bg: #2f5cf0; --side-on-fg: #ffffff; --side-grp: #6f7890;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 20px 50px rgba(0,0,0,.5); color-scheme: dark; } }
:root[data-theme="dark"] {
  --navy: #8eaaff; --navy-ink: #dde5ff; --navy-2: #a9bfff; --red: #ff7d84; --lagoon: #4fd1c9;
  --bg: #0f1218; --surface: #171b23; --surface-2: #20262f; --line: #2c3340;
  --ink: #eef1f7; --ink-2: #b6bdcc; --ink-3: #848ca0; --ok: #53d18f; --warn: #f5b450; --warn-bg: #2a2215; --info-bg: #1a2338;
  --on-brand: #ffffff; --logo-blue: #ffffff; --logo-red: #ff8a90;
  --fill: #2f5cf0; --fill-2: #4a72ff; --poc-bg: #171b23; --poc-fg: #b6bdcc; --hero-veil: rgba(10, 14, 24, .55);
  --side-bg: #12151c; --side-fg: #c9cfdc; --side-on-bg: #2f5cf0; --side-on-fg: #ffffff; --side-grp: #6f7890;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35); --shadow-lg: 0 20px 50px rgba(0,0,0,.5); color-scheme: dark; }

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
[hidden] { display: none !important; }

/* Header */
.top { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; height: 44px; text-decoration: none; }
.logo .sa-logo { height: 40px; width: auto; display: block; overflow: visible; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; height: 38px; text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 0 12px; border-radius: 10px; line-height: 1; }
.nav a.on, .nav a:hover { color: var(--navy); background: var(--surface-2); }
.tools { display: flex; gap: 8px; align-items: center; }
.chip-btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; line-height: 1; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--ink-2); text-decoration: none; }
.chip-btn.brand { background: var(--fill); border-color: var(--fill); color: var(--on-brand); }
.tog { display: inline-flex; align-items: center; height: 36px; padding: 3px; gap: 2px; border: 1px solid var(--line); background: var(--surface-2); border-radius: 999px; cursor: pointer; }
.tog span { display: inline-flex; align-items: center; justify-content: center; height: 28px; min-width: 34px; padding: 0 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 800; line-height: 1; color: var(--ink-3); transition: background-color .2s, color .2s; }
.tog span.on { background: var(--surface); color: var(--navy); box-shadow: 0 1px 3px rgba(3, 30, 120, .15); }

/* Bottom tab bar on phones */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .tools { margin-left: auto; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 10px; font-size: 12px; font-weight: 600;
    color: var(--ink-3); text-decoration: none; }
  .tabbar a.on { color: var(--navy); }
  .tabbar svg { width: 24px; height: 24px; }
  main { padding-bottom: 84px; }
}

/* Advisory */
.advisory { background: linear-gradient(90deg, var(--info-bg), var(--surface)); border-bottom: 1px solid var(--line); font-size: 14px; }
.advisory .wrap { display: flex; gap: 10px; align-items: flex-start; padding-block: 10px; }
.advisory .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); margin-top: 6px; flex: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.advisory p { margin: 0; color: var(--ink-2); }
.advisory b { color: var(--ink); }

/* Hero + search */
.hero { position: relative; color: #fff; background: var(--navy-ink); overflow: hidden; }
.hero .photo { position: absolute; inset: 0; background-size: cover; background-position: center 60%; }
.hero .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in srgb, var(--hero-veil) 45%, transparent) 0%, var(--hero-veil) 50%, var(--bg) 100%); }
.hero .wrap { position: relative; padding-block: 40px 24px; }
.hero h1 { font-size: clamp(30px, 6vw, 48px); font-weight: 800; letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.hero .lede { font-size: 17px; margin: 8px 0 22px; max-width: 46ch; text-shadow: 0 1px 8px rgba(0,0,0,.4); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); }
.search { padding: 16px; display: grid; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface-2); border-radius: 999px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; padding: 10px 16px; text-align: center; border-radius: 999px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--ink-2); }
.seg button.on { background: var(--surface); color: var(--navy); box-shadow: var(--shadow); }
.od { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: stretch; }
.field { border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface); text-align: left; cursor: pointer; min-width: 0; width: 100%; }
.field:hover, .field:focus-visible { border-color: var(--navy); outline: none; }
.field .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.field .v { display: block; font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field .s { display: block; font-size: 13px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field.empty .v { color: var(--ink-3); font-weight: 600; }
.swap { width: 44px; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; cursor: pointer; display: grid; place-items: center; color: var(--navy); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row2.one { grid-template-columns: 1fr; }
.btn { border: 0; border-radius: 12px; padding: 14px 20px; font-weight: 800; font-size: 17px; cursor: pointer; background: linear-gradient(180deg, var(--fill-2), var(--fill)); color: var(--on-brand); box-shadow: 0 6px 18px color-mix(in srgb, var(--fill) 35%, transparent); display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface-2); color: var(--navy); box-shadow: none; }
.btn.navy { background: var(--fill); color: var(--on-brand); }
@media (max-width: 520px) { .row2.stack { grid-template-columns: 1fr; } .od { grid-template-columns: 1fr; } .swap { width: 100%; height: 36px; } .swap svg { transform: rotate(90deg); } }

/* Quick tiles */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.quick a { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-decoration: none; color: var(--ink); font-weight: 700; display: flex; gap: 10px; align-items: center; }
.quick svg { width: 26px; height: 26px; color: var(--navy); flex: none; }
.quick small { display: block; font-weight: 500; color: var(--ink-3); font-size: 13px; }
@media (max-width: 760px) { .quick { grid-template-columns: 1fr 1fr; } }

section.block { padding-block: 28px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
h2.title { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.01em; margin: 6px 0 14px; }
.dests { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dest { border-radius: var(--r); overflow: hidden; background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; padding: 0; }
.dest .ph { aspect-ratio: 4/3; background-size: cover; background-position: center; max-width: 100%; }
.dest .tx { padding: 12px 14px; }
.dest b { display: block; font-size: 17px; }
.dest span { color: var(--ink-3); font-size: 14px; }
.dest .from { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .dests { grid-template-columns: 1fr 1fr; } }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact { padding: 16px; }
.fact h3 { font-size: 16px; margin-bottom: 4px; }
.fact p { margin: 0; color: var(--ink-2); font-size: 15px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Sheets (pickers) */
.scrim { position: fixed; inset: 0; background: rgba(8, 12, 30, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--surface); width: 100%; max-width: 560px; border-radius: 20px 20px 0 0; max-height: 88vh; overflow: auto; padding: 8px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 761px) { .scrim { align-items: center; } .sheet { border-radius: 20px; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 6px auto 10px; }
.sheet h3 { font-size: 20px; margin-bottom: 4px; }
.sheet .hint { color: var(--ink-3); font-size: 14px; margin: 0 0 12px; }
.group-h { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 14px 0 6px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: transparent; padding: 12px 10px; border-radius: 12px; cursor: pointer; }
.opt:hover { background: var(--surface-2); }
.opt .code { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); color: var(--navy); font-weight: 800; display: grid; place-items: center; font-size: 13px; flex: none; }
.opt b { display: block; font-size: 17px; }
.opt span { color: var(--ink-3); font-size: 14px; }
.opt.off { opacity: .45; cursor: not-allowed; }
.counter { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.counter b { display: block; }
.counter span { color: var(--ink-3); font-size: 14px; }
.step { display: flex; align-items: center; gap: 14px; }
.step button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); font-size: 22px; font-weight: 700; color: var(--navy); cursor: pointer; }
.step button:disabled { opacity: .35; cursor: default; }
.step output { min-width: 18px; text-align: center; font-weight: 800; font-size: 18px; }

/* Calendar */
.cal-head { display: flex; justify-content: space-between; align-items: center; margin: 6px 0; }
.cal-head button { border: 0; background: var(--surface-2); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; color: var(--navy); font-size: 18px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dn { font-size: 12px; color: var(--ink-3); font-weight: 700; padding: 4px 0; }
.cal button { border: 0; background: transparent; border-radius: 10px; padding: 6px 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; min-height: 52px; }
.cal button b { font-size: 16px; }
.cal button small { font-size: 11px; color: var(--ok); font-weight: 700; }
.cal button.none { color: var(--ink-3); cursor: default; }
.cal button.none small { color: var(--ink-3); font-weight: 500; }
.cal button.sel { background: var(--fill); color: var(--on-brand); }
.cal button.sel small { color: var(--on-brand); }
.cal button.inrange { background: var(--surface-2); }
.cal button:not(.none):not(.sel):hover { background: var(--surface-2); }

/* Steps header */
.crumbs { display: flex; gap: 6px; padding-block: 14px 4px; overflow-x: auto; }
.crumbs span { font-size: 13px; font-weight: 700; color: var(--ink-3); padding: 6px 10px; border-radius: 999px; background: var(--surface-2); white-space: nowrap; }
.crumbs span.on { background: var(--fill); color: var(--on-brand); }
.crumbs span.done { color: var(--navy); }

.layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; padding-block: 12px 32px; }
.layout > * { min-width: 0; }
@media (max-width: 860px) { .layout { grid-template-columns: 1fr; } .aside-sum { display: none; } }
.trip-h { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 8px 0 12px; }
.trip-h h2 { font-size: 24px; font-weight: 800; }
.trip-h .edit { margin-left: auto; font-weight: 700; font-size: 14px; background: none; border: 0; color: var(--navy); cursor: pointer; }

.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.days button { flex: 0 0 78px; scroll-snap-align: start; border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 4px; cursor: pointer; text-align: center; }
.days button .d1 { font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.days button .d2 { font-weight: 800; }
.days button .d3 { font-size: 13px; color: var(--ok); font-weight: 700; }
.days button.none .d3 { color: var(--ink-3); font-weight: 500; }
.days button.sel { border-color: var(--navy); background: var(--info-bg); box-shadow: inset 0 0 0 1px var(--navy); }

.note { border-radius: 12px; padding: 12px 14px; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.note.dl { background: var(--warn-bg); color: var(--ink); }
.note.info { background: var(--info-bg); }
.note svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.note p { margin: 0; }

.flight { padding: 16px; margin-bottom: 10px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; cursor: pointer; border: 1.5px solid var(--line); }
.flight:hover { border-color: var(--navy); }
.flight.sel { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy), var(--shadow); }
.flight.full { cursor: default; opacity: .6; }
.leg { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.leg .t { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.leg .ap { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.leg .mid { text-align: center; color: var(--ink-3); font-size: 13px; }
.leg .line { height: 2px; background: var(--line); position: relative; margin: 6px 0; }
.leg .line::after { content: "✈"; position: absolute; left: 50%; top: -11px; transform: translateX(-50%); background: var(--surface); padding: 0 4px; color: var(--navy); font-size: 14px; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.tag { padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.red { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red); }
.price { text-align: right; }
.price b { font-size: 22px; font-weight: 800; display: block; }
.price span { font-size: 12px; color: var(--ink-3); }
.radio { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); display: inline-block; margin-top: 6px; }
.flight.sel .radio { border: 7px solid var(--fill); }
.empty-day { padding: 24px; text-align: center; color: var(--ink-2); }

.summary { padding: 16px; position: sticky; top: 80px; }
.summary h3 { font-size: 16px; margin-bottom: 8px; }
.sumrow { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; color: var(--ink-2); }
.sumrow.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 10px; color: var(--ink); font-weight: 800; font-size: 18px; }
.sumleg { padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.sumleg b { display: block; }

.sticky-go { position: sticky; bottom: 0; background: linear-gradient(transparent, var(--bg) 30%); padding: 18px 0 12px; display: flex; gap: 10px; align-items: center; }
.sticky-go .tot { margin-right: auto; }
.sticky-go .tot b { font-size: 22px; display: block; }
.sticky-go .tot span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 760px) { .sticky-go { bottom: 64px; } }

/* Forms */
.form { padding: 16px; margin-bottom: 12px; }
.form h3 { font-size: 18px; margin-bottom: 2px; }
.form .sub { color: var(--ink-3); font-size: 14px; margin: 0 0 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 520px) { .grid2 { grid-template-columns: 1fr; } }
label.f { display: block; }
label.f span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 4px; }
label.f input, label.f select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; background: var(--surface); font-size: 16px; }
label.f input:focus, label.f select:focus { border-color: var(--navy); outline: none; }
label.f em { display: block; font-style: normal; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.checks { display: grid; gap: 8px; margin-top: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--navy); }
.check small { display: block; color: var(--ink-3); }
.err { color: var(--red); font-size: 13px; font-weight: 600; margin-top: 4px; }

.rules { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.rules li { display: flex; gap: 10px; font-size: 15px; }
.rules li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); margin-top: 8px; flex: none; }
.demo-pay { border: 2px dashed var(--line); border-radius: 12px; padding: 14px; color: var(--ink-2); font-size: 14px; margin-top: 12px; }

/* Boarding pass / confirmation */
.done-h { text-align: center; padding: 24px 0 8px; }
.done-h .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; font-size: 32px; }
.ref { font-size: 34px; font-weight: 800; letter-spacing: .14em; color: var(--navy); }
.pass { display: grid; grid-template-columns: 1fr 120px; overflow: hidden; margin-bottom: 12px; }
.pass .main { padding: 16px; border-right: 2px dashed var(--line); }
.pass .stub { padding: 16px; background: var(--surface-2); text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pass .stub b { font-size: 22px; }
.pass .cities { display: flex; justify-content: space-between; align-items: center; margin: 8px 0; }
.pass .cities b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.pass .cities span { display: block; font-size: 13px; color: var(--ink-3); }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; font-size: 13px; color: var(--ink-3); }
.kv b { display: block; color: var(--ink); font-size: 15px; }
@media (max-width: 520px) { .pass { grid-template-columns: 1fr; } .pass .main { border-right: 0; border-bottom: 2px dashed var(--line); } .kv { grid-template-columns: 1fr 1fr; } }

/* Status board + timetable */
.board { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t td b { font-size: 16px; }
.st { font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.st.sched { background: var(--surface-2); color: var(--ink-2); }
.st.ci { background: var(--info-bg); color: var(--navy); }
.st.board { background: var(--warn-bg); color: var(--warn); }
.st.dep { background: color-mix(in srgb, var(--lagoon) 15%, transparent); color: var(--lagoon); }
.st.land { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { border: 1.5px solid var(--line); background: var(--surface); padding: 8px 14px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--ink-2); font-size: 14px; }
.tabs button.on { border-color: var(--navy); color: var(--navy); background: var(--info-bg); }
.tt-day { padding: 14px 16px; margin-bottom: 10px; }
.tt-day h3 { font-size: 15px; margin-bottom: 6px; }
.tt-row { display: grid; grid-template-columns: 80px 1fr auto; align-items: baseline; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tt-row:first-of-type { border-top: 0; }

/* Info accordions */
details.acc { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
details.acc summary { list-style: none; cursor: pointer; padding: 16px; font-weight: 800; font-size: 17px; display: flex; align-items: center; gap: 12px; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; margin-left: auto; font-size: 22px; color: var(--navy); }
details.acc[open] summary::after { content: "–"; }
details.acc .body { padding: 0 16px 16px; color: var(--ink-2); font-size: 15px; }
details.acc .body table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; }
details.acc .body td, details.acc .body th { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; }
details.acc .body h4 { color: var(--ink); margin: 12px 0 4px; }
.tblwrap { overflow-x: auto; }

.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.office { padding: 16px; }
.office h3 { font-size: 16px; }
.office p { margin: 4px 0 0; color: var(--ink-2); font-size: 14px; }
.office .ph { font-weight: 800; color: var(--ink); user-select: all; }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); margin-top: 24px; padding-block: 24px; color: var(--ink-3); font-size: 13px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.poc { background: var(--poc-bg); color: var(--poc-fg); font-size: 12px; text-align: center; padding: 4px 16px; letter-spacing: .02em; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; z-index: 60; font-size: 14px; }

@media (max-width: 600px) {
  .chip-btn { height: 32px; padding: 0 11px; font-size: 12px; }
  .tog { height: 32px; } .tog span { height: 24px; min-width: 28px; padding: 0 7px; font-size: 11.5px; }
  .tools { gap: 6px; }
  .logo .sa-logo { height: 34px; }
  table.t { min-width: 0; }
  table.t thead { display: none; }
  table.t tr { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  table.t td { padding: 0; border: 0; }
  table.t td.c-no { grid-row: 1 / 3; }
  table.t td.c-from, table.t td.c-to, table.t td.c-arr { display: none; }
  table.t td.c-route { display: block !important; grid-column: 2; }
  table.t td.c-dep { grid-column: 2; grid-row: 2; color: var(--ink-2); }
  table.t td.c-st { grid-column: 3; grid-row: 1 / 3; align-self: center; }
}
table.t td.c-route { display: none; }
.c-arrm { display: none; }
@media (max-width: 600px) { .c-arrm { display: inline; } }

.leg .t { white-space: nowrap; }
@media (max-width: 520px) {
  .flight { grid-template-columns: 1fr; padding: 14px; }
  .leg .t { font-size: 20px; }
  .leg .ap { font-size: 12px; }
  .price { display: flex; align-items: center; gap: 10px; text-align: left; border-top: 1px solid var(--line); padding-top: 10px; }
  .price b { font-size: 20px; }
  .price br { display: none; }
  .price .radio { margin: 0 0 0 auto; }
}
.note.info svg { color: var(--navy); }
@media (max-width: 520px) { .tt-row { grid-template-columns: 72px 1fr auto; } .tt-row b { white-space: nowrap; } }

/* ---------------- logo animation ---------------- */
.sa-logo .crown { transform-box: view-box; transform-origin: 20px 31px; }
.sa-logo.anim .crown { animation: sway 5s ease-in-out 1.2s infinite; }
.sa-logo.intro .ch { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i) * 55ms + 120ms); transform-box: fill-box; }
.sa-logo.intro .sw { animation: swoop 1.1s var(--ease) both; transform-box: view-box; transform-origin: 0 0; }
.logo:hover .sa-logo .crown { animation-duration: 1.6s; }
.sa-logo .heritage { opacity: 0; pointer-events: none; }
.sa-logo.intro .heritage { animation: heritage 3.4s ease-in-out both; }
@keyframes heritage { 0%, 50% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sway { 0%, 100% { transform: rotate(0deg); } 30% { transform: rotate(-4deg); } 65% { transform: rotate(2.5deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(35%); } to { opacity: 1; transform: none; } }
@keyframes swoop { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------------- page motion ---------------- */
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1.0); } }
@keyframes sheetup { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 35%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }
@keyframes fly { from { left: 0%; } to { left: 100%; } }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.entering main > * { animation: up .5s var(--ease) both; }
.entering .hero .photo { animation: zoom 14s ease-out both; }
.entering .hero h1 { animation: up .7s var(--ease) .1s both; }
.entering .hero .lede { animation: up .7s var(--ease) .2s both; }
.entering .hero .search { animation: up .7s var(--ease) .3s both; }
.entering :is(.quick a, .dest, .fact, .flight, .days button, .form, .pass, .office, details.acc, .tt-day, table.t tbody tr), .sheet :is(.opt, .counter) {
  animation: up .5s var(--ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.quick a:nth-child(2), .dest:nth-child(2), .fact:nth-child(2), .flight:nth-of-type(2), .office:nth-child(2) { --d: 60; }
.quick a:nth-child(3), .dest:nth-child(3), .fact:nth-child(3), .flight:nth-of-type(3), .office:nth-child(3) { --d: 120; }
.quick a:nth-child(4), .dest:nth-child(4), .flight:nth-of-type(4), .office:nth-child(4) { --d: 180; }
.flight:nth-of-type(5) { --d: 240; } .flight:nth-of-type(6) { --d: 300; }
.days button:nth-child(n) { animation-duration: .4s; }
.btn, .chip-btn, .field, .swap, .quick a, .dest, .flight, .days button, .tabs button, .opt, .cal button, .seg button {
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s, background-color .18s, color .18s; }
.btn:not(:disabled):hover { transform: translateY(-1px); box-shadow: 0 10px 24px color-mix(in srgb, var(--fill) 40%, transparent); }
.btn:not(:disabled):active, .chip-btn:active, .field:active, .opt:active, .days button:active, .cal button:active { transform: scale(.97); }
.quick a:hover, .dest:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dest .ph { transition: transform .6s var(--ease); }
.dest:hover .ph { transform: scale(1.06); }
.dest { overflow: hidden; }
.flight:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.flight .leg .line::after { transition: left .9s var(--ease); left: 15%; }
.flight:hover .leg .line::after, .flight.sel .leg .line::after { left: 85%; }
.flight.sel .radio { animation: pop .35s var(--ease); }
.swap:hover svg { transform: rotate(180deg); }
.swap svg { transition: transform .4s var(--ease); }
.scrim { animation: fade .2s ease both; }
.sheet { animation: sheetup .35s var(--ease) both; }
.toast { animation: up .3s var(--ease) both; }
.done-h .tick { animation: pop .6s var(--ease) both; }
.done-h .ref { animation: up .6s var(--ease) .2s both; }
.st.ci, .st.board { animation: pulse 2s ease-in-out infinite; }
.advisory .dot { animation: pulse 2.4s ease-in-out infinite; color: var(--ok); }
details.acc[open] .body { animation: up .35s var(--ease) both; }
.btn:disabled { box-shadow: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------------- loading screen ---------------- */
#loader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--surface); opacity: 0; transition: opacity .35s ease; --p: 0%; }
#loader.on { opacity: 1; }
#loader.out { opacity: 0; pointer-events: none; transition: opacity .55s ease; }
#loader .ld-in { width: min(360px, 80vw); display: grid; justify-items: center; gap: 26px; }
#loader .sa-logo { width: 100%; height: auto; }
#loader .ld-track { position: relative; width: 100%; height: 4px; border-radius: 4px; background: var(--surface-2); }
#loader .ld-fill { position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 4px;
  background: linear-gradient(90deg, #e8572e, #f29a1c, #f6d43a, #78bda6, #14a6d8, var(--fill)); transition: width .5s var(--ease); }
#loader .ld-plane { position: absolute; top: 50%; left: var(--p); width: 26px; height: 26px; color: var(--fill); transform: translate(-50%, -50%);
  transition: left .5s var(--ease); filter: drop-shadow(0 2px 4px rgba(3, 30, 120, .25)); animation: bob 1.4s ease-in-out infinite; }
#loader .ld-msg { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-3); }
@keyframes bob { 0%, 100% { margin-top: 0; } 50% { margin-top: -3px; } }
/* photos fade in once loaded instead of popping in */
.hero .photo, .dest .ph { opacity: 0; transition: opacity .8s ease; }
.sa-loaded .hero .photo, .sa-loaded .dest .ph { opacity: 1; }
@media (prefers-reduced-motion: reduce) { #loader .ld-plane { animation: none; } }

.hero h1.long { font-size: clamp(24px, 4vw, 36px); max-width: 26ch; }
