/* weerdata.nl - gedeelde stijl: vrolijke kleuren, mobiel eerst */
:root {
  --sun: #FFB300; --orange: #FF8F00; --blue: #4285F4; --blue-d: #1A56C4; --indigo: #3949AB; --green: #43A047;
  --bg: #f3f7fc; --surface: #ffffff; --ink: #12202f; --ink-2: #4a5a6b; --ink-3: #7b8a99; --line: #dde5ee; --grid: #e6ecf2;
  --accent: var(--blue);
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hdr: 56px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0e151d; --surface: #17212c; --ink: #eef3f8; --ink-2: #b4c1ce; --ink-3: #8393a3; --line: #263444; --grid: #243241; color-scheme: dark; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 12px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--font); -webkit-text-size-adjust: 100%; }
a { color: var(--blue-d); }
@media (prefers-color-scheme: dark) { a { color: #8ab4ff; } }
h1, h2, h3 { line-height: 1.2; margin: 0; }
img { max-width: 100%; }
.wrap { width: min(1280px, 100%); margin: 0 auto; padding: 0 16px; }

/* backlink neerslagkaart boven aan de pagina */
.topbar { background: #0b3d91; color: #fff; font-size: 0.85rem; }
.topbar .wrap { display: flex; gap: 10px; align-items: center; justify-content: space-between; min-height: 34px; flex-wrap: wrap; padding-block: 4px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 500; }
.topbar a:hover { text-decoration: underline; }
.topbar .sub { opacity: 0.85; }

/* kop met geanimeerd hamburgermenu */
.site-header { position: sticky; top: 0; z-index: 1200; background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ffd54f)); color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: var(--hdr); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { width: 36px; height: 36px; flex: none; animation: spin 40s linear infinite; background: #fff; border-radius: 50%; padding: 3px; }
@keyframes spin { to { transform: rotate(360deg); } }
.brand b { font-size: 1.15rem; letter-spacing: .02em; display: block; line-height: 1.1; }
.brand small { display: block; font-size: .72rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn-share, .btn { display: inline-flex; align-items: center; gap: 6px; font: 500 .9rem var(--font); border: 0; border-radius: 999px; padding: 8px 14px; cursor: pointer; text-decoration: none; background: #fff; color: var(--blue-d); box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.btn-share svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); color: #fff; }
.btn:hover, .btn-share:hover { filter: brightness(.96); }
.burger { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255,255,255,.2); cursor: pointer; position: relative; flex: none; }
.burger span { position: absolute; left: 11px; right: 11px; height: 3px; border-radius: 2px; background: #fff; transition: transform .35s cubic-bezier(.7,0,.2,1), opacity .2s, top .35s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20.5px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20.5px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20.5px; transform: rotate(-45deg); }
.navpanel { position: fixed; z-index: 1190; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); padding: calc(var(--hdr) + 40px) 8px 24px; background: var(--surface); box-shadow: -6px 0 24px rgba(0,0,0,.25); transform: translateX(105%); transition: transform .4s cubic-bezier(.7,0,.2,1), visibility 0s .4s; overflow-y: auto; visibility: hidden; }
.navpanel.open { transform: none; visibility: visible; transition-delay: 0s; }
.navpanel a { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 500; opacity: 0; transform: translateX(24px); transition: opacity .3s, transform .35s, background .15s; }
.navpanel.open a { opacity: 1; transform: none; }
.navpanel.open a:nth-child(2) { transition-delay: .04s } .navpanel.open a:nth-child(3) { transition-delay: .08s } .navpanel.open a:nth-child(4) { transition-delay: .12s } .navpanel.open a:nth-child(5) { transition-delay: .16s } .navpanel.open a:nth-child(6) { transition-delay: .2s } .navpanel.open a:nth-child(n+7) { transition-delay: .24s }
.navpanel a:hover, .navpanel a:focus-visible { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.navpanel .ico { width: 28px; text-align: center; font-size: 1.15rem; }
.navscrim { position: fixed; inset: 0; z-index: 1180; background: rgba(8,20,36,.5); opacity: 0; pointer-events: none; transition: opacity .35s; }
.navscrim.open { opacity: 1; pointer-events: auto; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }

/* kaart + zwevend advertentieblok */
.mapwrap { position: relative; height: calc(100svh - var(--hdr) - 34px); min-height: 480px; }
#map { position: absolute; inset: 0; z-index: 1; background: #cfe3f7; }
.chips { position: absolute; z-index: 500; top: 10px; left: 10px; right: 64px; display: flex; flex-wrap: wrap; gap: 8px; pointer-events: none; }
.chip { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; background: var(--surface); color: var(--ink); padding: 6px 12px 6px 8px; border-radius: 999px; font-size: .8rem; box-shadow: 0 2px 8px rgba(0,0,0,.25); border: 0; cursor: pointer; font-family: inherit; text-align: left; }
.chip i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .8rem; color: #fff; flex: none; }
.chip.off { opacity: .55; }
.chip b { font-weight: 700; }
.searchbox { position: absolute; z-index: 500; left: 10px; bottom: 28px; width: min(300px, calc(100% - 20px)); }
.searchbox input { width: 100%; font: inherit; padding: 11px 14px; border-radius: 999px; border: 0; box-shadow: 0 2px 10px rgba(0,0,0,.3); background: var(--surface); color: var(--ink); }
.searchres { list-style: none; margin: 0 0 6px; padding: 4px; position: absolute; bottom: 100%; left: 0; right: 0; background: var(--surface); border-radius: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.3); max-height: 40vh; overflow: auto; }
.searchres:empty { display: none; }
.searchres li { padding: 9px 12px; border-radius: 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.searchres li:hover, .searchres li[aria-selected="true"] { background: color-mix(in srgb, var(--blue) 14%, transparent); }
.adfloat { position: absolute; z-index: 600; right: 10px; bottom: 28px; width: 336px; max-width: calc(100% - 20px); background: var(--surface); border-radius: 14px; box-shadow: 0 6px 22px rgba(0,0,0,.35); padding: 6px; }
.adlabel { font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); display: flex; justify-content: space-between; align-items: center; padding: 0 4px 2px; }
.adfloat button { border: 0; background: transparent; color: var(--ink-3); font-size: 1rem; cursor: pointer; padding: 2px 6px; line-height: 1; }
.adfloat ins, .adbox ins { display: block; min-height: 50px; }
.adph { min-height: 100px; display: grid; place-items: center; border: 1px dashed var(--line); border-radius: 8px; color: var(--ink-3); font-size: .8rem; }
.adbox { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
@media (max-width: 640px) {
  .searchbox { bottom: 130px; }
  .adfloat { left: 10px; right: 10px; width: auto; max-width: none; bottom: 22px; }
  .topbar .sub { display: none; }
  .brand small { display: none; }
  .btn-share span { display: none; }
}
.leaflet-popup-content-wrapper { border-radius: 16px; }
.leaflet-popup-content { margin: 14px 16px; font-family: var(--font); min-width: 190px; }
.pop h3 { font-size: 1.02rem; margin: 2px 0; color: #12202f; }
.pop .kind { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.pop p { margin: 2px 0 10px; color: #4a5a6b; font-size: .88rem; }
.pop a.go { display: inline-block; padding: 8px 14px; border-radius: 999px; color: #fff !important; text-decoration: none; font-weight: 500; font-size: .9rem; }
.mk { display: grid; place-items: center; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); transition: transform .15s; }
.mk:hover { transform: scale(1.2); }

/* tekstblokken, footer */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.content { padding: 28px 16px; display: grid; gap: 20px; }
.content h2 { font-size: 1.3rem; margin-bottom: 6px; }
.content p { color: var(--ink-2); max-width: 75ch; margin: 0 0 8px; }
.stationlist { columns: 200px; column-gap: 24px; font-size: .92rem; }
.stationlist a { display: block; padding: 2px 0; }
details summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.site-footer { background: #0b2a5b; color: #dbe6f7; margin-top: 30px; padding: 28px 0 40px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 6px; }
.site-footer p { margin: 0 0 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: #12202f; color: #fff; padding: 10px 18px; border-radius: 999px; z-index: 3000; transition: .3s; pointer-events: none; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.z-low .mk svg { transform: scale(.55); transition: transform .2s; }
.mk svg { transition: transform .2s; }

.i { width: 1.15em; height: 1.15em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
.topbar .i { width: 1.2em; height: 1.2em; margin-right: 2px; }
.navpanel .ico .i { width: 1.25em; height: 1.25em; color: var(--accent); }
.chip i .i { width: 14px; height: 14px; vertical-align: 0; }
.btn-share .i { width: 16px; height: 16px; vertical-align: 0; }
.adfloat button .i { width: 14px; height: 14px; vertical-align: 0; }
.searchres li .i { width: 18px; height: 18px; }
.btn .i { vertical-align: -.2em; }
.tip .i { color: var(--orange); vertical-align: -.25em; }
