/* ════════════════════════════════════════════════════════════════════
   MUNDERO — Nationale vluchten · huisstijl
   Bron: mundero.be/styleguide → teal #03b5aa, neue-kabel (koppen) +
   Source Sans Pro (body), licht/wit met subtiele schaduwen.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --teal: #03b5aa;
  --teal-dark: #029a90;
  --teal-tint: #e5f7f6;
  --ink: #363636;
  --ink-soft: #5b6b6b;
  --ink-dim: #9aa6a6;
  --bg: #f5f8f8;
  --surface: #ffffff;
  --line: #e6eaea;
  --line-soft: #eef2f2;
  --ok: #1f9d74;
  --warn: #d99100;
  --bad: #d64545;
  --gold: #c8922b;
  --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);
  --radius: 12px;
  --font-head: "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, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  background: 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: 16px 28px; background: var(--surface);
  border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-plane { color: var(--teal); font-size: 22px; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 24px; letter-spacing: 0.5px;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1px;
  color: var(--teal); background: var(--teal-tint);
  padding: 4px 10px; border-radius: 999px;
}
.topbar-right { display: flex; align-items: center; gap: 18px; }
.navlink { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--teal); text-decoration: none; }
.navlink:hover { color: var(--teal-dark); text-decoration: underline; }
.clock { font-family: var(--font-mono); color: var(--ink-dim); font-size: 13px; }

/* ── Layout ─────────────────────────────────────────────── */
.main-wide { max-width: 1080px; margin: 0 auto; padding: 32px 28px 70px; }

/* ── "Wie ben je?" — identiteit in de topbar ───────────────── */
.whoami {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: var(--teal-tint); border: 1px solid rgba(3,181,170,.25); border-radius: 999px;
  padding: 4px 12px 4px 4px; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink);
}
.whoami:hover { border-color: var(--teal); }
.whoami-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.whoami-switch { font-family: var(--font-body); font-weight: 600; font-size: 12px; }

/* ── TO-kiezer ─────────────────────────────────────────────── */
.op-pick { padding: 24px 0 12px; }
.op-pick-title { font-family: var(--font-head); font-weight: 700; font-size: 32px; color: var(--ink); }
.op-pick-sub { font-size: 15px; margin: 6px 0 24px; }
.op-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.op-card {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px 14px; cursor: pointer; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.op-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.op-avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.avatar-fallback {
  display: grid; place-items: center; background: var(--teal-tint); color: var(--teal-dark);
  font-family: var(--font-head); font-weight: 700;
}
.op-avatar.avatar-fallback { font-size: 24px; }
.whoami-avatar.avatar-fallback { font-size: 12px; }
.op-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.op-count { font-size: 12.5px; }

/* ── Reizen-board ──────────────────────────────────────────── */
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; flex-wrap: wrap; }
.board-title { font-family: var(--font-head); font-weight: 700; font-size: 22px; color: var(--ink); }
.board-filter { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-soft); cursor: pointer; }
.board-filter input { width: 15px; height: 15px; cursor: pointer; }
.trips-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.trip-card {
  display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 14px 16px; transition: transform .12s, box-shadow .12s, border-color .12s;
}
.trip-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--teal); }
.trip-has-policy { border-left: 3px solid var(--teal); }
.trip-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.trip-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.trip-code { font-size: 12px; letter-spacing: 0.5px; }
.trip-meta { font-size: 12.5px; }
.trip-group { font-weight: 600; color: var(--ink-soft); }
.trip-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.chip-warn { color: var(--warn); border-color: rgba(217,145,0,.35); background: rgba(217,145,0,.07); }
.chip-rl { color: var(--teal-dark); border-color: rgba(3,181,170,.4); background: var(--teal-tint); }

/* ── Handmatige zoek (secundair, inklapbaar) ───────────────── */
.manual { margin: 8px 0 20px; }
.manual > summary {
  cursor: pointer; font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--teal);
  list-style: none; padding: 8px 0; user-select: none;
}
.manual > summary::-webkit-details-marker { display: none; }
.manual > summary:hover { color: var(--teal-dark); }
.manual[open] > summary { margin-bottom: 8px; }

/* ── Zoekbalk / formulier ───────────────────────────────── */
.searchbar { margin-bottom: 24px; position: relative; z-index: 60; }
#nat-form { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.search-label {
  display: flex; align-items: center; padding: 0 14px;
  font-family: var(--font-head); font-weight: 700; letter-spacing: 0.5px; font-size: 12px;
  color: var(--ink-soft); text-transform: uppercase; border-right: 1px solid var(--line);
}
.nat-bar {
  display: flex; align-items: stretch; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.nat-bar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.nat-bar-trip { width: 100%; }
.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: 18px; letter-spacing: 1.5px; padding: 13px 16px; text-transform: uppercase;
}
#tripcode::placeholder { color: var(--ink-dim); letter-spacing: 1px; }
.nat-row2 { display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap; }
.nat-date, .nat-pax {
  background: transparent; border: 0; outline: 0; color: var(--ink);
  font-family: var(--font-mono); font-size: 15px; padding: 12px 14px;
}
.nat-date { width: 180px; } .nat-pax { width: 64px; text-align: center; }
#nat-btn {
  border: 0; cursor: pointer; background: var(--teal); color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: 0.5px;
  padding: 0 26px; transition: background .15s;
}
#nat-btn:hover { background: var(--teal-dark); }

/* autocomplete */
.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); max-height: 320px; overflow-y: auto;
}
.suggest-item {
  display: flex; align-items: baseline; gap: 12px; width: 100%; text-align: left;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-soft);
  padding: 11px 16px; cursor: pointer; color: var(--ink); font-family: var(--font-mono); font-size: 14px;
}
.suggest-item:last-child { border-bottom: 0; }
.suggest-item:hover { background: var(--teal-tint); }

/* derived / meta */
.nat-derived { max-width: 760px; margin-top: 4px; }
.nat-derived-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nat-edit { color: var(--teal); font-family: var(--font-head); font-weight: 600; font-size: 13px; cursor: pointer; margin-left: 4px; }
.nat-edit:hover { color: var(--teal-dark); text-decoration: underline; }
.nat-meta { margin-top: 8px; font-size: 13px; }
.nat-warn { color: var(--warn); }
.nat-hint { margin-top: 12px; font-size: 13px; max-width: 760px; color: var(--ink-dim); }
.search-error { color: var(--bad); font-size: 13.5px; margin-top: 10px; }

/* chips */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-body); font-weight: 600; font-size: 12.5px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  border-radius: 999px; padding: 4px 11px;
}
.chip-ok { color: var(--ok); border-color: rgba(31,157,116,.35); background: rgba(31,157,116,.07); }
.chip-bad { color: var(--bad); border-color: rgba(214,69,69,.35); background: rgba(214,69,69,.06); }

/* ── Lege staat ─────────────────────────────────────────── */
.empty { display: grid; place-items: center; padding: 70px 0; }
.empty-board { text-align: center; }
.empty-line { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--ink-soft); letter-spacing: 0.5px; }
.empty-line.dim { font-weight: 600; font-size: 14px; margin-top: 6px; color: var(--ink-dim); }

/* ── Resultaat ──────────────────────────────────────────── */
.nat-head { margin: 8px 0 20px; }
.nat-head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nat-route { font-family: var(--font-head); font-weight: 700; font-size: 26px; color: var(--ink); }
.nat-head-meta { margin-top: 8px; font-size: 13.5px; color: var(--ink-soft); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.nat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm);
}
.nat-bookable { border-color: rgba(3,181,170,.45); box-shadow: 0 0 0 1px rgba(3,181,170,.18), var(--shadow-md); }
.nat-blocked { background: #fbfcfc; }
.nat-banner {
  background: rgba(214,69,69,.07); border: 1px solid rgba(214,69,69,.3); color: var(--bad);
  border-radius: 8px; padding: 8px 11px; font-size: 13px; font-weight: 600;
}
.nat-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.nat-flights { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--ink); }
.nat-src { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 2px 6px; border-radius: 6px; vertical-align: middle; margin-right: 4px; }
.nat-src-am { background: #e6f0f3; color: var(--teal-dark); }
.nat-src-dt { background: #efe7fb; color: #6b3fa0; }
.nat-price { font-family: var(--font-mono); font-size: 17px; color: var(--teal-dark); font-weight: 600; white-space: nowrap; }
.nat-card-mid { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); flex-wrap: wrap; }
.nat-card-flags { display: flex; gap: 6px; flex-wrap: wrap; }
.nat-flag {
  font-family: var(--font-mono); font-size: 11px; border: 1px solid var(--line); border-radius: 5px;
  padding: 2px 7px; color: var(--ink-dim);
}
.nat-flag-ok { color: var(--ok); border-color: rgba(31,157,116,.4); }
.nat-flag-bad { color: var(--bad); border-color: rgba(214,69,69,.4); }
.nat-labels { display: flex; flex-direction: column; gap: 4px; }
.nat-label { font-size: 12.5px; color: var(--warn); }
.nat-label::before { content: "⚠ "; }
.nat-label-not-allowed { color: var(--bad); }
.nat-card-actions { margin-top: 4px; }
.btn-book {
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: 0.3px;
  background: var(--teal); color: #fff; border: none; border-radius: 8px; padding: 10px 14px;
  cursor: pointer; width: 100%; transition: background .15s;
}
.btn-book:hover { background: var(--teal-dark); }
.btn-book:disabled { opacity: 0.5; cursor: default; }
.btn-ghost {
  font-family: var(--font-head); font-weight: 600; background: transparent; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--ink-dim); }

/* ── Overlays (login + bevestiging) ─────────────────────── */
.login-overlay {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: rgba(54,54,54,.45); backdrop-filter: blur(3px); padding: 20px;
}
.login-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.2); padding: 30px 32px; width: min(440px, 92vw); text-align: center;
}
.login-stamp { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: 1px; color: var(--teal); }
.login-title { font-family: var(--font-head); font-weight: 700; font-size: 30px; color: var(--ink); margin: 8px 0 4px; }
.login-sub { font-size: 14px; margin-bottom: 16px; }
.login-card input {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; outline: none;
}
.login-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.login-card button {
  margin-top: 14px; width: 100%; font-family: var(--font-head); font-weight: 700; font-size: 15px;
  background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 12px; cursor: pointer;
}
.login-card button:hover { background: var(--teal-dark); }

.nat-confirm { width: min(520px, 92vw); text-align: left; }
.nat-confirm-body { margin: 10px 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.nat-confirm-actions { display: flex; gap: 10px; }
.nat-confirm-actions .btn-book { width: auto; }
.nat-confirm-result { margin-top: 16px; font-size: 13.5px; line-height: 1.5; }
.nat-ok { color: var(--ok); } .nat-bad { color: var(--bad); }
.nat-alt {
  background: rgba(217,145,0,.08); border: 1px solid rgba(217,145,0,.35); color: var(--warn);
  border-radius: 8px; padding: 7px 11px; font-size: 12.5px; font-weight: 600;
}
.nat-legs { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nat-leg {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; box-shadow: var(--shadow-sm);
}
.nat-leg-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; }
.nat-leg-btn { width: auto; padding: 7px 16px; font-size: 13px; }

/* Reizigers-vinklijst in de bevestigingsmodal */
.nat-pax-pick { margin-top: 12px; border-top: 1px solid var(--border, #2a2a2a); padding-top: 10px; }
.nat-pax-title { font-size: 13px; margin-bottom: 6px; }
.nat-pax-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.nat-pax-row input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.nat-pax-row input:disabled { cursor: not-allowed; }

/* Batch-plan (meerdere PNR's) */
.nat-batch { font-size: 13px; margin: 6px 0 2px; color: var(--accent, #2bb3a3); }
