@font-face { font-family: "Plex"; src: url(fonts/plex-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex"; src: url(fonts/plex-sans-600.woff2) format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --bg: #f6f4ef; --surface: #fff; --surface-2: #f0ede6; --fg: #17222c; --muted: #5d6a75; --line: #e1ddd3;
  --navy: #14324a; --accent: #1f6fb2; --accent-soft: #e3eef8; --sun: #f2b632; --sun-soft: #fdf1d6; --on-sun: #3b2a00;
  --rail: #2f8f5b; --road: #9a6b3c; --good: #2f8f5b; --dim: #b9b4aa;
  --shadow: 0 1px 2px rgba(20, 30, 40, .06), 0 8px 24px rgba(20, 30, 40, .08);
  --r: 14px; --header: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f171e; --surface: #16212b; --surface-2: #1d2a36; --fg: #e7edf2; --muted: #9aabb9; --line: #2a3a48;
    --navy: #0b1620; --accent: #6cb4f0; --accent-soft: #1a3247; --sun: #f5c451; --sun-soft: #3a2f14; --on-sun: #2b1f00;
    --rail: #6fd39b; --road: #d9a571; --good: #6fd39b; --dim: #4a5866;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 "Plex", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.5vw, 40px); }
h2 { font-size: 22px; margin-top: 1.6em; }
small { color: var(--muted); }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* kop */
header.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 30; }
header.top .in { max-width: 1440px; margin: 0 auto; padding: 0 16px; height: var(--header); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 19px; flex-shrink: 0; }
.brand svg { width: 30px; height: 30px; }
.brand b { color: var(--sun); }
nav.main { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); }
nav.main::-webkit-scrollbar { display: none; }
nav.main a { color: rgba(255, 255, 255, .85); text-decoration: none; padding: 8px 10px; border-radius: 8px; white-space: nowrap; font-size: 15px; }
nav.main a:hover, nav.main a[aria-current] { background: rgba(255, 255, 255, .12); color: #fff; }

.page { max-width: 1440px; margin: 0 auto; padding: 16px 16px 40px; }
body:not(.home) .page { max-width: 880px; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .in { max-width: 880px; margin: 0 auto; padding: 20px 16px 40px; }
.lead { font-size: 18px; }
.note { font-size: 13.5px; color: var(--muted); }

/* knoppen */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--accent); color: var(--accent);
  background: none; text-decoration: none; font-weight: 600; font-size: 15px; min-height: 44px; }
.btn.solid { background: var(--accent); color: var(--surface); }
.btn:hover { filter: brightness(1.08); }
.acties { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }

/* startpagina */
.hero { padding: 6px 0 14px; }
.hero h1 { margin-bottom: 4px; }
.hero .lead { margin: 0 0 14px; color: var(--muted); max-width: 720px; }
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.tabs button { text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); padding: 10px 14px; min-height: 56px;
  transition: transform .15s ease, box-shadow .15s ease; }
.tabs button b { display: block; font-size: 15.5px; }
.tabs button small { display: block; font-size: 13px; }
.tabs button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.tabs button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tabs button[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
@media (prefers-color-scheme: dark) { .tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b1620; } .tabs button[aria-pressed="true"] small { color: rgba(11, 22, 32, .75); } }

.app { display: grid; grid-template-columns: 270px minmax(0, 1fr) 400px; grid-template-areas: "f k r" "f k d"; grid-template-rows: auto 1fr; gap: 14px;
  height: calc(100vh - var(--header) - 24px); height: calc(100dvh - var(--header) - 24px); min-height: 560px; scroll-margin-top: calc(var(--header) + 12px); }
.filters { grid-area: f; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; overflow: auto; }
.kaartvak { grid-area: k; position: relative; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); min-height: 320px; }
.kaartvak > .kaart, .kaartvak > .kaart.maplibregl-map { position: absolute; inset: 0; }
.resultaat { grid-area: r; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; overflow: auto; min-height: 0; }
.detail { grid-area: d; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; min-height: 0; }
.app.open .resultaat { display: none; }
.app.open .detail { grid-row: 1 / span 2; }
.app:not(.open) .detail { display: none; }

.ftoggle { display: none; }
.fbody { display: grid; gap: 14px; }
.fbody label, .fbody legend { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fbody output { float: right; text-transform: none; letter-spacing: 0; color: var(--fg); font-weight: 600; }
.fbody select { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg); min-height: 44px; }
.fbody fieldset { border: 0; padding: 0; margin: 0; }
.fbody input[type=range] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 14px; min-height: 38px; text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--fg); }
.chips button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.reset { border: 1px solid var(--line); background: none; border-radius: 10px; padding: 9px; color: var(--muted); min-height: 44px; }

.telling { position: absolute; top: 10px; left: 10px; right: 60px; z-index: 2; pointer-events: none; }
.telling span { display: inline-block; background: var(--surface); border-radius: 10px; padding: 6px 10px; font-size: 14px; box-shadow: var(--shadow); }
.verras { position: absolute; bottom: 30px; right: 10px; z-index: 2; border: 0; border-radius: 999px; padding: 10px 18px; background: var(--sun); color: var(--on-sun); font-weight: 700; box-shadow: var(--shadow); min-height: 44px; }
.zoomknop { position: absolute; bottom: 30px; left: 10px; z-index: 2; border: 0; border-radius: 999px; padding: 10px 16px; background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: var(--shadow); min-height: 44px; }

.lijstkop { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.lijstkop h2 { margin: 0; font-size: 18px; }
.lijstkop select { padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); min-height: 40px; }
.lijst { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lijst button { width: 100%; text-align: left; border: 1px solid transparent; background: var(--surface-2); border-radius: 12px; padding: 10px 12px;
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; min-height: 56px; }
.lijst button:hover { border-color: var(--line); }
.lijst button[aria-current="true"] { background: var(--sun-soft); border-color: var(--sun); }
.lijst .n { font-weight: 600; }
.lijst .t { font-weight: 700; font-size: 18px; text-align: right; }
.lijst .m { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); }
.lijst .leeg { padding: 14px; color: var(--muted); }

/* detail */
.dhead { position: relative; min-height: 150px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.dhead svg.scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.dhead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 18, 30, 0) 25%, rgba(8, 18, 30, .75)); }
.dhead .in { position: relative; z-index: 1; padding: 14px 16px; display: grid; gap: 2px; }
.dhead h2 { color: #fff; margin: 0; font-size: 28px; }
.dhead .tag { justify-self: start; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .35); padding: 2px 8px; border-radius: 999px; }
.dhead .terug { position: absolute; top: 10px; left: 10px; z-index: 2; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #17222c; padding: 6px 12px; font-weight: 600; min-height: 36px; }
.dbody { padding: 14px 16px 18px; display: grid; gap: 14px; }
.dbody h3 { font-size: 16px; margin: 0 0 6px; }
.kpis { display: flex; flex-wrap: wrap; gap: 6px; }
.kpis span { background: var(--surface-2); border-radius: 999px; padding: 5px 12px; font-size: 14px; color: var(--muted); }
.kpis b { color: var(--fg); font-size: 16px; }
.jaar { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2px; align-items: end; }
.jaar div { display: flex; flex-direction: column; justify-content: flex-end; gap: 3px; height: 76px; text-align: center; font-size: 10.5px; color: var(--muted); }
.jaar small { font-size: inherit; }
.jaar i { display: block; background: var(--accent-soft); border-radius: 4px 4px 0 0; }
.jaar .goed i { background: color-mix(in srgb, var(--sun) 55%, transparent); }
.jaar .cur i { background: var(--sun); }
.jaar .cur { color: var(--fg); font-weight: 700; }
.zien { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.zien li { background: var(--surface-2); border-radius: 12px; padding: 9px 12px; display: grid; }
.zien li span { font-size: 14px; color: var(--muted); }
.weetje { background: var(--sun-soft); border-radius: 12px; padding: 10px 14px; margin: 0; font-size: 15px; }
.opties { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.opties li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.opties .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; }
.opties .vlieg .ic { background: var(--accent-soft); color: var(--accent); }
.opties .trein .ic { background: color-mix(in srgb, var(--rail) 18%, transparent); color: var(--rail); }
.opties .auto .ic { background: color-mix(in srgb, var(--road) 18%, transparent); color: var(--road); }
.opties small { display: block; }
.opties b { font-size: 16px; }
.boeken { display: grid; gap: 8px; }
.boeken .btn { justify-content: center; }
.boeken { margin-top: 8px; }
.plan { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.planvelden { display: grid; grid-template-columns: 1fr 1fr 90px; gap: 8px; }
.planvelden label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.planvelden input, .planvelden select { font: inherit; font-size: 15px; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 8px 8px; min-height: 44px; width: 100%; min-width: 0; }
.plan .note { margin: 8px 0 0; }
.slapen { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.slapen li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 12px; }
.slapen li span { display: grid; min-width: 0; }
.slapen small { color: var(--muted); font-size: 13px; }
.slapen .btn { min-height: 40px; padding: 8px 14px; }
.mijnreis { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.mijnreis h3 { flex-basis: 100%; margin-bottom: 0; }
.mijnreis label { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.mijnreis input { width: 20px; height: 20px; accent-color: var(--accent); }
.mijnreis .btn { margin-left: auto; }
.meer { font-weight: 600; }

/* chips op de kaart */
.chip { background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 2px 7px; font-size: 12.5px; font-weight: 600;
  white-space: nowrap; box-shadow: var(--shadow); cursor: pointer; transform: translate(10px, -50%); }
.chip i { font-style: normal; color: var(--muted); font-weight: 400; margin-left: 4px; }
.chip.verborgen { visibility: hidden; }
.chip.sel { background: var(--sun); color: var(--on-sun); border-color: var(--sun); z-index: 3; }
.chip.sel i { color: var(--on-sun); }
.maplibregl-ctrl-attrib { font-size: 11px; }

/* tablet en telefoon */
@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-areas: "f" "k" "r" "d"; grid-template-rows: auto; height: auto; min-height: 0; }
  .app.open .detail { grid-row: auto; }
  .kaartvak { height: 58vh; height: 58svh; min-height: 320px; position: sticky; top: var(--header); z-index: 5; }
  .app.open .kaartvak { height: 40vh; height: 40svh; }
  .resultaat, .detail { scroll-margin-top: calc(var(--header) + max(320px, 40svh) + 10px); }
  .app.open .verras { display: none; }
  .filters { padding: 0; overflow: visible; }
  .ftoggle { display: flex; width: 100%; justify-content: space-between; align-items: center; border: 0; background: none; padding: 12px 14px; font-weight: 600; min-height: 48px; }
  .ftoggle::after { content: "+"; font-size: 20px; color: var(--muted); }
  .ftoggle[aria-expanded="true"]::after { content: "−"; }
  .fbody { display: none; padding: 0 14px 14px; }
  .filters.open .fbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
  .filters.open .fbody > .row2, .filters.open .fbody > .reset { grid-column: 1 / -1; }
  .resultaat, .detail { overflow: visible; }
}
@media (max-width: 720px) {
  .page { padding: 10px 12px 32px; }
  .hero h1 { font-size: 26px; }
  .hero .lead { font-size: 15.5px; }
  .tabs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -12px; padding: 0 12px 4px; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; scroll-snap-align: start; min-width: 150px; }
  .filters.open .fbody { grid-template-columns: minmax(0, 1fr); }
  .kaartvak { height: 50vh; height: 50svh; border-radius: 12px; }
  .app.open .kaartvak { height: 34vh; height: 34svh; }
  .resultaat, .detail { scroll-margin-top: calc(var(--header) + max(320px, 34svh) + 10px); }
  nav.main a { padding: 8px 8px; font-size: 14px; }
  .brand span { display: none; }
}

/* inhoudspagina's */
.bhead { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; margin-bottom: 8px; }
.bhead .tag { display: inline-block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--accent); }
.bhead h1 { margin: 2px 0; }
.bhead .sub { margin: 0; color: var(--muted); }
svg.mini { width: 260px; max-width: 42vw; height: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
svg.mini .arc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 2 5; stroke-linecap: round; }
svg.mini .o { fill: var(--accent); } svg.mini .d { fill: var(--sun); stroke: var(--navy); stroke-width: 1.5; }
svg.mini text { font-size: 12px; fill: var(--muted); } svg.mini text.b { fill: var(--fg); font-weight: 600; }
@media (max-width: 560px) { .bhead { grid-template-columns: 1fr; } svg.mini { width: 100%; max-width: none; } }
.tw { overflow-x: auto; margin: 10px 0; -webkit-overflow-scrolling: touch; }
table.data { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; }
table.data caption { text-align: left; font-size: 13.5px; color: var(--muted); padding: 0 0 6px; }
table.data th, table.data td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
table.data td { font-variant-numeric: tabular-nums; }
table.data thead th { font-size: 13px; color: var(--muted); font-weight: 600; background: var(--surface-2); }
table.klimaat tr.goed th, table.klimaat tr.goed td { background: var(--sun-soft); }
.zien { margin: 8px 0; }
.blist { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.blist li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.blist a { text-decoration: none; color: var(--fg); }
.blist .t { font-weight: 700; } .blist .z, .blist .r { font-size: 14px; color: var(--muted); }
@media (max-width: 560px) { .blist li { grid-template-columns: 1fr auto; } .blist .r { grid-column: 1 / -1; } }
.mlist { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.mlist li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; }
.mlist span { font-size: 14px; color: var(--muted); }
.maanden a { display: inline-block; margin: 0 8px 6px 0; }
.uitleg { max-width: 880px; margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.nav2 { display: flex; justify-content: space-between; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 480px) { table.data th small { display: none; } table.data td, table.data th { padding-left: 6px; padding-right: 6px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
table.slapen-t td:last-child { text-align: right; }
table.slapen-t .btn { padding: 6px 12px; }
