/**
 * ETLALAH ALAZIZIA HOTEL — Luxury Auto-Play Carousel & Slider
 * Ultra-modern, responsive, hardware-accelerated vanilla CSS
 */

:root {
    --slider-gold: #C5A44E;
    --slider-gold-light: #DFCA88;
    --slider-gold-dark: #A68532;
    --slider-dark: #0B0E14;
    --slider-overlay: rgba(11, 14, 20, 0.45);
}

/* Container */
.etlal-slider-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 1.5rem;
    user-select: none;
    direction: ltr; /* Ensure unified coordinate navigation */
}

.etlal-slider-main {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    background: #11151D;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

@media (max-width: 991px) {
    .etlal-slider-main {
        height: 380px;
    }
}
@media (max-width: 576px) {
    .etlal-slider-main {
        height: 270px;
        border-radius: 14px;
    }
}

/* Slides track */
.etlal-slides-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.etlal-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s;
    pointer-events: none;
}

.etlal-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    pointer-events: auto;
    z-index: 2;
}

.etlal-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* Gradient vignette */
.etlal-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}

/* Caption bar */
.etlal-slide-caption {
    position: absolute;
    bottom: 24px;
    right: 28px;
    left: 28px;
    z-index: 5;
    direction: rtl;
    color: #FFFFFF;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    pointer-events: none;
}

.etlal-slide-caption h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #FFFFFF;
}

.etlal-slide-caption p {
    font-size: 0.9rem;
    margin: 0;
    color: var(--slider-gold-light);
}

/* Navigation Buttons (Prev / Next) */
.etlal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(17, 21, 29, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.etlal-nav-btn:hover {
    background: var(--slider-gold);
    color: #0B0E14;
    border-color: var(--slider-gold);
    transform: translateY(-50%) scale(1.1);
}

.etlal-nav-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.etlal-nav-btn.prev {
    left: 18px;
}

.etlal-nav-btn.next {
    right: 18px;
}

@media (max-width: 576px) {
    .etlal-nav-btn {
        width: 38px;
        height: 38px;
    }
    .etlal-nav-btn.prev { left: 10px; }
    .etlal-nav-btn.next { right: 10px; }
}

/* Zoom / Fullscreen Button */
.etlal-zoom-btn {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(17, 21, 29, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.etlal-zoom-btn:hover {
    background: var(--slider-gold);
    color: #0B0E14;
    transform: scale(1.08);
}

/* Counter Badge (e.g. 1 / 6) */
.etlal-counter-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 10;
    background: rgba(17, 21, 29, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    letter-spacing: 1px;
    direction: ltr;
}

/* Auto-play Progress Bar */
.etlal-progress-bar-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    z-index: 12;
    overflow: hidden;
}

.etlal-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--slider-gold), #FFF, var(--slider-gold));
    transition: width 0.1s linear;
}

/* Dots Navigation */
.etlal-slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    direction: ltr;
}

.etlal-dot {
    width: 10px;
    height: 10px;
    border-radius: 9999px;
    background: #CBD5E1;
    cursor: pointer;
    border: none;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.etlal-dot.is-active {
    width: 28px;
    background: var(--slider-gold);
    box-shadow: 0 0 10px rgba(197, 164, 78, 0.5);
}

/* Thumbnails Strip */
.etlal-thumbs-strip {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--slider-gold) transparent;
}

.etlal-thumbs-strip::-webkit-scrollbar {
    height: 5px;
}
.etlal-thumbs-strip::-webkit-scrollbar-thumb {
    background: var(--slider-gold);
    border-radius: 999px;
}

.etlal-thumb-item {
    flex: 0 0 92px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.3s ease;
    background: #11151D;
}

@media (max-width: 576px) {
    .etlal-thumb-item {
        flex: 0 0 74px;
        height: 52px;
        border-radius: 8px;
    }
}

.etlal-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.etlal-thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.etlal-thumb-item.is-active {
    opacity: 1;
    border-color: var(--slider-gold);
    box-shadow: 0 4px 12px rgba(197, 164, 78, 0.35);
    transform: translateY(-2px);
}

/* Lightbox Modal */
.etlal-lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(7, 10, 15, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.etlal-lightbox-modal.is-open {
    display: flex;
    opacity: 1;
}

.etlal-lb-close {
    position: absolute;
    top: 24px;
    left: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
    z-index: 100;
}

.etlal-lb-close:hover {
    background: #EF4444;
    border-color: #EF4444;
    transform: rotate(90deg);
}

.etlal-lb-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.etlal-lb-img-wrap img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    user-select: none;
}

.etlal-lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    transition: all 0.2s ease;
    z-index: 100;
}

.etlal-lb-btn:hover {
    background: var(--slider-gold);
    color: #0B0E14;
    border-color: var(--slider-gold);
}

.etlal-lb-btn.prev { left: 24px; }
.etlal-lb-btn.next { right: 24px; }

/* Room Card Slider & Multi-Image Badges */
.etlal-card-slider-wrap {
    position: relative;
    overflow: hidden;
    background: #0B0E14;
}

.etlal-card-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.card-slide-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.card-slide-img.is-active {
    opacity: 1;
    position: relative;
}

.room-card-photos-count {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(11, 14, 20, 0.75);
    backdrop-filter: blur(6px);
    color: #FFF;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 3;
    pointer-events: none;
}

