/* ==================== BASE STYLES ==================== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copyright {
    position: fixed;
    bottom: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    color: #4a5568;
    font-size: 0.75rem;
    padding: 3px 3px 3px 20px;
    border-radius: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    font-family: 'Arial', sans-serif;
    backdrop-filter: blur(4px);
    pointer-events: auto;
    min-width: 250px;
}

.copyright a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
}

.copyright a:hover {
    text-decoration: underline;
}



.control-btn {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4b5563;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #f97316;
    color: #ffffff;
}

.control-btn:focus {
    outline: none;
    box-shadow: 0 0 0 2px #f97316;
}

.control-btn.active,
.control-btn:active {
    background-color: #f97316;
    color: #ffffff;
}

.control-btn i {
    font-size: 1.125rem;
}

.map-controls {
    position: fixed;
    bottom: 6.5rem;
    right: 0.5rem;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    display:none;
}

/* ==================== SIDEBAR ==================== */
#categories-panel {
    transition: all 0.3s ease;
    width: 300px;
    position: fixed;
    left: 0;
    top: 80px;
    height: calc(100vh - 80px);
    background: #fff;
    border-right: 1px solid #e5e7eb;
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

#categories-panel::-webkit-scrollbar {
    width: 0;
    transition: width 0.2s ease;
}

#categories-panel:hover::-webkit-scrollbar {
    width: 8px;
}

#categories-panel::-webkit-scrollbar-track {
    background: transparent;
}

#categories-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
}

#categories-panel:hover {
    scrollbar-width: thin;
}

#sidebar-hover-zone {
    width: 20px;
    height: 100%;
    position: absolute;
    left: 0;
}

/* Sidebar compact mode */
.fa-fw{
    width: auto !important;
}

#categories-panel.sidebar-compact {
    width: 60px;
    padding: 16px 8px;
    z-index: 10;
}

#categories-panel.sidebar-compact .sidebar-text,
#categories-panel.sidebar-compact .panel-title,
#categories-panel.sidebar-compact .category-title,
#categories-panel.sidebar-compact .payment-methods {
    display: none;
}

#categories-panel.sidebar-compact .category-item,
#categories-panel.sidebar-compact .ad-type-item,
#categories-panel.sidebar-compact .tontine-item {
    justify-content: center;
    padding: 8px;
    margin-bottom: 8px;
    border-radius: 8px;
}

#categories-panel.sidebar-compact .category-item i,
#categories-panel.sidebar-compact .ad-type-item span.w-2,
#categories-panel.sidebar-compact .tontine-item i {
    font-size: 1em;
}

#categories-panel.sidebar-compact .pin-sidebar {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 8px;
}

#sidebar-toggle.active,
#sidebar-state-toggle.active,
#pin-sidebar.pinned {
    background: #4b5563;
    color: white;
    padding-left: 4px;
    padding-right: 4px;
}

/* Sidebar items */
.category-item,
.ad-type-item,
.tontine-item {
    transition: all 0.2s ease;
}

.category-item:hover,
.ad-type-item:hover,
.tontine-item:hover {
    background-color: #fed7aa;
    transform: scale(1.05);
}

#categories-panel.sidebar-compact .category-item:hover,
#categories-panel.sidebar-compact .ad-type-item:hover,
#categories-panel.sidebar-compact .tontine-item:hover {
    background-color: #fed7aa;
    transform: scale(1.05);
}

#categories-panel.sidebar-compact .category-item.active,
#categories-panel.sidebar-compact .ad-type-item.active,
#categories-panel.sidebar-compact .tontine-item.active {
    background-color: #f97316;
    color: white;
}

#categories-panel.sidebar-compact .panel-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

#categories-panel.sidebar-compact .category-section::after,
#categories-panel.sidebar-compact .ad-type-section::after,
#categories-panel.sidebar-compact .tontine-section::after {
    content: '';
    display: block;
    width: 80%;
    height: 1px;
    background-color: #e5e7eb;
    margin: 12px auto;
}

/* ==================== MAP POPUPS ==================== */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: transparent !important;
    box-shadow: none !important;
    pointer-events: none !important;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 280px !important;
}

.region-popup,
.ad-popup,
.user-location-popup {
    background: transparent !important;
}

.region-popup .interactive,
.ad-popup .interactive,
.user-location-popup .interactive {
    pointer-events: none !important;
    width: 100% !important;
}

.region-popup .labels-container,
.ad-popup .labels-container,
.user-location-popup .labels-container {
    background: rgba(255, 255, 255, 0.95) !important;
    padding: 8px 16px;
    border-radius: 8px;
    width: 100% !important;
    box-sizing: border-box;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
    margin-top: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.region-popup .labels-container:hover,
.ad-popup .labels-container:hover,
.user-location-popup .labels-container:hover {
    background: rgba(255, 165, 0, 0.1) !important;
}

.region-popup .buttons-container,
.ad-popup .buttons-container,
.user-location-popup .buttons-container {
    background: transparent !important;
    width: 100% !important;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 1px solid rgba(229, 231, 235, 0.8);
}

.region-popup button,
.ad-popup button,
.user-location-popup button {
    pointer-events: auto !important;
    flex: 1 1 calc(50% - 3px);
    padding: 6px 8px;
    font-size: 0.75rem;
    line-height: 1.25;
}

.region-popup .text-content,
.ad-popup .text-content,
.user-location-popup .text-content {
    pointer-events: none !important;
}

.ad-popup img {
    pointer-events: none !important;
}

/* ==================== MOBILE MENU ==================== */
#mobile-menu-btn {
    display: none !important;
}

#mobile-menu-btn,
#map-btn span,
#favoris-btn span {
    display: block;
}

/* ==================== RESPONSIVE STYLES ==================== */
@media (max-width: 992px) {
    .copyright {
        bottom: 0;
        right: 0;
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

@media (max-width: 767px) {
    #map-btn span,
    #favoris-btn span {
        display: none;
    }
    
    #mobile-menu-btn {
        display: block !important;
    }
    
    #categories-panel {
        transform: translateX(-100%);
        width: 280px;
        z-index: 60;
        top: 80px;
        height: calc(100vh - 80px);
        box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease;
    }
    
    #categories-panel.mobile-visible {
        transform: translateX(0);
    }
    
    #pin-sidebar {
        display: none;
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 50;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
    }
    
    .sidebar-overlay.visible {
        opacity: 1;
        visibility: visible;
    }
}


 

@media (min-width: 1140px) {
    #toggle-categories {
        display: none !important;
    }
    #categories-panel {
        display: none !important;
    }
    .header-right {
        gap: 8px;
        margin-top: 0px;
    }    
}

@media (max-width: 1139px) {
    #toggle-categories {
        display: block !important;
    }
    #categories-panel {
        display: none !important;
    }
    .header-right {
        gap: 4px;
        margin-top: 0px;
    }
}

/********************************************************/

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    display: none;
}


/**********************************/

.custom-marker {
    /* Assurer un positionnement précis */
    position: absolute;
    pointer-events: auto;
}

.custom-marker-inner {
    /* Transition fluide */
    transition: all 0.2s ease;
}

.custom-marker-inner:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* Pour les écrans haute résolution */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .custom-marker-inner {
        border-width: 2px;
    }
}

/****************************************/

/* Flèches directionnelles */
.position-top .leaflet-popup-content-wrapper::before,
.position-forced-top .leaflet-popup-content-wrapper::before {
    content: '';
    position: absolute;
    bottom: -6px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: rgba(255, 255, 255, 0.95) transparent transparent transparent;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
}

.position-bottom .leaflet-popup-content-wrapper::before,
.position-forced-bottom .leaflet-popup-content-wrapper::before {
    content: '';
    position: absolute;
    top: -6px;
    left: var(--arrow-left, 50%);
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 6px 6px 6px;
    border-color: transparent transparent rgba(255, 255, 255, 0.95) transparent;
    filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.1));
}

.position-right .leaflet-popup-content-wrapper::before {
    content: '';
    position: absolute;
    left: -6px;
    top: var(--arrow-top, 50%);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 6px 6px 0;
    border-color: transparent rgba(255, 255, 255, 0.95) transparent transparent;
    filter: drop-shadow(-2px 0 2px rgba(0,0,0,0.1));
}

.position-left .leaflet-popup-content-wrapper::before {
    content: '';
    position: absolute;
    right: -6px;
    top: var(--arrow-top, 50%);
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 6px 0 6px 6px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.95);
    filter: drop-shadow(2px 0 2px rgba(0,0,0,0.1));
}

/* Marges pour éviter le masquage */
.smart-positioned-popup .leaflet-popup-content-wrapper {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

/* Responsive */
@media (max-width: 768px) {
    .smart-positioned-popup .leaflet-popup-content {
        width: 260px !important;
    }
}

/************************ 05 10 2025 **********************************/

/* spiderfying.css */
.spiderfied-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #0f8f3e;
}

.spider-connection-line {
    pointer-events: none;
}

/* Animation fluide pour les marqueurs spiderfiés */
.spiderfied-marker {
    transition: all 0.3s ease-out;
}

/* Style pour le marqueur central (cluster) */
.cluster-marker {
    background: #0f8f3e;
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cluster-marker:hover {
    transform: scale(1.1);
    background: #E05A00;
}

.cluster-marker.small {
    width: 35px;
    height: 35px;
    font-size: 12px;
}

.cluster-marker.medium {
    width: 45px;
    height: 45px;
    font-size: 14px;
}

.cluster-marker.large {
    width: 55px;
    height: 55px;
    font-size: 16px;
}

/****************************/

.cluster-marker {
    background: #0f8f3e;
    border: 3px solid white;
    border-radius: 50%;
    color: white;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.cluster-marker:hover {
    transform: scale(1.1);
    background: #E05A00;
}

.cluster-marker.small {
    width: 35px;
    height: 35px;
    font-size: 12px;
    line-height: 29px;
}

.cluster-marker.medium {
    width: 45px;
    height: 45px;
    font-size: 14px;
    line-height: 39px;
}

.cluster-marker.large {
    width: 55px;
    height: 55px;
    font-size: 16px;
    line-height: 49px;
}

.spider-connection-line {
    pointer-events: none;
    stroke-dasharray: 5, 5;
}

.spiderfied-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

/******************************/

/* spiderfying.css */
.spiderfied-marker {
    animation: spiderfyAppear 0.4s ease-out;
}

@keyframes spiderfyAppear {
    0% { 
        opacity: 0;
        transform: scale(0.8);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

.spider-connection-line {
    pointer-events: none;
    animation: lineDraw 0.5s ease-out;
}

@keyframes lineDraw {
    0% { 
        stroke-dasharray: 0, 10;
    }
    100% { 
        stroke-dasharray: 5, 5;
    }
}

/* Indicateur visuel pour les marqueurs spiderfiés */
.spiderfied-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid #0f8f3e;
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.3);
}

/***************************/

/* spiderfied-marker.css */
.spiderfied-marker {
    animation: spiderfyPulse 2s infinite;
    filter: drop-shadow(0 0 8px rgba(255, 107, 0, 0.6));
}

@keyframes spiderfyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.spider-connection-line {
    pointer-events: none;
    stroke-dasharray: 5, 5;
    animation: lineDraw 0.8s ease-out;
}

@keyframes lineDraw {
    0% { 
        stroke-dashoffset: 10;
        opacity: 0;
    }
    100% { 
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
}

/* Style spécifique pour les popups spiderfiés */
.spiderfied-popup .leaflet-popup-content-wrapper {
    border: 2px solid #0f8f3e;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.spiderfied-popup .leaflet-popup-tip {
    background: #0f8f3e;
}

/* Styles pour les popups spiderfiés */
.spiderfied-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.spiderfied-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

/* Désactiver les événements de souris sur les marqueurs spiderfiés pendant l'animation */
.spiderfying-active .leaflet-marker-icon {
    pointer-events: none !important;
}

/* Lignes de connexion pour le spiderfying */
.spider-connection-line {
    pointer-events: none !important;
}

/*********************** popups spidés ********************/

/* Style pour les popups spiderfiés */
.spiderfied-popup .leaflet-popup-content-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin-bottom: 15px !important;
}

.spiderfied-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 280px !important;
}

.spiderfied-popup .interactive {
    pointer-events: auto !important;
    width: 100% !important;
}

/* S'assurer que les popups spiderfiés sont au-dessus des autres */
.spiderfied-popup {
    z-index: 2000 !important;
}

/**********************************/

.spiderfied-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.spiderfied-popup .leaflet-popup-tip {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(255, 107, 0, 0.3);
}

/* Styles spécifiques pour les popups spiderfiés */
.spiderfied-popup .leaflet-popup-content-wrapper {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    border: 2px solid #0f8f3e !important;
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.3) !important;
}

.spiderfied-popup .leaflet-popup-tip {
    background: #0f8f3e !important;
    border: 2px solid #0f8f3e !important;
}

.spiderfied-marker {
    animation: spiderfiedBounce 0.5s ease-out;
}

@keyframes spiderfiedBounce {
    0% { transform: scale(0.5); opacity: 0; }
    70% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

.spider-connection-line {
    pointer-events: none !important;
    animation: connectionFadeIn 0.3s ease-out;
}

@keyframes connectionFadeIn {
    from { opacity: 0; }
    to { opacity: 0.4; }
}

/***************************************************/

.cluster-marker {
    box-shadow: none !important;
    filter: none !important;
}

.cluster-marker .flex {
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Supprimer toute ombre et effet de glow */
.leaflet-marker-icon {
    filter: none !important;
    box-shadow: none !important;
}

/* Style minimal pour les clusters */
.cluster-marker {
    background: rgba(255, 107, 0, 0.9) !important;
    border: 3px solid white !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2) !important; /* Ombre très légère seulement */
}

.cluster-marker .flex {
    background: white !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    margin: 2px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: bold !important;
    color: #0f8f3e !important;
    box-shadow: none !important;
}

/*********************/

/* Supprimer toutes les ombres Leaflet */
.leaflet-shadow-pane,
.leaflet-marker-shadow,
.leaflet-popup-content-wrapper,
.cluster-marker,
.leaflet-marker-icon {
    box-shadow: none !important;
    filter: none !important;
    -webkit-filter: none !important;
}

/* Focus sur les clusters spécifiquement */
.cluster-marker {
    box-shadow: 0 1px 2px rgba(0,0,0,0.1) !important; /* Ombre très subtile */
}

/**************/

.cluster-popup-content {
    min-width: 320px;
    max-width: 400px;
    background-color: #fffffff0;
}

.annonces-list::-webkit-scrollbar {
    width: 6px;
}

.annonces-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.annonces-list::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.annonces-list::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.annonce-item {
    transition: all 0.3s ease;
}

.cluster-header {
    background: linear-gradient(135deg, #0f8f3e 0%, #FF8C00 100%);
}

/**************************************/

.temp-zoom-marker {
    animation: pulse-zoom 1.5s infinite;
}

@keyframes pulse-zoom {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.temp-zoom-marker {
    pointer-events: none;
}

.temp-marker-inner {
    position: relative;
    width: 30px;
    height: 30px;
}

.temp-marker-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #3b82f6;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 2;
}

.temp-marker-pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(59, 130, 246, 0.4);
    border-radius: 50%;
    animation: pulse-gentle 2s infinite;
    z-index: 1;
}

@keyframes pulse-gentle {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.4;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.8;
    }
}

/* Animation douce pour la carte */
.leaflet-container {
    transition: box-shadow 0.3s ease;
}

/**************/

/* Styles pour les marqueurs personnalisés */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.custom-marker div {
    transition: all 0.3s ease;
}

.custom-marker div:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* Couleurs spécifiques par catégorie */
.marker-immobilier { background: #0f8f3e !important; }
.marker-transport { background: #3182CE !important; }
.marker-education { background: #9F7AEA !important; }
.marker-emploi { background: #38A169 !important; }
.marker-commerce { background: #D69E2E !important; }
.marker-hightech { background: #805AD5 !important; }
.marker-mode { background: #ED64A6 !important; }
.marker-loisirs { background: #00B5D8 !important; }
.marker-agriculture { background: #48BB78 !important; }
.marker-btp { background: #4A5568 !important; }

/***************************/

/* Styles équilibrés pour mobile */
.mobile-popup {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 220px;
    max-width: 280px;
}

.mobile-btn {
    padding: 8px 12px;
    margin: 2px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.mobile-btn.primary {
    background: #0f8f3e;
    color: white;
}

.mobile-btn.secondary {
    background: #f0f0f0;
    color: #333;
}

.region-labels {
    font-size: 10px;
    font-weight: bold;
    text-shadow: 1px 1px 2px white;
}

.input-field {
    padding: 10px 40px !important;
}

/* Les labels de densité */
.density-label,
.density-label-subzone {
   /* background: transparent !important;*/
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.density-label span,
.density-label-subzone span {
     color: #fff;
    text-shadow: 2px 1px 0px rgb(0 0 0 / 71%);
     /*color: #8f8a8a;
   /* color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-shadow: 0 1px 3px rgba(0,0,0,0.45);
    pointer-events: none;*/
}

/* Double sécurité : tout le pane est inerte */
.leaflet-density-pane {
    pointer-events: none !important;
}

.density-label, .density-label-subzone {
    pointer-events: none !important;
}

.density-label, .density-label-subzone {
    background: #ea580c54;/*rgba(255, 255, 255, 0.4);*/
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 400;
    font-size: 10px;
     color: #fff;/*color: #FF6B00;*/
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border: 1px solid rgba(255, 107, 0, 0.3);
    width: 100%;
    height: 10%;
    /*margin-top:20px;*/
}

.density-label-subzone {
    color: #fff;/*#3182CE;*/
    border-color: rgba(49, 130, 206, 0.3);
    font-size: 10px !important;
}
