/* VOICE: rustige, zelfverzekerde reisgids voor één persoon, onderweg op een telefoon.
   IDEA: een azulejo-tegeltableau: wit veld, kobaltblauw, één geel accent (tram 28).
   PICTURE: de kaart met getekende routes; de kop draagt een tegelpatroon.
   COLOUR and TYPE: wit/kobalt #1b3a8c/geel #f2c230; Fraunces voor koppen, Inter voor tekst.
   LAYOUT: één kolom tot 760px, tabs bovenaan (sticky), alles leesbaar op 360px. */

:root {
  color-scheme: light dark;
  --bg: #ffffff; --panel: #f2f5fb; --ink: #13182a; --muted: #4b5368;
  --cobalt: #1b3a8c; --cobalt-ink: #ffffff; --line: #d6dcea;
  --yellow: #f2c230; --focus: #9a6b00;
  --lokaal: #1d6b3a; --allebei: #7a4b00; --toerist: #a3201a; --onbekend: #4b5368;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #0e1424; --panel: #18203a; --ink: #eef1f8; --muted: #b5bdd2;
    --cobalt: #9db6ff; --cobalt-ink: #0e1424; --line: #2c3658; --focus: #ffd75e;
    --lokaal: #8fe0a8; --allebei: #ffcf7a; --toerist: #ff9e98; --onbekend: #c3c9d8;
  }
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0e1424; --panel: #18203a; --ink: #eef1f8; --muted: #b5bdd2;
  --cobalt: #9db6ff; --cobalt-ink: #0e1424; --line: #2c3658; --focus: #ffd75e;
  --lokaal: #8fe0a8; --allebei: #ffcf7a; --toerist: #ff9e98; --onbekend: #c3c9d8;
}
:root[data-theme=light] { color-scheme: light; }

* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, "Segoe UI", sans-serif; overflow-x: clip; }
a { color: var(--cobalt); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible, .leaflet-marker-icon:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px;
}
h1, h2, h3 { font-family: Fraunces, Georgia, serif; font-weight: 600; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(28px, 6vw, 40px); margin: 28px 0 12px; }
h3 { font-size: 21px; margin: 24px 0 8px; }
h4 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 12px; }

.skip { position: absolute; left: 8px; top: -60px; background: var(--yellow); color: #13182a; padding: 10px 14px; border-radius: 6px; z-index: 1000; font-weight: 600; }
.skip:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kop met tegelpatroon */
.top {
  background-color: #1b3a8c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.22' stroke-width='2'%3E%3Ccircle cx='24' cy='24' r='10'/%3E%3Cpath d='M24 0v8M24 40v8M0 24h8M40 24h8M6 6l7 7M35 35l7 7M42 6l-7 7M13 35l-7 7'/%3E%3Crect x='1' y='1' width='46' height='46'/%3E%3C/g%3E%3C/svg%3E");
  color: #ffffff;
}
.top-inner { max-width: 760px; margin: 0 auto; padding: 28px max(5vw, 16px) 22px; }
.top h1 { font-size: clamp(40px, 11vw, 64px); margin: 0; }
.kicker { margin: 0 0 4px; font-weight: 600; color: var(--yellow); }
.sub { margin: 6px 0 0; opacity: .92; }

/* Tabs */
.tabs { position: sticky; top: 0; z-index: 500; background: var(--bg); border-bottom: 1px solid var(--line); }
.tabs ul { display: flex; gap: 2px; list-style: none; margin: 0 auto; padding: 0 max(4vw, 8px); max-width: 760px; overflow-x: auto; scrollbar-width: none; }
.tabs a { display: block; padding: 14px 12px; min-height: 48px; color: var(--muted); text-decoration: none; font-weight: 600; white-space: nowrap; border-bottom: 3px solid transparent; }
.tabs a[aria-current="page"] { color: var(--cobalt); border-bottom-color: var(--yellow); }

main { max-width: 760px; margin: 0 auto; padding: 0 max(5vw, 16px) 48px; }
main:focus { outline: none; }
.lead { color: var(--muted); max-width: 64ch; }
.hint { color: var(--muted); font-size: 14px; margin: 8px 0; }

/* Chips (toggle-knoppen) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 16px; }
.chip { font: inherit; font-size: 15px; font-weight: 600; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--cobalt); background: transparent; color: var(--cobalt); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--cobalt); color: var(--cobalt-ink); }
.chip small { font-weight: 400; opacity: .85; }

.pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 8px 0 4px; }
.pick label { font-weight: 600; }
.pick select { font: inherit; font-size: 16px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1.5px solid var(--cobalt); background: var(--bg); color: var(--ink); flex: 1 1 220px; max-width: 420px; }

/* Dagkop */
.dayhead { background: var(--panel); border-radius: 14px; padding: 16px 18px; margin-bottom: 8px; }
.dayhead h3 { margin: 0 0 6px; font-size: 26px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.meta b { color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.btn { font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--cobalt); background: var(--cobalt); color: var(--cobalt-ink); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--cobalt); }

/* Tijdlijn */
.steps { list-style: none; margin: 16px 0 0; padding: 0; }
.steps > li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.steps .time { font-family: Fraunces, Georgia, serif; font-size: 18px; color: var(--cobalt); padding-top: 1px; white-space: nowrap; }
.steps .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 600; }
.steps h4 { font-family: Inter, sans-serif; font-weight: 600; }
.steps p { margin: 0 0 6px; }
.linkbtn { font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; padding: 6px 0; min-height: 32px; color: var(--cobalt); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* Kaarten (cards) */
.cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--bg); }
.card .row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.card p { margin: 6px 0 0; }
.card .why { color: var(--muted); font-size: 14px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 2px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.b-lokaal { color: var(--lokaal); } .b-allebei { color: var(--allebei); } .b-toerist { color: var(--toerist); } .b-onbekend { color: var(--onbekend); }
.b-lokaal::before { border-radius: 2px; } .b-toerist::before { border-radius: 0; transform: rotate(45deg); }

/* Kaart */
#map { height: min(62vh, 520px); min-height: 320px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); }
.pin { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font: 600 13px/1 Inter, sans-serif; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.pin.big { width: 32px; height: 32px; font-size: 14px; }
.leaflet-popup-content { font: 14px/1.45 Inter, sans-serif; margin: 12px 14px; }
.leaflet-popup-content h4 { font-size: 15px; margin: 0 0 4px; }
.leaflet-popup-content p { margin: 0 0 6px; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--muted); margin: 12px 0; padding: 0; list-style: none; }
.legend span.dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 600; margin-right: 6px; vertical-align: -4px; }
.noscript-map { background: var(--panel); padding: 12px 14px; border-radius: 10px; }
fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 4px; margin: 12px 0; }
legend { font-weight: 600; padding: 0 6px; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
input[type=checkbox] { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--cobalt); }

/* Tabellen */
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0 16px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
td.num { text-align: right; white-space: nowrap; }
.todo { list-style: none; padding: 0; margin: 0; }
.todo label { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; min-height: 44px; border-bottom: 1px solid var(--line); cursor: pointer; }
.todo input:checked + span { color: var(--muted); text-decoration: line-through; }

.foot { max-width: 760px; margin: 0 auto; padding: 16px max(5vw, 16px) 40px; color: var(--muted); font-size: 13px; }

@media (max-width: 600px) {
  .top-inner { padding: 18px 16px 14px; }
  .top h1 { font-size: 40px; }
  .sub { font-size: 14px; }
  h2 { margin-top: 20px; }
  .steps > li { grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
  .steps .time { font-size: 15px; }
  table { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .chip[aria-pressed="true"] { border-width: 3px; } .tabs a[aria-current="page"] { text-decoration: underline; } }
