/* 🎨 ESTILOS PERSONALIZADOS PARA POPUPS DO MAPA MSDV2 */

/* Estilos gerais para todos os popups */
.leaflet-popup-content-wrapper {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 2px solid #007cba;
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    min-width: 280px;
}

/* Estilos específicos para popups das regionais */
.popup-regional .leaflet-popup-content {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #007cba;
}

.popup-regional .leaflet-popup-content strong {
    color: #007cba;
    font-size: 18px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Estilos específicos para popups dos bairros */
.popup-bairro .leaflet-popup-content {
    background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
    border-left: 4px solid #4caf50;
}

.popup-bairro .leaflet-popup-content strong {
    color: #2e7d32;
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Estilos para informações dos popups */
.leaflet-popup-content br + span {
    display: block;
    margin: 8px 0;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    border-left: 3px solid #007cba;
    font-size: 14px;
    color: #555;
}

/* Estilos para totais e valores */
.leaflet-popup-content br + br + span {
    background: rgba(76, 175, 80, 0.1);
    border-left-color: #4caf50;
    font-weight: 600;
    color: #2e7d32;
}

/* Estilos para botão de fechar */
.leaflet-popup-close-button {
    background: #007cba;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.leaflet-popup-close-button:hover {
    background: #005a8b;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Estilos para seta do popup */
.leaflet-popup-tip {
    background: #ffffff;
    border: 2px solid #007cba;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Estilos para tooltips (mantendo consistência) */
.tooltip {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .leaflet-popup-content {
        padding: 16px;
        min-width: 250px;
        font-size: 14px;
    }
    
    .popup-regional .leaflet-popup-content strong,
    .popup-bairro .leaflet-popup-content strong {
        font-size: 16px;
    }
    
    .leaflet-popup-close-button {
        width: 20px;
        height: 20px;
        line-height: 20px;
        font-size: 14px;
    }
}

/* Animações de entrada */
.leaflet-popup-content-wrapper {
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Efeitos hover para elementos interativos */
.leaflet-popup-content span:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
    transition: all 0.2s ease;
}
