/* ════════════════════════════════════════════════════════════════════════
 *  public/css/kaart.css  —  Stijlen voor de bezoekerspagina
 * ════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; }

:root {
  --groen-donker: #1e2e1e;
  --groen-mid:    #3a6340;
  --groen-licht:  #eef5ee;
  --header-bg:    #1e2c1e;
  --header-fg:    #e8e0d0;
  --body-bg:      #f0ede6;
  --panel-bg:     #ffffff;
  --panel-fg:     #2a2a2a;
  --panel-rand:   #e8e5df;
  --accent:       #3a6340;
  --shadow-panel: -6px 0 48px rgba(0,0,0,0.18);
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: var(--body-bg);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ═══ LAAD BALK ══════════════════════════════════════════════════════ */
#laad-balk {
  position: fixed; top: 0; left: 0; right: 0;
  height: 3px; background: transparent; z-index: 9999;
  transition: opacity 0.6s;
}
#laad-balk-vulling {
  height: 100%;
  background: linear-gradient(90deg, #3a6340, #8fd48f, #3a6340);
  background-size: 200% 100%;
  animation: laadSchuif 1.6s linear infinite;
  width: 100%;
}
#laad-balk.klaar { opacity: 0; pointer-events: none; }
@keyframes laadSchuif {
  0%   { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* ═══ HEADER ═════════════════════════════════════════════════════════ */
header {
  background: var(--header-bg);
  color: var(--header-fg);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.40);
  z-index: 1000; flex-wrap: wrap; flex-shrink: 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-logo { font-size: 1.5rem; flex-shrink: 0; }
.header-titel h1   { font-size: 1.05rem; font-weight: 600; letter-spacing: 0.2px; white-space: nowrap; }
.header-titel span { font-size: 0.76rem; opacity: 0.48; }
.header-acties     { display: flex; align-items: center; gap: 7px; margin-left: auto; flex-wrap: wrap; }

#btn-home-landing {
  text-decoration: none; color: var(--header-fg);
  height: 32px; border-radius: 20px;
  padding: 0 10px 0 8px;
  display: flex; align-items: center; gap: 5px;
  flex-shrink: 0; margin-right: 2px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.07);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
#btn-home-landing:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.30); }
.bhl-icoon { font-size: 1.1rem; }
.bhl-tekst { font-size: 0.78rem; font-weight: 500; opacity: 0.80; }
@media (max-width: 680px) { .bhl-tekst { display: none; } }

#basemap-toggle {
  display: flex; background: rgba(0,0,0,0.32); border-radius: 22px;
  padding: 3px; gap: 2px; flex-shrink: 0;
}
#basemap-toggle button {
  padding: 5px 13px; border: none; border-radius: 18px;
  font-size: 0.77rem; cursor: pointer; background: transparent;
  color: var(--header-fg); transition: background 0.2s; white-space: nowrap;
}
#basemap-toggle button.actief  { background: rgba(255,255,255,0.20); font-weight: 600; }
#basemap-toggle button:hover:not(.actief) { background: rgba(255,255,255,0.10); }

.icon-btn {
  width: 32px; height: 32px; border: none; border-radius: 50%;
  background: rgba(255,255,255,0.10); color: var(--header-fg);
  font-size: 0.92rem; cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
}
.icon-btn:hover { background: rgba(255,255,255,0.20); }

/* ═══ FILTER BALK ════════════════════════════════════════════════════ */
#filter-balk {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 16px;
  background: var(--header-bg);
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap; flex-shrink: 0;
  overflow: hidden; max-height: 0;
  transition: max-height 0.35s ease, padding 0.35s ease, opacity 0.3s;
  opacity: 0; padding-top: 0; padding-bottom: 0;
}
#filter-balk.open { max-height: 60px; opacity: 1; padding-top: 7px; padding-bottom: 7px; }

.filter-chip {
  padding: 4px 13px; border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,0.16);
  background: transparent; color: rgba(232,224,208,0.6);
  font-size: 0.74rem; cursor: pointer; transition: all 0.2s; white-space: nowrap;
}
.filter-chip.actief {
  background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.42);
  color: #e8e0d0; font-weight: 600;
}

/* ═══ KAART WRAPPER ══════════════════════════════════════════════════ */
#kaart-wrapper { flex: 1; position: relative; display: flex; overflow: hidden; }
#map { flex: 1; width: 100%; }
#map .leaflet-overlay-pane path.leaflet-interactive { cursor: pointer !important; }

/* ═══ ZIJPANEEL ══════════════════════════════════════════════════════ */
#zijpaneel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 345px;
  background: #f4f1ea;
  box-shadow: var(--shadow-panel);
  z-index: 900;
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.40s cubic-bezier(0.34, 1.2, 0.64, 1);
  overflow: hidden;
}
#zijpaneel.open { transform: translateX(0); }

/* ─── Paneel header ──────────────────────────────────────────────── */
.paneel-header {
  position: relative;
  background: linear-gradient(150deg, #18261a 0%, #253d27 45%, #3a6340 100%);
  color: #e8e0d0;
  padding: 26px 20px 22px;
  flex-shrink: 0;
  overflow: hidden;
}
.paneel-header::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 0%,  rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(0,0,0,0.18)       0%, transparent 55%);
  pointer-events: none;
}
.paneel-header-icoon {
  font-size: 1.4rem; line-height: 1;
  opacity: 0.28; margin-bottom: 12px;
}
.paneel-header-meta {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.paneel-type-badge {
  display: inline-block;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 13px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: rgba(232,224,208,0.92);
}
.paneel-graf-id {
  display: inline-block;
  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 4px 12px; border-radius: 20px;
  font-size: 0.70rem; color: rgba(232,224,208,0.60);
  font-family: "Courier New", monospace; letter-spacing: 0.6px;
}
.paneel-sluit-knop {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(232,224,208,0.80);
  font-size: 0.75rem; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.18s, transform 0.15s;
}
.paneel-sluit-knop:hover { background: rgba(255,255,255,0.26); transform: scale(1.1); }

/* ─── Paneel scrollbaar deel ────────────────────────────────────── */
.paneel-inhoud {
  flex: 1; overflow-y: auto;
  padding: 0 0 28px;
  color: var(--panel-fg);
  background: #f4f1ea;
}
.paneel-inhoud::-webkit-scrollbar { width: 4px; }
.paneel-inhoud::-webkit-scrollbar-track { background: transparent; }
.paneel-inhoud::-webkit-scrollbar-thumb { background: #c8c3b8; border-radius: 2px; }

/* ─── Sectielabel ──────────────────────────────────────────────── */
.paneel-sectie-label {
  font-size: 0.66rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 1.4px;
  color: #9aaa8e; margin: 20px 20px 10px;
}

/* ═══ PERSONEN KAARTEN ═══════════════════════════════════════════════ */
#mede-sectie-bezoeker { padding: 0 14px; }
#mede-bezoeker-lijst  { display: flex; flex-direction: column; gap: 7px; }

.mbv-kaart {
  display: flex;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06), 0 4px 14px rgba(44,62,44,0.07);
  border: 1px solid rgba(0,0,0,0.05);
  overflow: hidden;
  transition: box-shadow 0.20s, transform 0.16s;
  cursor: default;
}
.mbv-kaart:hover {
  box-shadow: 0 4px 20px rgba(44,62,44,0.14), 0 1px 4px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.mbv-kaart-links {
  width: 5px; flex-shrink: 0;
  background: linear-gradient(180deg, #4a8a52 0%, #2c4a2c 100%);
}
.mbv-kaart-inhoud {
  flex: 1; padding: 14px 16px 13px;
}
.mbv-naam {
  font-size: 0.98rem; font-weight: 700;
  color: #1a2e1a; line-height: 1.35;
  margin-bottom: 6px;
}
.mbv-datums {
  display: flex; align-items: center;
  gap: 5px; flex-wrap: wrap;
}
.mbv-datum {
  font-size: 0.76rem; color: #7a8f7a;
  display: flex; align-items: center; gap: 3px;
}
.mbv-sym  { font-size: 0.62rem; color: #aabcaa; font-weight: 700; }
.mbv-scheiding { color: #c8d4c8; font-size: 0.72rem; }

/* ═══ INFO VELDEN ════════════════════════════════════════════════════ */
#info-velden { padding: 4px 14px 0; }

.info-sectie-titel {
  font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 1.4px; font-weight: 800;
  color: #9aaa8e; margin: 20px 0 8px;
}
.info-rij {
  display: flex; gap: 10px; padding: 8px 0;
  font-size: 0.83rem; align-items: baseline;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.info-rij:last-child { border-bottom: none; }
.info-rij .lbl {
  font-weight: 600; color: #4a6840; min-width: 115px;
  flex-shrink: 0; font-size: 0.80rem;
}
.info-rij .val { color: #333; }
.info-divider { border: none; border-top: 1px solid var(--panel-rand); margin: 10px 0; }

/* ═══ ACTIE KNOPPEN ══════════════════════════════════════════════════ */
#route-sectie  { padding: 14px 14px 0; }
#print-sectie  { padding: 7px 14px 0; }

.paneel-actie-knop {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 13px 17px;
  border-radius: 13px;
  font-size: 0.87rem; font-weight: 600;
  cursor: pointer; text-decoration: none;
  border: none; transition: filter 0.18s, transform 0.14s, box-shadow 0.18s;
  text-align: left;
}
.paneel-actie-knop:hover  {
  filter: brightness(0.96);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
}
.paneel-actie-knop:active { transform: translateY(0); filter: brightness(0.90); }

.paneel-actie-groen {
  background: linear-gradient(135deg, #e8f4e8 0%, #d8ecd8 100%);
  color: #1a3320;
  border: 1.5px solid #b4d4b4;
}
.paneel-actie-groen.route-knop-actief {
  background: linear-gradient(135deg, #2c4a2c 0%, #3a6340 100%) !important;
  color: #dff0df !important; border-color: #2c4a2c !important;
}
.paneel-actie-grijs {
  background: linear-gradient(135deg, #f0ede7 0%, #e8e4de 100%);
  color: #44403a; border: 1.5px solid #d8d3cc;
}
.pak-icoon { font-size: 1.15rem; flex-shrink: 0; }
.pak-tekst  { flex: 1; }

.route-info {
  display: none; align-items: center; gap: 7px;
  margin: 8px 0 2px; flex-wrap: wrap;
}
.route-badge {
  background: #e0f0e0; color: #1e4020;
  border: 1px solid #b0d8b0; border-radius: 20px;
  padding: 3px 12px; font-size: 0.77rem; font-weight: 600;
}
.route-wis-knop {
  margin-left: auto; background: none; border: none;
  color: #bbb; font-size: 0.88rem; cursor: pointer;
  padding: 3px 7px; border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.route-wis-knop:hover { color: #555; background: rgba(0,0,0,0.06); }

/* ═══ STROOIWEIDE ════════════════════════════════════════════════════ */
#strooiweide-sectie { padding: 20px 14px 0; }
.sw-lijst-kop {
  font-size: 0.66rem; text-transform: uppercase;
  letter-spacing: 1.4px; font-weight: 800; color: #9aaa8e; margin: 0 0 10px;
}
.sw-zoek-wrapper input {
  width: 100%; padding: 9px 13px;
  border: 1.5px solid #ddd; border-radius: 10px;
  font-size: 0.84rem; outline: none; background: #fff;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.sw-zoek-wrapper input:focus {
  border-color: #3a6340;
  box-shadow: 0 0 0 3px rgba(58,99,64,0.10);
}
.sw-lijst {
  display: flex; flex-direction: column; gap: 4px;
  max-height: 55vh; overflow-y: auto;
  margin-top: 10px; padding-right: 2px;
}
.sw-item {
  padding: 10px 13px; border-radius: 10px; cursor: pointer;
  background: #fff; border: 1px solid #e8e4dc;
  transition: background .15s, border-color .15s, transform .10s, box-shadow .15s;
}
.sw-item:hover {
  background: #eef5ee; border-color: #b4d4b4;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(44,74,44,0.08);
}
.sw-item:active { transform: scale(0.99); }
.sw-item-naam  { font-size: 0.90rem; font-weight: 600; color: #1e2e1e; }
.sw-item-jaren { font-size: 0.76rem; color: #8a8a7a; margin-top: 1px; }
.sw-lijst-laden, .sw-lijst-leeg {
  color: #999; font-style: italic;
  padding: 12px 4px; font-size: 0.86rem;
}

/* ═══ HOVER TOOLTIP ══════════════════════════════════════════════════ */
#hover-tooltip {
  position: fixed; z-index: 2500;
  background: rgba(18,30,18,0.94); color: #e0d8c8;
  padding: 7px 13px; border-radius: 10px;
  font-size: 0.79rem; pointer-events: none;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.32);
  max-width: 240px; display: none;
  border: 1px solid rgba(255,255,255,0.08);
}
.ht-naam { font-weight: 700; line-height: 1.3; }
.ht-meta { font-size: 0.70rem; opacity: 0.68; margin-top: 2px; }

/* ═══ ZOEKBALK ═══════════════════════════════════════════════════════ */
#zoek-container { position: relative; flex-shrink: 0; }
#zoek-wrapper   { position: relative; display: flex; align-items: center; }
#zoek-icon { position: absolute; left: 11px; font-size: 0.8rem; opacity: 0.48; pointer-events: none; }
#zoek-input {
  padding: 7px 13px 7px 31px; border: none; border-radius: 20px;
  background: rgba(255,255,255,0.11); color: var(--header-fg);
  font-size: 0.84rem; width: 200px; outline: none;
  transition: background 0.2s, width 0.25s;
}
#zoek-input::placeholder { color: rgba(232,224,208,0.38); }
#zoek-input:focus { background: rgba(255,255,255,0.20); width: 250px; }
#zoek-resultaten {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.22);
  list-style: none; margin: 0; padding: 5px 0;
  min-width: 310px; max-height: 380px; overflow-y: auto;
  z-index: 3000; display: none;
  border: 1px solid rgba(0,0,0,0.07);
}
#zoek-resultaten.zichtbaar { display: block; }
#zoek-resultaten li {
  padding: 9px 14px; cursor: pointer; font-size: 0.83rem; color: var(--panel-fg);
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid #f0ede8; transition: background 0.1s;
}
#zoek-resultaten li:last-child { border-bottom: none; }
#zoek-resultaten li:hover, #zoek-resultaten li.actief { background: #eef5ee; }
.res-naam { font-weight: 500; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.res-meta { display: flex; align-items: center; gap: 5px; flex-shrink: 0; margin-left: 8px; }
.res-id   { font-size: 0.70rem; color: #bbb; }
.res-type { font-size: 0.66rem; background: #eef5ee; color: #2c6e2c; padding: 2px 7px; border-radius: 10px; font-weight: 700; }
#zoek-geen-resultaat { color: #aaa !important; font-style: italic; cursor: default !important; }
#zoek-geen-resultaat:hover { background: transparent !important; }

/* ═══ TOAST / STATUS ════════════════════════════════════════════════ */
#stats-toast {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: rgba(18,30,18,0.88); color: #e0d8c8;
  padding: 7px 20px; border-radius: 22px; font-size: 0.77rem;
  pointer-events: none; white-space: nowrap; backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.4s;
}
#stats-toast.zichtbaar { opacity: 1; }
#laad-melding {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: rgba(18,30,18,0.90); color: #e0d8c8;
  padding: 8px 20px; border-radius: 22px; font-size: 0.77rem;
  pointer-events: none; white-space: nowrap; backdrop-filter: blur(8px);
  transition: opacity 0.45s;
  display: flex; align-items: center; gap: 8px;
}
#laad-melding.verborgen { opacity: 0; }
#notif {
  position: absolute; top: 16px; left: 50%;
  transform: translateX(-50%) translateY(-90px);
  z-index: 2000; background: var(--groen-donker); color: #e8e0d0;
  padding: 10px 24px; border-radius: 26px; font-size: 0.83rem;
  font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,0.28);
  backdrop-filter: blur(8px);
  transition: transform 0.40s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap; pointer-events: none;
  border: 1px solid rgba(255,255,255,0.08);
}
#notif.zichtbaar { transform: translateX(-50%) translateY(0); }
#geo-status {
  position: absolute; top: 80px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: rgba(44,62,45,0.90); color: #e8e0d0;
  padding: 5px 14px; border-radius: 18px; font-size: 0.76rem;
  pointer-events: none; opacity: 0; transition: opacity 0.35s;
  white-space: nowrap; backdrop-filter: blur(6px);
}
#geo-status.zichtbaar { opacity: 1; }

/* ═══ ROUTE-PANEEL (OSRM) ════════════════════════════════════════════ */
#route-paneel {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: rgba(30,46,30,0.95); color: #e8e0d0;
  padding: 10px 16px 10px 14px; border-radius: 18px;
  font-size: 0.82rem; backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.30);
  display: none; flex-direction: column; align-items: center; gap: 6px;
  min-width: 220px;
}
#route-paneel.zichtbaar { display: flex; }
#route-paneel-rij1 { display: flex; align-items: center; gap: 10px; width: 100%; justify-content: space-between; }
#route-paneel-titel { font-weight: 600; font-size: 0.78rem; color: #a8c4a0; }
#route-modi { display: flex; gap: 4px; }
.route-modus-knop {
  background: rgba(255,255,255,0.10); border: none; border-radius: 10px;
  color: #e8e0d0; font-size: 1.1rem; width: 34px; height: 34px;
  cursor: pointer; transition: background 0.2s;
}
.route-modus-knop:hover, .route-modus-knop.actief { background: rgba(255,255,255,0.25); }
#route-info {
  font-size: 0.80rem; color: #c8dfc8; text-align: center;
  min-height: 1em; width: 100%;
}
#osrm-route-info {
  font-size: 0.80rem; color: #c8dfc8; text-align: center;
  min-height: 1em; width: 100%;
}
#route-sluiten {
  background: none; border: none; color: #a0b8a0; font-size: 0.85rem;
  cursor: pointer; padding: 2px 4px; border-radius: 6px;
}
#route-sluiten:hover { color: #e8e0d0; }

/* ═══ POPUP (leaflet) ════════════════════════════════════════════════ */
.leaflet-popup-content-wrapper {
  border-radius: 14px; box-shadow: 0 8px 36px rgba(0,0,0,0.20);
  border: 1px solid rgba(0,0,0,0.06); padding: 0; overflow: hidden;
}
.leaflet-popup-content { margin: 0; min-width: 220px; max-width: 290px; }
.leaflet-popup-tip-container { margin-top: -1px; }
.popup-header {
  background: #1e2e1e; color: #e8e0d0;
  padding: 10px 14px 8px; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 1px;
}
.popup-body { padding: 12px 14px; background: #fff; }
.popup-row  { font-size: 0.82rem; color: #555; margin-bottom: 3px; }
.popup-row strong { color: #222; }

/* ═══ LEGENDE ════════════════════════════════════════════════════════ */
.legende-kaart {
  background: rgba(255,255,255,0.96); border-radius: 12px;
  padding: 10px 14px; box-shadow: 0 3px 18px rgba(0,0,0,0.18);
  font-size: 0.79rem; min-width: 145px;
  border: 1px solid rgba(0,0,0,0.06);
}
.legende-titel {
  font-weight: 700; font-size: 0.76rem; color: #1e2e1e;
  margin-bottom: 8px; cursor: pointer; user-select: none;
  display: flex; align-items: center; gap: 5px;
}
.legende-pijl { font-size: 0.64rem; transition: transform 0.25s; }
.legende-pijl.ingeklapt { transform: rotate(-90deg); }
.legende-items { overflow: hidden; transition: max-height 0.3s; max-height: 300px; }
.legende-items.ingeklapt { max-height: 0; }
.legende-rij {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px; color: #444; font-size: 0.78rem;
}
.legende-kleur {
  width: 16px; height: 14px; border-radius: 3px; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.12);
}

#bezoeker-legende {
  position: absolute;
  bottom: 30px;
  left: 14px;
  z-index: 500;
}

/* ═══ RESPONSIVE ═════════════════════════════════════════════════════ */
@media (max-width: 680px) {
  header { padding: 8px 10px; gap: 6px; }
  .header-titel h1   { font-size: 0.90rem; }
  .header-titel span { display: none; }
  .header-acties { margin-left: 0; width: 100%; justify-content: flex-end; gap: 5px; }

  #zoek-input { width: 110px; }
  #zoek-input:focus { width: 145px; }
  #zoek-resultaten { right: -8px; min-width: min(310px, calc(100vw - 20px)); }

  #zijpaneel {
    width: 100%; top: auto; right: 0; bottom: 0;
    height: 78vh; border-radius: 22px 22px 0 0;
    transform: translateY(102%);
    transition: transform 0.38s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.22);
  }
  #zijpaneel.open { transform: translateY(0); }

  .paneel-header::before {
    content: "";
    display: block; width: 36px; height: 4px;
    background: rgba(255,255,255,0.28);
    border-radius: 2px; margin: 0 auto 14px;
  }

  .mbv-naam { font-size: 0.93rem; }
  #hover-tooltip { display: none !important; }
  #coord-bar { display: none; }

  #filter-balk {
    flex-wrap: nowrap; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  #filter-balk::-webkit-scrollbar { display: none; }
  #filter-balk.open { max-height: 48px; }

}
:fullscreen #kaart-wrapper { height: 100vh; }
