/* =====================================================
   CAROUSEL CONTAINER
   ===================================================== */

.carousel {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}


/* =====================================================
   CINEMATIC LIGHTING FIELD
   ===================================================== */

/* edge vignette */
.carousel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;

    background:
        radial-gradient(circle at center,
            rgba(0,0,0,0) 55%,
            rgba(0,0,0,0.35) 100%);
}

/* 🔥 NEW — top highlight roll-off */
.carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 4;

    background:
        linear-gradient(
            to bottom,
            rgba(0,0,0,0.22) 0%,
            rgba(0,0,0,0.10) 18%,
            rgba(0,0,0,0.00) 40%
        ),
        linear-gradient(
            to top,
            rgba(210,180,140,0.22) 0%,
            rgba(210,180,140,0.12) 25%,
            rgba(210,180,140,0.05) 45%,
            rgba(210,180,140,0.00) 70%
        );
}


/* =====================================================
   TRACK
   ===================================================== */

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}


/* =====================================================
   SLIDES + LODGE COLOR GRADE
   ===================================================== */

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;

    opacity: 0.08;
    transition: opacity 1.2s ease-in-out;

    /* lodge warmth */
    filter:
        brightness(0.92)
        contrast(1.05)
        saturate(0.92)
        sepia(0.08)
        hue-rotate(-6deg);
}

.slide.active img {
    opacity: 1;
}


/* =====================================================
   DOTS
   ===================================================== */

.carousel-dots {
    text-align: center;
    margin-top: -40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 10;
}

.carousel-dots span {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #8c8468;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-dots span.active {
    background: #d2b48c;
    transform: scale(1.18);
}


/* =====================================================
   MOBILE
   ===================================================== */

@media (max-width: 768px) {

    .carousel {
        max-width: 100%;
        aspect-ratio: 16 / 9;
        margin-bottom: -8px;
    }

    .carousel-dots {
        margin-top: -40px;
        margin-bottom: 50px;
    }
}