/* Air1800 — original design system */
:root {
  --navy: #0a1a33;
  --navy-2: #13294b;
  --navy-3: #1e3a6e;
  --ink: #0f172a;
  --text: #24324a;
  --muted: #5b6b82;
  --line: #e3e8ef;
  --bg: #f4f6fa;
  --card: #ffffff;
  --accent: #ff7a1a;
  --accent-2: #ffb547;
  --accent-ink: #b84f00;
  --sky: #2f6fed;
  --good: #12a150;
  --good-bg: #e7f7ee;
  --warn: #c27c00;
  --warn-bg: #fff4dc;
  --bad: #d93a3f;
  --bad-bg: #fdecec;
  --atr: #7c3aed;
  --airbus: #2563eb;
  --boeing: #0e9594;
  --embraer: #db2777;
  --dehav: #9333ea;
  --radius: 18px;
  --shadow: 0 18px 50px -20px rgba(10, 26, 51, .35), 0 2px 6px rgba(10, 26, 51, .06);
  --shadow-sm: 0 1px 2px rgba(10, 26, 51, .06), 0 4px 14px -6px rgba(10, 26, 51, .12);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--sky); text-decoration: none; }
.hidden { display: none !important; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 20; }
.topbar .wrap { display: flex; align-items: center; height: 72px; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.brand svg { width: 38px; height: 38px; }
.brand b { color: var(--accent-2); font-weight: 800; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: rgba(255,255,255,.82); font-weight: 600; font-size: 14px; }
.nav a:hover { color: #fff; }
.topbar .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pill-btn { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.pill-btn:hover { background: rgba(255,255,255,.16); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #9aa6b8; display: inline-block; margin-right: 6px; }
.status-dot.ok { background: #3ddc84; box-shadow: 0 0 0 4px rgba(61,220,132,.18); }
.status-dot.wait { background: var(--accent-2); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- hero ---------- */
.hero { position: relative; color: #fff; padding: 132px 0 150px; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% 115%, rgba(255,140,60,.55), transparent 60%),
    radial-gradient(900px 400px at 10% 120%, rgba(255,181,71,.35), transparent 60%),
    linear-gradient(180deg, #071327 0%, #0f2a54 48%, #2b4f8a 78%, #6d6f9a 100%); }
.hero::before { content: ""; position: absolute; inset: 0; background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,.6), transparent),
    radial-gradient(1.4px 1.4px at 62% 14%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 78% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1.2px 1.2px at 92% 10%, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 45% 26%, rgba(255,255,255,.5), transparent); }
.hero .arc { position: absolute; right: -40px; top: 90px; width: 640px; opacity: .9; pointer-events: none; }
.hero .arc path.trail { stroke-dasharray: 6 10; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -1000; } }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.02em; margin: 0 0 18px; max-width: 760px; }
.hero h1 em { font-style: italic; color: var(--accent-2); }
.hero p.lead { font-size: 18px; max-width: 560px; color: rgba(255,255,255,.82); margin: 0 0 26px; line-height: 1.55; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13px; color: rgba(255,255,255,.75); font-weight: 600; }
.trust span::before { content: "✓"; color: var(--accent-2); margin-right: 6px; font-weight: 800; }

/* ---------- booking panel ---------- */
.booking { position: relative; z-index: 5; margin-top: -110px; }
.panel { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 8px 8px 20px; }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--line); margin: 0 6px 16px; overflow-x: auto; }
.tab { border: 0; background: none; padding: 12px 18px; border-radius: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; display: flex; gap: 8px; align-items: center; }
.tab.active { background: var(--navy); color: #fff; }
.tab:not(.active):hover { background: var(--bg); }
.form { padding: 0 18px; }
.row { display: grid; gap: 10px; }
.row.main { grid-template-columns: 1fr 44px 1fr 170px 170px 200px; align-items: stretch; }
.field { position: relative; border: 1.5px solid var(--line); border-radius: 14px; padding: 9px 14px 8px; background: #fff; transition: border-color .15s; min-height: 62px; }
.field:focus-within { border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47,111,237,.12); }
.field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.field input, .field select { border: 0; outline: 0; width: 100%; padding: 2px 0 0; background: transparent; font-size: 17px; font-weight: 700; color: var(--ink); }
.field .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap { align-self: center; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 18px; color: var(--navy); transition: transform .3s; }
.swap:hover { transform: rotate(180deg); border-color: var(--sky); }
.go { border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--accent), #ff9b3d); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .01em; box-shadow: 0 10px 24px -10px rgba(255,122,26,.8); }
.go:hover { filter: brightness(1.05); }
.go:disabled { opacity: .7; cursor: wait; }
.row.opts { grid-template-columns: repeat(auto-fit, minmax(160px, auto)); margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; font-weight: 700; color: var(--text); display: inline-flex; gap: 6px; align-items: center; }
.chip.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.chip select { border: 0; background: transparent; font-weight: 700; outline: 0; }
.opts .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

/* airport suggest */
.suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 6px); background: #fff; border-radius: 14px; box-shadow: var(--shadow); z-index: 30; max-height: 320px; overflow: auto; padding: 6px; }
.suggest button { display: flex; width: 100%; border: 0; background: none; padding: 10px; border-radius: 10px; text-align: left; gap: 12px; align-items: center; }
.suggest button:hover, .suggest button.hl { background: var(--bg); }
.suggest .code { font-weight: 800; color: var(--navy); width: 42px; }
.suggest .nm { font-size: 13px; color: var(--muted); }

/* pax popover */
.pop { position: absolute; top: calc(100% + 6px); right: -2px; width: 300px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px; z-index: 30; }
.pax-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.pax-row small { display: block; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-weight: 800; }
.stepper b { min-width: 16px; text-align: center; }
.pop select { width: 100%; padding: 10px; border-radius: 10px; border: 1.5px solid var(--line); margin-top: 6px; }

/* ---------- landing sections ---------- */
section.block { padding: 56px 0 10px; }
.block h2 { font-family: var(--serif); font-weight: 600; font-size: 34px; letter-spacing: -.01em; margin: 0 0 6px; color: var(--ink); }
.block .kicker { color: var(--accent-ink); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.block p.desc { color: var(--muted); margin: 0 0 22px; }
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.deal { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line); text-align: left; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; transition: transform .15s, box-shadow .15s; }
.deal:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.deal .rt { font-weight: 800; color: var(--ink); font-size: 18px; }
.deal .ct { color: var(--muted); font-size: 13px; grid-column: 1; }
.deal .pr { grid-row: 1 / span 2; grid-column: 2; text-align: right; align-self: center; }
.deal .pr small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.deal .pr b { font-size: 22px; color: var(--accent-ink); }
.deal .spark { grid-column: 1 / -1; display: flex; gap: 2px; align-items: flex-end; height: 26px; margin-top: 8px; }
.deal .spark i { flex: 1; background: #dbe4f3; border-radius: 2px; }
.deal .spark i.min { background: var(--accent); }
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.feature .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--bg); margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.cta-band { margin: 56px 0 0; background: var(--navy); color: #fff; border-radius: 24px; padding: 34px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-band h3 { font-family: var(--serif); font-size: 28px; margin: 0; font-weight: 600; }
.cta-band p { margin: 6px 0 0; color: rgba(255,255,255,.75); }
.cta-band .go { padding: 14px 22px; margin-left: auto; }

/* ---------- results ---------- */
#results { padding: 26px 0 60px; }
.res-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.res-head h2 { font-family: var(--serif); font-size: 30px; margin: 0; color: var(--ink); font-weight: 600; }
.res-head .meta { color: var(--muted); font-size: 14px; }
.demo-note { background: var(--warn-bg); color: #7a4d00; border-radius: 12px; padding: 10px 14px; font-size: 13px; font-weight: 600; margin-bottom: 14px; }

.datestrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.day { scroll-snap-align: start; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; transition: .15s; }
.day:hover { border-color: var(--sky); }
.day .dw { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.day .dd { font-weight: 800; color: var(--ink); font-size: 15px; }
.day .dp { font-size: 13px; font-weight: 800; margin-top: 4px; }
.day.low .dp { color: var(--good); }
.day.high .dp { color: var(--bad); }
.day.typical .dp { color: var(--text); }
.day.sel { border-color: var(--navy); background: var(--navy); }
.day.sel .dw, .day.sel .dd, .day.sel .dp { color: #fff; }
.day.best::after { content: "Lowest"; display: block; font-size: 10px; font-weight: 800; color: var(--accent-ink); margin-top: 2px; }
.day.sel.best::after { color: var(--accent-2); }

.layout { display: grid; grid-template-columns: 240px 1fr 330px; gap: 20px; align-items: start; margin-top: 10px; }
.side { position: sticky; top: 16px; display: grid; gap: 14px; }
.box { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; }
.box h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 800; display: flex; align-items: center; gap: 8px; }
.box .opt { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-weight: 600; font-size: 14px; }
.box .opt input { width: 18px; height: 18px; accent-color: var(--navy); }
.box .opt .n { margin-left: auto; color: var(--muted); font-size: 12px; }

.sortbar { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.sortbar button { border: 0; background: none; padding: 12px 10px; text-align: left; border-right: 1px solid var(--line); }
.sortbar button:last-child { border-right: 0; }
.sortbar button small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sortbar button b { font-size: 16px; color: var(--ink); }
.sortbar button span { font-size: 12px; color: var(--muted); }
.sortbar button.on { background: var(--navy); }
.sortbar button.on small, .sortbar button.on b, .sortbar button.on span { color: #fff; }

.flight { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .15s; }
.flight:hover { box-shadow: var(--shadow); }
.flight .main { display: grid; grid-template-columns: 1fr 190px; }
.flight .left { padding: 16px 18px; }
.f-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 12px; letter-spacing: .02em; }
.al { font-weight: 800; color: var(--ink); }
.fn { color: var(--muted); font-size: 13px; }
.tag { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; }
.tag.cheapest { background: #fff1e5; color: var(--accent-ink); }
.tag.best { background: #e8efff; color: var(--sky); }
.tag.fastest { background: #eef2f7; color: var(--navy-2); }
.tag.smooth { background: var(--good-bg); color: var(--good); }
.tag.few { background: var(--bad-bg); color: var(--bad); }
.timeline { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; }
.tl-t b { font-size: 24px; color: var(--ink); letter-spacing: -.02em; }
.tl-t div { font-size: 13px; color: var(--muted); font-weight: 700; }
.tl-t.r { text-align: right; }
.tl-mid { text-align: center; font-size: 12px; color: var(--muted); font-weight: 700; }
.tl-line { position: relative; height: 2px; background: #cbd5e3; margin: 6px 0; }
.tl-line::before, .tl-line::after { content: ""; position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: #cbd5e3; }
.tl-line::before { left: 0; } .tl-line::after { right: 0; }
.tl-line i { position: absolute; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); transform: translateX(-50%); }
.tl-mid .stop { color: var(--accent-ink); }
.f-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ac { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; padding: 5px 10px; border-radius: 8px; color: #fff; }
.ac small { font-weight: 600; opacity: .85; }
.ac.ATR { background: var(--atr); } .ac.Airbus { background: var(--airbus); } .ac.Boeing { background: var(--boeing); }
.ac.Embraer { background: var(--embraer); } .ac.De { background: var(--dehav); }
.wx { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; }
.wx.low { background: var(--good-bg); color: var(--good); }
.wx.moderate { background: var(--warn-bg); color: var(--warn); }
.wx.high { background: var(--bad-bg); color: var(--bad); }
.wx.unknown { background: var(--bg); color: var(--muted); }
.mini { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; background: var(--bg); color: var(--text); }
.flight .right { border-left: 1px dashed var(--line); padding: 16px; display: flex; flex-direction: column; justify-content: center; gap: 6px; text-align: right; background: linear-gradient(180deg, #fff, #fbfcfe); }
.price { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-sub { font-size: 12px; color: var(--muted); }
.price-sub s { color: #9aa6b8; }
.btn { border: 0; border-radius: 12px; padding: 11px 14px; font-weight: 800; }
.btn.primary { background: var(--navy); color: #fff; }
.btn.primary:hover { background: var(--navy-3); }
.btn.ghost { background: #fff; border: 1.5px solid var(--line); color: var(--navy); }
.btn.ghost:hover { border-color: var(--sky); }
.btn.sm { padding: 7px 10px; font-size: 13px; border-radius: 10px; }
.f-foot { border-top: 1px solid var(--line); display: flex; gap: 8px; padding: 10px 18px; flex-wrap: wrap; align-items: center; background: #fbfcfe; }
.f-foot .seat-chosen { margin-left: auto; font-size: 13px; font-weight: 800; color: var(--good); }
.breakdown { padding: 12px 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; }
.breakdown div { display: flex; justify-content: space-between; }
.breakdown .tot { font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); padding-top: 6px; }
.sellers { border-top: 1px solid var(--line); }
.sellers table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sellers td, .sellers th { padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.sellers th { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sellers td.n { text-align: right; font-weight: 800; }
.sellers tr.win td { background: #f3fbf6; }

/* sidebar right */
.insight { border-left: 4px solid var(--sky); }
.insight.low { border-left-color: var(--good); }
.insight.high { border-left-color: var(--bad); }
.insight .big { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.insight p { margin: 0; font-size: 14px; color: var(--text); line-height: 1.5; }
.gauge { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.gauge .ring { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: var(--ink); position: relative; }
.gauge .ring::after { content: ""; position: absolute; inset: 7px; background: #fff; border-radius: 50%; }
.gauge .ring b { position: relative; z-index: 1; font-size: 18px; }
.gauge .lvl { font-weight: 800; text-transform: capitalize; color: var(--ink); }
.gauge small { display: block; color: var(--muted); font-size: 12px; }
.route-pts { display: grid; gap: 8px; margin: 10px 0; }
.pt { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.pt .ico { font-size: 20px; text-align: center; }
.pt b { color: var(--ink); display: block; }
.pt span { color: var(--muted); }
.pt .r { font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 999px; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 2px; margin: 8px 0 4px; }
.hours i { height: 22px; border-radius: 3px; position: relative; }
.hours i.best { outline: 2px solid var(--navy); outline-offset: -2px; }
.hours-l { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); font-weight: 700; }
.wx-sum { font-size: 13px; line-height: 1.55; color: var(--text); background: var(--bg); padding: 10px 12px; border-radius: 12px; margin-top: 10px; }
.wx-sum::before { content: "✦ Air1800 briefing"; display: block; font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--sky); margin-bottom: 4px; }
.cab { display: grid; grid-template-columns: 1fr auto; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.cab:last-child { border-bottom: 0; }
.cab b { color: var(--ink); }
.cab small { color: var(--muted); display: block; }
.cab a { font-weight: 800; font-size: 13px; }
.hotel { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: 13px; }
.hotel:last-child { border-bottom: 0; }
.hotel .thumb { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; }
.hotel b { color: var(--ink); display: block; font-size: 14px; }
.hotel .st { color: var(--accent); letter-spacing: 1px; }
.hotel .hp { text-align: right; font-weight: 800; color: var(--ink); }
.hotel .hp small { display: block; color: var(--muted); font-weight: 600; }
.sim { font-size: 11px; color: var(--muted); margin-top: 8px; }

/* trip total bar */
.tripbar { position: sticky; bottom: 14px; z-index: 15; margin-top: 16px; background: var(--navy); color: #fff; border-radius: 18px; padding: 14px 18px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; box-shadow: var(--shadow); }
.tripbar .seg { font-size: 13px; color: rgba(255,255,255,.75); }
.tripbar .seg b { color: #fff; display: block; font-size: 15px; }
.tripbar .tot { margin-left: auto; text-align: right; }
.tripbar .tot b { font-size: 24px; color: var(--accent-2); }

/* calendar tab */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cal-grid .dow { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); letter-spacing: .08em; }
.cal-cell { border-radius: 12px; padding: 10px 6px; text-align: center; border: 1.5px solid transparent; background: #fff; }
.cal-cell.low { background: var(--good-bg); }
.cal-cell.typical { background: #f1f4f9; }
.cal-cell.high { background: var(--bad-bg); }
.cal-cell:hover { border-color: var(--navy); }
.cal-cell .d { font-weight: 800; color: var(--ink); }
.cal-cell .p { font-size: 12px; font-weight: 800; }

/* ---------- seat modal ---------- */
.modal { position: fixed; inset: 0; background: rgba(7,19,39,.55); backdrop-filter: blur(4px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: #fff; border-radius: 22px; width: min(720px, 100%); max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: var(--shadow); animation: up .2s ease-out; }
@keyframes up { from { transform: translateY(20px); opacity: 0; } }
.sheet-h { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.sheet-h h3 { margin: 0; font-size: 18px; color: var(--ink); }
.sheet-h p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.x { margin-left: auto; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bg); font-size: 18px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 20px; font-size: 12px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 5px; }
.quick { display: flex; gap: 8px; padding: 10px 20px 0; flex-wrap: wrap; }
.cabin { overflow: auto; padding: 16px 20px 20px; background: linear-gradient(180deg, #f7f9fc, #fff); }
.fuselage { margin: 0 auto; width: max-content; background: #fff; border: 2px solid var(--line); border-radius: 120px 120px 30px 30px; padding: 54px 18px 18px; position: relative; }
.fuselage::before { content: "FRONT ▲"; position: absolute; top: 20px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--muted); }
.srow { display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.srow .rn { width: 22px; font-size: 11px; font-weight: 800; color: var(--muted); text-align: center; }
.srow .aisle { width: 18px; }
.srow.exit { margin-top: 10px; }
.srow.exit::before { content: ""; }
.seat { width: 38px; height: 38px; border-radius: 9px 9px 6px 6px; border: 0; font-size: 9px; font-weight: 800; line-height: 1; display: grid; place-items: center; transition: transform .1s; position: relative; }
.seat:hover:not(:disabled) { transform: scale(1.12); z-index: 2; }
.seat.free { background: #dff3e7; color: #0b6b35; }
.seat.paid { background: #e3ecff; color: #1d4fbf; }
.seat.legroom { background: #ffe9d4; color: var(--accent-ink); }
.seat.taken { background: #e9edf3; color: transparent; cursor: not-allowed; background-image: repeating-linear-gradient(45deg, transparent 0 4px, rgba(0,0,0,.06) 4px 6px); }
.seat.sel { background: var(--navy); color: #fff; box-shadow: 0 0 0 3px var(--accent-2); }
.sheet-f { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.sheet-f .info { font-size: 14px; }
.sheet-f .info b { font-size: 18px; color: var(--ink); }
.sheet-f .btn { margin-left: auto; }
.tooltip { position: fixed; z-index: 200; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 10px; font-size: 12px; pointer-events: none; max-width: 220px; }

/* ---------- loading / misc ---------- */
.skel { background: linear-gradient(90deg, #eef2f7 25%, #f7f9fc 50%, #eef2f7 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); height: 150px; margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 14px; z-index: 300; box-shadow: var(--shadow); }
.empty { text-align: center; padding: 40px; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); }
footer { background: var(--navy); color: rgba(255,255,255,.7); padding: 40px 0; margin-top: 60px; font-size: 13px; }
footer .wrap { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
footer .brand { font-size: 18px; }
footer .note { max-width: 560px; line-height: 1.6; }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .layout { grid-template-columns: 1fr 320px; }
  .filters { display: none; }
  .row.main { grid-template-columns: 1fr 44px 1fr; }
  .row.main .go { grid-column: 1 / -1; min-height: 56px; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; }
  .deals, .features { grid-template-columns: 1fr 1fr; }
  .hero .arc { opacity: .35; width: 420px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 14px; }
  .hero { padding: 104px 0 130px; }
  .row.main { grid-template-columns: 1fr; }
  .swap { justify-self: center; transform: rotate(90deg); margin: -6px 0; }
  .deals, .features { grid-template-columns: 1fr; }
  .sortbar { grid-template-columns: 1fr 1fr; }
  .sortbar button:nth-child(2) { border-right: 0; }
  .flight .main { grid-template-columns: 1fr; }
  .flight .right { border-left: 0; border-top: 1px dashed var(--line); flex-direction: row; align-items: center; justify-content: space-between; text-align: left; flex-wrap: wrap; }
  .tl-t b { font-size: 20px; }
  .topbar .right .pill-btn.hide-m { display: none; }
  .seat { width: 32px; height: 32px; font-size: 8px; }
  .tripbar .tot { margin-left: 0; text-align: left; }
}
