/* Every Leaflet map on the site (scripts/maps.js), linked by components/Leaflet.astro after Leaflet's own stylesheet. The
   map page's own styles (people, clusters, signs, Chronicle) are in src/styles/map.css; the full-screen layout around a
   map (.mapfull, its head, panel and player) is in app.css. */
.leaflet-container{font:inherit}
.leaflet-tile-pane{filter:sepia(.45) saturate(.6) hue-rotate(-12deg) brightness(1.03) contrast(.9)}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]) .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) sepia(.35) saturate(.5) brightness(.78) contrast(.9)}}
:root[data-theme="dark"] .leaflet-tile-pane{filter:invert(1) hue-rotate(180deg) sepia(.35) saturate(.5) brightness(.78) contrast(.9)}
.leaflet-popup-content-wrapper,.leaflet-popup-tip,.leaflet-tooltip{background:var(--bg);color:var(--ink)}

/* The map element: full screen on the map page (#map) and the houses list (#hmap), in the page on a house page (#hmap)
   and a person page (#pmap). Leaflet's controls keep clear of the head, the player (--player-h, set by maps.js) and an
   open side panel. */
.mapfull #map,.mapfull #hmap{position:absolute;inset:0;z-index:0;height:auto;min-height:0;border:0;border-radius:0}
.mapfull .leaflet-top{top:52px}
.mapfull .leaflet-bottom{bottom:calc(var(--player-h,0px) + 8px)}
@media (min-width:641px){.mapfull.chron-open .leaflet-right{right:336px}}
.house-map #hmap{height:460px;border-radius:12px;border:1px solid var(--line)}
@media (max-width:640px){.house-map #hmap{height:320px}}
.minimap #pmap{height:240px;border-radius:12px;border:1px solid var(--line)}

/* Houses: the marker (hollow and dashed when placed only roughly) and the residents in its popup. */
.housemark svg{display:block;fill:var(--main);stroke:var(--bg);stroke-width:1.6;filter:drop-shadow(0 1px 1px var(--shade-strong));cursor:pointer}
.housemark.coarse svg{fill:var(--bg);stroke:var(--main);stroke-dasharray:3 2}
.hres-h{margin-top:6px;font-weight:600}
.hres{margin:2px 0 0;padding-left:16px;max-height:200px;overflow-y:auto}
.hy{color:var(--muted)}
