/* Comparison mode divider styles */

#comparison-divider {
    transition: background 0.2s ease;
}

#comparison-divider:hover {
    background: linear-gradient(to bottom, #2980b9, #8e44ad, #c0392b) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4) !important;
}

#comparison-divider:active {
    background: linear-gradient(to bottom, #1a5276, #6c3483, #922b21) !important;
}

/* Ensure panels transition smoothly when not dragging */
#comparison-left-panel,
#comparison-right-panel {
    transition: none;
}

/* Hide default Leaflet zoom control on small panels if needed */
@media (max-width: 600px) {
    #comparison-left-panel .leaflet-control-zoom,
    #comparison-right-panel .leaflet-control-zoom {
        transform: scale(0.8);
    }
}

/* Tooltip on hover */
#comparison-divider::after {
    content: '◀ ▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    pointer-events: none;
}

#comparison-divider:hover::after {
    opacity: 1;
}

#comparison-divider {
    position: relative;
}
