/* Selfieroute Kampen – stylesheet */
:root {
  --blue: #1d4f9c;
  --blue-dark: #143a75;
  --cyan: #12b3d6;
  --cyan-soft: #e3f6fb;
  --red: #d7263d;
  --green: #8ccf6a;
  --ink: #1b2433;
  --muted: #5b6678;
  --line: #e3e8ef;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(20, 40, 80, .12);
  --header-h: 64px;
  --font-head: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; color: var(--blue-dark); }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; }
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .tool:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(215, 38, 61, .35); }
.btn-primary:hover { background: #bf1d33; }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.7); backdrop-filter: blur(4px); }
.btn-light { background: #fff; color: var(--blue); }
.btn-small { padding: .55em 1em; font-size: .9rem; }

.tag {
  display: inline-block; margin: 0 0 1rem; padding: .3em .9em; border-radius: 999px;
  background: var(--cyan); color: #fff; font-weight: 700; font-size: .95rem;
}
.tag-light { background: rgba(255,255,255,.18); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 1100;
  background: var(--blue); color: #fff;
  height: var(--header-h);
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand img { height: 46px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; }
.nav a:not(.btn):hover { color: #bfeaf5; }
.nav .btn { background: var(--red); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 3px; margin: 4px 0; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,58,117,.15) 0%, rgba(20,58,117,.35) 40%, rgba(12,30,62,.85) 100%); }
.hero-content { position: relative; padding: 6rem 0 4rem; max-width: 760px; margin-left: max(20px, (100% - 1180px) / 2); }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hero .lead { font-size: 1.2rem; max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.6rem 0 2rem; }
.hero-quote { margin: 0; font-style: italic; opacity: .85; }
.hero-quote cite { font-style: normal; font-size: .9em; }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

.steps { list-style: none; padding: 0; margin: 0 0 2.5rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.steps li { background: var(--bg-alt); border-radius: var(--radius); padding: 1.8rem; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--red); color: #fff; font: 800 1.2rem var(--font-head);
}
.step-num { line-height: 1; }
.steps li p { color: var(--muted); margin: 0; }
.speech {
  position: relative; max-width: 620px; padding: 1.2rem 1.5rem; border-radius: var(--radius);
  background: var(--cyan-soft); border: 2px solid var(--cyan);
}
.speech p { margin: 0; }
.speech::after {
  content: ""; position: absolute; left: 40px; bottom: -12px; width: 20px; height: 20px;
  background: var(--cyan-soft); border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(45deg);
}

/* ===== KAART ===== */
.map-section { background: var(--blue-dark); }
.map-shell { position: relative; height: min(78vh, 720px); min-height: 480px; display: grid; grid-template-columns: 1fr 380px; }
.map { position: relative; height: 100%; width: 100%; z-index: 1; background: #dfe7ee; }
.map-fallback { grid-column: 1; padding: 1rem; background: #fff; overflow: auto; }
.map-fallback img { border-radius: 8px; }

.map-topbar {
  position: absolute; z-index: 500; top: 14px; left: 14px; right: calc(380px + 14px);
  display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; pointer-events: none;
}
.map-topbar > * { pointer-events: auto; }
.progress {
  display: flex; align-items: center; gap: .7rem; padding: .5rem .9rem;
  background: #fff; border-radius: 999px; box-shadow: var(--shadow); font-size: .95rem;
}
.progress-bar { width: 90px; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--green); transition: width .4s ease; }

.map-tools { position: absolute; z-index: 500; right: calc(380px + 14px); bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.tool, .map-close {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; color: var(--blue);
}
.tool svg, .map-close svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.js-locate svg circle:first-child { fill: currentColor; stroke: none; }
.tool.is-active { background: var(--blue); color: #fff; }
.tool-expand { display: none; }
.locate-msg {
  position: absolute; z-index: 600; left: 50%; top: 70px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: .55rem 1rem; border-radius: 10px; font-size: .9rem; max-width: 90%;
}

.map-topbar .map-close { display: none; }

/* Spotlijst (desktop) */
.spot-rail {
  grid-column: 2; grid-row: 1; height: 100%; overflow-y: auto; background: #fff;
  padding: 12px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth;
}
.spot-card {
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 10px;
  border-radius: 14px; border: 2px solid transparent; background: var(--bg-alt); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.spot-card:hover { background: #eaf0f7; }
.spot-card.is-active { border-color: var(--red); background: #fff; box-shadow: var(--shadow); }
.spot-card.is-done .spot-photo::after {
  content: "✓"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(60, 160, 60, .55); color: #fff; font-size: 2rem; font-weight: 800;
}
.spot-photo { position: relative; width: 92px; height: 92px; border-radius: 10px; overflow: hidden; }
.spot-photo img { width: 100%; height: 100%; object-fit: cover; }
.spot-body { min-width: 0; }
.spot-title { display: flex; gap: .45rem; align-items: baseline; margin: 0 0 .15rem; font: 700 1.05rem/1.2 var(--font-head); color: var(--blue-dark); }
.spot-n { color: var(--red); }
.spot-name { min-width: 0; }
.spot-dist { font-size: .78rem; color: var(--muted); font-weight: 600; margin-left: auto; white-space: nowrap; font-family: var(--font-body); }
.spot-text { font-size: .88rem; color: var(--muted); margin: 0 0 .5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot-card.is-active .spot-text { -webkit-line-clamp: unset; }
.spot-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: .3em; padding: .35em .8em; border-radius: 99px;
  font: 700 .8rem/1 var(--font-body); text-decoration: none; border: 2px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
}
.chip-go { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-done[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* Leaflet-pins */
.pin { background: none; border: 0; }
.pin-inner {
  width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--red); border: 3px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35);
  display: grid; place-items: center; transition: transform .2s, background .2s;
}
.pin-inner span { transform: rotate(45deg); color: #fff; font: 800 13px/1 var(--font-body); }
.pin.is-done .pin-inner { background: #3a9a3a; }
.pin.is-active .pin-inner { transform: rotate(-45deg) scale(1.3); background: var(--blue); }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2b7bff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(43,123,255,.25); }
.leaflet-popup-content { font-family: var(--font-body); margin: 10px 14px; }
.leaflet-container { font-family: var(--font-body); }
.popup-title { font: 700 1rem var(--font-head); color: var(--blue-dark); }

/* Spots grid */
.spot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.grid-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 2px 10px rgba(20,40,80,.07); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.grid-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.grid-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.grid-card figure img { width: 100%; height: 100%; object-fit: cover; }
.grid-card .badge {
  position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff;
  font: 800 .95rem/1 var(--font-head); padding: .4em .65em; border-radius: 99px;
}
.grid-card .grid-body { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.grid-card h3 { font-size: 1.15rem; margin-bottom: .3em; }
.grid-card p { font-size: .93rem; color: var(--muted); flex: 1; }
.grid-card .chip { align-self: flex-start; }

/* Selfie wall */
.selfie-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.selfie-wall button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; aspect-ratio: 1; background: var(--line); }
.selfie-wall img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.selfie-wall button:hover img { transform: scale(1.06); }

/* Share */
.share { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.share h2, .share h3 { color: #fff; }
.share-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.hashtag-copy { display: inline-flex; align-items: center; gap: .8rem; margin: .5rem 0 1.5rem; padding: .5rem .5rem .5rem 1.2rem; border-radius: 99px; background: rgba(255,255,255,.12); }
.hashtag-copy code { font: 700 1.3rem var(--font-head); color: #fff; }
.socials { display: flex; flex-wrap: wrap; gap: .6rem; }
.socials a { color: #fff; border: 2px solid rgba(255,255,255,.4); padding: .45em 1em; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .95rem; }
.socials a:hover { background: rgba(255,255,255,.12); }
.share-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.share-card h3 { color: var(--blue-dark); }
.share-card p { color: var(--muted); }
.store-links { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; }
.store { padding: .55em 1em; border-radius: 10px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; font-size: .9rem; }

/* Partners */
.partners { padding: 3rem 0; }
.partners-title { font-size: 1.3rem; color: var(--muted); text-align: center; }
.partner-logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 1.5rem 2.5rem; }
.partner-logos img { max-height: 70px; width: auto; filter: grayscale(1); opacity: .75; transition: filter .2s, opacity .2s; }
.partner-logos a:hover img { filter: none; opacity: 1; }

/* Footer */
.site-footer { background: var(--ink); color: #aab4c4; font-size: .9rem; padding: 1.5rem 0; }
.site-footer a { color: #d6deea; }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-inner p { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(10,15,25,.9); display: grid; place-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 10px; }
.lightbox-close { position: absolute; top: 12px; right: 16px; font-size: 2.4rem; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* Editor */
.editor { position: fixed; z-index: 3000; left: 16px; bottom: 16px; width: 360px; max-width: calc(100% - 32px); background: #fff; padding: 1rem; border-radius: 12px; box-shadow: var(--shadow); font-size: .85rem; }
.editor[hidden] { display: none; }
.editor textarea { width: 100%; font: .75rem/1.4 ui-monospace, monospace; margin-bottom: .5rem; }

/* ===== Tablet / mobiel ===== */
@media (max-width: 900px) {
  :root { --header-h: 58px; }
  .brand img { height: 40px; }
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--blue); padding: .5rem 20px 1.2rem; box-shadow: 0 10px 20px rgba(0,0,0,.2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s ease;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav .btn { margin-top: 1rem; justify-content: center; }
  .steps { grid-template-columns: 1fr; }
  .share-inner { grid-template-columns: 1fr; }

  /* Kaart: kaart vult het scherm, spots als veegbare kaartjes onderin */
  .map-shell { display: block; height: 78vh; height: 78svh; min-height: 460px; }
  .map-topbar { right: 14px; }
  .map-tools { right: 12px; bottom: auto; top: 70px; }
  .tool-expand { display: grid; }
  .spot-rail {
    position: absolute; z-index: 600; left: 0; right: 0; bottom: 0; height: auto;
    flex-direction: row; overflow-x: auto; overflow-y: hidden; background: none;
    padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); gap: 12px;
    scroll-snap-type: x mandatory; scroll-padding: 0 16px; scrollbar-width: none;
  }
  .spot-rail::-webkit-scrollbar { display: none; }
  .spot-rail .spot-card {
    flex: 0 0 calc(100% - 48px); max-width: 420px; scroll-snap-align: center;
    background: #fff; box-shadow: var(--shadow); grid-template-columns: 84px 1fr;
  }
  .spot-rail .spot-card.is-active { border-color: transparent; }
  .spot-rail .spot-photo { width: 84px; height: 84px; }
  .spot-rail .spot-text { -webkit-line-clamp: 2 !important; font-size: .84rem; margin-bottom: .4rem; }
  .spot-rail .spot-title { font-size: 1rem; }
  .spot-rail .spot-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .spot-rail { align-items: flex-end; }
  .spot-rail .spot-actions { flex-wrap: nowrap; }
  .spot-rail .chip { padding: .4em .7em; font-size: .76rem; white-space: nowrap; }
  .map-fallback { position: absolute; inset: 0; z-index: 2; }

  /* Volledig-schermmodus */
  body.map-open { overflow: hidden; }
  body.map-open .map-section { position: fixed; inset: 0; z-index: 2000; }
  body.map-open .map-shell { height: 100vh; height: 100dvh; min-height: 0; }
  body.map-open .map-topbar { top: calc(12px + env(safe-area-inset-top)); }
  body.map-open .map-tools { top: calc(70px + env(safe-area-inset-top)); }
  body.map-open .map-topbar .map-close { display: grid; }
  body.map-open .tool-expand { display: none; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { min-height: 92svh; }
  .hero-content { padding: 5rem 0 2.5rem; }
  .hero .lead { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
  .selfie-wall { grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .spot-grid { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .grid-card .grid-body { padding: .8rem; }
  .grid-card h3 { font-size: 1rem; }
  .grid-card p { font-size: .82rem; }
  .hashtag-copy code { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Leaflet-bediening boven de veegkaartjes houden op mobiel */
@media (max-width: 900px) {
  .leaflet-bottom { bottom: 128px; }
}

.hero-stats { display: inline-block; margin: -.3rem 0 0; padding: .3em .9em; border-radius: 99px; background: rgba(255,255,255,.16); font-weight: 600; font-size: .95rem; }
[hidden] { display: none !important; }

/* Links in teksten */
[data-t] a, .spot-text a, .grid-card p a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.section-head [data-t] a, .steps a, .spot-text a, .grid-card p a { color: var(--blue); }
