/* Live maps for homes (public/js/shared/home-map.js), on stay and listing pages. */
/* The map library sets position: relative on its container; keep ours filling the box. */
[data-home-map] .map-live { position: absolute !important; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .3s ease; }
[data-home-map].is-live .map-live { opacity: 1; }
[data-home-map] .mapboxgl-ctrl-group button { width: 40px; height: 40px; }
.map-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-credit { position: absolute; right: 8px; top: 12px; font-size: 10px; color: var(--ink-2); background: rgba(255,255,255,0.75); border-radius: 4px; padding: 1px 5px; }
.map-credit a { color: inherit; text-decoration: none; }
[data-home-map].is-live .map-still, [data-home-map].is-live .map-credit { display: none; }
