/* =========================================================
   Room Suite Section - Forward Only Endless Carousel
   ========================================================= */

.room-suite-section {
    --rs-active-card-w: min(520px, 42vw);
    --rs-mini-card-w: 180px;

    position: relative;
    width: 100%;
    min-height: 820px;
    padding: 72px 0 90px;
    background: var(--rs-bg);
    color: var(--rs-text);
    overflow: hidden;
    isolation: isolate;
}

/* Background Word */
.rs-bg-word {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    z-index: 0;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(64px, 10vw, 170px);
    line-height: 0.8;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.035);
    pointer-events: none;
    white-space: nowrap;
}

/* Section Header */
.rs-section-head {
    position: relative;
    z-index: 2;
    width: min(820px, calc(100% - 48px));
    margin: 0 auto 56px;
    text-align: center;
}

.rs-section-head span {
    color: var(--rs-accent);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 800;
}

.rs-section-head h2 {
    margin: 8px 0 12px;
    font-family: var(--lumana-header-font);
    font-size: clamp(34px, 4vw, 68px);
    line-height: 1;
    font-weight: 400;
    color: var(--rs-text);
}

.rs-section-head p {
    margin: 0 auto;
    max-width: 680px;
    color: var(--rs-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Carousel Wrapper */
.room-suite-section .rs-carousel-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
    padding: 34px 0 64px;
    scroll-behavior: auto;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.room-suite-section .rs-carousel-wrap::-webkit-scrollbar {
    display: none;
}

.room-suite-section .rs-carousel-wrap.rs-dragging {
    cursor: grabbing;
}

/* Carousel Track */
.room-suite-section .rs-carousel-track {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    width: max-content;
    max-width: none;
    margin: 0;
    padding-left: max(28px, calc((100vw - 1320px) / 2));
    padding-right: max(28px, calc((100vw - 1320px) / 2));
    gap: 22px;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    animation: none;
}
.room-suite-section .rs-carousel-wrap.rs-dragging .rs-carousel-track {
    transition: none;
}

/* Static Grid Fallback */
.room-suite-section .rs-static-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    width: min(1320px, calc(100% - 56px));
    margin: 0 auto;
    gap: 22px;
}

/* Cards */
.room-suite-section .rs-front-card {
    position: relative;
    flex: 0 0 var(--rs-mini-card-w);
    width: var(--rs-mini-card-w);
    height: var(--rs-card-h);
    min-height: 480px;
    max-width: none;
    overflow: hidden;
    background: #0f2929;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.20);
    opacity: 0.72;
    filter: saturate(0.82) brightness(0.78);
    z-index: 1;
    cursor: pointer;
    scroll-snap-align: center;

    transition:
        flex-basis 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        width 0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.45s ease,
        box-shadow 0.45s ease,
        opacity 0.45s ease,
        filter 0.45s ease;
}

.room-suite-section .rs-front-card.rs-active-card {
    flex-basis: var(--rs-active-card-w);
    width: var(--rs-active-card-w);
    opacity: 1;
    filter: saturate(1) brightness(1);
    transform: translateY(-10px) scale(1.015);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.38);
    z-index: 9;
}

.room-suite-section .rs-front-card[data-rs-clone] {
    pointer-events: auto;
}

/* Drag Safety */
.room-suite-section .rs-carousel-wrap.rs-dragging .rs-front-card,
.room-suite-section .rs-carousel-wrap.rs-dragging img,
.room-suite-section .rs-carousel-wrap.rs-dragging a {
    pointer-events: none;
}

/* Card Image */
.room-suite-section .rs-front-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    -webkit-user-drag: none;
    user-drag: none;
    transition: transform 0.65s ease, filter 0.65s ease;
}

.room-suite-section .rs-front-card.rs-active-card img {
    transform: scale(1.06);
    filter: brightness(0.86) contrast(1.04);
}

/* Hover Disabled for Inactive Cards */
.room-suite-section .rs-front-card:hover:not(.rs-active-card) {
    transform: none;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
    opacity: 0.72;
    filter: saturate(0.82) brightness(0.78);
}

.room-suite-section .rs-front-card:hover:not(.rs-active-card) img {
    transform: none;
    filter: none;
}

.room-suite-section .rs-front-card:hover:not(.rs-active-card) .rs-suite-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Card Shade */
.rs-card-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 23, 23, 0.08) 10%,
        rgba(3, 23, 23, 0.82) 100%
    );
    pointer-events: none;
    opacity: 0.82;
    transition: opacity 0.35s ease;
}

.rs-front-card.rs-active-card .rs-card-shade {
    opacity: 1;
}

/* Room Number */
.rs-room-no {
    position: absolute;
    top: 22px;
    left: 24px;
    z-index: 3;
    font-size: 13px;
    font-weight: 900;
    color: var(--rs-text);
    opacity: 0.92;
}

/* Bottom Label */
.rs-card-bottom-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 28px 22px;
    color: var(--rs-text);
    font-size: 15px;
    font-weight: 900;
    opacity: 0.95;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.rs-front-card:not(.rs-active-card) .rs-card-bottom-label {
    padding: 22px 14px;
}

.rs-front-card:not(.rs-active-card) .rs-card-bottom-label span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    display: inline-block;
    max-height: 240px;
    white-space: nowrap;
}

/* Details Overlay */
.rs-suite-overlay {
    position: absolute;
    left: 28px;
    right: 28px;
    top: 50%;
    z-index: 4;
    transform: translateY(-44%);
    padding: 26px 26px 24px;
    background: var(--rs-overlay);
    color: var(--rs-text);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.25);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.45s ease,
        visibility 0.45s ease,
        transform 0.45s ease;
}

.rs-front-card.rs-active-card .rs-suite-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%);
}

/* Overlay Content */
.rs-overlay-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.rs-overlay-meta span {
    font-size: 12px;
    color: var(--rs-accent);
    font-weight: 900;
}

.rs-overlay-meta strong {
    font-size: 18px;
    line-height: 1.2;
}

.rs-rating-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 14px;
    color: var(--rs-accent);
    font-size: 14px;
}

.rs-rating-row strong {
    color: var(--rs-text);
}

.rs-suite-overlay p {
    margin: 0 0 16px;
    color: var(--rs-muted);
    font-size: 13px;
    line-height: 1.6;
}

.rs-info-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.rs-info-grid span {
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--rs-muted);
    font-size: 11px;
    line-height: 1;
}

.rs-info-grid span:first-child {
    color: #d6a51e;
    font-size: 15px;
}

/* CTA Button */
.rs-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--rs-text);
    text-decoration: none;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Dots */
.rs-reveal-dots {
    position: absolute;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%); /* <--- The magic centering trick */
}

.rs-reveal-dot {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    padding: 0;
    transition: width 0.3s ease, background 0.3s ease;
}

.rs-reveal-dot.rs-dot-active {
    width: 28px;
    background: var(--rs-accent);
}

/* Tablet */
@media (max-width: 1024px) {
    .room-suite-section {
        --rs-active-card-w: 420px;
        --rs-mini-card-w: 130px;
    }

    .room-suite-section .rs-carousel-track {
        padding-left: 18px;
        padding-right: 18px;
    }

    .room-suite-section .rs-front-card {
        min-height: 460px;
    }
}

/* Mobile */
@media (max-width: 720px) {
    .room-suite-section {
        --rs-active-card-w: 82vw;
        --rs-mini-card-w: 92px;

        min-height: auto;
        padding: 54px 0 70px;
    }

    .room-suite-section .rs-carousel-track {
        padding-left: 14px;
        padding-right: 14px;
    }

    .room-suite-section .rs-front-card {
        height: 450px;
        min-height: 450px;
    }

    .room-suite-section .rs-front-card.rs-active-card {
        transform: none;
    }

    .rs-suite-overlay {
        left: 18px;
        right: 18px;
        padding: 20px;
    }

    .rs-section-head {
        margin-bottom: 24px;
    }

    .rs-front-card:not(.rs-active-card) .rs-card-bottom-label span {
        max-height: 190px;
    }
}
/* Silent loop reset: disables all animation only during invisible reposition */
.room-suite-section.rs-loop-resetting .rs-carousel-track,
.room-suite-section.rs-loop-resetting .rs-front-card,
.room-suite-section.rs-loop-resetting .rs-front-card img,
.room-suite-section.rs-loop-resetting .rs-card-shade,
.room-suite-section.rs-loop-resetting .rs-suite-overlay,
.room-suite-section.rs-loop-resetting .rs-card-bottom-label {
    transition: none !important;
    animation: none !important;
}

/* Helps browser render transform movement smoother */
.room-suite-section .rs-carousel-track {
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
}

.room-suite-section .rs-front-card {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}