/* ==========================================================================
   1. VARIABLES & THEME SETTINGS
   ========================================================================== */
:root {
    --forest-green: #2C4C3B;
    --light-sage: #E8EDE7;
    --wood-brown: #A67C52;
    --accent-color: #A67C52; /* Added missing accent variable */
    --sand-white: #F9F8F6;
    --charcoal: #2A2A2A;
    --font-heading: 'Merriweather', serif;
    --font-body: 'Inter', sans-serif;
}

/* ==========================================================================
   2. BASE STYLES & RESETS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--charcoal);
    line-height: 1.7;
    background-color: var(--sand-white);
}

a {
    text-decoration: none;
    color: var(--wood-brown);
    transition: all 0.3s ease;
}

a:hover { 
    color: var(--forest-green); 
}

/* ==========================================================================
   3. UTILITY CLASSES
   ========================================================================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.w-100 { width: 100%; text-align: center; }
.bg-light-sage { background-color: var(--light-sage); padding: 5rem 0; }

/* ==========================================================================
   4. BUTTONS
   ========================================================================== */
.btn-primary, 
.btn-outline,
.btn-outline-dark {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 2px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--forest-green);
    color: var(--sand-white) !important;
    border: 2px solid var(--forest-green);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--forest-green) !important;
}

.btn-outline {
    background-color: transparent;
    color: var(--sand-white) !important;
    border: 2px solid var(--sand-white);
}

.btn-outline:hover {
    background-color: var(--sand-white);
    color: var(--forest-green) !important;
}

.btn-outline-dark {
    border: 1px solid var(--forest-green);
    color: var(--forest-green);
}

.btn-outline-dark:hover {
    background: var(--forest-green);
    color: var(--sand-white);
}

.btn-text {
    font-weight: 600;
    color: var(--forest-green);
    margin-left: 1rem;
}

/* ==========================================================================
   5. GLOBAL LAYOUT COMPONENTS
   ========================================================================== */
/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0; width: 100%;
    background-color: transparent;
    z-index: 1000;
    transition: background-color 0.4s ease, padding 0.4s ease;
    padding: 1.5rem 0;
}

.navbar.scrolled {
    background-color: var(--forest-green);
    padding: 0.8rem 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--sand-white);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--sand-white);
    font-weight: 400;
    font-size: 1rem;
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--wood-brown);
}

.mobile-toggle {
    display: none;
    background: none; border: none;
    font-size: 1.8rem;
    color: var(--sand-white);
    cursor: pointer;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--forest-green);
    color: var(--light-sage);
    padding: 5rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.site-footer h3, 
.site-footer h4 {
    font-family: var(--font-heading);
    color: var(--sand-white);
    margin-bottom: 1.5rem;
}

.site-footer address {
    font-style: normal;
    margin-bottom: 1rem;
}

.site-footer a { color: var(--wood-brown); }
.site-footer a:hover { color: var(--sand-white); }

.social-links a {
    display: inline-block;
    border: 1px solid var(--light-sage);
    width: 40px; height: 40px;
    text-align: center; line-height: 40px;
    border-radius: 50%;
    margin-right: 0.5rem;
    color: var(--light-sage);
}

.social-links a:hover {
    background: var(--wood-brown);
    border-color: var(--wood-brown);
}

.footer-award {
    text-align: center;
    padding: 1.5rem;
    border: 1px dashed var(--wood-brown);
    border-radius: 4px;
}

.footer-award i {
    color: var(--wood-brown);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(232, 237, 231, 0.1);
    font-size: 0.9rem;
}

/* --- Shared Page Headers --- */
.page-header {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--sand-white);
    margin-bottom: 3rem;
}

.header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(44, 76, 59, 0.7); /* Forest Green Tint */
}

.header-content {
    position: relative;
    z-index: 1;
}

.header-content h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    color: var(--forest-green);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.intro-section, 
.story-content {
    max-width: 800px;
    margin: 0 auto 4rem auto;
    text-align: center;
}

.lead-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--forest-green);
    margin-bottom: 1rem;
}

/* ==========================================================================
   6. PAGE SPECIFIC SECTIONS
   ========================================================================== */

/* --- Home / Hero Section --- */
.hero {
    height: 100vh;
    min-height: 600px;
    background: url('/assets/images/blazing-sky-2000x1335.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 100%);
}

.hero-glass-card {
    position: relative;
    z-index: 1;
    background: rgba(249, 248, 246, 0.9);
    backdrop-filter: blur(8px);
    padding: 4rem 3rem;
    border-radius: 4px;
    text-align: center;
    max-width: 700px;
    width: 90%;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--wood-brown);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--forest-green);
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Amenities Grid --- */
.story-section { padding: 6rem 0; }

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.amenity-card {
    background: white;
    padding: 2.5rem 1.5rem;
    text-align: center;
    border: 1px solid var(--light-sage);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(44, 76, 59, 0.05);
}

.amenity-card i {
    font-size: 2.5rem;
    color: var(--wood-brown);
    margin-bottom: 1rem;
}

.amenity-card h3 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    margin-bottom: 0.5rem;
}

/* --- Cabins Grid --- */
.cabin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.cabin-card {
    background: white;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.cabin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(44, 76, 59, 0.15);
}

.cabin-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.cabin-info {
    padding: 1.5rem;
    text-align: center;
}

.cabin-info h3 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    margin-bottom: 1rem;
}

/* --- Individual Cabin Pages --- */
.cabin-details-section {
    padding: 3rem 0 5rem;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.pricing-box {
    background: var(--sand-white);
    border: 1px solid var(--light-sage);
    border-left: 4px solid var(--wood-brown);
    padding: 2rem;
    margin-top: 2rem;
    border-radius: 4px;
}

.pricing-box h3 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.pricing-box ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pricing-box li {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
}

.cabin-amenities {
    background: var(--forest-green);
    color: var(--sand-white);
    padding: 3rem 2.5rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cabin-amenities h3 {
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.amenity-list {
    list-style: none;
}

.amenity-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--light-sage);
}

.amenity-list i {
    color: var(--wood-brown);
    font-size: 1.2rem;
    width: 25px; 
    text-align: center;
}

/* --- Policies Page --- */
.policies-section {
    background-color: var(--light-sage);
    padding: 5rem 0;
}

.policies-section h2 {
    text-align: center;
    font-family: var(--font-heading);
    color: var(--forest-green);
    margin-bottom: 3rem;
    font-size: 2.2rem;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.policy-item {
    background: var(--sand-white);
    padding: 2rem;
    border-top: 4px solid var(--wood-brown);
    border-radius: 4px;
}

.policy-item h4 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.policy-item i { color: var(--wood-brown); }

/* --- Weddings & Features Section --- */
.wedding-intro {
    padding: 3rem 0 5rem;
}

.wedding-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.feature-box {
    background: var(--sand-white);
    padding: 2.5rem 1.5rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid var(--light-sage);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(44, 76, 59, 0.08);
}

.feature-box i {
    font-size: 2.5rem;
    color: var(--wood-brown);
    margin-bottom: 1.2rem;
}

.feature-box h3 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* --- Photo Gallery Grid --- */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.grid-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.grid-img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    z-index: 2;
}

/* --- CTA Section --- */
.cta-section {
    padding: 6rem 0;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* --- Contact Page --- */
.contact-section {
    padding: 2rem 0 6rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-card p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.info-list {
    list-style: none;
    margin-bottom: 3rem;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.info-list i {
    font-size: 1.5rem;
    color: var(--wood-brown);
    margin-top: 0.3rem;
}

.info-list strong {
    color: var(--forest-green);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    display: block;
    margin-bottom: 0.2rem;
}

.map-container {
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Form Styling --- */
.contact-form-card {
    padding: 3rem;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.contact-form-card h2 {
    font-family: var(--font-heading);
    color: var(--forest-green);
    margin-bottom: 2rem;
    font-size: 2rem;
}

.custom-form .form-group {
    margin-bottom: 1.5rem;
}

.custom-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--forest-green);
}

.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.custom-form input:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--wood-brown);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.checkbox-group input {
    margin-top: 0.3rem;
}

/* ==========================================================================
   7. LIGHTBOX MODAL
   ========================================================================== */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 4px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
}

#imageCaption {
    margin: 15px auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--light-sage);
    font-size: 1.2rem;
    font-family: var(--font-heading);
}

.close-modal {
    position: absolute;
    top: 20px; right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
    color: var(--wood-brown);
    text-decoration: none;
}

.lightbox-trigger {
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-trigger:hover {
    opacity: 0.8;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* ==========================================================================
   8. MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */

/* Navbar & Global Adjustments */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    
    .nav-links {
        position: absolute;
        top: 100%; left: 0;
        width: 100%;
        background: var(--forest-green);
        flex-direction: column;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-links.active { max-height: 400px; padding: 1rem 0; }
    .nav-links a { width: 100%; text-align: center; padding: 1rem; }
    .navbar { padding: 1rem 0; background: var(--forest-green); }
    .btn-outline { border-color: transparent; }
}

/* Form and Details Layout Adjustments */
@media (max-width: 900px) {
    .contact-grid,
    .details-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .contact-form-card {
        padding: 2rem;
    }
}

/* Next & Previous Buttons */
.prev-modal, .next-modal {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none; /* Prevents text highlighting when clicking fast */
}

/* Position the left arrow */
.prev-modal {
    left: 20px;
}

/* Position the right arrow */
.next-modal {
    right: 20px;
    border-radius: 3px 0 0 3px;
}

/* Hover effect for arrows */
.prev-modal:hover, .next-modal:hover {
    background-color: rgba(255, 255, 255, 0.2);
}