/* --- 1. Global Reset & Typography --- */
:root {
    /* Primary Color: Professional Blue/Teal */
    --primary-color: #0077b6; 
    /* Secondary Color: Dark Navy/Black for text */
    --secondary-color: #03045e;
    /* Accent Color: Lighter Blue for contrast/hovers */
    --accent-color: #00b4d8;
    /* Background Color: Light Gray/Off-White */
    --background-color: #f8f9fa;
    /* White for text/backgrounds */
    --white: #ffffff;
    /* Box Shadow for depth */
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    /* Transition speed */
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--secondary-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}
/* ===================================== */
/* 1. Desktop & Mobile foundation notes  */
/* ===================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3 {
    margin-bottom: 0.5em;
    color: var(--secondary-color);
    font-weight: 700;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-speed);
}

a:hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color var(--transition-speed), transform 0.1s;
    border: none;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--white);
}

.primary-btn:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
}

.secondary-btn {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* --- 2. Header & Navigation --- */
.main-header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo img {
    /* Logo is Circular */
    width: 50px; 
    height: 50px;
    border-radius: 50%; /* Makes the image a circle */
    object-fit: cover;
    margin-right: 10px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li a {
    color: var(--secondary-color);
    padding: 10px 15px;
    display: block;
    font-weight: 600;
    text-transform: uppercase;
}

.main-nav ul li a:hover {
    color: var(--primary-color);
}

.menu-toggle {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--primary-color);
    cursor: pointer;
}

/* --- 3. Hero Section (Home) --- */
.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Background removed for slideshow images */
    color: var(--white);
    position: relative;
    overflow: hidden; /* Crucial to contain the images */
}

/* New Slideshow Container and Image Styles for HERO SECTION */
.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Hidden by default */
    transition: opacity 1s ease-in-out; /* Smooth fading transition */
}

.hero-slide-image.active {
    opacity: 1; /* Highlighted (visible) photo */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* --- 4. Section Styling (General) --- */
section {
    padding: 80px 0;
}

.about-us, .rooms, .location, .contact {
    background-color: var(--white);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

/* --- 5. About Section --- */
.about-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-text {
    flex: 1;
}

/* SLIDESHOW CONTAINER STYLES (Used in About Section) */
.about-image {
    /* Desktop: take half the content area; mobile rules override via media queries */
    flex: 0 0 50%;
    max-width: 50%;
    position: relative;
    height: 400px; /* Desktop height for slideshow */
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.slideshow-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}
.slideshow-image.active {
    opacity: 1;
}
/* END SLIDESHOW STYLES */

/* --- 6. Rooms Section (Static Display) --- */
/* (Canonical room styles are defined later in this file under the room-showcase section.) */
/* --- 7. Location Section --- */
.location-content {
    text-align: center;
}

.map-container {
    margin: 30px auto;
    max-width: 800px;
    height: 400px;
    background-color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-container a {
    display: block;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    background-color: #e9ecef;
    color: var(--primary-color);
}

.map-container a:hover {
    background-color: #ced4da;
}

/* --- 8. Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.contact-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

/* --- 9. Footer --- */
.main-footer {
    background-color: var(--secondary-color);
    color: var(--background-color);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.footer-logo {
    font-size: 1.2rem;
    font-weight: 700;
}

.social-links a {
    color: var(--white);
    margin-left: 15px;
    font-size: 1.2rem;
}

.social-links a:hover {
    color: var(--accent-color);
}

/* --- 10. Booking Page Styling (Now a Section) --- */
.booking-page-hero {
    background-color: var(--background-color);
    padding: 80px 20px;
    text-align: center;
    min-height: 50vh;
}

.booking-links-grid {
    /* Updated to fit multiple cards responsively */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto;
}

.booking-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.booking-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.booking-card p {
    margin-bottom: 20px;
    font-size: 0.95rem;
    min-height: 40px; /* Ensures card height consistency */
}

/* --- 11. Media Queries (Responsiveness) --- */
@media (max-width: 900px) {
    .about-content {
        flex-direction: column;
    }
    .room-info h3 {
        font-size: 1.8rem;
    }
    /* Make features single column on mobile */
    .room-info ul {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    /* Ensure About slideshow is visible when stacking at 900px and below */
    .about-image {
        flex: 0 0 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9; /* Modern browsers */
        min-height: 200px; /* Fallback so it doesn't collapse on some devices */
        overflow: hidden;
        order: -1; /* Place image above text when stacked, optional */
    }

    .about-image .slideshow-image {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    h2 {
        font-size: 2rem;
    }

    /* Mobile Menu Styles */
    .header-content {
        padding: 0 15px;
    }
    
    .menu-toggle {
        display: block; 
        z-index: 1001; 
    }

    .main-nav {
        position: absolute;
        top: 70px; 
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
    }

    .main-nav.active {
        max-height: 300px; 
        padding: 10px 0;
    }

    .main-nav ul {
        flex-direction: column;
        align-items: center;
    }

    .main-nav ul li {
        width: 100%;
        text-align: center;
    }

    .main-nav ul li a {
        padding: 15px;
        border-bottom: 1px solid #eee;
    }
    
    .carousel-slide {
        flex-direction: column; 
    }
    
    .room-image, .room-info {
        width: 100%;
        min-width: unset;
        flex: none;
    }

    .room-image img {
        height: 250px;
    }

    .footer-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .booking-links-grid {
        grid-template-columns: 1fr; 
    }
}
/* ===================================== */
/* 1. General & Desktop Styles           */
/* (For screens larger than 768px)       */
/* ===================================== */

.room-showcase {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Style for the main intro text */
.room-intro {
    text-align: center;
    margin-bottom: 40px;
}

.room-intro h2 {
    font-size: 2.5em;
    color: #002D62; /* Example dark blue for elegance */
    margin-bottom: 10px;
}

.room-intro p {
    font-size: 1.1em;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

/* Container for the image carousel and features (Desktop: Side-by-Side) */
.room-content {
    display: flex;
    gap: 40px; /* Space between the image and features */
    align-items: flex-start; /* Aligns items to the top */
}

/* Image Carousel Styles (Desktop: Takes about 60% of width) */
.room-carousel {
    flex: 0 0 60%; /* Take 60% of the container width */
    max-width: 60%;
    overflow: hidden; /* Important for hiding extra slides */
    position: relative;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
    /* Placeholder size, adjust based on your JS carousel logic */
}

.slide {
    min-width: 100%; /* Each slide takes the full width of the carousel container */
}

.slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Room Features Styles (Desktop: Takes about 40% of width) */
.room-info {
    flex: 1; /* Takes the remaining space */
    padding-top: 20px; /* Align content nicely with the carousel */
}

.room-info h3 {
    font-size: 1.8em;
    color: #007bff; /* Example accent color */
    margin-bottom: 15px;
}

.room-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.room-info ul li {
    display: flex;
    align-items: center;
    padding: 8px 0;
    font-size: 1em;
    border-bottom: 1px solid #eee;
}

.room-info ul li i {
    color: #007bff; /* Icon color */
    margin-right: 10px;
    width: 20px; /* Ensures all icons are aligned */
    text-align: center;
}


/* ===================================== */
/* 2. Mobile Styles (Media Query)        */
/* (For screens 768px and smaller)       */
/* ===================================== */

@media (max-width: 768px) {

    /* Stack the image carousel and features vertically */
    .room-content {
        flex-direction: column; /* Stack items vertically */
        gap: 20px; /* Reduce space between stacked elements */
    }

    /* Make the Image Carousel prominent (Big Image on Top) */
    .room-carousel {
        /* Reset flex properties */
        flex: 0 0 100%;
        max-width: 100%; /* Take up the full content width */
        margin: 0; /* Remove side margins if any */
        /* Increase size for a 'big' look on mobile */
        height: 300px; /* Fixed height for a good visual size on mobile */
    }

    .slide img {
        /* Ensure the image covers the fixed height without distortion */
        width: 100%;
        height: 100%;
        object-fit: cover; /* This makes the image cover the area, cropping if necessary */
    }

    /* Features below the image */
    .room-info {
        padding-top: 0; /* Remove top padding to sit right under the image */
        padding: 0 15px; /* Add slight side padding for better readability */
    }

    .room-intro h2 {
        font-size: 1.8em; /* Make the heading smaller on mobile */
    }

    .room-info h3 {
        text-align: center; /* Center the feature heading */
        margin-top: 10px;
    }
    
    .room-info ul li {
        font-size: 0.95em;
    }
    
    .btn {
        width: 100%; /* Make the button full width */
        text-align: center;
    }
}

