/* Northern Airways IBE
   Palette: ink #16233A, fjord #1E5A8C, ice #EAF1F6, paper #FFF, amber #F2A922 (actions only), line #C9D6E2
   Type: Barlow (text) + Barlow Condensed (times, codes, references) */

:root {
  --header: #16233a;
  --on-header: #ffffff;
  --header-2: #c7d5e3;
  --heading: #16233a;
  --price: #16233a;
  --on-accent: #16233a;
  --ink: #16233a;
  --ink-2: #44546b;
  --fjord: #1e5a8c;
  --fjord-d: #174670;
  --ice: #eaf1f6;
  --paper: #ffffff;
  --amber: #f2a922;
  --amber-d: #d8920f;
  --line: #c9d6e2;
  --ok: #1f7a4d;
  --ok-bg: #e3f3ea;
  --no: #b3261e;
  --no-bg: #fbe9e7;
  --fee: #7a5200;
  --fee-bg: #fdf1d8;
  --r-sm: 4px;
  --r-md: 10px;
  --cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --text: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--text); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--ice); }
img { max-width: 100%; }
a { color: var(--fjord); text-underline-offset: 2px; }
a:hover { color: var(--fjord-d); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--heading); }
h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.3rem; font-weight: 600; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--ink-2); }
.lead { color: var(--ink-2); max-width: 62ch; }
code { font-family: var(--cond); font-size: 1.05em; letter-spacing: .03em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }

/* Top bar */
.topbar { background: var(--header); color: var(--on-header); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 60px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--on-header); text-decoration: none; font-family: var(--cond); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.brand svg { color: var(--amber); }
.topnav { display: flex; gap: 1.25rem; }
.topnav a { color: var(--header-2); text-decoration: none; padding: .35rem 0; border-bottom: 2px solid transparent; }
.topnav a[aria-current="page"], .topnav a:hover { color: var(--on-header); border-bottom-color: var(--amber); }

main { padding: 1.75rem 0 6rem; }
.foot { border-top: 1px solid var(--line); padding: 1.25rem 0 2rem; color: var(--ink-2); font-size: .9rem; }
.test-flag { color: var(--fee); }

/* Steps */
.steps ol { list-style: none; display: flex; gap: .25rem; margin: 1.25rem auto 0; padding: 0; }
.steps li { flex: 1; display: flex; align-items: center; gap: .5rem; padding: .55rem .7rem; background: var(--paper); color: var(--ink-2); font-size: .95rem; border-bottom: 3px solid var(--line); }
.steps .n { font-family: var(--cond); font-weight: 700; font-size: 1.1rem; }
.steps li.done { color: var(--ink); border-bottom-color: var(--fjord); }
.steps li.current { color: var(--ink); font-weight: 600; border-bottom-color: var(--amber); }
@media (max-width: 560px) { .steps li { font-size: 0; justify-content: center; } .steps .n { font-size: 1.1rem; } }

/* Buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 46px; padding: .6rem 1.3rem; border: 1px solid var(--fjord); border-radius: var(--r-sm); background: var(--paper); color: var(--fjord); font: 600 1rem var(--text); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--ice); }
.btn-go { background: var(--amber); border-color: var(--amber); color: var(--on-accent); }
.btn-go:hover { background: var(--amber-d); border-color: var(--amber-d); color: var(--on-accent); }
.btn-ghost { border-color: transparent; }
.btn-danger { background: var(--no); border-color: var(--no); color: #fff; }
.btn-danger:hover { background: #8f1e18; }
.btn-wide { width: 100%; margin-top: .75rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

.f { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.f > span { font-size: .9rem; font-weight: 600; }
.f small { font-weight: 400; color: var(--ink-2); }
input[type=text], input:not([type]), input[type=date], input[type=email], select {
  width: 100%; min-height: 46px; padding: .55rem .7rem; font: 1rem var(--text); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
}
input:focus, select:focus { border-color: var(--fjord); }
input[aria-invalid="true"] { border-color: var(--no); }
.iata-in { text-transform: uppercase; font-family: var(--cond); font-size: 1.15rem; letter-spacing: .06em; }
.ferr { color: var(--no); font-size: .88rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; margin: .75rem 0; }
.check input { margin-top: .3rem; width: 18px; height: 18px; flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
legend { font-weight: 600; padding: 0; margin-bottom: .5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 1rem; }
.grid.g4 { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; margin-top: 1.5rem; }

.panel { background: var(--paper); border-radius: var(--r-md); padding: 1.5rem; margin-bottom: 1.25rem; }
.panel.narrow { max-width: 640px; margin-inline: auto; }
.notice { padding: .8rem 1rem; border-radius: var(--r-sm); margin-bottom: 1rem; border-left: 4px solid; background: var(--paper); }
.n-error { border-color: var(--no); background: var(--no-bg); }
.n-success { border-color: var(--ok); background: var(--ok-bg); }
.n-info { border-color: var(--fjord); }
.cta-notice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.empty { background: var(--paper); padding: 1.5rem; border-radius: var(--r-md); color: var(--ink-2); }
.back { margin-top: 1.5rem; }
.table-scroll { overflow-x: auto; }

/* Search hero */
.hero { background: var(--header); color: var(--on-header); border-radius: var(--r-md); padding: 2rem 1.5rem 1.75rem; }
.hero h1 { font-family: var(--cond); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; letter-spacing: .01em; margin-bottom: 1rem; }
.search .f > span, .search legend { color: var(--header-2); }
.trip { display: flex; gap: 1.25rem; margin-bottom: 1rem; }
.trip label { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.search-grid { display: grid; grid-template-columns: 1fr auto 1fr 1fr 1fr; gap: 0 .75rem; align-items: start; }
.search .iata-in { font-size: 1.6rem; min-height: 56px; }
.swap { margin-top: 1.9rem; min-height: 56px; width: 44px; background: transparent; color: #fff; border: 1px solid #3b4d68; border-radius: var(--r-sm); font-size: 1.3rem; cursor: pointer; }
.swap:hover { border-color: var(--amber); }
.paxsel { display: flex; gap: .75rem; flex-wrap: wrap; align-items: flex-end; }
.paxsel legend { width: 100%; }
.f-num { width: 150px; }
.search .ferr { color: #ffb4a9; }
.btn-go { font-size: 1.05rem; }
.search > .btn-go { min-width: 220px; margin-top: .25rem; }
.aside-links { margin-top: 1.5rem; }
@media (max-width: 860px) {
  .search-grid { grid-template-columns: 1fr auto 1fr; }
  .search-grid > label:nth-of-type(3), .search-grid > label:nth-of-type(4) { grid-column: span 3; }
}
.hidden-return { display: none !important; }

/* Results */
.dir { margin-bottom: 2rem; }
.dir-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .75rem; }
.dir-head h2 { margin: 0; font-size: 1.35rem; }
.dir-tag { display: block; font-size: .9rem; font-weight: 600; color: var(--fjord); margin-bottom: .15rem; }
.iata-s { font-family: var(--cond); color: var(--ink-2); font-weight: 600; }
.daynav { display: flex; gap: 1rem; align-items: center; background: var(--paper); padding: .4rem .8rem; border-radius: var(--r-sm); }
.daynav a { font-size: .95rem; }

.flight { background: var(--paper); border-radius: var(--r-md); margin-bottom: .9rem; overflow: hidden; }
.board { display: grid; grid-template-columns: auto 1fr auto; gap: .25rem 1.25rem; align-items: center; padding: 1.1rem 1.25rem .6rem; }
.bt { display: flex; flex-direction: column; }
.bt:last-of-type { text-align: right; }
.time { color: var(--price); font-family: var(--cond); font-size: 2.3rem; font-weight: 600; line-height: 1; letter-spacing: .01em; }
.time sup { font-size: .9rem; color: var(--no); margin-left: .15rem; }
.iata { font-family: var(--cond); font-weight: 600; font-size: 1.05rem; color: var(--ink-2); letter-spacing: .06em; }
.bmid { display: grid; text-align: center; gap: .15rem; }
.dur { font-size: .9rem; color: var(--ink-2); }
.path { height: 2px; background: var(--ink); position: relative; margin: .2rem 0; }
.path::after { content: ""; position: absolute; right: -2px; top: -4px; border: 5px solid transparent; border-left: 8px solid var(--ink); border-right: 0; }
.path.has-stop::before { content: ""; position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; margin-left: -6px; background: var(--paper); border: 2px solid var(--ink); border-radius: 50%; }
.stops { font-size: .88rem; }
.bfno { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.fno { font-family: var(--cond); font-weight: 600; letter-spacing: .04em; background: var(--ice); padding: .05rem .45rem; border-radius: 3px; }
.tz { font-size: .8rem; color: var(--ink-2); margin-left: auto; }

.cabins { display: flex; flex-wrap: wrap; border-top: 1px solid var(--line); }
.cabin { flex: 1 1 200px; border-right: 1px solid var(--line); }
.cabin:last-child { border-right: 0; }
.cabin summary { list-style: none; cursor: pointer; padding: .8rem 1.25rem; display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.cabin summary::-webkit-details-marker { display: none; }
.cabin summary::after { content: "+"; font-weight: 600; color: var(--fjord); }
.cabin[open] summary { background: var(--header); color: var(--on-header); }
.cabin[open] summary::after { content: "\2212"; color: var(--amber); }
.cab-name { font-weight: 600; }
.cab-from b { color: var(--price); font-family: var(--cond); font-size: 1.35rem; }
.soldout { color: var(--ink-2); }
.flight:has(.cabin[open]) .cabins { flex-direction: column; }
.flight:has(.cabin[open]) .cabin:not([open]) { border-right: 0; border-top: 1px solid var(--line); }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; padding: 1rem 1.25rem 1.25rem; background: var(--ice); }
.product label { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-md); padding: 1rem; cursor: pointer; }
.product label:hover { border-color: var(--fjord); }
.product input:checked + label { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.product input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.product.na label { cursor: not-allowed; opacity: .6; }
.p-name { font-weight: 700; font-size: 1.05rem; }
.p-price { color: var(--price); font-family: var(--cond); font-size: 1.9rem; font-weight: 600; line-height: 1.1; margin-top: .2rem; }
.p-per { font-size: .82rem; color: var(--ink-2); margin-bottom: .6rem; }
.p-cta { margin-top: auto; padding-top: .6rem; font-weight: 600; color: var(--fjord); }
.product input:checked + label .p-cta::before { content: "Selected"; }
.product input:checked + label .p-cta { font-size: 0; }
.product input:checked + label .p-cta::before { font-size: 1rem; color: var(--ink); }

.rules { list-style: none; margin: 0; padding: 0; font-size: .88rem; }
.rules li { display: flex; justify-content: space-between; gap: .75rem; padding: .28rem 0; border-top: 1px dashed var(--line); }
.rules li span { color: var(--ink-2); }
.r-free { color: var(--ok); }
.r-fee { color: var(--fee); }
.r-no { color: var(--no); }
.r-unknown { color: var(--ink-2); }
.rules li.r-unknown { display: block; }

.paybar { position: sticky; bottom: 0; background: var(--header); color: var(--on-header); border-radius: var(--r-md) var(--r-md) 0 0; margin-top: 1rem; z-index: 5; }
.paybar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 1.25rem; flex-wrap: wrap; }
.paybar-sum { display: flex; flex-direction: column; }
.paybar-sum strong { font-family: var(--cond); font-size: 1.7rem; font-weight: 600; }
.paybar-sum span { font-size: .9rem; color: var(--header-2); }

/* Selection summary */
.selsum { background: var(--paper); border-radius: var(--r-md); padding: .5rem 1.25rem; margin-bottom: 1.25rem; }
.selsum-row { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding: .55rem 0; border-bottom: 1px solid var(--ice); align-items: baseline; }
.selsum-row:last-child { border-bottom: 0; }
.selsum .dir { font-weight: 600; color: var(--fjord); min-width: 5.5rem; margin: 0; }
.selsum .route b { font-family: var(--cond); letter-spacing: .05em; }
.selsum .prod { color: var(--ink-2); margin-left: auto; }

/* Passengers */
.pax { background: var(--paper); border-radius: var(--r-md); padding: 1.25rem 1.5rem .5rem; margin-bottom: 1rem; }
.pax legend { display: flex; align-items: center; gap: .6rem; font-size: 1.15rem; float: left; width: 100%; margin-bottom: 1rem; }
.pax legend + * { clear: both; }
.pax-n { font-family: var(--cond); font-weight: 700; width: 2rem; height: 2rem; display: grid; place-items: center; background: var(--header); color: var(--on-header); border-radius: 50%; font-size: 1.05rem; }
.doc, .extras { border-top: 1px solid var(--line); padding: .75rem 0; }
.doc summary, .extras summary { cursor: pointer; font-weight: 600; color: var(--fjord); }
.doc[open] summary, .extras[open] summary { margin-bottom: .9rem; }
.ssr-table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.ssr-table th, .ssr-table td { padding: .45rem .5rem; border-bottom: 1px solid var(--ice); text-align: left; }
.ssr-table td:nth-child(n+3), .ssr-table thead th:nth-child(n+3) { text-align: center; }
.ssr-table thead th { font-family: var(--cond); font-size: 1rem; }
.ssr-table .grp th { background: var(--ice); font-size: .85rem; color: var(--ink-2); }
.ssr-table input { width: 20px; height: 20px; }

/* Hold bar */
.hold-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; background: var(--paper); border-left: 4px solid var(--amber); padding: .7rem 1rem; border-radius: var(--r-sm); margin-bottom: 1.25rem; }
.pnr-inline { font-family: var(--cond); font-size: 1.25rem; letter-spacing: .12em; }

/* Seats */
.seg-seats { background: var(--paper); border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.seg-seats h2 small { font-weight: 400; color: var(--ink-2); font-size: .95rem; }
.fee-note { color: var(--fee); background: var(--fee-bg); padding: .4rem .7rem; border-radius: var(--r-sm); display: inline-block; font-size: .93rem; }
.fee-note.free { color: var(--ok); background: var(--ok-bg); }
.seatpick { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 1.5rem; align-items: start; margin-top: 1rem; }
@media (max-width: 760px) { .seatpick { grid-template-columns: 1fr; } }
.seat-travellers { display: grid; gap: .6rem; }
.trav { display: grid; gap: .35rem; padding: .7rem; border: 2px solid var(--line); border-radius: var(--r-md); }
.trav:has(input[data-active]:checked) { border-color: var(--amber); }
.trav-name { display: flex; align-items: center; gap: .55rem; font-weight: 600; cursor: pointer; }
.trav.locked .trav-name { cursor: default; }
.trav-note { font-size: .85rem; color: var(--ink-2); }
.trav-chosen { font-size: .85rem; font-weight: 600; color: var(--ok); min-height: 1.1em; }
.ini { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--header); color: var(--on-header); font: 600 .85rem var(--cond); flex: none; }
.plane-scroll { overflow-x: auto; }
.plane { display: inline-flex; flex-direction: column; gap: 5px; padding: 1.25rem 1.25rem 1.5rem; background: var(--ice); border-radius: 90px 90px 16px 16px; min-width: 100%; align-items: center; }
.nose { width: 60%; height: 18px; border-bottom: 2px solid var(--line); margin-bottom: .5rem; }
.srow { display: flex; gap: 5px; align-items: center; }
.rn, .col { width: 34px; text-align: center; font: 600 .85rem var(--cond); color: var(--ink-2); }
.aisle { width: 18px; }
.seat { width: 34px; height: 36px; border-radius: 7px 7px 4px 4px; border: 1px solid var(--fjord); background: var(--paper); color: var(--fjord); font: 600 .8rem var(--cond); cursor: pointer; padding: 0; }
.seat.free:hover { background: var(--fjord); color: #fff; }
.seat.taken { background: #d7dee6; border-color: #d7dee6; color: transparent; cursor: not-allowed; }
.seat.mine { background: var(--header); border-color: var(--header); color: var(--on-header); }
.seat.picked { background: var(--amber); border-color: var(--amber-d); color: var(--on-accent); }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; padding: 0; margin: .75rem 0 0; font-size: .88rem; }
.legend li { display: flex; align-items: center; gap: .4rem; }
.legend .seat { width: 18px; height: 18px; cursor: default; }
.plain { padding-left: 1.2rem; }

/* Payment */
.pay-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.25rem; align-items: start; }
@media (max-width: 860px) { .pay-layout { grid-template-columns: 1fr; } }
.card-grid { grid-template-columns: 1fr 1fr; }
.f-wide { grid-column: 1 / -1; }
.testcards { font-size: .9rem; background: var(--fee-bg); padding: .6rem .8rem; border-radius: var(--r-sm); margin-bottom: .75rem; }
.testcards summary { cursor: pointer; font-weight: 600; }
.testcards ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.totals { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.totals th { text-align: left; font-weight: 400; }
.totals th, .totals td { padding: .45rem 0; border-bottom: 1px solid var(--ice); }
.totals td { text-align: right; white-space: nowrap; }
.totals .grand th, .totals .grand td { color: var(--price); font-weight: 700; font-size: 1.15rem; border-bottom: 0; }
.totals .grand td { font-family: var(--cond); font-size: 1.6rem; }
.totals .sub th { font-size: .85rem; color: var(--ink-2); }
.breakdown { font-size: .92rem; margin-top: .5rem; }
.breakdown summary { cursor: pointer; color: var(--fjord); }
.breakdown table { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.breakdown th { text-align: left; font-weight: 400; }
.breakdown td { text-align: right; }
.breakdown th, .breakdown td { padding: .25rem 0; border-bottom: 1px dashed var(--line); }
.pax-list { list-style: none; padding: 0; }
.pax-list li { padding: .5rem 0; border-bottom: 1px solid var(--ice); }
.methods { display: flex; gap: 1.5rem; }
.methods legend { width: 100%; }
.methods label { display: flex; gap: .4rem; align-items: center; }

/* Itinerary list */
.itin { list-style: none; padding: 0; margin: 0 0 1rem; }
.itin-seg { display: grid; grid-template-columns: 5.5rem 1fr auto; gap: .5rem 1rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--ice); }
.itin-when { display: flex; flex-direction: column; font-size: .9rem; }
.itin-route { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.itin-route .iata { font-size: 1.4rem; color: var(--ink); }
.itin-route .t { font-size: .88rem; color: var(--ink-2); }
.itin-route .city { font-size: .88rem; color: var(--ink-2); }
.seg-when { margin: .2rem 0 .6rem; }
.itin-route .line { flex: 0 0 2rem; height: 2px; background: var(--line); align-self: center; }
.itin-meta { font-size: .9rem; text-align: right; }
.itin-act { grid-column: 2 / -1; display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 600px) { .itin-seg { grid-template-columns: 1fr; } .itin-meta { text-align: left; } .itin-act { grid-column: 1; } }

/* Confirmation / stub */
.confirm { display: grid; grid-template-columns: minmax(220px, 260px) 1fr; background: var(--paper); border-radius: var(--r-md); overflow: hidden; }
@media (max-width: 760px) { .confirm { grid-template-columns: 1fr; } }
.stub { background: var(--header); color: var(--on-header); padding: 1.5rem; position: relative; }
.confirm .stub::after { content: ""; position: absolute; top: 0; bottom: 0; right: -1px; width: 12px; background: radial-gradient(circle at 12px 10px, var(--paper) 5px, transparent 5.5px) 0 0 / 12px 20px repeat-y; }
@media (max-width: 760px) { .confirm .stub::after { display: none; } }
.stub-lbl { color: var(--header-2); font-size: .9rem; margin: 0; }
.stub-pnr { font-family: var(--cond); font-size: clamp(1.9rem, 5.5vw, 2.9rem); font-weight: 700; letter-spacing: .1em;
  line-height: 1.1; margin: .1rem 0 .75rem; color: var(--amber); overflow-wrap: anywhere; }
.stub-status { display: inline-block; padding: .2rem .6rem; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; margin: 0; }
.st-ok { background: var(--ok-bg); color: var(--ok); }
.st-hold { background: var(--fee-bg); color: var(--fee); }
.st-off { background: var(--no-bg); color: var(--no); }
.st-neutral { background: var(--ice); color: var(--ink); }
.confirm-body { padding: 1.5rem 1.75rem; min-width: 0; }
.confirm .data td, .confirm .data th { word-break: break-word; }
.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
.data th, .data td { text-align: left; padding: .6rem .5rem; border-bottom: 1px solid var(--ice); vertical-align: top; }
.data thead th { font-size: .85rem; color: var(--ink-2); font-weight: 600; }
.total-line { font-size: 1.1rem; margin-top: 1rem; }
.total-line strong { color: var(--price); font-family: var(--cond); font-size: 1.6rem; margin-left: .4rem; }

/* Manage */
.mmb-top { display: grid; grid-template-columns: 240px 1fr; gap: 1.5rem; align-items: center; margin-bottom: 1.25rem; }
@media (max-width: 640px) { .mmb-top { grid-template-columns: 1fr; } }
.stub-sm { border-radius: var(--r-md); }
.stub-sm .stub-pnr { font-size: clamp(1.7rem, 5vw, 2.4rem); }
.mmb-head { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; align-items: flex-end; margin-bottom: 1rem; }
.mmb-head h1 { margin: 0; font-size: 1.55rem; }
.pnr-lbl { margin: 0; font-size: .8rem; color: var(--ink-2); }
.pnr { margin: 0; font-family: var(--cond); font-size: 1.7rem; font-weight: 700; letter-spacing: .12em; color: var(--fjord); line-height: 1; }
.pnr-in { font-size: 1.5rem; letter-spacing: .14em; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .3rem 0 0; font-size: .8rem; }
.chips li { padding: .1rem .5rem; border-radius: 3px; background: var(--ice); }
.chips li span { color: var(--ink-2); }
.chips .r-free { background: var(--ok-bg); }
.chips .r-fee { background: var(--fee-bg); }
.chips .r-no { background: var(--no-bg); }
.fare-line { margin-bottom: .5rem; }
.fare-name { font-weight: 600; }
.actions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.act { display: flex; flex-direction: column; gap: .2rem; background: var(--paper); padding: 1.1rem 1.25rem; border-radius: var(--r-md); text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.act:hover { border-color: var(--fjord); color: var(--ink); }
.act span { color: var(--ink-2); font-size: .92rem; }
.act-danger strong { color: var(--no); }
.svc { margin-top: .5rem; }
.svc-grp { font-weight: 600; color: var(--ink-2); font-size: .88rem; margin: .8rem 0 .3rem; }
.svc-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .4rem; cursor: pointer; }
.svc-opt:has(input:checked) { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.svc-opt span { flex: 1; }
.svc-opt b { font-weight: 600; font-size: .92rem; }
.docrow { border-top: 1px solid var(--line); padding: 1rem 0; }
.docrow h2 { font-size: 1.1rem; }
.docrow summary { cursor: pointer; color: var(--fjord); font-weight: 600; margin-bottom: .75rem; }
.doc-have { color: var(--ok); }
.doc-missing { color: var(--fee); }
.refund-box { padding: 1rem 1.2rem; border-radius: var(--r-md); margin: 1rem 0; }
.refund-box.r-free { background: var(--ok-bg); color: var(--ink); }
.refund-box.r-no { background: var(--no-bg); color: var(--ink); }
.inline-form { display: flex; gap: .75rem; align-items: flex-end; flex-wrap: wrap; }
.inline-form .f { margin: 0; min-width: 200px; }
.alts { margin-top: 1.25rem; }
.alt { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: .5rem; cursor: pointer; }
.alt:has(input:checked) { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.alt.na { opacity: .55; cursor: not-allowed; }
.alt-legs { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.alt-price { text-align: right; font-size: .9rem; }
.alt-price b { font-family: var(--cond); font-size: 1.25rem; }

/* ---- Sort and filter bar ---- */
.viewbar { background: var(--paper); border-radius: var(--r-md); padding: .75rem 1rem; margin-bottom: 1.25rem; }
.viewbar fieldset { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; margin: 0; }
.f-inline { margin: 0; min-width: 170px; flex: 1 1 170px; }
.btn-small { min-height: 42px; padding: .4rem 1rem; font-size: .95rem; }
.viewbar [data-viewbar-auto] { display: none; }
.filter-note { font-size: .92rem; color: var(--ink-2); margin: -.25rem 0 .75rem; }

/* ---- Best-offer badges ---- */
.badges { grid-column: 1 / -1; display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .35rem; }
.badge { font-size: .78rem; font-weight: 600; letter-spacing: .01em; padding: .1rem .5rem; border-radius: 3px; background: var(--ok-bg); color: var(--ok); }

/* ---- Seat attributes ---- */
.seat.legroom { box-shadow: inset 0 -3px 0 var(--fjord); }
.seat.taken.legroom { box-shadow: none; }

/* ---- Contact block and small link-style buttons ---- */
.contact .pax-n { background: var(--fjord); }
.linkish { background: none; border: 0; padding: 0 0 .6rem; color: var(--fjord); font: 600 .92rem var(--text); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkish:hover { color: var(--fjord-d); }

/* ---- Dark theme: follows the device setting ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eef5;
    --ink-2: #a5b4c6;
    --fjord: #7cb2e0;
    --fjord-d: #a4cbef;
    --ice: #0f1722;
    --paper: #17212e;
    --amber: #f2a922;
    --amber-d: #ffc24d;
    --line: #2c3b4d;
    --ok: #6cc394;
    --ok-bg: #12301f;
    --no: #ff9a90;
    --no-bg: #3a1b18;
    --fee: #f0c163;
    --fee-bg: #33260c;
  }
  body { background: var(--ice); color: var(--ink); }
  .topbar, .hero, .paybar, .stub { background: #0b121b; }
  .cabin[open] summary { background: #0b121b; color: #fff; }
  input, select { background: #101a26; color: var(--ink); border-color: var(--line); }
  .btn { background: transparent; }
  .btn-go { color: #17212e; }
  .seat.taken { background: #2a3745; border-color: #2a3745; }
  .plane { background: #101a26; }
  .ini, .pax-n { background: var(--fjord); color: #0b121b; }
  .confirm .stub::after { background: radial-gradient(circle at 12px 10px, var(--paper) 5px, transparent 5.5px) 0 0 / 12px 20px repeat-y; }
  .swap { color: var(--ink); }
  .search .f > span, .search legend { color: var(--ink-2); }
}

/* ---- CMS: offers, USPs, content pages ---- */
.hero-sub { color: var(--header-2); max-width: 60ch; margin-top: -.5rem; }
.hero.hero-image { background-color: var(--ink); }
.promos { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .9rem; margin: 1.5rem 0; }
.promo { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
a.promo:hover { border-color: var(--fjord); color: var(--ink); }
.promo-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ice); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; }
.promo-body { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.15rem; flex: 1; }
.promo-badge { align-self: flex-start; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--amber); color: var(--on-accent); padding: .1rem .5rem; border-radius: 3px; }
.promo-title { font-size: 1.15rem; font-weight: 700; line-height: 1.25; }
.promo-sub { color: var(--ink-2); font-size: .95rem; }
.promo-price { color: var(--price); font-family: var(--cond); font-size: 1.7rem; font-weight: 600; }
.promo-cta { margin-top: auto; padding-top: .5rem; font-weight: 600; color: var(--fjord); }
.promos-results { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin: 0 0 1.25rem; }
.promos-results .promo-img { display: none; }

.usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .9rem; margin: 1.5rem 0; }
.usp { background: var(--paper); border-radius: var(--r-md); padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .25rem; }
.usp strong { font-size: 1.02rem; }
.usp span { color: var(--ink-2); font-size: .94rem; }
.home-copy { max-width: 70ch; }

.cms-page { background: var(--paper); border-radius: var(--r-md); padding: 2rem 2.25rem; max-width: 820px; margin-inline: auto; }
@media (max-width: 600px) { .cms-page { padding: 1.5rem 1.25rem; } }
.cms-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.cms-block { margin-top: 1.75rem; }
.cms-block:first-of-type { margin-top: 1rem; }
.cms-block h2 { font-size: 1.3rem; }
.cms-block img { border-radius: var(--r-sm); }
.cms-block figure { margin: 0; }
.cms-block figcaption { color: var(--ink-2); font-size: .9rem; margin-top: .4rem; }
.cms-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.cms-card { display: block; background: var(--ice); border-radius: var(--r-sm); padding: 1rem 1.1rem; text-decoration: none; color: inherit; }
a.cms-card:hover { outline: 2px solid var(--fjord); }
.cms-card h3 { margin: 0 0 .3rem; font-size: 1.02rem; }
.cms-card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.cms-faq { border-bottom: 1px solid var(--line); padding: .6rem 0; }
.cms-faq summary { cursor: pointer; font-weight: 600; }
.cms-faq[open] summary { margin-bottom: .5rem; }
.cms-cta { background: var(--ice); border-radius: var(--r-md); padding: 1.25rem 1.4rem; }
.next-steps { margin: 0 0 1.25rem; padding-left: 1.1rem; color: var(--ink-2); }
.next-steps li { margin-bottom: .25rem; }
.footnav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-bottom: .5rem; }

/* ---- Market chooser and language switcher ---- */
.welcome { background: var(--paper); border-radius: var(--r-md); padding: 3rem 2rem; text-align: center; }
.welcome h1 { font-family: var(--cond); font-size: clamp(2rem, 5vw, 3.2rem); }
.market-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .5rem; padding: 0; margin: 2rem auto 0; max-width: 860px; text-align: left; }
.market { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); }
.market:hover { background: var(--ice); color: var(--ink); }
.market-flag { font-size: 1.7rem; line-height: 1; }
.market-name { display: flex; flex-direction: column; font-weight: 600; }
.market-name small { font-weight: 400; color: var(--ink-2); }
.marketpick { position: relative; }
.marketpick summary { list-style: none; cursor: pointer; color: var(--header-2); padding: .35rem 0; }
.marketpick summary::-webkit-details-marker { display: none; }
.marketpick[open] summary { color: var(--on-header); }
.marketpick-panel { position: absolute; right: 0; top: 2.4rem; z-index: 20; background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: 1rem 1.1rem; min-width: 240px; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.marketpick-panel ul { list-style: none; margin: .5rem 0; padding: 0; }
.marketpick-panel a { display: block; padding: .3rem 0; text-decoration: none; }
.marketpick-panel .langs { display: flex; gap: .75rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .6rem; margin: 0; font-size: .9rem; }
.marketpick-panel .langs a[aria-current] { font-weight: 700; }

/* ---- Hero search panel ---- */
.hero { position: relative; }
.hero-copy { max-width: 46ch; }
.searchpanel { background: var(--paper); color: var(--ink); border-radius: var(--r-md); padding: 1.25rem 1.4rem 1.4rem; max-width: 560px; margin-top: 1.25rem; }
.hero .searchpanel .f > span { color: var(--ink); }
.searchpanel .trip { display: flex; gap: 1.25rem; margin-bottom: .9rem; }
.searchpanel .trip label { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.sp-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0 .6rem; }
.sp-air { grid-column: span 1; }
.sp-date { grid-column: span 3; }
@media (min-width: 560px) { .sp-date { grid-column: span 1; } .sp-date:nth-of-type(4) { grid-column: 3 / span 1; } }
.searchpanel .swap { align-self: center; margin-top: 1.1rem; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 1.1rem; }
.searchpanel .swap:hover { border-color: var(--fjord); }
.searchpanel .iata-in { text-transform: uppercase; }
.airport-chosen { font-size: .85rem; color: var(--ink-2); min-height: 1.1em; }
.paxbox { border: 1px solid var(--line); border-radius: var(--r-sm); padding: .55rem .7rem; margin: .5rem 0 1rem; }
.paxbox summary { cursor: pointer; }
.paxbox .paxsel { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .75rem; }
.btn-search { width: 100%; font-size: 1.1rem; }

.airportbox, .calbox { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 2px); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: 0 16px 36px rgba(0,0,0,.18); max-height: 340px; overflow: auto; }
.f { position: relative; }
.ab-group { margin: 0; padding: .4rem .8rem; background: var(--ice); font-size: .8rem; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.ab-item { display: flex; justify-content: space-between; gap: 1rem; width: 100%; padding: .55rem .8rem; border: 0; background: none; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.ab-item:hover, .ab-item:focus { background: var(--ice); }
.ab-item small { color: var(--ink-2); }
.ab-empty { padding: .8rem; color: var(--ink-2); margin: 0; }

.calbox { padding: .6rem; width: 320px; right: auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: .2rem .3rem .5rem; }
.cal-head button { border: 1px solid var(--line); background: var(--paper); color: var(--ink); width: 30px; height: 30px; border-radius: var(--r-sm); cursor: pointer; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd span { text-align: center; font-size: .75rem; color: var(--ink-2); padding: .2rem 0; }
.cal-day { border: 1px solid transparent; background: var(--ice); color: var(--ink); border-radius: var(--r-sm); padding: .45rem 0; font: 600 .9rem var(--text); cursor: pointer; }
.cal-day.yes { background: var(--ok-bg); color: var(--ok); }
.cal-day.unknown { background: var(--ice); color: var(--ink-2); }
.cal-day.k-connecting { background: var(--fee-bg); color: var(--fee); }
.cal-loading { color: var(--ink-2); font-style: italic; }
.cal-day.no, .cal-day.past, .cal-day:disabled { background: transparent; color: var(--line); cursor: not-allowed; text-decoration: line-through; }
.cal-day.chosen { background: var(--amber); color: var(--on-accent); border-color: var(--amber-d); }
.cal-legend { display: flex; align-items: center; gap: .35rem; font-size: .78rem; color: var(--ink-2); margin: .5rem 0 0; }
.cal-legend .k { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.cal-legend .k.yes { background: var(--ok-bg); border: 1px solid var(--ok); }
.cal-legend .k.no { background: var(--ice); }
.cal-legend .k.conn { background: var(--fee-bg); border: 1px solid var(--fee); }

/* ---- Loader ---- */
.loader { position: fixed; inset: 0; background: rgba(8, 14, 22, .72); display: grid; place-items: center; z-index: 100; }
/* A class with a display value beats the browser's [hidden] rule, so say it explicitly. */
.loader[hidden] { display: none; }
.loader-in { text-align: center; color: #fff; }
.loader-plane { color: var(--amber); animation: fly 1.6s ease-in-out infinite; }
@keyframes fly { 0% { transform: translateX(-14px); opacity: .5; } 50% { transform: translateX(14px); opacity: 1; } 100% { transform: translateX(-14px); opacity: .5; } }

/* ---- Home: ad slot and routes ---- */
.adslot { background: var(--paper); border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin: 1.5rem 0; border: 1px dashed var(--line); }
.routes { margin: 2rem 0; }
.route-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .6rem; padding: 0; }
.route-list a { display: flex; flex-direction: column; gap: .15rem; background: var(--paper); border-radius: var(--r-md); padding: .85rem 1rem; text-decoration: none; color: var(--ink); border: 2px solid transparent; }
.route-list a:hover { border-color: var(--fjord); }
.route-pair { font-family: var(--cond); font-size: 1.25rem; letter-spacing: .04em; }
.route-city { font-size: .95rem; }
.route-meta { font-size: .82rem; color: var(--ink-2); }

/* ---- Results: trip header, leg tabs, day strip, flight rows ---- */
.triphead { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; background: var(--paper); border-radius: var(--r-md); padding: .9rem 1.25rem; margin-bottom: 1rem; }
.triphead-route { display: flex; align-items: center; gap: .6rem; font-family: var(--cond); font-size: 1.6rem; }
.triphead-route .dash { color: var(--ink-2); letter-spacing: .1em; font-size: .9rem; }
.triphead-meta { display: flex; gap: 1.5rem; margin: 0; flex-wrap: wrap; }
.triphead-meta dt { font-size: .8rem; color: var(--ink-2); }
.triphead-meta dd { margin: 0; font-weight: 600; }
.triphead .btn { margin-left: auto; }

.legtabs { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1rem; }
.legtabs a { background: var(--paper); border-radius: var(--r-md); padding: .8rem 1rem; text-decoration: none; color: var(--ink); border-bottom: 3px solid var(--line); display: flex; flex-direction: column; }
.legtabs a[aria-current] { border-bottom-color: var(--amber); font-weight: 600; }
.legtabs small { color: var(--ink-2); font-weight: 400; }
.legtabs a.disabled { opacity: .6; pointer-events: none; }
.leg-title { font-size: clamp(1.5rem, 3.5vw, 2.2rem); text-align: center; margin: 1.25rem 0 .75rem; }

.daystrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(96px, 1fr); gap: 2px; overflow-x: auto; background: var(--paper); border-radius: var(--r-md); padding: 4px; margin-bottom: 1rem; }
.daystrip a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .6rem .3rem; text-decoration: none; color: var(--ink); border-radius: var(--r-sm); }
.daystrip a:hover { background: var(--ice); }
.daystrip a.current { background: var(--header); color: var(--on-header); }
.ds-price { color: var(--price); font-family: var(--cond); font-weight: 600; font-size: 1.05rem; }
.ds-day { font-size: .8rem; color: inherit; opacity: .8; }

.flightrow { background: var(--paper); border-radius: var(--r-md); margin-bottom: .75rem; overflow: hidden; }
.flightrow summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto auto; gap: .5rem 1.25rem; align-items: center; padding: 1rem 1.25rem; }
.flightrow summary::-webkit-details-marker { display: none; }
.flightrow summary::after { content: "⌄"; font-size: 1.4rem; line-height: 1; color: var(--fjord); }
.flightrow[open] summary::after { content: "⌃"; }
.fr-time { display: flex; flex-direction: column; }
.fr-time b { font-family: var(--cond); font-size: 1.8rem; font-weight: 600; line-height: 1; }
.fr-time sup { font-size: .75rem; color: var(--no); }
.fr-time small { font-family: var(--cond); color: var(--ink-2); letter-spacing: .06em; }
.fr-path { display: grid; text-align: center; gap: .1rem; font-size: .85rem; color: var(--ink-2); }
.fr-price { text-align: right; display: flex; flex-direction: column; }
.fr-price small { color: var(--ink-2); font-size: .8rem; }
.fr-price b { color: var(--price); font-family: var(--cond); font-size: 1.5rem; }
.fr-flags { grid-column: 1 / -1; display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.fareblock { background: var(--ice); padding: 1.25rem; }
.fareblock h2 { text-align: center; font-size: 1.2rem; }
.farecards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .75rem; }
.farecard label { display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 2px solid var(--line); border-radius: var(--r-md); padding: 1rem; cursor: pointer; }
.farecard label:hover { border-color: var(--fjord); }
.farecard input:checked + label { border-color: var(--amber); box-shadow: inset 0 0 0 1px var(--amber); }
.farecard input:focus-visible + label { outline: 3px solid var(--amber); outline-offset: 2px; }
.farecard.na label { opacity: .55; cursor: not-allowed; }
.fc-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .6rem; }
.fc-name { font-weight: 700; font-size: 1.05rem; }
.fc-name small { display: block; font-weight: 400; color: var(--ink-2); font-size: .8rem; }
.fc-price { color: var(--price); font-family: var(--cond); font-size: 1.5rem; font-weight: 600; white-space: nowrap; text-align: right; }
.fc-price small { display: block; font-family: var(--text); font-size: .72rem; font-weight: 400; color: var(--ink-2); white-space: normal; }
.fr-price small:last-child { font-size: .72rem; }
.fc-list { list-style: none; margin: 0; padding: 0; font-size: .88rem; display: grid; gap: .25rem; }
.fc-list li::before { content: "✓ "; }
.fc-list li.r-no::before { content: "✕ "; }
.fc-list li.r-fee::before { content: "€ "; }
.fc-list li.r-unknown::before { content: "· "; }
.fc-pick { margin-top: auto; padding-top: .7rem; font-weight: 600; color: var(--fjord); }
.farecard input:checked + label .fc-pick { color: var(--ink); }
.fareconfirm { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }
.fareconfirm p { margin: 0; }

/* ---- Cart ---- */
.cart { background: var(--paper); border-radius: var(--r-md); padding: 1.5rem 1.75rem; }
.cartleg { border-bottom: 1px solid var(--ice); padding: 1rem 0; }
.cartleg header { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.cartleg h2 { font-size: 1.15rem; margin: 0; }
.cartleg-body { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
@media (max-width: 640px) { .cartleg-body { grid-template-columns: 1fr; } }
.board-compact { padding: .5rem 0; }
.board-compact .time { font-size: 1.6rem; }
.cartleg-fare { display: flex; flex-direction: column; text-align: right; gap: .1rem; }
.cartleg-fare .fare-price { font-family: var(--cond); font-size: 1.4rem; }
.cartleg-segs { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .88rem; color: var(--ink-2); display: grid; gap: .2rem; }
.cart-total { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; padding-top: 1.25rem; }
.ct-label { margin: 0; font-weight: 600; }
.ct-label small { display: block; font-weight: 400; color: var(--ink-2); }
.ct-amount { color: var(--price); font-family: var(--cond); font-size: 2.4rem; font-weight: 700; margin: 0; }
.cart-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---- Extras ---- */
.extras-seg { background: var(--paper); border-radius: var(--r-md); padding: 1.25rem 1.5rem; margin-bottom: 1rem; }
.extras-seg header h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.extras-pax { border-top: 1px solid var(--ice); padding-top: .9rem; margin-top: .9rem; }
.extras-pax h3 { font-size: 1rem; margin-bottom: .6rem; }
.extras-pax h3 small { font-weight: 400; color: var(--ink-2); }
.svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .6rem; }
.svc-card { display: flex; gap: .6rem; align-items: flex-start; border: 2px solid var(--line); border-radius: var(--r-md); padding: .8rem .9rem; cursor: pointer; }
.svc-card:has(input:checked) { border-color: var(--amber); }
.svc-card.have { opacity: .8; cursor: default; }
.svc-card input { margin-top: .2rem; width: 18px; height: 18px; }
.svc-body { display: flex; flex-direction: column; gap: .1rem; }
.svc-name { font-weight: 600; }
.svc-group { font-size: .78rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.svc-price { color: var(--price); font-family: var(--cond); font-size: 1.2rem; }
.svc-have { font-size: .8rem; color: var(--ok); font-weight: 600; }


/* ---- Nearest airports, calendar prices, carousel, quantities, trust line ---- */
.ab-near { display: block; width: 100%; text-align: left; padding: .6rem .8rem; border: 0; border-bottom: 1px solid var(--line);
  background: var(--paper); color: var(--fjord); font: 600 .95rem var(--text); cursor: pointer; }
.ab-near:hover { background: var(--ice); }
.cal-day { display: flex; flex-direction: column; align-items: center; gap: .1rem; }
.cal-day small { font-family: var(--cond); font-size: .72rem; font-weight: 600; opacity: .85; }
.cal-day.has-price { padding: .3rem 0; }
.sp-direct { margin: .25rem 0 .5rem; font-size: .95rem; }
.trustline { margin: .6rem 0 0; font-size: .92rem; color: var(--ok); text-align: center; }

.herocarousel { position: relative; background: var(--paper); border-radius: var(--r-md); overflow: hidden; margin-top: 1.25rem; max-width: 560px; }
.hc-slide { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
@media (max-width: 560px) { .hc-slide { grid-template-columns: 1fr; } }
.hc-slide img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.hc-copy { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem; align-items: flex-start; }
.hc-copy strong { font-size: 1.15rem; }
.hc-copy span { color: var(--ink-2); font-size: .94rem; }
.hc-price { color: var(--price); font-family: var(--cond); font-size: 1.6rem; color: var(--ink) !important; }
.hc-nav { display: flex; align-items: center; justify-content: center; gap: .75rem; padding: .5rem; border-top: 1px solid var(--ice); }
.hc-nav button { width: 32px; height: 32px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); border-radius: 50%; cursor: pointer; }
.hc-dots { display: flex; gap: .3rem; }
.hc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: inline-block; }
.hc-dot.on { background: var(--amber); }

.svc-card { justify-content: space-between; align-items: center; }
.qty { display: inline-flex; align-items: center; gap: .3rem; }
.qty input { width: 48px; text-align: center; padding: .35rem .2rem; border: 1px solid var(--line); border-radius: var(--r-sm); font: 600 1rem var(--text); background: var(--paper); color: var(--ink); }
.qty-btn { width: 32px; height: 32px; border: 1px solid var(--fjord); background: var(--paper); color: var(--fjord); border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.qty-btn:hover { background: var(--fjord); color: #fff; }
.route-price { color: var(--price); display: block; font-family: var(--cond); font-size: 1.1rem; color: var(--ink); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media print { .topbar, .steps, .foot, .actions, .btn { display: none !important; } body { background: #fff; } }
