// lazyflat — Leaflet flat map. // // Two important properties: // 1. The map must only be *built* once the container has a real size, because // Leaflet initialised on a hidden 0×0 element never loads its tiles. // 2. The `#wohnungen-body` partial is re-swapped by HTMX every few seconds. // To avoid rebuilding Leaflet (and all its tile/marker state) on every // poll — which caused the whitescreen + out-of-frame glitches — the map // container itself is preserved across swaps via `hx-preserve`, and the // marker data is pushed in through a sibling