/* School / project hero: real map (MapLibre + OpenFreeMap since 2026-11-22), 2026-11-21. */
.ec-hm { position: relative; width: 100%; height: 100%; isolation: isolate; }
.ec-hm > svg { display: block; width: 100%; height: 100%; }
.ec-hm .ec-hm__live { position: absolute; inset: 0; z-index: 0; background: #e8e6df; }
.ec-hm.is-live > svg { visibility: hidden; }
.ec-hm .maplibregl-map { font: inherit; }
.ec-hm .maplibregl-ctrl-attrib { font-size: .625rem; }
.ec-hm .maplibregl-ctrl-group button { width: 28px; height: 28px; }
.ec-hm__pin { background: none; border: 0; }
.ec-hm__pin span { position: absolute; left: 3px; top: 0; width: 24px; height: 24px; border: 3px solid #fff; border-radius: 50% 50% 50% 0; background: var(--c-primary, #f0a830); box-shadow: 0 3px 8px rgba(0, 0, 0, .35); transform: rotate(-45deg); }
.ec-hm__pin--open span { background: #e4572e; }
.ec-hm__pin--ok span { background: #3fa36b; }
/* Badge and legend stay above the map. */
.tp-mm__top, .tp-mm__foot { position: relative; z-index: 2; }
.tp-mm__top { position: absolute; }
/* The drawn-map rule « .tp-mm__canvas svg { width: 100%; height: 100% } » must not stretch the map's own pictures. */
.tp-mm__canvas .ec-hm .maplibregl-map svg, .tp-mm__canvas .ec-hm .maplibregl-map img { width: auto; height: auto; max-width: none; }
