/* Map controls are kept outside the embed; provider legends/credits stay visible. */
.bpl-map-card { min-width: 0; overflow: hidden; }
.bpl-map-card:fullscreen { width: 100%; max-width: none; height: 100%; margin: 0; border: 0; border-radius: 0; background: #fff; overflow: visible; }
.bpl-map-window { position: static; inset: auto; display: flex; flex-direction: column; width: 100%; max-width: none; margin: 0; padding: 0; border: 0; border-radius: inherit; color: var(--ink, #112b42); background: #fff; box-sizing: border-box; }
.bpl-map-window:not([open]) { display: none; }
.bpl-map-heading { display: flex; gap: 1rem; align-items: start; justify-content: space-between; padding: 1.2rem 1.25rem .65rem; }
.bpl-map-heading h2 { font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.25; margin: 0 0 .35rem; }
.bpl-map-location { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin: 0; color: var(--muted, #486174); font-size: .875rem; }
.bpl-map-location svg { width: 15px; height: 15px; }
.bpl-map-scope { font-size: .75rem; }
.bpl-map-scope::before { content: '·'; margin-right: .35rem; }
.bpl-map-scope[hidden] { display: none; }
.bpl-map-card button, .bpl-map-card select, .bpl-map-card .bpl-map-layer { min-height: 44px; font: inherit; font-size: 14px; border: 1px solid var(--line, #d7e4ed); border-radius: 9px; background: #fff; color: var(--ink, #112b42); box-shadow: none; }
.bpl-map-card button, .bpl-map-card .bpl-map-layer { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .6rem .8rem; cursor: pointer; line-height: 1.2; }
.bpl-map-card button svg, .bpl-map-layer svg { flex-shrink: 0; width: 20px; height: 20px; }
.bpl-map-card button:hover, .bpl-map-layer:hover { background: #eaf4fb; border-color: #a4c4dc; }
.bpl-map-card button:disabled, .bpl-map-card select:disabled { opacity: .5; cursor: default; }
.bpl-map-card button[hidden] { display: none; }
.bpl-map-card .bpl-map-layer:focus-visible, .bpl-map-card button:focus-visible, .bpl-map-card select:focus-visible, .bpl-map-card summary:focus-visible { outline: 3px solid var(--primary, #1260bb); outline-offset: 3px; }
.bpl-map-card select { max-width: 100%; padding: .5rem 1.75rem .5rem .65rem; }
.bpl-map-providers, .bpl-map-layers { display: flex; flex-wrap: nowrap; align-items: center; width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
.bpl-map-providers { gap: .35rem; padding: .4rem 1.25rem; border-bottom: 1px solid var(--line, #d7e4ed); }
.bpl-map-providers button { flex: 1 0 auto; white-space: nowrap; min-width: 0; max-width: 250px; font-weight: 650; border-color: transparent; }
.bpl-map-providers button[aria-selected="true"] { border-color: var(--primary, #1260bb); color: var(--primary, #1260bb); background: #edf5fc; }
.bpl-map-layers { gap: .45rem; padding: .6rem 1.25rem .7rem; }
.bpl-map-layers .bpl-map-layer { flex: 0 0 auto; white-space: nowrap; }
.bpl-map-layers .bpl-map-layer[aria-pressed="true"], .bpl-map-layers .bpl-map-layer[aria-current="true"] { background: var(--primary, #1260bb); color: #fff; border-color: var(--primary, #1260bb); }
.bpl-map-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; padding: .65rem 1.25rem; border-block: 1px solid var(--line, #d7e4ed); background: #f5f9fc; }
.bpl-map-zoom { display: flex; gap: .3rem; }
.bpl-map-zoom button, .bpl-map-close, .bpl-map-reload { width: 44px; min-width: 44px; padding: .5rem; }
.bpl-map-size { display: flex; align-items: center; gap: .4rem; margin-left: auto; font-size: .8125rem; }
.bpl-map-size select { width: 155px; max-width: 155px; }
.bpl-map-stage { position: relative; min-width: 0; width: 100%; height: 530px; background: #e6f0f6; overflow: hidden; }
.bpl-map-stage[data-size="compact"] { height: 350px; }
.bpl-map-stage[data-size="large"] { height: 720px; }
.bpl-map-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #e6f0f6; }
.bpl-map-stage iframe[hidden] { display: none; }
.bpl-map-unavailable { display: grid; place-items: center; text-align: center; min-height: 100%; padding: 2rem; box-sizing: border-box; color: var(--ink, #112b42); }
.bpl-map-unavailable[hidden] { display: none; }
.bpl-map-bottom { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .7rem 1.25rem .25rem; }
.bpl-map-reload { margin-left: auto; }
.bpl-map-status { flex-basis: 100%; font-size: .8125rem; color: var(--muted, #486174); }
.bpl-map-status:empty { display: none; }
.bpl-map-source { padding: .35rem 0 .45rem; margin: 0; font-size: .75rem; line-height: 1.6; color: var(--muted, #486174); }
.bpl-map-help { padding: .1rem 1.25rem .85rem; margin: 0; border: 0; font-size: .8125rem; color: var(--muted, #486174); }
.bpl-map-help summary { width: fit-content; cursor: pointer; min-height: 36px; padding-block: .35rem; }
.bpl-map-help p { max-width: 75ch; margin: .35rem 0; }
.bpl-map-window.is-expanded { position: fixed; inset: 0; z-index: 2147483000; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; overflow: auto; }
.bpl-map-window.is-expanded::backdrop { background: #112b42cc; }
.bpl-map-window.is-expanded .bpl-map-heading, .bpl-map-window.is-expanded .bpl-map-providers, .bpl-map-window.is-expanded .bpl-map-layers, .bpl-map-window.is-expanded .bpl-map-controls, .bpl-map-window.is-expanded .bpl-map-bottom { flex-shrink: 0; }
.bpl-map-window.is-expanded .bpl-map-stage { flex: 1 0 220px; height: auto; min-height: 220px; }
.bpl-map-window.is-expanded .bpl-map-heading { padding-top: max(.65rem, env(safe-area-inset-top)); padding-bottom: .3rem; }
.bpl-map-window.is-expanded .bpl-map-help { padding-bottom: max(.65rem, env(safe-area-inset-bottom)); }
@media(max-width: 680px) {
 .bpl-map-heading { padding-inline: .9rem; }
 .bpl-map-providers, .bpl-map-layers { padding-inline: .75rem; gap: .35rem; }
 .bpl-map-providers button { flex: 1 0 auto; padding: .55rem .65rem; }
 .bpl-map-layers .bpl-map-layer { flex: 0 0 auto; padding: .55rem .65rem; font-size: 13px; }
 .bpl-map-layers .bpl-map-layer svg { width: 17px; height: 17px; }
 .bpl-map-card select { font-size: 16px; }
 .bpl-map-controls { padding-inline: .75rem; gap: .5rem; }
 .bpl-map-size { margin-left: auto; }
 .bpl-map-size > span { display: none; }
 .bpl-map-size select { width: 155px; max-width: 155px; padding-left: .5rem; padding-right: 1.5rem; }
 .bpl-map-fullscreen { flex: 1 1 100%; }
 .bpl-map-stage { height: 470px; }
 .bpl-map-stage[data-size="compact"] { height: 350px; }
 .bpl-map-stage[data-size="large"] { height: 650px; }
 .bpl-map-bottom { padding-inline: .75rem; }
 .bpl-map-help { padding-inline: .9rem; }
 .bpl-map-window.is-expanded .bpl-map-heading h2 { font-size: 1.1rem; }
 .bpl-map-window.is-expanded .bpl-map-layers .bpl-map-layer { font-size: 12px; }
 .bpl-map-window.is-expanded .bpl-map-controls { padding-block: .35rem; }
 .bpl-map-window.is-expanded .bpl-map-size { display: none; }
 .bpl-map-window.is-expanded .bpl-map-source { padding-block: .15rem; }
 .bpl-map-window.is-expanded .bpl-map-help { display: none; }
}
@media(prefers-reduced-motion: reduce) { .bpl-map-card *, .bpl-map-card *::before, .bpl-map-card *::after { scroll-behavior: auto; transition: none; } }

.bpl-map-context:not(.sr-only){padding:.25rem 1.25rem .85rem;margin:0;font-size:.8125rem;color:var(--muted,#486174)}

.bpl-map-layer { text-decoration: none; box-sizing: border-box; }
.bpl-map-layer:hover { text-decoration: none; }
.bpl-map-info { margin: 0; padding: 0; border: 0; min-width: 0; max-width: 100%; }
.bpl-map-info summary { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; cursor: pointer; list-style: none; }
.bpl-map-info summary::-webkit-details-marker { display: none; }
.bpl-map-info summary > span[aria-hidden] { display: grid; place-items: center; width: 26px; height: 26px; border: 1.5px solid currentColor; border-radius: 50%; font-family: Georgia, serif; font-weight: 700; font-size: 18px; color: var(--ink, #112b42); }
.bpl-map-info[open] { flex: 1 1 100%; }
.bpl-map-info-content { max-width: 75ch; padding: .25rem 0 .8rem; font-size: .8125rem; line-height: 1.6; }
.bpl-map-info-content p { margin: .25rem 0 .6rem; }

/* KNMI remains an observed national image; zoom enlarges its original pixels. */
.bpl-map-image { position:absolute; inset:0; overflow:auto; overscroll-behavior:contain; touch-action:pan-x pan-y; background:#e6f0f6; cursor:grab; }
.bpl-map-image[hidden],.bpl-map-knmi-tools[hidden] { display:none; }
.bpl-map-image:active { cursor:grabbing; }
.bpl-map-image:focus-visible { outline:3px solid var(--primary,#1260bb); outline-offset:-4px; }
.bpl-map-image-inner { display:grid; place-items:center; min-width:100%; min-height:100%; }
.bpl-map-image img { display:block; max-width:none; object-fit:contain; user-select:none; }
.bpl-map-knmi-tools { display:flex; flex-wrap:wrap; align-items:center; gap:.5rem 1rem; padding:.6rem 1.25rem; border-bottom:1px solid var(--line,#d7e4ed); }
.bpl-map-image-help,.bpl-map-knmi-credit { flex-basis:100%; margin:0; font-size:.8rem; color:var(--muted,#486174); }
.bpl-map-window.is-expanded .bpl-map-knmi-tools { flex-shrink:0; }
@media(max-width:680px) { .bpl-map-knmi-tools { padding:.5rem .75rem; } .bpl-map-window.is-expanded .bpl-map-image-help { display:none; } }
