:root {
  --bg: #f8f3e9;
  --paper: #fff8e8;
  --ink: #16202c;
  --muted: #4f5963;
  --line: #18202a;
  --blue: #0f4f7d;
  --green: #34785e;
  --yellow: #f5c64b;
  --pink: #d95c9b;
  --red: #cf2f26;
  --dark: #102d4c;
  --shadow: 8px 8px 0 rgba(22, 32, 44, 0.14);
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(245, 198, 75, 0.28), transparent 11rem),
    radial-gradient(circle at 88% 12%, rgba(102, 196, 255, 0.24), transparent 14rem),
    linear-gradient(180deg, rgba(207, 47, 38, 0.06), transparent 28rem),
    var(--bg);
  color: var(--ink);
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(22, 32, 44, 0.11) 1px, transparent 1.5px),
    linear-gradient(90deg, rgba(22, 32, 44, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 32, 44, 0.035) 1px, transparent 1px);
  background-size: 38px 38px, 120px 120px, 120px 120px;
  opacity: 0.45;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, audio { font: inherit; }

.topbar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem clamp(1rem, 3vw, 2rem);
  background: rgba(255, 248, 232, 0.94);
  border-bottom: 3px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  min-width: 0;
  justify-content: center;
}

.brand-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  filter: drop-shadow(3px 3px 0 rgba(22, 32, 44, 0.18));
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
}

.desktop-nav {
  display: none;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.desktop-nav a, .bottom-nav a {
  text-decoration: none;
  font-weight: 750;
  color: var(--muted);
}

.desktop-nav a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  border: 2px solid transparent;
}

.desktop-nav a:hover, .desktop-nav a:focus-visible {
  background: #fff0bc;
  color: var(--ink);
  border-color: var(--line);
}

.hero {
  width: min(720px, calc(100% - 1.1rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0 1.2rem;
  text-align: center;
}

.hero-copy {
  position: relative;
}

.hero-copy::after {
  content: "Wij zoeken, zien en reizen!";
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  background: #fff8e8;
  border: 3px solid var(--line);
  border-radius: 999px 999px 999px 14px;
  color: var(--ink);
  font-weight: 900;
  transform: rotate(-1deg);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  display: inline-block;
  padding: 0.25rem 0.55rem;
  background: #fff0bc;
  border: 2px solid var(--line);
  border-radius: 8px;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 16ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
  font-size: clamp(2rem, 10vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0;
  color: var(--red);
  text-shadow: 3px 3px 0 #fff8e8, 5px 5px 0 rgba(16, 45, 76, 0.22);
}

.day-menu {
  margin-top: 1rem;
}

.day-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.day-grid a {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  text-decoration: none;
  text-align: left;
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(22, 32, 44, 0.1);
}

.day-grid span {
  width: fit-content;
  padding: 0.22rem 0.55rem;
  background: #fff0bc;
  border: 2px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.day-grid strong {
  font-size: 1.25rem;
  color: var(--red);
}

.day-grid small {
  color: var(--muted);
  font-size: 0.95rem;
}

.day-note {
  text-align: center;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
  color: var(--dark);
}

h3 {
  margin-bottom: 0.35rem;
  font-size: clamp(1.1rem, 1.6vw, 1.45rem);
  color: var(--ink);
}

.lead {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--muted);
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.5rem;
}

.button, .icon-button {
  border: 0;
  min-height: 44px;
  border-radius: 8px;
  padding: 0.72rem 1rem;
  font-weight: 850;
  cursor: pointer;
  text-decoration: none;
}

.primary {
  background: var(--dark);
  color: #fff;
  border: 3px solid var(--line);
  box-shadow: 4px 4px 0 rgba(22, 32, 44, 0.22);
}

.ghost {
  background: #fff8e8;
  color: var(--ink);
  border: 3px solid var(--line);
}

.button:hover, .icon-button:hover {
  transform: translateY(-1px);
}

.hero-panel {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotate(0.5deg);
  max-width: 560px;
  margin: 0 auto;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  border-top: 3px solid var(--line);
}

.quick-stats div {
  padding: 1rem;
  border-right: 3px solid var(--line);
}

.quick-stats div:last-child { border-right: 0; }
.quick-stats dt {
  color: var(--muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.quick-stats dd {
  margin: 0.2rem 0 0;
  font-weight: 900;
  font-size: 1.2rem;
}

.notice {
  width: min(720px, calc(100% - 1.1rem));
  margin: 0 auto 1rem;
  padding: 1rem;
  background: #fff0bc;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 4px 4px 0 rgba(22, 32, 44, 0.1);
}

.layout {
  width: min(720px, calc(100% - 1.1rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: start;
}

.section-heading { margin: 2.5rem 0 1rem; }
.section-heading { text-align: center; }
.timeline { position: relative; }

.stop-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  margin-bottom: 1rem;
  scroll-margin-top: 90px;
}

.stop-card:nth-of-type(odd) .card-body {
  transform: rotate(-0.35deg);
}

.stop-card:nth-of-type(even) .card-body {
  transform: rotate(0.35deg);
}

.time {
  position: static;
  align-self: start;
  padding: 0.75rem 0.5rem;
  color: #fff;
  background: var(--red);
  border: 3px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  text-align: center;
  box-shadow: 3px 3px 0 rgba(22, 32, 44, 0.18);
  width: fit-content;
  margin: 0 auto;
}

.card-body, .map-shell, .section, .score-board, .tour-grid article, .practical-grid div {
  background: var(--paper);
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(22, 32, 44, 0.1);
}

.card-body { padding: 1rem; }
.card-body {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.45), transparent 42%),
    var(--paper);
}

.stop-photo {
  margin: 0.85rem 0;
  border: 3px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 4px 4px 0 rgba(22, 32, 44, 0.14);
}

.stop-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-title {
  display: flex;
  align-items: start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.tag {
  flex: 0 0 auto;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  border: 2px solid var(--line);
  box-shadow: 2px 2px 0 rgba(22, 32, 44, 0.15);
}

.tag.green { background: var(--green); }
.tag.yellow { background: #9a6a00; }
.tag.blue { background: var(--blue); }
.tag.dark { background: var(--dark); }
.tag.pink { background: var(--pink); }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0;
  justify-content: center;
}

.chips span, .poster-note {
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  background: #e9f6ff;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  border: 2px solid rgba(22, 32, 44, 0.4);
}

.poster-note {
  margin: 0.85rem 0 0;
  background: #e8f7ec;
}

details, .guide {
  margin: 0.75rem 0;
  padding: 0.75rem;
  background: #fff0bc;
  border: 2px dashed rgba(22, 32, 44, 0.35);
  border-radius: 8px;
}

summary {
  cursor: pointer;
  font-weight: 850;
}

audio {
  width: 100%;
  margin: 0.4rem 0 0.65rem;
}

.route-panel {
  position: static;
}

.map-shell { padding: 1rem; }
.map-head {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  text-align: center;
}

.map-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.maps-link {
  display: inline-grid;
  place-items: center;
}

.icon-button {
  background: var(--dark);
  color: #fff;
}

.map {
  width: 100%;
  height: min(72vh, 430px);
  border-radius: var(--radius);
  border: 3px solid var(--line);
  overflow: hidden;
  cursor: pointer;
}

.map-hint {
  margin: 0.65rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.large-map { height: min(70vh, 720px); }

.route-list {
  margin: 1rem 0 0;
  padding-left: 1.4rem;
  color: var(--muted);
}

.route-list li {
  margin-bottom: 0.45rem;
  cursor: pointer;
}

.route-list li.active {
  color: var(--blue);
  font-weight: 900;
}

.section {
  width: min(720px, calc(100% - 1.1rem));
  margin: 1.25rem auto;
  padding: clamp(1rem, 3vw, 1.6rem);
}

.poster-section {
  background: linear-gradient(135deg, #fff8e8 0%, #fff0bc 44%, #e9f6ff 100%);
}

.poster-copy {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  text-align: center;
}

.poster-preview {
  display: block;
  padding: 0.7rem;
  background: #fff8e8;
  border: 3px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.poster-preview img {
  width: 100%;
  border-radius: 6px;
}

.tour-grid, .practical-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.tour-grid article, .practical-grid div {
  padding: 1rem;
}

.practical-grid {
  grid-template-columns: 1fr;
}

.map-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  padding: 1rem;
  background: rgba(23, 32, 51, 0.72);
}

.map-modal {
  width: min(1100px, 100%);
  margin: 3vh auto;
  padding: 1rem;
  background: var(--paper);
  border-radius: var(--radius);
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(255, 248, 232, 0.96);
  border-top: 3px solid var(--line);
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  min-height: 56px;
  display: grid;
  place-items: center;
  color: var(--ink);
}

.leaflet-marker-icon.numbered {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
  font-weight: 950;
}

@media (min-width: 900px) {
  .hero, .layout, .section, .notice {
    max-width: 760px;
  }
}

@media (max-width: 980px) {
  .hero, .layout {
    grid-template-columns: 1fr;
  }
  .route-panel {
    position: static;
  }
  .bottom-nav {
    display: grid;
  }
  body {
    padding-bottom: 66px;
  }
}

@media (max-width: 680px) {
  .topbar {
    padding: 0.45rem 1rem;
  }
  .brand small {
    display: none;
  }
  .hero {
    width: min(100% - 1rem, 720px);
    padding-top: 1.25rem;
  }
  h1 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }
  .quick-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .layout, .section, .notice {
    width: min(100% - 1rem, 1180px);
  }
  .card-title {
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
  }
  .map {
    height: 340px;
  }
  .badge-grid, .tour-grid, .practical-grid {
    grid-template-columns: 1fr;
  }
  .score-board {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
