/* Styling for the landing page comparison map slider */
.swipe-map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: #0b0b0c;
    border: 1px solid rgba(223, 110, 71, 0.2);
}

.ol-swipe {
    background-color: #c85a32 !important;
}

.ol-swipe button {
    background-color: #c85a32 !important;
    color: white !important;
    border: 2px solid #c85a32 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
}

.map-badge {
    position: absolute;
    top: 16px;
    padding: 6px 12px;
    background-color: rgba(11, 11, 12, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-family: monospace;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    z-index: 5;
}

.map-badge-left {
    left: 16px;
    border-left: 3px solid #c85a32;
}

.map-badge-right {
    right: 16px;
    border-right: 3px solid #7c7c80;
}

/* Custom before-after slider styles */
.comparison-slider-container {
    position: relative;
    overflow: hidden;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.comparison-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-drag: none;
}

.overlay-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 2px solid #c85a32;
    /* terra-clay */
}

.overlay-img-container .comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    max-width: none;
    object-fit: cover;
    user-select: none;
    -webkit-user-select: none;
    -webkit-user-drag: none;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1c1c1e;
    /* terra-charcoal */
    border: 2px solid #c85a32;
    /* terra-clay */
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    pointer-events: auto;
    z-index: 20;
    transition: none !important;
}

.slider-handle:hover,
.slider-handle:active {
    background-color: #1c1c1e !important;
    border-color: #c85a32 !important;
    color: white !important;
}
