/* Comparison Slider Wrapper */
.comparison-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 3rem 1rem;
    background-color: #fff;
}

.comparison-slider-title {
    text-align: center;
    margin-bottom: 2.5rem;
}

.comparison-slider-title h2 {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #4A9ECC;
    text-transform: uppercase;
    font-family: sans-serif;
    margin: 0;
}

/* Slider Container */
.comparison-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.comparison-slider-track {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Individual Slide */
.comparison-slide {
    display: none;
    width: 100%;
}

.comparison-slide.active {
    display: block;
}

/* Split View Container */
.comparison-split-view {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 500px;
    border: 1px solid #000;
    overflow: hidden;
    background-color: #fff;
}

/* Left and Right Sides */
.comparison-side {
    position: absolute;
    top: 0;
    height: 100%;
    overflow: hidden;
}

.comparison-left {
    left: 0;
    width: 100%;
    z-index: 1;
}

.comparison-right {
    right: 0;
    width: 50%;
    z-index: 2;
    clip-path: inset(0 0 0 0);
}


/* Image Wrapper */
.comparison-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.comparison-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
}

/* Left image - full width, positioned from left */
.comparison-left .comparison-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

/* Right image - full container width, fixed size, positioned from right */
.comparison-right .comparison-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    position: absolute;
    top: 0;
    right: 0;
    max-width: none;
}

/* Logo Positioning */
.comparison-logo {
    position: absolute;
    z-index: 10;
    max-width: 150px;
    max-height: 80px;
    padding: 0.5rem;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
}

.comparison-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.comparison-logo-left {
    bottom: 60px;
    left: 20px;
}

.comparison-logo-right {
    bottom: 60px;
    right: 20px;
}

/* Label Text */
.comparison-label {
    position: absolute;
    bottom: 20px;
    z-index: 10;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #000;
    background-color: transparent;
    padding: 0.5rem;
    font-family: sans-serif;
}

.comparison-label-left {
    left: 20px;
}

.comparison-label-right {
    right: 20px;
}

/* Center Toggle Button */
.comparison-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateY(-50%);
    z-index: 20;
    pointer-events: none;
    transition: left 0.1s ease-out;
}

.comparison-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #4A9ECC;
    border: 2px solid #fff;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    transition: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.comparison-toggle-btn.draggable {
    background-color: #3a8dbc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.comparison-right.resizable {
    transition: none;
}

.toggle-arrow {
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    display: inline-block;
}

.toggle-arrow-left {
    left: 16px;
    opacity: 1;
}

.toggle-arrow-right {
    right: 16px;
    opacity: 1;
}

/* Navigation Controls */
.comparison-slider-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
    margin-top: 1rem;
    max-width: 100%;
}

/* Navigation Buttons */
.comparison-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    color: #999;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    font-family: sans-serif;
    white-space: nowrap;
}

.comparison-nav-btn:hover {
    color: #000;
}

.comparison-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.nav-text {
    display: inline-block;
}

/* Dot Indicators */
.comparison-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    flex: 1;
    margin: 0 1rem;
}

.comparison-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background-color: #d3d3d3;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.comparison-dot:hover {
    background-color: #999;
    transform: scale(1.2);
}

.comparison-dot.active {
    background-color: #666;
    width: 8px;
    height: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .comparison-slider-title h2 {
        font-size: 1.125rem;
        padding: 0 1rem;
    }

    .comparison-split-view {
        min-height: 400px;
    }

    .comparison-image-wrapper {
        min-height: 400px;
    }

    .comparison-logo {
        max-width: 100px;
        max-height: 60px;
        padding: 0.25rem;
    }

    .comparison-logo-left,
    .comparison-logo-right {
        bottom: 50px;
    }

    .comparison-logo-left {
        left: 10px;
    }

    .comparison-logo-right {
        right: 10px;
    }

    .comparison-label {
        font-size: 0.75rem;
        bottom: 15px;
    }

    .comparison-label-left {
        left: 10px;
    }

    .comparison-label-right {
        right: 10px;
    }

    .comparison-toggle-btn {
        width: 50px;
        height: 50px;
    }

    .toggle-arrow {
        font-size: 1rem;
    }

    .comparison-slider-controls {
        padding: 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .comparison-nav-btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }

    .comparison-dots {
        order: -1;
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 480px) {
    .comparison-split-view {
        min-height: 300px;
    }

    .comparison-image-wrapper {
        min-height: 300px;
    }

    .comparison-logo {
        max-width: 80px;
        max-height: 50px;
    }

    .comparison-toggle-btn {
        width: 40px;
        height: 40px;
    }

    .toggle-arrow {
        font-size: 0.875rem;
    }
}

