/* Fixes críticos para Leaflet carregar corretamente */
.leaflet-container {
    font-family: 'Inter', sans-serif;
    z-index: auto !important;
}

.leaflet-tile-container {
    transform: none !important;
}

.leaflet-tile-container img,
.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Z-index hierarquia correta */
.leaflet-pane {
    z-index: auto !important;
}

.leaflet-map-pane {
    z-index: 1 !important;
}

.leaflet-tile-pane {
    z-index: 2 !important;
}

.leaflet-overlay-pane {
    z-index: 4 !important;
}

.leaflet-marker-pane {
    z-index: 6 !important;
}

.leaflet-popup-pane {
    z-index: 8 !important;
}

/* Controles não devem sobrepor o resto da página */
.leaflet-control-container {
    z-index: 100 !important;
    pointer-events: none;
}

.leaflet-control-container > * {
    pointer-events: auto;
}

/* Garantir que tiles carreguem visíveis */
.leaflet-tile-loaded {
    opacity: 1 !important;
    visibility: visible !important;
}
