/* ==========================================================================
   BOUWSTEEN kaart-getekend op visit.asteria.nl (uitje-sjabloon, blok Ligging; nov 2026)
   --------------------------------------------------------------------------
   Gedrag : kaart-getekend.js (window.AsteriaKaart). Port van parkhotel-site src/stijl/blok-kaart-getekend.css:
            zelfde lagen, maten en klassen (.gk-*), kleuren omgezet naar de Asteria-tokens uit lander-w1.css
            (laadt ervoor): ondergrond paper/surface, Noord-Limburg een tint donkerder zand, water en wegen
            gedempt (afgeleid van --ink met color-mix), speld, nummerknoppen en zoomknoppen terracotta,
            hotelvignet rond met een kastanje rand (--ink). Letters: --font-display / --font-body.
            De enige eigen tint is --gk-water (gedempt grijsblauw): water in een zandtint leest niet als water.
   Lagen  : svg.gk-kaart (0) < .gk-overlay (1) < .gk-attr (3) < .gk-knoppen (4) < .gk-hint (5).
   ========================================================================== */
.kaart-getekend { --gk-water:#B4C6C9;
  --gk-land:var(--surface); --gk-buur:var(--paper-shade); --gk-limburg:var(--paper-shade-2);
  --gk-nlimburg:color-mix(in srgb, var(--paper) 88%, var(--ink-soft) 12%);
  --gk-lijn:color-mix(in srgb, var(--ink) 28%, transparent);
  touch-action:pan-y; cursor:grab; user-select:none; -webkit-user-select:none; background:var(--gk-buur) }
.kaart-getekend.sleept { cursor:grabbing }
.gk-kaart { position:absolute; inset:0; width:100%; height:100%; display:block; will-change:transform; z-index:0 }
.gk-buitenland { fill:var(--gk-buur) }
.gk-vlak { stroke:var(--gk-lijn); stroke-width:1.1; stroke-linejoin:round }
.gk-buur { fill:var(--gk-buur) }
.gk-limburg { fill:var(--gk-limburg) }
.gk-nlimburg { fill:var(--gk-nlimburg); stroke-width:.9 }
.gk-snelweg-rand,.gk-snelweg { fill:none; stroke-linecap:round; stroke-linejoin:round }
.gk-snelweg-rand { stroke:color-mix(in srgb, var(--ink) 38%, transparent); stroke-width:4.2 }
.gk-snelweg { stroke:var(--surface); stroke-width:2.2 }
.gk-plas { fill:var(--gk-water); stroke:var(--gk-water); stroke-width:3 }

/* routes (niet gebruikt op het uitje-sjabloon, wel meegenomen zodat de bouwsteen compleet is) */
.gk-routes use { fill:none; stroke-linecap:round; stroke-linejoin:round }
.gk-routes .rt-rand { stroke:var(--surface); stroke-width:6; opacity:.7 }
.gk-routes .rt-lijn { stroke:var(--terracotta); stroke-width:3.4; opacity:.9; transition:stroke .2s }
.gk-routes .rt-tik { stroke:transparent; stroke-width:18; pointer-events:stroke; cursor:pointer }
.gk-routes .rt.on .rt-rand { stroke-width:9; opacity:.95 }
.gk-routes .rt.on .rt-lijn { stroke-width:5.2; opacity:1 }
.gk-routes .rt.dim .rt-lijn { stroke:var(--ink-soft); opacity:.5 }
.gk-routes .rt.dim .rt-rand { opacity:.4 }
.gk-routes .rt.uit { display:none }
.gk-lus__lijn { fill:none; stroke:var(--terracotta-hover); stroke-width:2.4; stroke-dasharray:6 5; stroke-linecap:round }
.gk-lus.uit { display:none }

/* overlay: 0 x 0 linksboven, verschuift als geheel */
.gk-overlay { position:absolute; left:0; top:0; width:0; height:0; will-change:transform; z-index:1 }
.gk-laag { position:absolute; left:0; top:0; width:0; height:0 }
.gk-regio { position:absolute; transform:translate(-50%,-50%); white-space:nowrap; pointer-events:none; text-transform:uppercase;
  font:700 12px/1 var(--font-display); letter-spacing:.3em; color:color-mix(in srgb, var(--ink) 42%, transparent) }
.gk-regio.klein { font-size:10px; letter-spacing:.26em }
.gk-plaats { position:absolute; display:flex; align-items:center; gap:5px; white-space:nowrap; pointer-events:none;
  font:500 12px/1 var(--font-body); color:var(--ink) }
.gk-plaats i { flex:none; width:6px; height:6px; border-radius:50%; background:var(--ink) }
.gk-plaats.stad { font-size:14px; font-weight:600 }
.gk-plaats.stad i { width:10px; height:10px; border:2px solid var(--ink); background:var(--surface) }
.gk-plaats.l { flex-direction:row-reverse }
.gk-plaats.duits { opacity:.72 }
/* wegnummerbordjes: kastanje (snelweg) en gedempt terracotta (Duits), geen verkeersrood/-blauw */
.gk-bord { position:absolute; transform:translate(-50%,-50%); padding:2px 5px 3px; border-radius:3px; white-space:nowrap; pointer-events:none;
  background:var(--terracotta-text); color:var(--surface); font:600 10px/1 var(--font-body); border:1px solid var(--surface) }
.gk-bord.de { background:var(--ink) }
.gk-zoomt > .gk-regios,.gk-zoomt > .gk-plaatsen,.gk-zoomt > .gk-borden { visibility:hidden }
/* naam die niet helemaal binnen het kaartvlak valt (kaart-getekend.js, knipLabels): weg i.p.v. half afgesneden */
.gk-regio.gk-buiten,.gk-plaats.gk-buiten,.gk-bord.gk-buiten { visibility:hidden }

/* het hotel: rond Asteria-vignet met kastanje rand, vast op zijn coordinaat */
.gk-hotel { position:absolute; width:64px; height:64px; transform:translate(-50%,-50%); pointer-events:none; z-index:10;
  border-radius:50%; border:3px solid var(--ink); background:var(--surface); overflow:hidden; box-shadow:0 2px 6px rgba(68,42,6,.3) }
.gk-hotel img { display:block; width:100%; height:100%; object-fit:cover }
.gk-hotel--terug { width:22px; height:22px; border-radius:50%; background:var(--ink); border:2px solid var(--terracotta) }

/* nummerknop van een route (niet gebruikt op het uitje-sjabloon) */
.gk-pins > .routebadge { position:absolute; width:32px; height:32px; padding:0; margin:0; transform:translate(-50%,-50%); border-radius:50%;
  display:flex; align-items:center; justify-content:center; cursor:pointer; background:var(--terracotta); color:var(--surface); border:2px solid var(--surface);
  font:700 15px/1 var(--font-display); box-shadow:0 2px 4px rgba(68,42,6,.3); transition:opacity .25s, background .2s, width .2s, height .2s }
.gk-pins > .routebadge:hover,.gk-pins > .routebadge:focus-visible { background:var(--terracotta-hover) }
.gk-pins > .routebadge:focus-visible { outline:2px solid var(--ink); outline-offset:2px }
.gk-pins > .routebadge.on { width:38px; height:38px; background:var(--ink); font-size:17px }
.gk-pins > .routebadge.dim { opacity:.55 }
.gk-pins > .routebadge.uit { visibility:hidden; pointer-events:none }

/* punten (zetPunten): speld = het uitje van de pagina, nummerknoppen = de meer-uitjes (link of pop-up) */
.gk-pins > .gk-punt { position:absolute; width:0; height:0; z-index:12; transform-origin:0 0; text-decoration:none; color:var(--ink) }
.gk-punt__nr { position:absolute; left:-14px; top:-14px; width:28px; height:28px; border-radius:50%; display:flex; align-items:center;
  justify-content:center; background:var(--terracotta); color:var(--surface); border:2px solid var(--surface);
  font:700 15px/1 var(--font-display); box-shadow:0 2px 4px rgba(68,42,6,.3); transition:background .2s }
a.gk-punt:hover .gk-punt__nr,a.gk-punt:focus-visible .gk-punt__nr { background:var(--terracotta-hover) }
a.gk-punt { cursor:pointer }
a.gk-punt:focus-visible { outline:none }
a.gk-punt:focus-visible .gk-punt__naam { outline:2px solid var(--terracotta); outline-offset:1px }
.gk-punt__speld { position:absolute; left:-15px; top:-40px; width:30px; height:40px; filter:drop-shadow(0 2px 2px rgba(68,42,6,.3)) }
.gk-punt__speld svg { display:block; width:100%; height:100% }
.gk-punt__speld path { fill:var(--terracotta); stroke:var(--surface); stroke-width:2 }
.gk-punt__speld circle { fill:var(--surface) }
.gk-punt__naam { position:absolute; white-space:nowrap; padding:4px 8px 5px; border-radius:var(--radius-btn); background:var(--surface);
  border:1px solid var(--hairline-strong); box-shadow:0 2px 6px rgba(68,42,6,.16); color:var(--ink);
  font:700 14px/1.15 var(--font-display) }
.gk-punt--hoofd .gk-punt__naam { font-size:17px; padding:6px 11px 7px }
.gk-punt--rechts .gk-punt__naam { left:20px; top:0; transform:translateY(-50%) }
.gk-punt--links .gk-punt__naam { right:20px; top:0; transform:translateY(-50%) }
.gk-punt--onder .gk-punt__naam { left:0; top:20px; transform:translateX(-50%) }
.gk-punt--boven .gk-punt__naam { left:0; bottom:20px; transform:translateX(-50%) }
.gk-punt--hoofd.gk-punt--boven .gk-punt__naam { bottom:48px }
.gk-punt--hoofd.gk-punt--rechts .gk-punt__naam,.gk-punt--hoofd.gk-punt--links .gk-punt__naam { top:-26px }
.gk-zoomt .gk-punt__naam { visibility:hidden }

/* drie ronde knoppen rechtsboven: +, -, overzicht */
.gk-knoppen { position:absolute; right:12px; top:12px; z-index:4; display:flex; flex-direction:column; gap:8px }
.gk-knop { width:40px; height:40px; padding:0; border:0; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer;
  background:var(--terracotta); color:var(--surface); box-shadow:0 2px 6px rgba(68,42,6,.28); transition:background .15s }
.gk-knop:hover,.gk-knop:focus-visible { background:var(--terracotta-hover) }
.gk-knop:focus-visible { outline:2px solid var(--ink); outline-offset:2px }
.gk-knop svg { display:block; pointer-events:none }

/* attributie linksonder, klein */
.gk-attr { position:absolute; left:6px; bottom:5px; z-index:3; max-width:calc(100% - 12px); padding:2px 5px; border-radius:2px;
  background:color-mix(in srgb, var(--surface) 80%, transparent); color:var(--ink-soft); pointer-events:none; font:500 10px/1.3 var(--font-body) }

/* hint: Ctrl + scrollen / twee vingers */
.gk-hint { position:absolute; inset:0; z-index:5; display:flex; align-items:center; justify-content:center; pointer-events:none; opacity:0; transition:opacity .2s }
.gk-hint.is-aan { opacity:1 }
.gk-hint span { max-width:80%; padding:9px 16px; border-radius:var(--radius-pill); background:color-mix(in srgb, var(--ink) 82%, transparent); color:var(--surface);
  text-align:center; font:500 14px/1.35 var(--font-body) }

@media (prefers-reduced-motion: reduce) {
  .gk-pins > .routebadge,.gk-knop,.gk-hint,.gk-routes .rt-lijn { transition:none }
}
