/* pv-streetmap.v1.css: PVStreetMap chrome (DS 2.4): the map box, our own +, - and reset buttons, a quiet compact
   attribution and the touch "use two fingers" screen. Tags, dots and clusters are drawn by MapLibre (pv-streetmap.v1.js);
   the hover card is .pv-mapcard in pv-widgets.v1.css. Load after pv-common.v1.css and pv-widgets.v1.css:
     <link rel="stylesheet" href="/play/_static/shared/pv-streetmap.v1.css">
   Works inside .pv-map-host (pv-layouts.v1.css), which fills the map pane. */

.pv-streetmap { overflow: hidden; background: #FAFAF8; /* the basemap land (map-styles/pv-positron.json), shown while tiles load */ font-family: var(--pv-font); min-height: 240px; }
.pv-streetmap > .pvsm-canvas { position: absolute; inset: 0; }
.pv-streetmap .maplibregl-canvas { outline: none; }

/* ---------- +, - and reset: one stacked group, top right ---------- */
.pvsm-ctrls { position: absolute; top: 10px; right: 10px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
.pvsm-group { display: flex; flex-direction: column; border-radius: var(--pv-radius); box-shadow: 0 1px 3px rgba(2, 54, 61, 0.12); background: var(--pv-card); }
.pvsm-ctrls .pv-btn { width: 32px; height: 32px; padding: 0; margin: 0; display: grid; place-items: center; color: var(--pv-text-2); background: var(--pv-card); border-color: var(--pv-stroke-dark); }
.pvsm-group .pv-btn + .pv-btn { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; }
.pvsm-group .pv-btn:not(:last-child) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.pvsm-ctrls .pv-btn:hover { background: var(--pv-surface); color: var(--pv-primary); }
.pvsm-ctrls .pv-btn:focus-visible { position: relative; z-index: 1; }
.pvsm-ctrls .pv-btn svg { width: 16px; height: 16px; }

/* ---------- compact attribution: small and quiet, still one tap away ---------- */
.pv-streetmap .maplibregl-ctrl-bottom-right { z-index: 3; }
.pv-streetmap .maplibregl-ctrl-attrib { font-family: var(--pv-font); font-size: 0.66rem; color: var(--pv-text-3); background: rgba(255, 255, 255, 0.82); }
.pv-streetmap .maplibregl-ctrl-attrib a { color: var(--pv-text-2); }
.pv-streetmap .maplibregl-ctrl-attrib.maplibregl-compact { min-height: 22px; }
.pv-streetmap .maplibregl-ctrl-attrib-button { opacity: 0.55; }
.pv-streetmap .maplibregl-ctrl-attrib-button:hover, .pv-streetmap .maplibregl-compact-show .maplibregl-ctrl-attrib-button { opacity: 1; }
.pv-streetmap .maplibregl-ctrl-attrib-button:focus-visible { outline: 2px solid var(--pv-primary); outline-offset: 1px; }

/* ---------- touch: one finger scrolls the page, two move the map ---------- */
.pv-streetmap .maplibregl-cooperative-gesture-screen { font-family: var(--pv-font); font-size: 0.9rem; font-weight: 500; background: rgba(2, 54, 61, 0.55); }

/* ---------- WebGL missing or the library failed: say so, point at the list ---------- */
.pv-streetmap > .pvsm-fail { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; background: var(--pv-surface); }
