/* Styles pour le système de fog of war sur la carte */

.fog-tile {
    cursor: pointer;
    transition: all 0.25s ease;
}

.fog-tile:hover {
    fill-opacity: 0.5 !important;
}

/* Tooltip simple et professionnel */
.fog-tooltip {
    background: rgba(13, 110, 253, 0.95);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.fog-tooltip::before {
    border-top-color: rgba(13, 110, 253, 0.95) !important;
}

/* Style pour l'icône de cadenas - simple et discret */
.fog-lock-icon {
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.fog-lock-icon > div {
    transition: all 0.25s ease;
}

/* Styles pour le fog of war */

/* Logos des collectivités */
.collectivity-logo-icon {
    background: transparent !important;
    border: none !important;
}

.collectivity-logo-marker {
    width: 70px;
    height: 70px;
    background: white;
    border: 3px solid #9ec8dd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.collectivity-logo-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #253f5d;
}

.collectivity-logo-marker img {
    width: 100% !important;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

/* Style pour le control de warning personnalisé */
.leaflet-control-warning {
    pointer-events: auto;
}

/* Assurer que les géométries restent sous le fog */
.leaflet-overlay-pane {
    z-index: 400;
}

/* Le fog doit être au-dessus des géométries mais sous les markers */
.leaflet-overlay-pane svg {
    z-index: auto;
}

/* Styles pour les zones sauvegardées */
.saved-zone-polygon {
    cursor: pointer !important;
}

.saved-zone-tooltip {
    background: rgba(179, 81, 101, 0.95);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10000 !important;
}

.saved-zone-tooltip::before {
    border-top-color: rgba(179, 81, 101, 0.95) !important;
}

/* Logos des opérateurs (même style que les collectivités) */
.operator-logo-icon {
    background: transparent !important;
    border: none !important;
}

.operator-logo-marker {
    width: 60px;
    height: 60px;
    background: white;
    border: 3px solid #b35165;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.operator-logo-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: #8a3f4f;
}

.operator-logo-marker img {
    width: 100% !important;
    height: 100%;
    object-fit: contain;
    padding: 3px;
}

/* Animation pour les logos déployés */
.operator-logo-marker.expanded {
    animation: expandIn 0.3s ease-out;
}

@keyframes expandIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Cluster d'opérateurs */
.operator-cluster-icon {
    background: transparent !important;
    border: none !important;
}

.operator-cluster-marker {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #b35165 0%, #8a3f4f 100%);
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.operator-cluster-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Bouton de repliement du cluster */
.operator-collapse-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #6c757d;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}

.operator-collapse-button:hover {
    transform: scale(1.1);
    background: #5a6268;
}

.map-layers-panel {
    display: none !important;
}

.map-layers-picker:hover .map-layers-panel {
    display: flex !important;
}
