/* ════════════════════════════════════════════════════════════════════
   MUNDERO VLUCHT OPS — "night ops vluchtdeck"
   Vertrekbord-typografie (Saira Condensed) + monospace vluchtdata
   (IBM Plex Mono) op een diep nachtblauw, kaart als gloeiend hart.
   ════════════════════════════════════════════════════════════════════ */

:root {
  /* Mundero-huisstijl (mundero.be/styleguide): teal #03b5aa, licht/wit, #363636 tekst. */
  --bg: #f5f8f8;
  --bg-raise: #ffffff;
  --bg-card: #ffffff;
  --line: #e6eaea;
  --line-bright: #d3dbdb;
  --ink: #363636;
  --ink-dim: #8a9696;
  --radar: #03b5aa;        /* Mundero-teal: acties & accenten */
  --teal-tint: #e5f7f6;
  --amber: #c98a00;        /* waarschuwingen */
  --ok: #1f9d74;
  --bad: #d64545;
  --gold: #b9821f;         /* de winnaar */
  --amadeus: #2f7fd6;
  --google: #1f9d74;
  --ryanair: #c08f00;
  --digitrips: #8b5cf6;
  --kayak: #e07a2a;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 1px 3px rgba(0,0,0,.06);
  --shadow-md: 0 4px 14px rgba(0,0,0,.07);
  --font-sign: "neue-kabel", "Source Sans Pro", Arial, sans-serif;
  --font-body: "Source Sans Pro", system-ui, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* [hidden] moet ALTIJD winnen — ook van display:grid/flex op dezelfde elementen
   (anders blijft bv. de login-overlay onzichtbaar bovenop alles kliks vangen). */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  background:
    radial-gradient(1100px 560px at 80% -10%, rgba(3, 181, 170, 0.06), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(3, 181, 170, 0.04), transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.dim { color: var(--ink-dim); }
.mono { font-family: var(--font-mono); }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-raise);
  box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand-plane { color: var(--radar); font-size: 20px; transform: rotate(-20deg); display: inline-block; }
.brand-name {
  font-family: var(--font-sign); font-weight: 700; font-size: 26px; letter-spacing: 6px;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-sign); font-weight: 500; font-size: 15px; letter-spacing: 4px;
  color: var(--amber);
  border: 1px solid rgba(245, 185, 66, 0.4);
  padding: 1px 8px;
}
.clock { font-family: var(--font-mono); color: var(--ink-dim); font-size: 13px; letter-spacing: 1px; }

/* ── Layout ─────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: 270px 1fr; min-height: calc(100vh - 61px); }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .sidebar { display: none; } }

.sidebar {
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  background: var(--bg-raise);
  overflow-y: auto; max-height: calc(100vh - 61px); position: sticky; top: 0;
}
.side-title {
  font-family: var(--font-sign); font-weight: 600; font-size: 14px; letter-spacing: 3px;
  color: var(--ink-dim); text-align: center; margin-bottom: 14px;
}
.history { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  position: relative; display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--bg-card); border: 1px solid var(--line); border-left: 3px solid var(--line-bright);
  padding: 9px 26px 9px 11px; color: var(--ink);
  transition: border-color 0.15s, transform 0.15s;
}
.history-del {
  position: absolute; top: 4px; right: 4px;
  width: 19px; height: 19px; padding: 0; line-height: 17px; text-align: center;
  background: transparent; border: 1px solid transparent; border-radius: 2px;
  color: var(--ink-dim); font-family: var(--font-mono); font-size: 15px; cursor: pointer;
  opacity: 0; transition: opacity 0.12s, color 0.12s, border-color 0.12s;
}
.history-item:hover .history-del, .history-item.active .history-del { opacity: 1; }
.history-del:hover { color: var(--bad); border-color: var(--bad); }
.history-item:hover { border-color: var(--radar); transform: translateX(2px); }
.history-item.active { border-left-color: var(--radar); }
.history-code { font-family: var(--font-mono); font-weight: 600; font-size: 13px; letter-spacing: 0.5px; }
.history-meta { font-size: 12px; color: var(--ink-dim); margin-top: 2px; display: flex; justify-content: space-between; gap: 6px; }
.history-price { color: var(--gold); font-family: var(--font-mono); }
.history-status-error { color: var(--bad); }
.history-status-running { color: var(--amber); animation: blink 1.2s infinite; }

.main { padding: 22px 28px 60px; max-width: 1180px; width: 100%; margin: 0 auto; }

/* ── Zoekbalk ───────────────────────────────────────────── */
.searchbar { margin-bottom: 22px; position: relative; z-index: 60; }
#search-form {
  display: flex; align-items: stretch; gap: 0;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
#search-form:focus-within { border-color: var(--radar); box-shadow: 0 0 0 3px var(--teal-tint); }
.search-label {
  display: flex; align-items: center; padding: 0 14px;
  font-family: var(--font-sign); font-weight: 600; letter-spacing: 3px; font-size: 13px;
  color: var(--amber); border-right: 1px dashed var(--line-bright);
}
.search-input-wrap { flex: 1; position: relative; display: flex; }
#tripcode {
  flex: 1; width: 100%; background: transparent; border: 0; outline: 0;
  color: var(--ink); font-family: var(--font-mono); font-size: 19px; letter-spacing: 3px;
  padding: 14px 16px; text-transform: uppercase;
}
#tripcode::placeholder { color: #9aa6a6; }

/* autocomplete-dropdown: vertrekbord-stijl */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-md);
  max-height: 320px; overflow-y: auto;
}
.suggest-item {
  display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 9px 16px; cursor: pointer; color: var(--ink);
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover, .suggest-item.sel { background: var(--teal-tint); }
.suggest-item.sel { box-shadow: inset 3px 0 0 var(--radar); }
.suggest-code { font-family: var(--font-mono); font-weight: 600; font-size: 15px; letter-spacing: 1.5px; }
.suggest-code b { color: var(--radar); font-weight: 600; }
.suggest-date { font-family: var(--font-mono); font-size: 12px; color: var(--amber); }
.suggest-status { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); border: 1px solid var(--line-bright); padding: 1px 7px; }
.suggest-empty { padding: 9px 16px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }

/* replay-demo-banner op een run */
.replay-banner {
  border: 1px solid rgba(201,160,240,0.55); background: rgba(201,160,240,0.08);
  color: var(--digitrips); font-family: var(--font-mono); font-size: 13px;
  padding: 10px 14px; margin-bottom: 12px;
}
#search-btn {
  border: 0; cursor: pointer;
  background: var(--radar); color: #ffffff;
  font-family: var(--font-sign); font-weight: 700; font-size: 16px; letter-spacing: 2px;
  padding: 0 26px;
  transition: filter 0.15s;
}
#search-btn:hover { filter: brightness(1.12); }
#search-btn:disabled { background: var(--line-bright); color: var(--ink-dim); cursor: wait; }
.search-error { color: var(--bad); font-family: var(--font-mono); font-size: 13px; margin-top: 8px; }

/* ── Lege staat ─────────────────────────────────────────── */
.empty { display: grid; place-items: center; padding: 90px 0; }
.empty-board { text-align: center; }
.empty-line {
  font-family: var(--font-sign); font-weight: 600; font-size: 22px; letter-spacing: 6px;
  color: var(--ink-dim);
}
.empty-line.dim { font-size: 13px; letter-spacing: 3px; margin-top: 10px; color: #9aa6a6; }

/* ── Voortgang ──────────────────────────────────────────── */
.section-title {
  font-family: var(--font-sign); font-weight: 600; font-size: 20px; letter-spacing: 3px;
}
.progress-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.chip {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  border: 1px solid var(--line-bright); padding: 3px 10px; color: var(--ink-dim);
}
.chip-running { color: var(--amber); border-color: rgba(245,185,66,0.5); animation: blink 1.2s infinite; }
.chip-done { color: var(--ok); border-color: rgba(93,219,138,0.5); }
.chip-error { color: var(--bad); border-color: rgba(243,101,95,0.5); }
.chip-replay { color: var(--digitrips); border-color: rgba(201,160,240,0.5); }
@keyframes blink { 50% { opacity: 0.45; } }

.stepper { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin-bottom: 16px; border: 1px solid var(--line); }
.step {
  flex: 1; min-width: 130px; padding: 10px 12px;
  font-family: var(--font-sign); font-weight: 600; letter-spacing: 1.5px; font-size: 13px;
  color: #9aa6a6; border-right: 1px dashed var(--line);
  position: relative; background: var(--bg-raise);
}
.step:last-child { border-right: 0; }
.step .step-no { font-family: var(--font-mono); font-size: 10px; display: block; color: inherit; opacity: 0.7; }
.step.active { color: var(--amber); }
.step.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--amber); animation: sweep 1.6s ease-in-out infinite;
}
.step.done { color: var(--ok); }
@keyframes sweep { 0% { transform: scaleX(0.1); transform-origin: left; } 50% { transform: scaleX(1); } 100% { transform: scaleX(0.1); transform-origin: right; } }

.log {
  background: #060a12; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 12px; line-height: 1.55;
  color: #9fb3cf;
  padding: 14px; max-height: 320px; overflow-y: auto; white-space: pre-wrap;
}

/* ── Trip-samenvatting ──────────────────────────────────── */
.trip-summary {
  display: flex; flex-wrap: wrap; gap: 26px; align-items: baseline;
  border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0;
  background: var(--teal-tint);
  padding: 14px 18px;
}
.ts-route { font-family: var(--font-sign); font-weight: 700; font-size: 26px; letter-spacing: 3px; }
.ts-route .arr { color: var(--radar); }
.ts-item { font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim); }
.ts-item b { color: var(--ink); font-weight: 600; }
.ts-warn { width: 100%; color: var(--amber); font-family: var(--font-mono); font-size: 12px; }
.ts-note {
  width: 100%; margin-top: 6px;
  background: #ffffff; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px;
  color: var(--ink-soft); font-family: var(--font-mono); font-size: 12.5px; line-height: 1.55;
}
.ts-note b { color: var(--ink); font-weight: 600; }

/* ── Boarding-pass kaarten ──────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1060px) { .cards { grid-template-columns: 1fr; } }

.pass {
  --pcolor: var(--line-bright);
  display: grid; grid-template-columns: 1fr 130px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  position: relative;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  cursor: default;
}
.pass:hover { transform: translateY(-3px); border-color: var(--pcolor); box-shadow: 0 14px 34px rgba(0,0,0,0.45); }
.pass.winner { border-color: var(--gold); box-shadow: 0 0 0 1px rgba(232,200,120,0.35), 0 14px 40px rgba(0,0,0,0.5); }

.pass-main { padding: 14px 16px; min-width: 0; }
.pass-provider {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sign); font-weight: 700; letter-spacing: 2.5px; font-size: 15px;
  color: var(--pcolor);
}
.pass-provider .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pcolor); box-shadow: 0 0 8px var(--pcolor); }
.pass-route { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); margin-left: auto; }
.winner-tag {
  font-family: var(--font-sign); letter-spacing: 2px; font-size: 12px; font-weight: 700;
  color: #1d1607; background: var(--gold); padding: 1px 8px;
}

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.badge {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.4px;
  border: 1px solid var(--line-bright); color: var(--ink-dim); padding: 2px 8px;
}
.badge-ok { color: var(--ok); border-color: rgba(93,219,138,0.45); }
.badge-warn { color: var(--amber); border-color: rgba(245,185,66,0.45); }
.badge-bad { color: var(--bad); border-color: rgba(243,101,95,0.45); }
.badge-train { color: var(--gold); border-color: rgba(232,200,120,0.5); }
/* effectieve prijs (vlucht + treinkost) onder de stub-prijs */
.stub-eff { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-top: 2px; text-align: center; }
/* leg-combinatie-kaart (2 aparte tickets) */
.pass-split { border-style: dashed; }
.split-leg {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-mono); font-size: 11px; margin: 2px 0 10px;
}
.split-leg .stub-book { margin-top: 0; padding: 3px 10px; font-size: 11px; }

/* prijsstub met perforatie */
.pass-stub {
  border-left: 2px dashed var(--line-bright);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  padding: 12px 8px; position: relative;
  background:
    radial-gradient(circle at left 0%, var(--bg) 7px, transparent 8px) left top / 14px 14px no-repeat,
    radial-gradient(circle at left 100%, var(--bg) 7px, transparent 8px) left bottom / 14px 14px no-repeat,
    linear-gradient(180deg, #f3f7f7, #eaf1f1);
}
.stub-price { font-family: var(--font-mono); font-weight: 600; font-size: 26px; color: var(--ink); }
.pass.winner .stub-price { color: var(--gold); }
.stub-pp { font-family: var(--font-sign); letter-spacing: 2px; font-size: 11px; color: var(--ink-dim); }
/* Booking-knoppen op de stub (BOEK / AMADEUS-open / AN-commando's kopiëren) */
.stub-book, .stub-cmd {
  margin-top: 6px; cursor: pointer; text-decoration: none; text-align: center;
  background: var(--pcolor); border: 1px solid var(--pcolor); color: #ffffff;
  font-family: var(--font-sign); font-weight: 700; letter-spacing: 2px; font-size: 12px;
  padding: 5px 12px; transition: filter 0.15s, background 0.15s, color 0.15s;
}
.stub-book:hover, .stub-cmd:hover { filter: brightness(1.12); }
.stub-cmd { background: transparent; color: var(--pcolor); font-weight: 600; }
.stub-cmd:hover { background: var(--pcolor); color: #ffffff; filter: none; }
.stub-cmd.ok { background: var(--ok, #41e0c8); border-color: var(--ok, #41e0c8); color: #ffffff; }

.pass-none {
  grid-column: 1 / -1; padding: 18px 16px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-dim);
}

/* ── Tijdlijn per been ──────────────────────────────────── */
.leg { margin: 9px 0; }
.leg-head {
  display: flex; gap: 10px; align-items: baseline;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim);
}
.leg-label { font-family: var(--font-sign); letter-spacing: 2px; font-weight: 600; font-size: 12px; color: var(--ink); width: 46px; }
.leg-date { color: var(--amber); }
.leg-flights { margin-left: auto; }
.leg-track { display: flex; align-items: center; gap: 0; margin: 5px 0 2px; }
.leg-time { font-family: var(--font-mono); font-weight: 600; font-size: 15px; display: flex; flex-direction: column; line-height: 1.05; }
.leg-time-arr { align-items: flex-end; text-align: right; }
.leg-time .plus { color: var(--amber); font-size: 10px; vertical-align: super; }
.leg-apt { font-family: var(--font-sign); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; color: var(--pcolor, var(--radar)); margin-top: 1px; }
.leg-line { flex: 1; display: flex; align-items: center; margin: 0 10px; position: relative; height: 14px; }
.leg-line::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--line-bright);
}
.leg-line .plane-glyph {
  position: absolute; left: 50%; transform: translateX(-50%);
  color: var(--pcolor, var(--radar)); font-size: 12px; background: var(--bg-card); padding: 0 4px;
}
.leg-stopdot {
  position: absolute; top: 50%; width: 7px; height: 7px; transform: translate(-50%, -50%);
  background: var(--bg-card); border: 1px solid var(--amber); border-radius: 50%;
}
.leg-sub { display: flex; gap: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-dim); }

/* per-luchthaven detail */
.pass details { margin-top: 8px; }
.pass summary {
  cursor: pointer; font-family: var(--font-sign); letter-spacing: 1.5px; font-size: 12px; color: var(--ink-dim);
}
.pass summary:hover { color: var(--radar); }
.apt-table { width: 100%; border-collapse: collapse; margin-top: 8px; font-family: var(--font-mono); font-size: 12px; }
.apt-table td { padding: 4px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.apt-q { width: 20px; }
.apt-note { color: var(--ink-dim); font-size: 11px; }

/* ── Extra secties (TA / pax / split) ───────────────────── */
.extras { margin-top: 22px; display: grid; gap: 14px; }
.extra-block { border: 1px solid var(--line); background: var(--bg-card); padding: 14px 16px; }
.extra-block.warn { border-color: rgba(245,185,66,0.5); }
.extra-title { font-family: var(--font-sign); font-weight: 600; letter-spacing: 2.5px; font-size: 14px; margin-bottom: 8px; }
.extra-block.warn .extra-title { color: var(--amber); }
.extra-body { font-family: var(--font-mono); font-size: 13px; color: var(--ink); line-height: 1.7; }
.extra-body .dim { font-size: 12px; }

.raw { margin-top: 26px; }
.raw summary { cursor: pointer; font-family: var(--font-sign); letter-spacing: 2px; font-size: 13px; color: var(--ink-dim); }
.raw summary:hover { color: var(--radar); }
.raw .log { margin-top: 10px; max-height: 420px; }

/* ── Login ──────────────────────────────────────────────── */
.login-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 7, 13, 0.92); backdrop-filter: blur(6px);
  display: grid; place-items: center;
}
.login-card {
  width: min(360px, 90vw);
  background: var(--bg-card); border: 1px solid var(--line-bright);
  padding: 34px 30px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.login-stamp {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 3px; color: var(--radar);
  border: 1px dashed rgba(65,224,200,0.4); display: inline-block; padding: 3px 10px;
  transform: rotate(-2deg); margin-bottom: 18px;
}
.login-title { font-family: var(--font-sign); font-weight: 700; font-size: 30px; letter-spacing: 8px; }
.login-sub { margin: 6px 0 20px; font-size: 13px; }
.login-card input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-bright); color: var(--ink);
  font-family: var(--font-mono); font-size: 16px; letter-spacing: 4px; text-align: center;
  padding: 11px; border-radius: 10px; outline: 0;
}
.login-card input:focus { border-color: var(--radar); box-shadow: 0 0 0 3px var(--teal-tint); }
.login-card button {
  width: 100%; margin-top: 12px; cursor: pointer;
  background: var(--radar); border: 0; color: #ffffff;
  font-family: var(--font-sign); font-weight: 700; font-size: 15px; letter-spacing: 3px;
  padding: 11px;
}
.login-card button:hover { filter: brightness(1.12); }

/* page-load reveal */
.main > section { animation: rise 0.45s ease-out both; }
.main > section:nth-child(2) { animation-delay: 0.06s; }
.main > section:nth-child(3) { animation-delay: 0.12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--line-bright); }
::-webkit-scrollbar-track { background: transparent; }


/* topbar-navlink (link naar Nationale vluchten) */
.navlink { font-family: var(--font-sign); font-weight: 600; letter-spacing: 1px; font-size: 14px; color: var(--radar); text-decoration: none; margin-right: 4px; }
.navlink:hover { text-decoration: underline; }

/* compacte, gedempte "geen optie"-kaart (focus blijft op de echte opties) */
.pass-empty { display: block; align-self: start; border-style: dashed; background: transparent; box-shadow: none; }
.pass-empty:hover { transform: none; box-shadow: none; border-color: var(--line); }
.pass-empty .pass-none { grid-column: auto; padding: 11px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pass-empty .pass-provider { font-size: 13px; letter-spacing: 1.5px; }
.pass-none-note { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.pass-none-note::before { content: "— "; }

/* goedkopere terug net buiten policy (DigiTrips) — aparte TM-notitie op de kaart */
.near-alt { margin: 4px 0 8px; font-size: 12.5px; color: var(--amber); border-left: 2px solid var(--amber); padding: 4px 0 4px 9px; }
