/* Import a clean font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* CSS Variables for easy theme management */
:root {
    --primary-color: #3a5a40; /* A calm, natural green */
    --secondary-color: #588157;
    --text-color: #333;
    --bg-color: #f4f4f4;
    --light-color: #fff;
    --box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Utility Classes */
.container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--light-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--secondary-color);
}

h1, h2, h3 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

/* Header and Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--light-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
}

.nav-item {
    margin-left: 1.5rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: all 0.3s ease-in-out;
}

/* --- FOOTER --- */
.site-footer {
    background: #333; /* Using a specific dark grey for the footer */
    color: #ccc;
    padding: 3rem 0 0; /* Add padding at the top, none at the bottom */
    margin-top: 3rem;
    font-size: 0.95rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap; /* Allows columns to stack on smaller screens */
    padding-bottom: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 250px; /* Ensures columns don't get too squished */
}

.footer-column h4 {
    font-size: 1.2rem;
    color: var(--light-color);
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Adds a small accent line under footer headings */
.footer-column h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
}
.footer-logo::after {
    display: none; /* No accent line for the logo */
}

.footer-column p {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--light-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.7rem;
}

.footer-social {
    margin-top: 1rem;
}

/* Re-using the social icon style from the contact page */
.footer-social .social-icon {
    background: #555;
}
.footer-social .social-icon:hover {
    background: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #444;
    text-align: center;
    padding: 1.5rem 0;
    font-size: 0.9rem;
    color: #888;
}


/* --- HOME PAGE --- */
/* Hero Section */
.hero-section {
    height: 90vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/images/logo.jpg') no-repeat center center/cover;
    /* Replace with your hero background image */
    color: var(--light-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 1rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* About Section */
.about-section {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
}

.about-content {
    flex: 1;
}


/* --- AMENITIES PAGE --- */
.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.amenity-card {
    background: var(--light-color);
    padding: 2rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.amenity-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}


/* --- ROOMS PAGE --- */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.room-card {
    background: var(--light-color);
    border-radius: 10px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.room-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.room-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-card-content h3 {
    margin-top: 0;
}

.room-details {
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.room-details span {
    color: #666;
}

/* --- GALLERY PAGE --- */
.gallery-container {
    display: flex;
    overflow-x: auto; /* This creates the 'rolling' effect */
    gap: 1rem;
    padding: 1rem 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

/* For Webkit browsers like Chrome, Safari */
.gallery-container::-webkit-scrollbar {
    height: 8px;
}
.gallery-container::-webkit-scrollbar-track {
    background: var(--bg-color);
}
.gallery-container::-webkit-scrollbar-thumb {
    background-color: var(--secondary-color);
    border-radius: 10px;
}

.gallery-item {
    flex: 0 0 auto; /* Prevents items from shrinking */
    height: 300px; /* All items will have the same height */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.gallery-item img {
    height: 100%; /* Image fills the container's height */
    width: auto; /* Width adjusts to maintain aspect ratio */
    object-fit: contain; /* Ensures the whole image is visible without cropping */
    display: block;
}


/* --- CONTACTS PAGE --- */
.contact-section {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.contact-details {
    flex: 1;
    min-width: 300px;
}

.contact-details p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}
.contact-details p i {
    margin-right: 10px;
    color: var(--primary-color);
}
.contact-details a {
    text-decoration: none;
    color: var(--text-color);
}
.contact-details a:hover {
    color: var(--primary-color);
}

.contact-map {
    flex: 1.5;
    min-width: 300px;
    min-height: 400px;
}
.contact-map iframe {
    border-radius: 10px;
}

.social-media {
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background 0.3s;
}
.social-icon:hover {
    background: var(--secondary-color);
}

/* --- RESPONSIVENESS --- */
@media(max-width: 768px) {
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px; /* Adjust based on navbar height */
        flex-direction: column;
        background-color: var(--light-color);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 1.5rem 0;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .about-section {
        flex-direction: column;
    }
}