/* MapLibre maps (2026-11-22, owner: « use maplibre.org to all apps »):
   the looks the Leaflet maps had. Helper: js/cerc-map.js. */
.maplibregl-map { font-family: var(--g2-font, "Barlow", system-ui, sans-serif); }
.maplibregl-ctrl-attrib { font-size: 10px; }
.maplibregl-ctrl-group button { width: 34px; height: 34px; }
@media (max-width: 760px) {
  html body:not(#_):not(#__) .maplibregl-ctrl-group button { width: 40px; height: 40px; min-height: 0; }
}
.cm-ctrl { clear: both; }
/* « Satellite / Plan » button (2026-11-22). */
.cm-switch { min-height: 0; padding: .4rem .8rem; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 10px rgba(44, 43, 71, .28); color: #2c2b47; font: 700 13px/1.2 "Barlow", system-ui, sans-serif; cursor: pointer; }
.cm-switch:hover, .cm-switch:focus-visible { background: #2c2b47; color: #fff; }
@media (max-width: 760px) {
  html body:not(#_):not(#__) .cm-switch { min-height: 36px; }
}

/* Point cards (js/map-card.js and the home map). */
.gmc-popup .maplibregl-popup-content { padding: 0; width: 264px; max-width: calc(100vw - 56px); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 4px rgba(44, 43, 71, .08), 0 16px 36px -8px rgba(44, 43, 71, .34); font-size: 14px; line-height: 1.35; color: #1e1d33; }
.gmc-popup .maplibregl-popup-close-button { top: 9px; right: 9px; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: #f1f1f6; color: #3b3a5e; font: 700 17px/25px system-ui, sans-serif; text-align: center; min-height: 0; }
.gmc-popup .maplibregl-popup-close-button:hover, .gmc-popup .maplibregl-popup-close-button:focus-visible { background: #2c2b47; color: #fff; }
.obp-popup .maplibregl-popup-content { padding: 0; min-width: 260px; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 40px rgba(59, 58, 94, .28); line-height: 1.35; }
.obp-popup .maplibregl-popup-close-button { top: 10px; right: 8px; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .25); color: #fff; font: 700 18px/26px system-ui, sans-serif; text-align: center; min-height: 0; z-index: 1; }
.obp-popup .maplibregl-popup-close-button:hover { background: rgba(255, 255, 255, .4); color: #fff; }

/* Hover labels. */
.cm-tip .maplibregl-popup-content { padding: .3rem .55rem; border-radius: 6px; font: 600 13px/1.25 "Barlow", sans-serif; color: #2c2b47; box-shadow: 0 2px 8px rgba(44, 43, 71, .25); }
.cm-tip.dv-tip .maplibregl-popup-content { font-weight: 700; }

/* Split list map (js/dv-split.js): bubbles, town and territory names. */
.dv-bubble { padding: 0; border: 0; background: none; cursor: pointer; }
.dv-town { color: #2c2b47; font: 800 13px/1 "Barlow", sans-serif; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 6px #fff; white-space: nowrap; }

/* Point maps of the lists (educheck_core). */
.ec-map__canvas.maplibregl-map, [data-ec-minimap].maplibregl-map { display: block; padding: 0; }

/* Other Check sites: map card on school pages, DevCheck map. */
.tp-mapcard .maplibregl-map { height: 260px !important; min-height: 0; border-radius: 0; }
.dc-map .maplibregl-map { background: #efe9e3; font-family: var(--font-body); }
