/* =========================================================================
   Utrechtse Mountain Trail — gedeeld stylesheet
   Eén bron voor alle pagina's. Vervangt de oude inline <style>-blokken
   en de losse downloads/styles.css.
   Ontwerp: Heuvelrug — dennenbos-groen, heide-paars accent, zandpapier.
   ========================================================================= */

/* ---- Designtokens -------------------------------------------------------- */
:root {
  --forest:   #1f3d2b;   /* dennenbos — primaire merkkleur / koppen        */
  --moss:     #3f5d38;   /* mos — secundair groen                          */
  --heather:  #7a4f74;   /* heide — accent, spaarzaam                      */
  --bark:     #6b4f33;   /* boomschors — subtiele bruintint                */
  --sand:     #ece3d0;   /* zandgrond — paginastramien                     */
  --paper:    #faf7f0;   /* kaartoppervlak                                 */
  --ink:      #20271f;   /* tekst                                          */
  --ink-soft: #51604c;   /* gedempte tekst                                 */
  --line:     #d8cdb4;   /* hairline-randen                                */
  --warn-bg:  #fff3cd;   /* waarschuwing (geen markeringen)                */
  --warn-ink: #8a1f1f;

  --shadow: 0 1px 2px rgba(31,61,43,.06), 0 8px 24px rgba(31,61,43,.08);
  --radius: 14px;
  --maxw: 880px;

  --display: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --data: "Inter", system-ui, sans-serif;   /* cijfers, met tabular-nums */
  --nav-bg: #161616;                          /* zwarte navigatiebalk      */
}

/* ---- Reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.65;
  background-color: var(--sand);
  /* subtiele hoogtelijnen-textuur als achtergrond */
  background-image:
    radial-gradient(circle at 50% 50%, transparent 0, transparent 60px, rgba(31,61,43,.025) 61px, transparent 62px),
    radial-gradient(circle at 50% 50%, transparent 0, transparent 90px, rgba(31,61,43,.02) 91px, transparent 92px);
  background-size: 240px 240px;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--heather); }

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

/* ---- Navigatie (originele UMT-stijl) ------------------------------------- */
.site-nav {
  position: sticky; top: 0; z-index: 100; background: #333;
}
.site-nav__inner {
  max-width: none; margin: 0; position: relative;
  display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  padding: 6px 12px; justify-content: flex-start;
  background: linear-gradient(to bottom, #212121 0%, #070707 100%);
}
.site-nav__links {
  list-style: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 0; margin: 0;
}
.site-nav__links a {
  display: block; padding: 8px 15px 9px; border-radius: 5px;
  color: #fff; text-decoration: none; font-size: 16px; white-space: nowrap;
  font-family: "Lato", sans-serif; font-weight: 400; letter-spacing: 0;
  border: 1px solid transparent;
}
.site-nav__links a:hover,
.site-nav__links a[aria-current="page"] {
  background: var(--heather); color: #fff; border-color: var(--heather);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.25);
}

/* CSS-only hamburger (geen JavaScript), linksboven */
.nav-toggle { display: none; }
.nav-burger { display: none; }
.nav-burger::before { content: "\2630"; color: #fff; font-size: 1.4rem; line-height: 1; }
.nav-toggle:checked + .nav-burger::before { content: "\2715"; font-size: 1.25rem; }

@media (max-width: 880px) {
  .nav-burger {
    order: -1;                 /* hamburger als eerste element: linksboven */
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; cursor: pointer;
    border-radius: 5px; flex-shrink: 0;
  }
  .nav-burger:hover { background: #000; }
  .site-nav__links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; flex-wrap: nowrap; gap: 0;
    background: linear-gradient(to bottom, #212121 0%, #070707 100%);
    box-shadow: var(--shadow); padding: 6px;
  }
  .nav-toggle:checked ~ .site-nav__links { display: flex; }
  .site-nav__links a { padding: 11px 14px; font-size: 16px; }
  .site-nav__links a:hover,
  .site-nav__links a[aria-current="page"] { text-decoration: underline; }
}

/* ---- Layout -------------------------------------------------------------- */
.page-hero {
  width: 100%; height: clamp(170px, 32vh, 320px);
  background-size: cover; background-position: center;
  border-bottom: 3px solid var(--moss);
}
/* Variant: volledige foto zichtbaar, vervaagde vulling links/rechts */
.page-hero--full {
  position: relative; overflow: hidden; background: var(--forest);
  height: clamp(210px, 44vh, 540px);
  display: flex; align-items: center; justify-content: center;
}
.page-hero__blur {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(30px) brightness(.75); transform: scale(1.2);
}
.page-hero__img {
  position: relative; width: 100%; height: 100%; object-fit: contain;
}
/* Op telefoon: foto vult de band (zoals de oude band), geen lege randen */
@media (max-width: 640px) {
  .page-hero--full { height: clamp(170px, 34vh, 300px); }
  .page-hero--full .page-hero__img { object-fit: cover; }
  .page-hero--full .page-hero__blur { display: none; }
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 1.5rem 1.1rem 4rem; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.25rem;
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.16; color: var(--forest); letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 4.6vw, 2.7rem); font-weight: 700; }
h2 { font-size: 1.38rem; margin-bottom: .6rem; font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: .9rem; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--data); font-size: .78rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--heather); margin-bottom: .35rem;
}

/* ---- Etappe-koptekst ----------------------------------------------------- */
.etappe-head {
  display: flex; align-items: flex-start; gap: 1.1rem; flex-wrap: wrap;
}
.etappe-num {
  font-family: var(--display); font-weight: 700; font-size: 2.6rem; line-height: 1;
  color: #fff; background: var(--forest);
  width: 84px; height: 84px; flex-shrink: 0;
  display: grid; place-items: center; border-radius: 14px;
  position: relative;
}
.etappe-num small { display: block; font-size: .52rem; letter-spacing: .15em; font-weight: 300; opacity: .8; }

/* ---- Stat-strip ---------------------------------------------------------- */
.stats { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.stat {
  background: var(--sand); border: 1px solid var(--line); border-radius: 10px;
  padding: .55rem .9rem; min-width: 110px;
}
.stat__num { font-family: var(--data); font-variant-numeric: tabular-nums; font-size: 1.35rem; font-weight: 500; color: var(--forest); }
.stat__label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* ---- Definitielijst (route, etc.) --------------------------------------- */
.spec { display: grid; grid-template-columns: 130px 1fr; gap: .15rem 1rem; }
.spec dt {
  font-family: var(--display); font-weight: 500; color: var(--forest);
  padding: .5rem 0; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .4rem;
}
.spec dd { padding: .5rem 0; border-top: 1px solid var(--line); }
.spec dt:first-of-type, .spec dd:first-of-type { border-top: 0; }
.spec .sub { font-size: .82rem; color: var(--ink-soft); }

/* kaart-/route-icoon — kaderloos, alleen het icoontje */
.maplink {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.maplink img { width: 18px; height: 18px; display: block; transition: opacity .12s ease; }
.maplink:hover img { opacity: .55; }
.maplink--nav img { width: 16px; }

/* lijsten met afstand-prefix (eten/overnachten) */
.places { list-style: none; padding: 0; }
.places li { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; }
.places .dist { font-family: var(--data); font-variant-numeric: tabular-nums; font-size: .85rem; color: var(--heather); min-width: 60px; }
.places .extra { font-size: .8rem; color: var(--ink-soft); }
.places .maplink--nav, .places .maplink-spacer { flex-shrink: 0; }
.maplink-spacer { display: inline-block; width: 16px; }

/* ---- Downloadknoppen ----------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 500; letter-spacing: .02em;
  padding: .55rem 1rem; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--forest); color: #fff; background: var(--forest);
}
.btn:hover { background: var(--moss); border-color: var(--moss); color: #fff; }
.btn--ghost { background: transparent; color: var(--forest); }
.btn--ghost:hover { background: var(--sand); color: var(--forest); }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.changed { font-size: .76rem; color: var(--ink-soft); font-family: var(--data); }

/* ---- Ingesloten kaart ---------------------------------------------------- */
.map-embed {
  position: relative; width: 100%; aspect-ratio: 4 / 3;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--sand);
}
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---- Waarschuwing / hondenroute ----------------------------------------- */
.notice {
  background: var(--warn-bg); border: 1px solid #e6d28a; border-left: 4px solid var(--warn-ink);
  border-radius: 8px; padding: .8rem 1rem; margin: .8rem 0;
}
.notice strong { color: var(--warn-ink); }
.dogroute { border-left: 4px solid var(--heather); background: #f3edf2; }
.dogroute ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.dogroute li { margin: .2rem 0; }

/* Alternatieve-route-blok: waarschuwing (rood) duidelijk onderscheiden van het route-label (groen) */
.altroute {
  border: 1px solid var(--line); border-left: 4px solid var(--heather);
  background: var(--paper); border-radius: 8px; padding: .8rem 1rem; margin: .8rem 0;
}
.altroute + .altroute { margin-top: .6rem; }
.altroute__warn {
  color: var(--warn-ink); font-weight: 600;
}
.altroute__label {
  font-family: var(--display); font-weight: 600; color: var(--forest);
  letter-spacing: .02em; margin-top: .5rem;
}
.altroute__steps { margin: .35rem 0 0; padding-left: 1.1rem; }
.altroute__steps li { margin: .2rem 0; }

/* ---- Etappe-index (kaarten op home) ------------------------------------- */
.stage-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
.stage-card {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: .8rem .9rem; transition: transform .12s ease, border-color .12s ease;
}
.stage-card:hover { transform: translateY(-2px); border-color: var(--heather); color: var(--ink); }
.stage-card .n { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--forest); }
.stage-card .r { font-size: .82rem; color: var(--ink-soft); line-height: 1.35; margin-top: .15rem; }
.stage-card .d { font-family: var(--data); font-variant-numeric: tabular-nums; font-size: .78rem; color: var(--heather); margin-top: .35rem; }

/* ---- Hero (home) --------------------------------------------------------- */
.hero { background: var(--forest); color: #f1f5ef; border: 0; }
.hero h1 { color: #fff; }
.hero .eyebrow { color: #b79bb3; }
.hero p { color: #d9e3d5; }
.hero a { color: #fff; }
.hero-stats { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.1rem; }
.hero-stats .stat { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); }
.hero-stats .stat__num { color: #fff; }
.hero-stats .stat__label { color: #b9c7b3; }

/* hoogteprofiel-signatuur */
.profile { width: 100%; height: auto; margin-top: 1.2rem; display: block; }
.profile text { font-family: var(--data); fill: #b9c7b3; font-size: 9px; }
.profile .peak { fill: #fff; font-weight: 500; }

/* ---- Souvenirs ----------------------------------------------------------- */
.souvenirs { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.souvenir img { border-radius: 10px; border: 1px solid var(--line); width: 100%; height: auto; display: block; }
.souvenir h3 { margin: .6rem 0 .2rem; }

/* ---- Footer / sociaal ---------------------------------------------------- */
.social-row { display: flex; gap: 14px; justify-content: center; padding: .4rem; }
.social-row a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  transition: transform .15s ease, opacity .15s ease;
}
.social-row a:hover { transform: translateY(-2px); opacity: .9; }
.social-row img { width: 40px; height: 40px; display: block; }
.site-foot { text-align: center; color: var(--ink-soft); font-size: .85rem; padding: 1.5rem 1rem 2.5rem; line-height: 1.8; }
.site-foot__date { font-size: .78rem; opacity: .7; }

/* Terug-naar-boven-knop (verschijnt na scrollen) */
#back-to-top {
  display: none; position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: var(--forest); color: #fff; border: 1px solid var(--moss);
  font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--shadow);
  opacity: .9; transition: opacity .15s ease, background .15s ease;
}
#back-to-top.visible { display: inline-flex; }
#back-to-top:hover { opacity: 1; background: var(--heather); }
@media (max-width: 640px) { #back-to-top { width: 42px; height: 42px; right: 14px; bottom: 14px; } }

/* ---- Lightbox ------------------------------------------------------------ */
#lb { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 9999;
  align-items: center; justify-content: center; flex-direction: column; }
#lb.open { display: flex; }
#lb-bg { position: fixed; inset: 0; z-index: -1; cursor: zoom-out; }
.lb-btn { position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 26px;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.lb-btn:hover { background: rgba(255,255,255,.3); }
#lb-prev { left: 16px; } #lb-next { right: 16px; }
#lb-close { position: fixed; top: 16px; right: 20px; background: none; border: none;
  color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }
#lb-img { max-width: 90vw; max-height: 82vh; border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6); display: block; }
#lb-footer { display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 14px; max-width: 90vw; }
#lb-cap { color: #d8d2c4; font-size: 13px; text-align: center; font-family: var(--data); }
#lb-save { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15);
  color: #fff; border: none; border-radius: 20px; padding: 6px 14px; font-size: 12.5px;
  font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; }
#lb-save:hover { background: rgba(255,255,255,.3); }
.disclaimer { font-size: .82rem; color: var(--ink-soft); font-style: italic; }

/* ---- Responsief ---------------------------------------------------------- */
@media (max-width: 560px) {
  .spec { grid-template-columns: 1fr; }
  .spec dt { border-top: 1px solid var(--line); padding-bottom: 0; }
  .spec dd { border-top: 0; padding-top: .15rem; }
  .etappe-num { width: 64px; height: 64px; font-size: 2rem; }
  .site-nav__brand span { display: none; }
}

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

/* ---- Print --------------------------------------------------------------- */
@media print {
  .site-nav, .nav-toggle, .nav-burger, #back-to-top,
  .page-hero, .social-row, .btn-row, .maplink, .maplink--nav,
  .map-embed, .lightbox, #lb { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .wrap { max-width: 100%; padding: 0; }
  .card { border: 0.5pt solid #ccc; border-radius: 0; box-shadow: none;
          page-break-inside: avoid; margin-bottom: 8pt; padding: 8pt; }
  h1 { font-size: 18pt; } h2 { font-size: 14pt; } h3 { font-size: 12pt; }
  a { color: #000; text-decoration: none; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  a[href^="mailto"]::after, a[href^="https://goo.gl"]::after,
  a[href^="http"]::after { content: ""; }
  .places li { page-break-inside: avoid; }
  .stat { border: 0.5pt solid #ccc; }
  .disclaimer { font-style: italic; color: #555; }
  .site-foot { border-top: 0.5pt solid #ccc; font-size: 9pt; padding-top: 6pt; }
}
