/**
 * BFA Regions Map - Styles
 */

.bfa-regions-map-wrapper {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.bfa-regions-map {
    width: 100%;
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* Popup personnalisé */
.bfa-map-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 0;
}

.bfa-map-popup .leaflet-popup-content {
    margin: 0;
    min-width: 200px;
}

.bfa-map-popup .leaflet-popup-tip {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.bfa-popup-content {
    padding: 14px 18px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, sans-serif;
    line-height: 1.5;
}

.bfa-popup-content .bfa-popup-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #eee;
}

.bfa-popup-content .bfa-popup-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 13px;
    color: #555;
}

.bfa-popup-content .bfa-popup-info .bfa-popup-label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
}

.bfa-popup-content .bfa-popup-info .bfa-popup-value {
    text-align: right;
    color: #666;
}

.bfa-popup-content .bfa-popup-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    padding: 6px 12px;
    background: #2e7a04;
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.bfa-popup-content .bfa-popup-link:hover {
    background: #236003;
    color: #fff !important;
}

/* Responsive */
@media (max-width: 768px) {
    .bfa-regions-map {
        height: 400px !important;
    }

    .bfa-popup-content {
        padding: 10px 14px;
    }

    .bfa-popup-content .bfa-popup-title {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bfa-regions-map {
        height: 300px !important;
    }

    .bfa-popup-content .bfa-popup-info {
        font-size: 12px;
    }
}

/* Popup ne capture pas les événements souris → évite le bug de hover bloqué */
.bfa-map-popup {
    pointer-events: none !important;
}

.bfa-map-popup .leaflet-popup-content-wrapper,
.bfa-map-popup .leaflet-popup-tip-container {
    pointer-events: none !important;
}

/* Masquer les contrôles Leaflet par défaut */
.bfa-regions-map .leaflet-control-attribution {
    display: none !important;
}

.bfa-regions-map .leaflet-control-zoom {
    display: none !important;
}

/* Curseur pointer sur les régions */
.bfa-regions-map .leaflet-interactive {
    cursor: pointer !important;
}
