/* FR-840 (CON-35): the look of the maps of public/scripts/fp-map.js (MapLibre) — the old theme's map pieces, nothing new:
   the zoom buttons as the theme's Leaflet ones (style.css «.leaflet-control-zoom-in»: white circles 34px, hover #01b9ff),
   the marker as the theme's «Custom Marker» (.marker-container .face, main-color.css), the cluster bubble as the theme's
   .marker-cluster, the Ctrl + scroll hint as the theme's leaflet-gesture-handling veil. Loaded by views/parts/fp-map-assets.ejs. */

/* +/− (MapLibre NavigationControl, its box has .fp-map__zoom) */
.fp-map.maplibregl-map .fp-map__zoom.maplibregl-ctrl-group{background:none;box-shadow:none;border-radius:0}
.fp-map.maplibregl-map .fp-map__zoom.maplibregl-ctrl-group button{display:block;width:34px;height:34px;margin:5px 10px;border:0;border-radius:50%;background-color:#fff;box-shadow:0 1px 4px -1px rgba(0,0,0,.2);transition:.3s}
.fp-map.maplibregl-map .fp-map__zoom.maplibregl-ctrl-group button+button{border-top:0}
@media (hover:hover){
.fp-map.maplibregl-map .fp-map__zoom.maplibregl-ctrl-group button:not(:disabled):hover{background-color:#01b9ff}
.fp-map.maplibregl-map .fp-map__zoom.maplibregl-ctrl-group button:not(:disabled):hover .maplibregl-ctrl-icon{filter:brightness(0) invert(1)}
}

/* the centre marker and the pins: the theme marker, its point = the centre of the circle (no pin tail, FR-232) */
.fp-map .fp-map-marker,.fp-map .fp-map-pin{display:block;width:40px;height:40px}
.fp-map .fp-map-marker .marker-container,.fp-map .fp-map-pin .marker-container{margin:0;top:0}
.fp-map .fp-map-marker .marker-container{cursor:default}
.fp-map .fp-map-pin[role=button]{cursor:pointer}
.fp-map .fp-map-pin:focus-visible,.fp-map .fp-map-cluster:focus-visible{outline:2px solid #01b9ff;outline-offset:2px;border-radius:50%}

/* the cluster bubble: a button with the theme's .marker-cluster inside (div 36px + 5px around) */
.fp-map .fp-map-cluster.marker-cluster{display:block;width:46px;height:46px;padding:0;border:0;background:transparent;font:inherit;cursor:pointer}

/* the Ctrl / ⌘ + scroll and two-finger hint (MapLibre cooperativeGestures) as the theme's gesture veil */
.fp-map .maplibregl-cooperative-gesture-screen{background:rgba(0,0,0,.5);color:#fff;font-family:"Roboto",Arial,sans-serif;font-size:22px;padding:15px;text-align:center}

/* the popup card of the old /laf list (the theme's «Popup»: .leaflet-popup-content-wrapper — no padding, 270px, radius 4px, its
   shadow); MapLibre's × lies over the card's own round × (.infoBox-close, in the photo), so that × closes the card */
.fp-map .fp-map-popup .maplibregl-popup-content:has(> div > .leaflet-listing-img-container){width:270px;padding:0;border-radius:4px;box-shadow:0 0 10px 0 rgba(0,0,0,.12)}
.fp-map .fp-map-popup .maplibregl-popup-content:has(> div > .leaflet-listing-img-container) .maplibregl-popup-close-button{top:10px;right:10px;width:29px;height:29px;border-radius:50%;z-index:1000;font-size:0;color:transparent}

/* no map (no WebGL, no library): the page's neutral line in the middle of the box */
.fp-map.fp-map--nomap{display:flex;align-items:center;justify-content:center;box-sizing:border-box;padding:20px;text-align:center}
.fp-map.fp-map--nomap .fp-map__nomap{margin:0}
