/* Rooms & Suites Section - Exact Replica of Image Design */
:root {
    --rooms-primary-gold: #C5A56F;
    --rooms-dark-gold: #A68B4F;
    --rooms-light-gold: #E6D4A3;
    --rooms-black: #000000;
    --rooms-dark-gray: #1a1a1a;
    --rooms-medium-gray: #2a2a2a;
    --rooms-light-gray: #8a8a8a;
    --rooms-white: #ffffff;
    --rooms-gold-gradient: linear-gradient(135deg, #C5A56F, #A68B4F);
    --rooms-dark-gradient: linear-gradient(135deg, #000000, #1a1a1a);
}

.rooms-suites-section {
    position: relative;
    background: var(--rooms-black);
    padding: 4rem 0;
    overflow: hidden;
    font-family: 'Philosopher', serif;
}

/* Section Header */
.rooms-section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.rooms-section-header .section-subtitle-gold {
    color: var(--rooms-primary-gold);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-family: 'Philosopher', serif;
    position: relative;
}

.rooms-section-header .section-subtitle-gold::before,
.rooms-section-header .section-subtitle-gold::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background: var(--rooms-primary-gold);
}

.rooms-section-header .section-subtitle-gold::before {
    left: -70px;
}

.rooms-section-header .section-subtitle-gold::after {
    right: -70px;
}

.rooms-section-header .section-title {
    color: var(--rooms-white);
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0;
    font-family: 'Philosopher', serif;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

/* Carousel Container */
.rooms-carousel-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    height: 500px;
    background: var(--rooms-black);
    overflow: hidden;
}

/* Navigation Buttons */
.rooms-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--rooms-white);
    background: rgba(0,0,0,0.7);
    color: var(--rooms-white);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.rooms-nav-btn:hover {
    background: var(--rooms-primary-gold);
    color: var(--rooms-black);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(197, 165, 111, 0.4);
}

.rooms-prev-btn {
    left: 20px;
}

.rooms-next-btn {
    right: 20px;
}

/* Carousel Track */
.rooms-carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    overflow: hidden;
}

/* Room Items */
.room-item {
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    background-color: var(--rooms-dark-gray);
    border-radius: 15px;
}

/* Fallback background for missing images */
.room-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--rooms-dark-gray), var(--rooms-black));
    z-index: 1;
}

.room-item::after {
    content: 'Room Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--rooms-white);
    font-size: 1.5rem;
    font-family: 'Philosopher', serif;
    z-index: 2;
    opacity: 0.7;
}

/* Ensure images are visible when loaded */
.room-item[style*="background-image"]::before {
    opacity: 0;
}

.room-item[style*="background-image"]::after {
    opacity: 0;
}

/* Center Item (Main Focus) */
.room-item.center {
    position: absolute;
    left: 50%;
    top: 0;
    width: 50%;
    height: 100%;
    transform: translateX(-50%);
    opacity: 1;
    filter: brightness(1);
    z-index: 3;
    transition: all 0.6s ease-in-out;
}

/* Side Items (Left and Right) */
.room-item.side-left,
.room-item.side-right {
    position: absolute;
    top: 0;
    height: 100%;
    opacity: 0.3;
    filter: brightness(0.4);
    z-index: 1;
    transition: all 0.6s ease-in-out;
}

.room-item.side-left {
    left: 0;
    width: 50%;
}

.room-item.side-right {
    right: 0;
    width: 50%;
}


/* Special Offer Badge for Left Side */
.room-item.side-left::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--rooms-primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(197, 165, 111, 0.4);
}

.room-item.side-left::before {
    content: '!';
    position: absolute;
    top: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: var(--rooms-primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--rooms-black);
    font-weight: bold;
    font-size: 1.5rem;
    z-index: 4;
}

/* Room Details Panel */
.room-details-panel {
    position: relative;
    background: var(--rooms-dark-gradient);
    margin: 2rem auto 0;
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid var(--rooms-primary-gold);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
    max-width: 1200px;
}

.room-details-content {
    max-width: 1200px;
    margin: 0 auto;
}

.room-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--rooms-white);
    margin-bottom: 1.5rem;
    font-family: 'Philosopher', serif;
    text-align: center;
}

/* Room Features */
.room-features {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--rooms-white);
}

.feature-item i {
    font-size: 1.8rem;
    color: var(--rooms-primary-gold);
}

.feature-number {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Philosopher', serif;
    color: var(--rooms-white);
}

/* Room Description */
.room-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.room-description p {
    font-size: 1.1rem;
    color: var(--rooms-light-gray);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-family: 'Philosopher', serif;
}

.room-description p:last-child {
    margin-bottom: 0;
}

/* Book Now Button */
.book-now-btn {
    background: var(--rooms-primary-gold);
    color: var(--rooms-black);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Philosopher', serif;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 1.5rem;
    display: inline-block;
}

.book-now-btn:hover {
    background: var(--rooms-dark-gold);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 165, 111, 0.4);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .rooms-carousel-container {
        height: 450px;
    }
    
    .room-item.center {
        width: 60%;
    }
    
    .room-item.side-left,
    .room-item.side-right {
        width: 40%;
    }
    
    .rooms-section-header .section-title {
        font-size: 3rem;
    }
    
    .room-title {
        font-size: 2.2rem;
    }
    
    .room-features {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .rooms-suites-section {
        padding: 2rem 0;
        background: var(--rooms-black);
    }
    
    .rooms-section-header {
        margin-bottom: 2rem;
    }
    
    .rooms-section-header .section-subtitle-gold {
        font-size: 0.9rem;
        letter-spacing: 0.15em;
        margin-bottom: 0.5rem;
    }
    
    .rooms-section-header .section-title {
        font-size: 2.2rem;
        margin-bottom: 0;
    }
    
    .rooms-section-header .section-subtitle-gold::before,
    .rooms-section-header .section-subtitle-gold::after {
        display: none;
    }
    
    /* Mobile Slider Container */
    .rooms-slider-container {
        background: var(--rooms-black);
        padding: 0;
        margin: 0;
        position: relative;
        min-height: 400px;
        display: flex;
        flex-direction: column;
    }
    
    /* Mobile Room Slides */
    .room-slide {
        background: var(--rooms-black) !important;
        border-radius: 0;
        margin: 0;
        padding: 0;
        position: relative !important;
        height: auto !important;
        width: 100% !important;
        display: block !important;
    }
    
    .room-content {
        display: flex !important;
        flex-direction: column !important;
        background: var(--rooms-black) !important;
        height: auto !important;
        align-items: stretch !important;
    }
    
    /* Mobile Room Image - Move to top with balanced size */
    .room-image {
        order: 1 !important;
        width: 100% !important;
        height: 250px !important;
        overflow: hidden !important;
        position: relative !important;
        flex: none !important;
    }
    
    /* Mobile Room Text Section - Move below image */
    .room-text {
        background: var(--rooms-black);
        padding: 1rem 1.5rem 0.5rem 1.5rem;
        text-align: center;
        order: 2;
        position: relative;
        z-index: 3;
    }
    
    .room-title {
        font-size: 1.6rem;
        color: var(--rooms-white);
        margin-bottom: 1rem;
        font-weight: 700;
        font-family: 'Philosopher', serif;
    }
    
    /* Mobile Room Features - Horizontal layout */
    .room-features {
        display: flex;
        flex-direction: row;
        gap: 0.8rem;
        margin-bottom: 1rem;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .feature-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: var(--rooms-white);
        font-size: 0.9rem;
        font-weight: 500;
        white-space: nowrap;
    }
    
    .feature-item i {
        font-size: 1rem;
        color: var(--rooms-primary-gold);
        width: 16px;
        text-align: center;
        flex-shrink: 0;
    }
    
    /* Mobile Room Description - Hidden on mobile */
    .room-description {
        display: none;
    }
    
    /* Mobile Book Now Button */
    .book-now-btn {
        background: var(--rooms-primary-gold);
        color: var(--rooms-black);
        border: none;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        font-weight: 600;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-family: 'Philosopher', serif;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        display: inline-block;
        width: 100%;
        max-width: 160px;
        margin: 1rem auto 1.5rem auto;
        position: relative;
        z-index: 5;
    }
    
    .book-now-btn:hover {
        background: var(--rooms-dark-gold);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(197, 165, 111, 0.4);
    }
    
    
    .room-img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
        min-height: 100%;
    }
    
    /* Mobile Navigation Arrows */
    .rooms-slider-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--rooms-primary-gold);
        color: var(--rooms-black);
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        font-weight: bold;
        z-index: 10;
        box-shadow: 0 4px 15px rgba(197, 165, 111, 0.3);
        transition: all 0.3s ease;
    }
    
    .rooms-slider-nav:hover {
        background: var(--rooms-dark-gold);
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 6px 20px rgba(197, 165, 111, 0.4);
    }
    
    .rooms-slider-prev {
        left: 15px;
    }
    
    .rooms-slider-next {
        right: 15px;
    }
    
    /* Mobile Pagination Dots */
    .rooms-slider-indicators {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.5rem;
        margin-bottom: 1rem;
        padding: 0 1rem;
        position: relative;
        z-index: 4;
    }
    
    .rooms-slider-indicators .indicator {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.3);
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .rooms-slider-indicators .indicator.active {
        background: var(--rooms-primary-gold);
        transform: scale(1.2);
    }
    
    .rooms-slider-indicators .indicator:hover {
        background: var(--rooms-primary-gold);
        transform: scale(1.1);
    }
}

@media (max-width: 480px) {
    .rooms-section-header .section-title {
        font-size: 2rem;
    }
    
    .rooms-section-header .section-subtitle-gold::before,
    .rooms-section-header .section-subtitle-gold::after {
        display: none;
    }
    
    .rooms-carousel-container {
        height: 350px;
    }
    
    .room-item.center {
        width: 80%;
    }
    
    .room-item.side-left,
    .room-item.side-right {
        width: 20%;
    }
    
    .room-title {
        font-size: 1.8rem;
    }
    
    .feature-number {
        font-size: 1.6rem;
    }
    
    .room-description p {
        font-size: 1rem;
    }
    
    .room-features {
        gap: 1rem;
    }
    
    /* Mobile Room Image for smaller screens (480px and below) */
    .room-image {
        height: 220px !important;
        order: 1 !important;
    }
    
    /* Ensure proper button positioning on smaller screens */
    .book-now-btn {
        margin: 1rem auto 1.2rem auto;
        max-width: 140px;
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
    
    /* Adjust dots positioning for smaller screens */
    .rooms-slider-indicators {
        margin-top: 0.3rem;
        margin-bottom: 0.8rem;
    }
}

/* Additional mobile breakpoints for balanced image sizing */
@media (max-width: 600px) {
    .room-image {
        height: 240px !important;
        order: 1 !important;
    }
}

/* Specific fixes for Samsung Galaxy S20 Ultra (412px width) and similar devices */
@media (max-width: 420px) and (min-width: 380px) {
    .book-now-btn {
        margin: 1.2rem auto 1.5rem auto;
        max-width: 150px;
        padding: 0.8rem 1.3rem;
        font-size: 0.9rem;
    }
    
    .rooms-slider-indicators {
        margin-top: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .room-image {
        height: 230px !important;
    }
}

/* iPhone XR and similar devices (414px width) */
@media (max-width: 414px) and (min-width: 390px) {
    .book-now-btn {
        margin: 1.1rem auto 1.4rem auto;
        max-width: 145px;
        padding: 0.75rem 1.25rem;
        font-size: 0.88rem;
    }
    
    .rooms-slider-indicators {
        margin-top: 0.4rem;
        margin-bottom: 0.9rem;
    }
    
    .room-image {
        height: 225px !important;
    }
}

@media (max-width: 400px) {
    .room-image {
        height: 200px !important;
        order: 1 !important;
    }
    
    .book-now-btn {
        margin: 0.8rem auto 1rem auto;
        max-width: 130px;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .rooms-slider-indicators {
        margin-top: 0.2rem;
        margin-bottom: 0.6rem;
    }
}

@media (max-width: 360px) {
    .room-image {
        height: 180px !important;
        order: 1 !important;
    }
    
    .book-now-btn {
        margin: 0.6rem auto 0.8rem auto;
        max-width: 120px;
        padding: 0.5rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .rooms-slider-indicators {
        margin-top: 0.1rem;
        margin-bottom: 0.5rem;
    }
}

/* Animation Classes */
.room-item {
    opacity: 0;
    animation: slideInRoom 0.8s ease-out forwards;
}

.room-item.center {
    animation: slideInCenter 0.8s ease-out forwards;
}

.room-item.side-left {
    animation: slideInLeft 0.8s ease-out forwards;
}

.room-item.side-right {
    animation: slideInRight 0.8s ease-out forwards;
}

@keyframes slideInCenter {
    from {
        opacity: 0;
        transform: translateX(-50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100%);
    }
    to {
        opacity: 0.3;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 0.3;
        transform: translateX(0);
    }
}

/* Loading Animation */
.rooms-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--rooms-primary-gold);
    font-size: 1.5rem;
    z-index: 100;
}

.rooms-spinner {
    border: 3px solid var(--rooms-medium-green);
    border-top: 3px solid var(--rooms-primary-gold);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
