/* ==========================================================================
   Stedengids – publieke site
   Idee: een museumzaal. Schilderijen in een vergulde lijst met een wit
   bordje eronder; de rest van de pagina blijft rustig en goed leesbaar.
   ========================================================================== */

:root {
  --wall:        #EEF1EF;   /* lichte zaalwand, achtergrond */
  --paper:       #FFFFFF;   /* bordjes en kaarten */
  --ink:         #1B2430;   /* tekst */
  --muted:       #475261;   /* bijtekst (contrast > 7:1 op --wall) */
  --museum:      #24476B;   /* links, knoppen */
  --museum-dark: #183552;
  --gallery:     #22394B;   /* donkere zaal achter de schilderijen */
  --gilt:        #B48A3C;   /* vergulde lijst, alleen decoratief */
  --gilt-light:  #D9BC7A;
  --line:        #C9D1CE;
  --rain:        #5C8FB8;
  --warm:        #C2552B;
  --focus:       #F2B705;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-0: 1.25rem;                              /* 20px basistekst */
  --step-1: clamp(1.375rem, 1.2rem + .6vw, 1.6rem);
  --step-2: clamp(1.75rem, 1.4rem + 1.2vw, 2.35rem);
  --step-3: clamp(2.6rem, 1.6rem + 4.5vw, 5.6rem); /* stadsnaam in de hero */

  --radius: 10px;
  --wrap: 1200px;
  --tap: 52px;                                   /* minimale klikgrootte */
}

html[data-textsize="l"]  { font-size: 112.5%; }
html[data-textsize="xl"] { font-size: 125%; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { overflow-x: clip;
  margin: 0; background: var(--wall); color: var(--ink);
  font: 400 var(--step-0)/1.65 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--museum); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--museum-dark); text-decoration-thickness: .14em; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; color: var(--ink); }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -100px; background: var(--paper); padding: .75rem 1rem; z-index: 100; font-weight: 600; }
.skip:focus { top: 1rem; }
.icon { width: 1.2em; height: 1.2em; vertical-align: -.2em; flex-shrink: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.block { padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 46rem; }
.prose { max-width: 44rem; }
.lead-prose p:first-child { font-size: var(--step-1); line-height: 1.6; }
.section-intro { color: var(--muted); max-width: 42rem; margin-top: -.25rem; }
.hint { color: var(--muted); font-size: 1.05rem; margin-top: .75rem; }

/* ---------- knoppen ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; min-height: var(--tap);
  padding: .6rem 1.4rem; border: 2px solid var(--museum); border-radius: 999px;
  background: var(--museum); color: #fff; font: 600 1.1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--museum-dark); border-color: var(--museum-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--museum); }
.btn-ghost:hover { background: var(--museum); color: #fff; }

/* ---------- kop van de site ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: 72px; flex-wrap: wrap; padding-block: .5rem; }
.brand { font: 600 1.6rem/1 var(--serif); color: var(--ink); text-decoration: none; margin: 0; }
.header-search { display: flex; margin-left: auto; flex: 1 1 260px; max-width: 420px; }
.header-search input {
  flex: 1; min-height: var(--tap); font: inherit; font-size: 1.1rem; padding: .5rem 1rem;
  border: 2px solid var(--line); border-right: 0; border-radius: 999px 0 0 999px; background: var(--wall); min-width: 0;
}
.header-search input:focus { border-color: var(--museum); background: #fff; }
.header-search button {
  min-width: var(--tap); border: 2px solid var(--museum); border-radius: 0 999px 999px 0;
  background: var(--museum); color: #fff; cursor: pointer;
}
.textsize { display: flex; align-items: center; gap: .25rem; color: var(--muted); }
.textsize button {
  min-width: 44px; min-height: 44px; border: 2px solid var(--line); background: var(--paper); color: var(--ink);
  border-radius: 8px; font: 700 1rem/1 var(--serif); cursor: pointer;
}
.textsize .ts-l { font-size: 1.2rem; } .textsize .ts-xl { font-size: 1.45rem; }
.textsize button[aria-pressed="true"] { border-color: var(--museum); background: var(--museum); color: #fff; }

/* ---------- kruimelpad ---------- */
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: 1.05rem; }
.breadcrumbs li { display: flex; align-items: center; gap: .5rem; }
.breadcrumbs li + li::before { content: "›"; color: var(--muted); font-size: 1.3em; line-height: 1; }
.breadcrumbs a { padding-block: .4rem; }
.breadcrumbs [aria-current] { font-weight: 600; }
.breadcrumbs.on-image ol {
  display: inline-flex; background: rgba(17, 30, 42, .7);
  padding: .45rem 1.1rem; border-radius: 999px;
}
.breadcrumbs.on-image a, .breadcrumbs.on-image span, .breadcrumbs.on-image li::before { color: #fff; }

/* ---------- home ---------- */
.home-hero { background: var(--gallery); color: #fff; padding-block: clamp(3rem, 2rem + 6vw, 6.5rem); }
.home-hero h1 { color: #fff; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem); max-width: 18ch; }
.home-hero .lead { color: #E3EAF0; }
.big-search { margin-top: 2rem; max-width: 40rem; }
.big-search label { display: block; font-weight: 600; margin-bottom: .5rem; }
.big-search-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.big-search input {
  flex: 1 1 260px; min-height: 60px; font: inherit; font-size: 1.25rem; padding: .6rem 1.2rem;
  border-radius: 999px; border: 3px solid var(--gilt-light); background: #fff; color: var(--ink);
}
.big-search .btn { min-height: 60px; padding-inline: 2rem; font-size: 1.2rem; background: var(--gilt); border-color: var(--gilt); color: var(--ink); }
.big-search .btn:hover { background: var(--gilt-light); border-color: var(--gilt-light); }
.notfound .big-search label { color: var(--ink); }
.page-head { padding-top: 2rem; }
.page-head h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.3rem); margin-top: 1rem; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .75rem; }
.chip {
  display: inline-flex; align-items: center; gap: .6rem; min-height: var(--tap); padding: .4rem 1.2rem;
  background: var(--paper); border: 2px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600;
}
.chip:hover, .chip.is-active { border-color: var(--museum); color: var(--museum); }
.chip-n { font-weight: 400; color: var(--muted); font-size: .95rem; }

.city-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.empty { background: var(--paper); border-left: 6px solid var(--gilt); padding: 1.25rem 1.5rem; border-radius: 6px; margin-bottom: 2rem; max-width: 44rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3rem; flex-wrap: wrap; }
.pager-info { color: var(--muted); }

/* ---------- lijst + bordje (signatuur) ---------- */
.frame {
  display: block; background: var(--paper); padding: 10px;
  border: 7px solid var(--gilt);
  box-shadow: inset 0 0 0 1px var(--gilt-light), 0 14px 28px -12px rgba(10, 20, 30, .45);
}
.frame img, .frame-empty { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame-empty { display: grid; place-items: center; background: #E4E8E6; color: var(--muted); }
.frame-empty .icon { width: 3rem; height: 3rem; }
.plaque {
  display: block; background: var(--paper); margin: 1.1rem auto 0; width: 88%; padding: 1rem 1.2rem 1.1rem;
  border-radius: 3px; box-shadow: 0 2px 0 rgba(0, 0, 0, .08);
}
.plaque-title { display: block; font: 600 var(--step-1)/1.25 var(--serif); margin: 0 0 .3rem; color: var(--ink); }
.plaque-meta { display: block; color: var(--muted); font-size: 1.05rem; margin: 0 0 .4rem; }
.plaque-text { display: block; font-size: 1.1rem; line-height: 1.55; margin: 0 0 .4rem; color: var(--ink); }
.plaque-link { margin: .3rem 0 0; font-size: 1.05rem; }
.city-card { display: block; text-decoration: none; color: inherit; }
.city-card:hover .frame { border-color: var(--gilt-light); }
.city-card:hover .plaque-title { text-decoration: underline; text-underline-offset: .2em; }

/* ---------- stad: hero ---------- */
.city-hero {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  min-height: clamp(520px, 82vh, 920px); color: #fff;
  background: var(--gallery) var(--hero) center / cover no-repeat;
}
.city-hero.no-image { background: linear-gradient(160deg, #2F5372, var(--gallery)); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 25, 35, .35) 0%, rgba(15, 25, 35, 0) 30%, rgba(15, 25, 35, .15) 55%, rgba(15, 25, 35, .78) 100%); }
.hero-top, .hero-bottom { position: relative; }
.hero-top { padding-top: 1.25rem; }
.hero-bottom { padding-bottom: clamp(2rem, 1rem + 4vw, 4.5rem); }
.city-hero h1 {
  color: #fff; font-size: var(--step-3); line-height: .98; margin: 0 0 .35em; letter-spacing: -.01em;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .45);
}
.hero-where { font-size: var(--step-1); margin: 0 0 .3rem; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.hero-aka { font-size: 1.15rem; margin: 0; color: #E8EEF2; text-shadow: 0 1px 10px rgba(0, 0, 0, .6); max-width: 46rem; }
.hero-credit {
  position: absolute; right: 1rem; bottom: .75rem; margin: 0; font-size: .9rem; color: #E8EEF2;
  background: rgba(17, 30, 42, .55); padding: .2rem .7rem; border-radius: 999px;
}

/* ---------- inhoudsopgave ---------- */
.toc { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.toc-row { display: flex; align-items: center; gap: 1rem; }
.toc-label { font-weight: 600; color: var(--muted); white-space: nowrap; }
.toc ul { list-style: none; margin: 0; padding: .5rem 0; display: flex; flex: 1; min-width: 0; gap: .4rem; overflow-x: auto; scrollbar-width: thin; }
.toc a {
  display: inline-flex; align-items: center; min-height: 48px; padding: .3rem 1rem; white-space: nowrap;
  border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--museum);
}
.toc a:hover, .toc a.is-active { background: var(--museum); color: #fff; }

/* ---------- intro + feiten ---------- */
.intro { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .intro { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } }
.facts { background: var(--paper); border-top: 6px solid var(--gilt); padding: 1.5rem; border-radius: 0 0 var(--radius) var(--radius); }
.facts h3 { font-size: 1.4rem; }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .55rem 1rem; font-size: 1.1rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

/* ---------- donkere zaal met schilderijen ---------- */
.gallery-wall { background: var(--gallery); color: #E8EEF2; }
.gallery-wall h2 { color: #fff; }
.gallery-wall .section-intro { color: #C9D6E0; }
.gallery-wall .carousel-btn { background: var(--paper); }
.gallery-wall .carousel-dots button::before { background: rgba(255, 255, 255, .35); }
.gallery-wall .carousel-dots button[aria-current="true"]::before { background: var(--gilt-light); }

/* inzweven van de schilderijen (één bewust moment) */
.js .gallery .reveal, .js .cities .reveal {
  opacity: 0; transform: translateY(36px) scale(.97);
  transition: opacity 1s ease, transform 1.1s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 120ms);
}
.js .gallery .reveal.is-visible, .js .cities .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .gallery .reveal, .js .cities .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- raster (≤ 3) en carrousel (> 3) ---------- */
.grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.carousel { position: relative; }
.carousel-track {
  position: relative; list-style: none; margin: 0; padding: .5rem .25rem 1.5rem; display: flex; gap: 2rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 calc((100% - 4rem) / 3); scroll-snap-align: start; }
@media (max-width: 1000px) { .carousel .slide { flex-basis: calc((100% - 2rem) / 2); } }
@media (max-width: 640px)  { .carousel .slide { flex-basis: 86%; } .carousel-track { gap: 1.25rem; } }
.carousel-btn {
  position: absolute; top: 38%; z-index: 2; width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--museum); background: var(--paper); color: var(--museum);
  display: grid; place-items: center; cursor: pointer; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .4);
}
.carousel-btn .icon { width: 28px; height: 28px; }
.carousel-btn:hover { background: var(--museum); color: #fff; }
.carousel-btn[disabled] { opacity: 0; pointer-events: none; }
.carousel-btn.prev { left: -14px; } .carousel-btn.next { right: -14px; }
@media (max-width: 640px) { .carousel-btn { display: none; } }
.carousel-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: .25rem; margin-top: .5rem; }
.carousel-dots button {
  width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center;
}
.carousel-dots button::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--line); transition: transform .2s, background .2s;
}
.carousel-dots button[aria-current="true"]::before { background: var(--museum); transform: scale(1.35); }
.no-js .carousel-dots, .no-js .carousel-btn { display: none; }

/* ---------- notities, evenementen, adressen ---------- */
.note, .event, .listing { background: var(--paper); border-radius: var(--radius); padding: 1.5rem; height: 100%; border: 1px solid var(--line); }
.note h3, .listing h3 { font-size: 1.45rem; }
.note p, .event p, .listing p { font-size: 1.12rem; }
.note-icon, .listing-icon { width: 2.1rem; height: 2.1rem; color: var(--gilt); margin-bottom: .6rem; }
.event { display: grid; grid-template-columns: 96px 1fr; gap: 1.25rem; align-items: start; }
.event-date {
  display: grid; place-items: center; text-align: center; aspect-ratio: 1; border: 3px solid var(--museum);
  border-radius: var(--radius); color: var(--museum); padding: .25rem;
}
.event-month { font: 600 1.2rem/1.15 var(--serif); }
.event-date .icon { width: 2rem; height: 2rem; }
.event h3 { font-size: 1.4rem; margin-bottom: .2rem; }
.event-period { color: var(--muted); font-weight: 600; }
.listing-tags { color: var(--muted); font-weight: 600; }
.listing-addr { color: var(--muted); }
.listing .btn { min-height: 48px; font-size: 1.05rem; padding-inline: 1rem; }

/* ---------- kaart ---------- */
.map { height: clamp(380px, 60vh, 620px); border-radius: var(--radius); border: 2px solid var(--line); background: #DDE3E0; }
.map-filter { border: 0; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.map-filter legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.check { display: inline-flex; align-items: center; gap: .55rem; min-height: 48px; cursor: pointer; }
.check input { width: 26px; height: 26px; accent-color: var(--museum); }
.dot { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.3); }
.dot-attraction { background: var(--gilt); } .dot-hotel { background: var(--museum); } .dot-restaurant { background: var(--warm); }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: .75rem; font-size: 1.05rem; line-height: 1.45; width: 230px !important; }
.pop img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 4px solid var(--gilt); margin-bottom: .5rem; }
.pop strong { display: block; font: 600 1.15rem/1.25 var(--serif); }
.pop .pop-cat { color: var(--muted); font-size: .95rem; }
.pop a { display: inline-block; margin-top: .35rem; font-weight: 600; }
.leaflet-bar a { width: 44px !important; height: 44px !important; line-height: 44px !important; font-size: 24px !important; }
.marker-pin { width: 30px; height: 30px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.45); }
.marker-pin.cat-attraction { background: var(--gilt); }
.marker-pin.cat-hotel { background: var(--museum); }
.marker-pin.cat-restaurant { background: var(--warm); }
.marker-city { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid #fff; box-shadow: 0 0 0 3px var(--ink); }

/* ---------- weer ---------- */
.weather-now {
  display: grid; gap: 1.5rem; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line);
  padding: 1.5rem; margin-bottom: 2.5rem; grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 800px) { .weather-now { grid-template-columns: 260px 1fr; align-items: center; } }
.wn-label { font-weight: 600; color: var(--muted); margin: 0; }
.wn-temp { font: 600 4rem/1 var(--serif); margin: .2rem 0; }
.wn-desc { font-size: var(--step-1); margin: 0; }
.wn-wind { color: var(--muted); margin: .3rem 0 0; }
.wn-days { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.wn-days li { text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem .5rem; background: var(--wall); }
.wn-day { font-weight: 600; display: block; }
.wn-days .icon { width: 2.4rem; height: 2.4rem; margin: .3rem auto; display: block; color: var(--museum); }
.wn-range { display: block; font-size: 1.1rem; }
.wn-range .lo { color: var(--muted); }

.climate { margin: 1.5rem 0; background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); padding: 1.25rem; }
.climate-chart { width: 100%; height: auto; font-family: var(--sans); }
.cc-grid { stroke: var(--line); stroke-width: 1; }
.cc-axis { fill: var(--muted); font-size: 15px; }
.cc-rain-axis { fill: var(--rain); }
.cc-rain { fill: var(--rain); opacity: .55; }
.cc-temp { fill: none; stroke: var(--warm); stroke-width: 3.5; stroke-linejoin: round; }
.cc-dot { fill: var(--paper); stroke: var(--warm); stroke-width: 3; }
.cc-val { fill: var(--ink); font-size: 15px; font-weight: 700; }
.cc-month { fill: var(--ink); font-size: 16px; }
.cc-month.is-now { font-weight: 700; }
.cc-now { fill: var(--gilt-light); opacity: .28; }
.climate figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: 1.05rem; margin-top: .75rem; }
.climate figcaption span::before { content: ""; display: inline-block; width: 22px; height: 12px; margin-right: .5rem; vertical-align: middle; border-radius: 3px; }
.legend-temp::before { background: var(--warm); height: 4px !important; }
.legend-rain::before { background: var(--rain); opacity: .6; }
.legend-now::before { background: var(--gilt-light); opacity: .55; }

.table-scroll { overflow-x: auto; max-width: 44rem; }
table { border-collapse: collapse; width: 100%; background: var(--paper); font-size: 1.1rem; }
th, td { text-align: left; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
thead th { background: var(--gallery); color: #fff; font-weight: 600; }
tbody th { font-weight: 600; }
tr.is-now { background: #FBF3DF; }
.names-table { max-width: 44rem; }
.names-table td { font-family: var(--serif); font-size: 1.15rem; }
details.more { margin-top: 1rem; max-width: 44rem; }
details.more summary {
  cursor: pointer; display: inline-flex; align-items: center; min-height: var(--tap); padding: .4rem 1.2rem;
  border: 2px solid var(--museum); border-radius: 999px; color: var(--museum); font-weight: 600;
}
details.more[open] summary { margin-bottom: 1rem; }

.two-col { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- voet ---------- */
.site-footer { background: var(--gallery); color: #D7E0E7; padding-block: 3rem; margin-top: 2rem; font-size: 1.05rem; }
.site-footer .brand { color: #fff; margin-bottom: .5rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1fr 2fr; } }

/* ---------- klein scherm ---------- */
@media (max-width: 640px) {
  :root { --step-0: 1.15rem; }
  .header-row { gap: .6rem; }
  .header-search { order: 3; flex-basis: 100%; max-width: none; }
  .textsize { margin-left: auto; }
  .textsize > .icon { display: none; }
  .city-hero { min-height: 72vh; }
  .toc-label { display: none; }
  .event { grid-template-columns: 72px 1fr; gap: 1rem; }
  .plaque { width: 94%; }
}

@media print {
  .site-header, .toc, .carousel-btn, .carousel-dots, .map, .weather-now, .textsize { display: none !important; }
  .city-hero { min-height: 0; color: var(--ink); background: none; }
  .city-hero h1, .hero-where, .hero-aka { color: var(--ink); text-shadow: none; }
  .carousel-track { flex-wrap: wrap; overflow: visible; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- aanvullingen na schermtest ---------- */
/* Menu: rechts laten uitvloeien zodat duidelijk is dat er meer onderwerpen zijn */
.toc ul { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); padding-right: 48px; }
/* Klimaatgrafiek op smalle schermen niet verkleinen, maar laten schuiven */
.climate { overflow-x: auto; }
@media (max-width: 700px) { .climate-chart { min-width: 680px; } }
/* Home: uitgelicht schilderij naast de kop; zoekbalk in de kop niet dubbel tonen */
.home-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .home-hero-grid { grid-template-columns: 1.1fr 1fr; } .home-hero-art { order: 2; } }
.home-hero-art .plaque { width: 70%; }
.home-hero-art:hover .plaque-title { text-decoration: underline; }
.page-home .header-search { display: none; }
.page-home .textsize { margin-left: auto; }
@media (max-width: 640px) {
  .hero-bottom { padding-bottom: 3.4rem; }
  .home-hero-art { display: none; }
}

/* ---------- veel POI's: overzichtelijke lijst onder de kaarten ---------- */
.painting > .plaque:first-child { margin-top: 0; width: 100%; min-height: 100%; }
.btn-sm { min-height: 44px; padding: .35rem .9rem; font-size: 1rem; }
details.more.poi-more { max-width: none; margin-top: 2rem; }
.poi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.poi-row {
  display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: flex-start; justify-content: space-between;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem;
}
.poi-main { flex: 1 1 220px; min-width: 0; }
.poi-main strong { font: 600 1.2rem/1.3 var(--serif); }
.poi-kind { display: block; color: var(--muted); font-size: 1rem; margin-top: .1rem; }
.poi-desc { font-size: 1.05rem; margin: .4rem 0 0; }
.poi-addr { font-size: 1rem; color: var(--muted); margin: .3rem 0 0; }
.poi-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.gallery-wall details.more summary { border-color: var(--gilt-light); color: #fff; }
.gallery-wall details.more summary:hover { background: rgba(255, 255, 255, .08); }

/* Privacyverklaring en voettekstlinks */
.privacy h2 { margin-top: 2rem; }
.privacy h3 { margin-top: 1.4rem; }
.footer-links a, .linklike { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.linklike:hover, .footer-links a:hover { text-decoration-thickness: 2px; }

/* ---------- carrousel: voetregel met puntjes en pauzeknop ---------- */
.carousel-foot { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; margin-top: .5rem; }
.carousel-foot .carousel-dots { margin-top: 0; }
.carousel-play {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 1rem;
  border: 2px solid currentColor; border-radius: 999px; background: transparent; color: var(--museum);
  font: inherit; font-size: 1rem; cursor: pointer;
}
.carousel-play .icon { width: 18px; height: 18px; }
.carousel-play:hover { background: var(--museum); color: #fff; }
.gallery-wall .carousel-play { color: var(--gilt-light); }
.gallery-wall .carousel-play:hover { background: var(--gilt-light); color: var(--gallery); }
.carousel-play .when-paused, .carousel.is-paused .carousel-play .when-playing { display: none; }
.carousel.is-paused .carousel-play .when-paused { display: inline-flex; align-items: center; gap: .4rem; }
.carousel-play .when-playing { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- schilderij vergroten ---------- */
.frame.can-zoom { position: relative; }
.frame.can-zoom img { cursor: zoom-in; }
.frame.can-zoom::after {
  content: ""; position: absolute; right: .6rem; bottom: .6rem; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(20, 30, 40, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 60% no-repeat;
  opacity: .85; pointer-events: none; transition: opacity .2s;
}
.frame.can-zoom:hover::after { opacity: 1; }
.frame img:focus-visible { outline: 4px solid var(--focus); outline-offset: -4px; }

.lightbox {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0E141C; color: #fff; overflow: hidden;
}
.lightbox::backdrop { background: rgba(14, 20, 28, .94); }
.lightbox[open] { display: grid; place-items: center; }
.lb-figure { margin: 0; max-width: min(92vw, 1500px); display: grid; gap: .9rem; justify-items: center; }
.lb-frame { border: 10px solid var(--gilt); box-shadow: 0 0 0 2px var(--gilt-light) inset, 0 20px 60px rgba(0,0,0,.6); background: #000; }
.lb-frame img { display: block; max-width: calc(92vw - 20px); max-height: calc(100vh - 13rem); width: auto; height: auto; }
.lightbox figcaption { text-align: center; max-width: 52rem; padding: 0 1rem; line-height: 1.5; }
.lb-title { display: block; font-family: var(--serif); font-size: var(--step-1); }
.lb-text { display: block; color: #D6DEE6; font-size: 1.05rem; }
.lb-count { display: block; color: #AEB9C4; font-size: .95rem; margin-top: .25rem; }
.lb-btn {
  position: absolute; width: var(--tap); height: var(--tap); border-radius: 50%; border: 2px solid rgba(255,255,255,.7);
  background: rgba(0,0,0,.45); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
}
.lb-btn:hover { background: var(--gilt); border-color: var(--gilt-light); }
.lb-btn:focus-visible { outline: 4px solid var(--focus); outline-offset: 2px; }
.lb-close { top: 1rem; right: 1rem; font-size: 1.4rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-frame { border-width: 6px; }
  .lb-frame img { max-height: calc(100vh - 15rem); }
}
body.lightbox-open { overflow: hidden; }
@media print { .carousel-play, .lightbox, .frame.can-zoom::after { display: none !important; } }

/* ---------- logo help2go ---------- */
.brand-logo { display: inline-flex; align-items: center; line-height: 0; padding: .25rem 0; border-radius: 6px; }
.brand-logo img { display: block; height: 48px; width: auto; }
.brand-logo:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
@media (max-width: 640px) { .brand-logo img { height: 38px; } }
.footer-logo { line-height: 0; }
.footer-logo img { display: block; height: 64px; width: auto; }

/* ---------- gekleurde categorie-iconen ---------- */
:root {
  --cat-over: #2F6FB0;        --cat-bezienswaardigheden: #B07A1E; --cat-kaart: #17807F;
  --cat-doen: #2C8A55;        --cat-evenementen: #C23F78;         --cat-overnachten: #5B4BC4;
  --cat-eten: #D2581F;        --cat-weer: #2289C2;                --cat-geschiedenis: #8A5A2B;
  --cat-vervoer: #1F7499;     --cat-reistijd: #CF4466;            --cat-namen: #56688A;
  --cat-buurt: #5F7F22;       --cat-praktisch: #1F7499;
}
.cat-badge {
  --c: var(--museum);
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, #fff);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--c) 28%, #fff);
}
.cat-badge svg { width: 52%; height: 52%; }
.cat-xs { width: 1.7rem; height: 1.7rem; margin-right: .45rem; box-shadow: none; }
.cat-sm { width: 2.1rem; height: 2.1rem; }
.cat-md { width: 3.1rem; height: 3.1rem; margin-bottom: .75rem; }
.cat-over { --c: var(--cat-over); } .cat-bezienswaardigheden { --c: var(--cat-bezienswaardigheden); }
.cat-kaart { --c: var(--cat-kaart); } .cat-doen { --c: var(--cat-doen); } .cat-evenementen { --c: var(--cat-evenementen); }
.cat-overnachten { --c: var(--cat-overnachten); } .cat-eten { --c: var(--cat-eten); } .cat-weer { --c: var(--cat-weer); }
.cat-geschiedenis { --c: var(--cat-geschiedenis); } .cat-vervoer { --c: var(--cat-vervoer); } .cat-reistijd { --c: var(--cat-reistijd); }
.cat-namen { --c: var(--cat-namen); } .cat-buurt { --c: var(--cat-buurt); } .cat-praktisch { --c: var(--cat-praktisch); }

.h-cat { display: flex; align-items: center; gap: .75rem; }
h3.h-cat { gap: .6rem; }

/* inhoudsopgave: icoontje voor elk item; actief item houdt een witte badge */
.toc a { padding-left: .45rem; }
.toc a:hover .cat-badge, .toc a.is-active .cat-badge { background: #fff; }

/* kaarten krijgen een gekleurde bovenrand in de kleur van hun categorie */
#doen .note        { border-top: 5px solid var(--cat-doen); }
#overnachten .listing { border-top: 5px solid var(--cat-overnachten); }
#eten .listing     { border-top: 5px solid var(--cat-eten); }
#evenementen .event { border-top: 5px solid var(--cat-evenementen); }
#evenementen .event-date {
  border-color: var(--cat-evenementen); color: var(--cat-evenementen);
  background: color-mix(in srgb, var(--cat-evenementen) 8%, #fff);
}
@media print { .cat-badge { box-shadow: none; } }
