#popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none; /* oculto inicialmente */
    justify-content: center;
    align-items: center;
    z-index: 9999 !important; /* popup sempre acima do Leaflet */
}

#popup .caixa {
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 300px;
    z-index: 10000; /* popup sempre acima do Leaflet */
}