/*
 * Rooms Section — SVG Horizontal Blinds Mask Scroll Transition
 * Exact adaptation from codrops/Scroll-Transition (Horizontal Blinds)
 * Original: https://github.com/Hiro-kiii/Scroll-Transition
 */

/* ============ SECTION WRAPPER ============ */
.rooms-section {
    position: relative;
    overflow: visible;
    background: #000;
}

.rooms-header {
    position: relative;
    z-index: 5;
    padding: 80px 20px 40px;
    text-align: center;
}

/* ============ STAGE — matches reference .stage ============ */
.rooms-stage {
    height: 500vh;
    position: relative;
}

/* ============ LAYERS — matches reference .layers ============ */
.rooms-layers {
    position: sticky;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* ============ LAYER — matches reference .layer ============ */
.rooms-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rooms-layer image {
    width: 100%;
    height: 100%;
    filter: brightness(0.8);
}

/* ============ TEXTS — matches reference .texts ============ */
.rooms-texts {
    padding: 3vw;
    position: absolute;
    inset: 0;
    z-index: 10;
    pointer-events: none;
    overflow: hidden;
}

.rooms-texts .rooms-txt {
    pointer-events: auto;
}

/* ============ TXT — matches reference .txt ============ */
.rooms-txt {
    position: absolute;
    width: 100%;
    color: #fff;
    text-transform: uppercase;
    clip-path: inset(100% 0 0 0);
    transform: translateY(40px);
}

.rooms-txt h2 {
    margin-top: 10vh;
    font-size: clamp(4.8rem, 6.8vw, 13.6rem);
    font-family: 'Playfair Display', serif;
    letter-spacing: -0.025em;
    line-height: 0.85;
    font-weight: 600;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* ============ PRICE PILL (Vila Falo specific) ============ */
.rooms-txt .room-price-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 50px;
    letter-spacing: 0.3px;
    margin-top: 6vw;
    text-transform: none;
}

/* ============ ROOM BUTTONS (Vila Falo specific) ============ */
.rooms-txt .room-btns {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.rooms-txt .room-btns a {
    padding: 0.75rem 1.8rem;
    text-align: center;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    text-transform: none;
}

.rooms-txt .btn.book-room-btn {
    background: var(--secondary) !important;
    color: white !important;
    border: none !important;
}

.rooms-txt .btn.book-room-btn:hover {
    background: var(--secondary) !important;
    filter: brightness(0.88);
    transform: translateY(-2px);
}

.rooms-txt .btn-outline.room-details-btn {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.rooms-txt .btn-outline.room-details-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ============ PROGRESS BAR — matches reference .progress-bar ============ */
.rooms-progress-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 4rem;
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.rooms-progress-segment {
    flex: 1;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.rooms-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: #fff;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .rooms-txt .room-price-pill {
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    .rooms-header {
        padding: 20px 16px 10px;
    }

    .rooms-txt h2 {
        font-size: clamp(2rem, 8vw, 4rem);
    }

    .rooms-txt .room-price-pill {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .rooms-txt .room-btns a {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
    }

    .rooms-progress-bar {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .rooms-header {
        padding: 12px 12px 8px;
    }

    .rooms-txt h2 {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
    }

    .rooms-txt .room-btns {
        gap: 8px;
    }

    .rooms-txt .room-btns a {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .rooms-progress-bar {
        padding: 1.5rem;
        gap: 0.5rem;
    }
}
