/* 🌟 General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #F2F4F3;
    color: #22333B;
    line-height: 1.6;
}

/* 🌟 Container */
.container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* 🌟 Header */
header {
    background: #0A0908;
    padding: 20px 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header h1 {
    color: #A9927D;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: #F2F4F3;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 15px;
    transition: 0.3s ease-in-out;
}

nav ul li a:hover {
    background: #A9927D;
    color: #0A0908;
    border-radius: 5px;
}


/* 🌟 Mobile Menu Styles */
.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 2em;
    color: #A9927D;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* 📱 Responsive Navigation */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block; /* Show on mobile */
    }

    .nav-links {
        display: none;
        flex-direction: column;
        background: #0A0908;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 10px;
    }

    .nav-links a {
        color: #F2F4F3;
        font-size: 1.2em;
        display: block;
        padding: 10px 0;
    }

    .nav-links a:hover {
        background: #A9927D;
        color: #0A0908;
        border-radius: 5px;
    }
}


/* 🌟 Hero Section */
.rooms-intro {
    text-align: center;
    padding: 70px 20px;
    background: linear-gradient(rgba(10, 9, 8, 0.7), rgba(10, 9, 8, 0.7)), url('images/hero-hotel-room.jpg') center/cover;
    color: #F2F4F3;
}

.rooms-intro h2 {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 15px;
}

.rooms-intro p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.3em;
}

/* 🌟 Room Sections */
.rooms-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 50px;
    padding: 50px 20px;
    justify-content: center;
}

.room {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.room:hover {
    transform: scale(1.03);
}

/* 🌟 Room Carousel */
.room-carousel {
    position: relative;
    width: 100%;
    height: 400px; /* Increased image height */
    overflow: hidden;
}

.room-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    filter: brightness(90%) contrast(105%);
}

.room-image:not(.active) {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
}

/* Scroll Buttons */
.room-carousel .prev,
.room-carousel .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #F2F4F3;
    padding: 15px;
    border: none;
    cursor: pointer;
    font-size: 30px;
    border-radius: 50%;
    transition: background 0.3s ease-in-out, transform 0.2s ease;
    z-index: 10;
}

/* Left Button */
.room-carousel .prev {
    left: 15px;
}

/* Right Button */
.room-carousel .next {
    right: 15px;
}

/* Hover Effect for Buttons */
.room-carousel .prev:hover,
.room-carousel .next:hover {
    background: #A9927D;
    transform: translateY(-50%) scale(1.1);
}

/* 🌟 Room Details */
.room-details {
    padding: 30px;
    text-align: center;
}

.room-details h3 {
    font-size: 2.2em;
    color: #5E503F;
    margin-bottom: 20px;
}

.room-details ul {
    list-style: none;
    margin-bottom: 20px;
}

.room-details ul li {
    font-size: 1.3em;
}

/* Booking Button */
.book-btn {
    display: inline-block;
    background-color: #A9927D;
    color: #0A0908;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    transition: background-color 0.3s ease-in-out;
    text-decoration: none;
    font-size: 1.1em;
}

.book-btn:hover {
    background-color: #5E503F;
    color: #F2F4F3;
}

/* 🌟 Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #0A0908;
    color: #F2F4F3;
}

/* 🌟 Responsive Design */
@media (max-width: 1024px) {
    .rooms-container {
        grid-template-columns: 1fr;
    }

    .room-carousel {
        height: 350px; /* Adjust for medium screens */
    }

    .room-carousel .prev,
    .room-carousel .next {
        font-size: 24px;
        padding: 12px;
    }
}

@media (max-width: 768px) {
    .rooms-intro h2 {
        font-size: 2.5em;
    }

    .rooms-intro p {
        font-size: 1.1em;
    }

    .room-carousel {
        height: 300px; /* Smaller height for mobile */
    }

    .room-details h3 {
        font-size: 2em;
    }

    .room-details ul li {
        font-size: 1.1em;
    }

    .book-btn {
        padding: 12px 25px;
    }

    .room-carousel .prev,
    .room-carousel .next {
        font-size: 20px;
        padding: 10px;
    }
}