/* Comparison Slider Styles */
.comparison-section {
    padding: 100px 0;
    background: var(--navy-dark);
    overflow: hidden;
}

.comparison-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    touch-action: none;
}

.comparison-slider {
    position: relative;
    width: 100%;
    margin: 0;
    line-height: 0;
    user-select: none;
}

.comparison-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.img-after {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    overflow: hidden;
    border-right: 2px solid #fff;
}

.img-after img {
    max-width: none !important;
    height: 100% !important;
    display: block;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: rgba(255, 255, 255, 0.8);
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    touch-action: none;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    background: #e0cca7;
    border: 3px solid #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    color: #050505;
    font-size: 1.1rem;
    pointer-events: none;
}

.comparison-label {
    position: absolute;
    top: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    pointer-events: none;
    z-index: 5;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

@media (max-width: 768px) {
    .comparison-container {
        border-radius: 8px;
        margin: 20px auto;
    }

    .slider-button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}