Leaflet directly accesses window and document on import — crashing Next.js's server render and throwing hydration mismatches on the client.
Solution
Wrapped the map component in next/dynamic with { ssr: false }, isolating all Leaflet instantiation to the browser. This eliminated the crash entirely while keeping the rest of the page statically generated.
