/* ==========================================================================
   Huttentocht 2027 – stijlen openbare app
   Mobile-first. Kleuren en maten centraal via CSS-variabelen.
   ========================================================================== */

:root {
  --c-primary: #1f5c43;
  --c-primary-dark: #163f2f;
  --c-primary-600: #27704f;
  --c-primary-100: #dcebe2;
  --c-primary-50: #eff6f2;
  --c-accent: #e6a23c;

  --c-bg: #f3f4f1;
  --c-surface: #ffffff;
  --c-surface-2: #f7f8f6;
  --c-text: #17201b;
  --c-muted: #56625b;
  --c-border: #e1e5e1;

  --c-todo: #8a4b00;
  --c-todo-bg: #fff1d6;
  --c-reserved: #174f8c;
  --c-reserved-bg: #e3eefa;
  --c-confirmed: #17603f;
  --c-confirmed-bg: #dcf2e5;
  --c-warn: #7a4a00;
  --c-warn-bg: #fff6e0;
  --c-danger: #a3271f;
  --c-danger-bg: #fdecea;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(23, 32, 27, 0.06), 0 6px 20px rgba(23, 32, 27, 0.07);
  --shadow-lg: 0 10px 30px rgba(23, 32, 27, 0.16);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --gutter: 16px;
  --maxw: 760px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--c-bg);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--c-primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: calc(8px + var(--safe-top)); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon--xl { width: 56px; height: 56px; stroke-width: 1.5; }

.app {
  min-height: 100vh;
  min-height: 100dvh;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--c-bg);
  position: relative;
}

main {
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 24px);
  outline: none;
}

.view { animation: view-in 0.28s var(--ease); }
@keyframes view-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Netwerkmelding ---------- */
.netbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: calc(8px + var(--safe-top)) calc(var(--gutter) + var(--safe-right)) 8px calc(var(--gutter) + var(--safe-left));
  background: #2b2f2c;
  color: #fff;
  font-size: 14px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: clamp(330px, 56vh, 470px);
  color: #fff;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #3b5b6e;
}
.hero__media, .hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero__media img { object-fit: cover; object-position: 50% 45%; }
.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 28%),
    linear-gradient(0deg, rgba(10, 24, 18, 0.82) 0%, rgba(10, 24, 18, 0.35) 42%, rgba(10, 24, 18, 0) 70%);
}
.hero__gear {
  position: absolute;
  top: calc(12px + var(--safe-top));
  right: calc(12px + var(--safe-right));
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  transition: transform 0.2s var(--ease), background 0.2s;
}
.hero__gear:hover { background: rgba(0, 0, 0, 0.45); }
.hero__gear:active { transform: rotate(40deg) scale(0.95); }
.hero__gear .icon { width: 22px; height: 22px; }

.hero__content {
  position: relative;
  width: 100%;
  padding: 24px calc(20px + var(--safe-right)) 64px calc(20px + var(--safe-left));
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.92;
}
.hero__title {
  margin-top: 6px;
  font-size: clamp(30px, 9vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  overflow-wrap: anywhere;
}
.hero__subtitle {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: 500;
  opacity: 0.95;
}
.hero__chips {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
  max-width: 100%;
}
.chip .icon { width: 16px; height: 16px; }
.chip--glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* ---------- Kaarten algemeen ---------- */
.home-body { padding: 0 calc(var(--gutter) + var(--safe-right)) 8px calc(var(--gutter) + var(--safe-left)); }

.card {
  background: var(--c-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
}

.section-title {
  margin: 28px 4px 12px;
  font-size: 20px;
  font-weight: 750;
}

/* ---------- Afteller ---------- */
.countdown {
  position: relative;
  margin-top: -40px;
  text-align: center;
  z-index: 2;
}
.countdown__title { font-size: 19px; font-weight: 750; color: var(--c-primary-dark); }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.countdown__cell {
  background: var(--c-primary-50);
  border-radius: var(--radius);
  padding: 12px 4px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.countdown__num {
  font-size: clamp(28px, 10vw, 40px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--c-primary);
  font-variant-numeric: tabular-nums;
}
.countdown__label { font-size: 13px; font-weight: 600; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.countdown__note { margin-top: 12px; color: var(--c-muted); font-size: 15px; }
.countdown__note:empty { display: none; }
.countdown--state .countdown__grid { display: none; }
.countdown--state .countdown__title { font-size: 22px; }
.countdown--state .countdown__note { margin-top: 6px; }

/* ---------- Overzichtskaarten ---------- */
.overview { display: grid; gap: 14px; }
.ocard {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.ocard:active { transform: scale(0.985); }
.ocard__img { width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; background: var(--c-primary-100); }
.ocard__weather {
  height: 96px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #3d7fb4 0%, #6fb0d8 55%, #a8d4ea 100%);
}
.ocard__weather .wx-mini { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 26px; }
.ocard__body {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}
.ocard__icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-primary-50);
  color: var(--c-primary);
}
.ocard__title { font-size: 17px; font-weight: 700; }
.ocard__text { color: var(--c-muted); font-size: 14.5px; margin-top: 2px; }
.ocard__chev { color: var(--c-muted); }

/* ---------- Offline & installatie ---------- */
.offline, .install { margin-top: 18px; }
.offline__head, .install__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.offline__icon, .install__icon {
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--c-primary-50);
  color: var(--c-primary);
}
.offline__icon.is-ok { background: var(--c-confirmed-bg); color: var(--c-confirmed); }
.offline__icon.is-warn { background: var(--c-warn-bg); color: var(--c-warn); }
.offline__title, .install__title { font-size: 17px; font-weight: 700; }
.offline__status, .install__text { color: var(--c-muted); font-size: 14.5px; margin-top: 2px; }
.offline__issues {
  margin: 0 0 14px;
  padding: 10px 12px 10px 30px;
  border-radius: var(--radius-sm);
  background: var(--c-warn-bg);
  color: var(--c-warn);
  font-size: 14px;
}
.progress { margin-bottom: 14px; }
.progress__bar { height: 8px; border-radius: 99px; background: var(--c-primary-100); overflow: hidden; }
.progress__bar span { display: block; height: 100%; width: 0; background: var(--c-primary); transition: width 0.25s var(--ease); }
.progress__label { margin-top: 6px; font-size: 13.5px; color: var(--c-muted); }
.install__steps { margin: 0 0 14px; padding-left: 22px; color: var(--c-text); font-size: 15px; }
.install__steps li { margin: 6px 0; }
.install__steps .icon { width: 18px; height: 18px; color: var(--c-reserved); }
.install__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Knoppen ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.12s, box-shadow 0.2s;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn--primary { background: var(--c-primary); color: #fff; }
.btn--primary:hover { background: var(--c-primary-dark); }
.btn--secondary { background: var(--c-primary-50); color: var(--c-primary-dark); border-color: var(--c-primary-100); }
.btn--ghost { background: transparent; color: var(--c-primary-dark); border-color: var(--c-border); }
.btn--small { min-height: 40px; padding: 7px 14px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn .icon { width: 20px; height: 20px; }

/* ---------- Kopbalk subpagina's ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: calc(16px + var(--safe-top)) calc(var(--gutter) + var(--safe-right)) 12px calc(var(--gutter) + var(--safe-left));
  background: rgba(243, 244, 241, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(225, 229, 225, 0.6);
}
.netbar:not([hidden]) ~ main .topbar { top: 0; }
.topbar__title { font-size: 28px; font-weight: 800; letter-spacing: -0.015em; }
.topbar__sub { color: var(--c-muted); font-size: 15px; margin-top: 2px; }

.list {
  display: grid;
  gap: 14px;
  padding: 14px calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left));
}

.skeleton {
  height: 180px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #e9ece8 0%, #f4f6f3 40%, #e9ece8 80%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.empty {
  text-align: center;
  padding: 36px 20px;
  color: var(--c-muted);
}
.empty .icon { width: 44px; height: 44px; color: var(--c-primary); stroke-width: 1.6; margin: 0 auto 10px; display: block; }
.empty h2 { font-size: 18px; color: var(--c-text); margin-bottom: 6px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
}
.badge .icon { width: 14px; height: 14px; stroke-width: 2.5; }
.badge--te_boeken { background: var(--c-todo-bg); color: var(--c-todo); }
.badge--gereserveerd { background: var(--c-reserved-bg); color: var(--c-reserved); }
.badge--bevestigd { background: var(--c-confirmed-bg); color: var(--c-confirmed); }
.badge--example { background: #ece7f7; color: #4b3a7a; }

/* ---------- Accommodaties ---------- */
.acc {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}
.acc.is-highlight { box-shadow: 0 0 0 3px var(--c-accent), var(--shadow); }
.acc__media { position: relative; aspect-ratio: 16 / 9; background: var(--c-primary-100); }
.acc__media img { width: 100%; height: 100%; object-fit: cover; }
.acc__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: var(--c-primary-dark);
  background:
    radial-gradient(120% 90% at 80% 0%, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(160deg, #cfe3d6 0%, #a9cbb6 55%, #86b39a 100%);
  font-weight: 650;
}
.acc__placeholder .icon { width: 46px; height: 46px; stroke-width: 1.5; }
.acc__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.acc__badges .badge { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.acc__body { padding: 16px 18px 18px; }
.acc__type { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--c-primary-600); }
.acc__name { font-size: 21px; font-weight: 780; margin-top: 2px; overflow-wrap: anywhere; }
.meta { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.meta li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: start; color: var(--c-text); font-size: 15px; }
.meta .icon { width: 18px; height: 18px; color: var(--c-primary); margin-top: 2px; }
.meta small { display: block; color: var(--c-muted); font-size: 13.5px; }
.acc__desc { margin-top: 12px; color: var(--c-text); }
.acc__notes {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-size: 14.5px;
}
.acc__notes strong { display: block; font-size: 13px; color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.acc__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.acc__actions .btn { flex: 1 1 auto; }

.rich p + p, .rich p + ul, .rich ul + p { margin-top: 10px; }
.rich ul { margin: 8px 0 0; padding-left: 20px; }
.rich li { margin: 3px 0; }
.rich { overflow-wrap: anywhere; }

/* ---------- Etappes ---------- */
.totals {
  margin: 14px calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  gap: 8px;
}
.totals__item {
  background: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 12px;
}
.totals__val { font-size: 19px; font-weight: 800; color: var(--c-primary); font-variant-numeric: tabular-nums; }
.totals__lbl { font-size: 12.5px; color: var(--c-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

.stage {
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-margin-top: 110px;
}
.stage__head {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.stage__day {
  width: 54px;
  min-height: 54px;
  border-radius: 14px;
  background: var(--c-primary);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.05;
}
.stage__day small { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.stage__day strong { font-size: 22px; font-weight: 800; }
.stage--example .stage__day { background: #6b5aa3; }
.stage__head > span { min-width: 0; }
.stage__date, .stage__title, .stage__route { display: block; }
.stage__head .stats { margin-top: 8px; }
.stage__date { font-size: 13.5px; font-weight: 650; color: var(--c-primary-600); }
.stage__title { font-size: 18px; font-weight: 750; margin-top: 2px; overflow-wrap: anywhere; }
.stage__route { color: var(--c-muted); font-size: 14.5px; margin-top: 2px; overflow-wrap: anywhere; }
.stage__chev {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--c-surface-2);
  color: var(--c-muted);
  transition: transform 0.3s var(--ease), background 0.2s;
}
.stage.is-open .stage__chev { transform: rotate(180deg); background: var(--c-primary-50); color: var(--c-primary); }
.stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; color: var(--c-text); font-weight: 600; }
.stats span { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.stats .icon { width: 16px; height: 16px; color: var(--c-primary); }

/* Soepel openklappen via grid-rijen. */
.stage__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s var(--ease);
}
.stage.is-open .stage__panel { grid-template-rows: 1fr; }
.stage__inner { overflow: hidden; min-height: 0; }
.stage__content { padding: 0 16px 18px; border-top: 1px solid var(--c-border); }
.stage:not(.is-open) .stage__content { visibility: hidden; }

.fromto {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 4px 12px;
  margin: 16px 0;
  font-size: 15px;
}
.fromto__dot { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--c-primary); margin: 5px auto 0; background: #fff; }
.fromto__dot--end { background: var(--c-primary); }
.fromto__line { width: 2px; height: 18px; margin: 0 auto; background: var(--c-primary-100); }
.fromto small { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--c-muted); font-weight: 700; }

.statgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.statgrid__item { background: var(--c-surface-2); border: 1px solid var(--c-border); border-radius: var(--radius); padding: 10px 12px; }
.statgrid__val { font-size: 18px; font-weight: 800; color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }
.statgrid__lbl { display: flex; align-items: center; gap: 5px; font-size: 13px; color: var(--c-muted); font-weight: 600; }
.statgrid__lbl .icon { width: 15px; height: 15px; }
.statgrid__src { font-size: 12px; color: var(--c-muted); }

.subhead { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); margin: 18px 0 8px; }

.linkcard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--c-primary-50);
  color: var(--c-text);
  text-decoration: none;
}
.linkcard .icon { color: var(--c-primary); }
.linkcard strong { display: block; }
.linkcard small { color: var(--c-muted); }

.notice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14.5px;
  background: var(--c-primary-50);
  color: var(--c-primary-dark);
}
.notice .icon { width: 20px; height: 20px; margin-top: 1px; }
.notice--warn { background: var(--c-warn-bg); color: var(--c-warn); margin: 14px calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left)); }
.notice--muted { background: var(--c-surface-2); color: var(--c-muted); border: 1px dashed var(--c-border); }
.notice--danger { background: var(--c-danger-bg); color: var(--c-danger); }

/* Kaart */
.routemap { margin-top: 8px; }
.routemap__frame {
  position: relative;
  height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background-color: #eef1ec;
  background-image:
    linear-gradient(rgba(31, 92, 67, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 92, 67, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  isolation: isolate;
}
.routemap__map { position: absolute; inset: 0; background: transparent; }
.routemap__map.leaflet-container { background: transparent; font-family: var(--font); }
.routemap__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--c-muted); font-size: 14px; }
.routemap__note {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 500;
  max-width: calc(100% - 16px);
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  color: var(--c-muted);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}
.routemap__close {
  position: absolute;
  top: calc(10px + var(--safe-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: none;
}
.routemap__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.routemap__actions .btn { flex: 1 1 140px; }

.routemap.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  margin: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 0 0 var(--safe-bottom);
}
.routemap.is-fullscreen .routemap__frame { flex: 1; height: auto; border-radius: 0; border: 0; }
.routemap.is-fullscreen .routemap__close { display: inline-flex; box-shadow: var(--shadow-lg); }
.routemap.is-fullscreen .routemap__close:active { transform: translateX(-50%) scale(0.98); }
.routemap.is-fullscreen .routemap__actions { display: none; }
.routemap.is-fullscreen .profile { margin: 0; padding: 8px calc(12px + var(--safe-right)) 4px calc(12px + var(--safe-left)); border-radius: 0; border: 0; border-top: 1px solid var(--c-border); }
body.has-fullscreen-map { overflow: hidden; }
body.has-fullscreen-map .tabbar { display: none; }

.marker-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.marker-dot--start { background: var(--c-primary); }
.marker-dot--end { background: #b3261e; }
.marker-dot--wpt { width: 14px; height: 14px; border-width: 2px; background: var(--c-accent); }
.marker-dot--cursor { width: 16px; height: 16px; background: #1d5fa8; }

/* Hoogteprofiel */
.profile {
  margin-top: 10px;
  padding: 10px 12px 6px;
  border-radius: var(--radius);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
}
.profile__head { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--c-muted); font-weight: 600; }
.profile__readout { color: var(--c-primary-dark); font-variant-numeric: tabular-nums; }
.profile svg { display: block; width: 100%; height: 110px; touch-action: pan-y; }
.profile__area { fill: rgba(31, 92, 67, 0.16); }
.profile__line { fill: none; stroke: var(--c-primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.profile__grid { stroke: rgba(23, 32, 27, 0.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
.profile__cursor { stroke: #1d5fa8; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.profile__axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--c-muted); font-variant-numeric: tabular-nums; }

/* ---------- Weer ---------- */
.weather-meta {
  margin: 12px calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left));
  font-size: 14px;
  color: var(--c-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.weather-meta:empty { display: none; }
.weather-meta .badge { font-size: 12.5px; }
.wx {
  border-radius: var(--radius-lg);
  background: var(--c-surface);
  box-shadow: var(--shadow);
  padding: 16px;
}
.wx__head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.wx__day { font-size: 17px; font-weight: 750; }
.wx__stage { color: var(--c-muted); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.wx__loc { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c-primary-600); font-weight: 600; margin-top: 6px; }
.wx__loc .icon { width: 16px; height: 16px; }
.wx__main { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-top: 12px; }
.wx__icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e3f0fa, #cfe4f5);
  color: #1d5fa8;
}
.wx__icon .icon { width: 40px; height: 40px; stroke-width: 1.7; }
.wx__icon--sun { background: linear-gradient(145deg, #fff3d1, #ffe3a1); color: #b86b00; }
.wx__icon--storm { background: linear-gradient(145deg, #e6e3f3, #d2cdea); color: #4b3a7a; }
.wx__temp { font-size: 28px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wx__temp small { font-size: 18px; color: var(--c-muted); font-weight: 700; }
.wx__desc { color: var(--c-text); font-weight: 600; }
.wx__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.wx__cell { background: var(--c-surface-2); border-radius: var(--radius-sm); padding: 8px 10px; }
.wx__cell small { display: flex; align-items: center; gap: 5px; color: var(--c-muted); font-size: 12.5px; font-weight: 600; }
.wx__cell small .icon { width: 14px; height: 14px; }
.wx__cell strong { font-variant-numeric: tabular-nums; }
.wx .notice { margin-top: 12px; }
.wx--stale { border: 1px solid #f0d9a8; }

/* ---------- Navigatiebalk ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: calc(var(--tabbar-h) + var(--safe-bottom));
  padding: 0 var(--safe-right) var(--safe-bottom) var(--safe-left);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--c-border);
  box-shadow: 0 -4px 18px rgba(23, 32, 27, 0.06);
}
.tabbar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  color: #5f6b64;
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 650;
  position: relative;
}
.tabbar__item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.tabbar__item .icon {
  width: 46px;
  height: 30px;
  padding: 4px 12px;
  border-radius: 99px;
  transition: background 0.2s, color 0.2s;
}
.tabbar__item[aria-current="page"] { color: var(--c-primary); }
.tabbar__item[aria-current="page"] .icon { background: var(--c-primary-100); stroke-width: 2.3; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 14px);
  transform: translateX(-50%);
  z-index: 60;
  width: max-content;
  max-width: calc(100% - 32px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #1d2621;
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s var(--ease);
}
.toast button { background: none; border: 0; color: #9fe0bd; font-weight: 700; padding: 6px; cursor: pointer; min-height: 36px; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Voettekst ---------- */
.credits { margin: 28px 4px 0; font-size: 12.5px; color: var(--c-muted); line-height: 1.45; }
.credits p + p { margin-top: 6px; }
.credits a { color: inherit; }
.credits--inline { margin: 18px calc(var(--gutter) + var(--safe-right)) 0 calc(var(--gutter) + var(--safe-left)); }
.credits__version { opacity: 0.8; }

.noscript { padding: 24px; text-align: center; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
.empty p + p { margin-top: 10px; }

/* ---------- Grotere schermen ---------- */
@media (min-width: 560px) {
  .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview .ocard:first-child { grid-column: 1 / -1; }
  .statgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .wx__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .routemap__frame { height: 340px; }
}
@media (min-width: 761px) {
  body { background: linear-gradient(180deg, #e7ebe6 0%, var(--c-bg) 420px); }
  .app { box-shadow: 0 0 0 1px rgba(23, 32, 27, 0.04); }
  .hero { border-radius: 0 0 28px 28px; }
  .tabbar { border-radius: 20px 20px 0 0; }
}
@media (max-width: 359px) {
  :root { --gutter: 12px; }
  .card { padding: 16px; }
  .countdown__grid { gap: 6px; }
  .tabbar__item { font-size: 10.5px; letter-spacing: -0.015em; }
  .tabbar__item span { padding: 0; }
  .tabbar__item .icon { width: 40px; padding: 4px 9px; }
  .stage__head { gap: 10px; padding: 14px 12px; }
  .stage__day { width: 46px; min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Leaflet: grotere bedieningsknoppen voor aanraken. */
.leaflet-touch .leaflet-bar a { width: 40px; height: 40px; line-height: 40px; }
.leaflet-control-layers-toggle { width: 40px !important; height: 40px !important; }
