/* Styles pour la rose des vents */
.leaflet-control-compass-rotation {
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    padding: 5px;
}

.compass-rose {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #f8f8f8;
    border: 2px solid #333;
    cursor: grab;
    position: relative;
    transition: transform 0.1s ease;
}

.compass-rose::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    background: 
        /* Ticks principaux (0°, 90°, 180°, 270°) */
        linear-gradient(to right, transparent 49%, #333 49%, #333 51%, transparent 51%),
        linear-gradient(to bottom, transparent 49%, #333 49%, #333 51%, transparent 51%),
        
        /* Ticks secondaires (45°, 135°, 225°, 315°) */
        linear-gradient(45deg, transparent 49%, #666 49%, #666 51%, transparent 51%),
        linear-gradient(-45deg, transparent 49%, #666 49%, #666 51%, transparent 51%),
        
        /* Ticks tertiaires */
        linear-gradient(22.5deg, transparent 49.5%, #999 49.5%, #999 50.5%, transparent 50.5%),
        linear-gradient(-22.5deg, transparent 49.5%, #999 49.5%, #999 50.5%, transparent 50.5%),
        linear-gradient(67.5deg, transparent 49.5%, #999 49.5%, #999 50.5%, transparent 50.5%),
        linear-gradient(-67.5deg, transparent 49.5%, #999 49.5%, #999 50.5%, transparent 50.5%);
    
    background-size: 100% 20px, 20px 100%, 100% 15px, 100% 15px, 100% 10px, 100% 10px, 100% 10px, 100% 10px;
    background-position: center, center, center, center, center, center, center, center;
    background-repeat: no-repeat;
}

.compass-rose::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 1px solid #ddd;
    transform: translate(-50%, -50%);
}

.compass-rose:active {
    cursor: grabbing;
}

.north-label {
    position: absolute;
    top: 3px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    font-size: 12px;
    color: #d32f2f;
    text-shadow: 1px 1px 2px white;
    pointer-events: none;
    z-index: 10;
}

.compass-reset-btn {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 4px 8px;
    font-size: 11px;
    cursor: pointer;
    margin-top: 5px;
    text-align: center;
}

.compass-reset-btn:hover {
    background: #f0f0f0;
}

/* Styles pour le contrôle d'opacité */
.leaflet-control-opacity {
    border-radius: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}

.leaflet-control-opacity .opacity-control-title {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.leaflet-control-opacity .opacity-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.leaflet-control-opacity .opacity-slider {
    flex: 1;
    height: 4px;
    border-radius: 2px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, #e0e0e0 0%, #2196f3 100%);
}

.leaflet-control-opacity .opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2196f3;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.leaflet-control-opacity .opacity-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.leaflet-control-opacity .opacity-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2196f3;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.leaflet-control-opacity .opacity-slider::-moz-range-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.leaflet-control-opacity .opacity-value {
    min-width: 40px;
    font-size: 12px;
    text-align: right;
    color: #666;
    font-weight: 500;
}

/* Styles des cartes */
#map-left {
    display: flex;
    height: calc(100vh - 200px);
    margin-left: 2px;
    margin-right: 2px;
}

#map-right {
    display: flex;
    height: calc(100vh - 200px);
    margin-left: 2px;
    margin-right: 2px;
}

.leaflet-control-zoom-in[href], .leaflet-control-zoom-out[href] {
    background-image: none;
}

.leaflet-control-layers-toggle[href] {
    background-size: 30px;
}

.draw-control-disabled {
    filter: contrast(22%) brightness(157%);
    pointer-events:none;
}

/* .labels-points{
    background-color: aqua;
} */