/* --- Base & Color Variables --- */
:root {
    --color-dark-green: #3d483c;
    --color-cream: #f4f2ee;
    --color-accent-gold: #c3b091; /* Same as BOOK NOW button */
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Roboto', Arial, sans-serif;
}

/* --- Global Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: var(--font-sans);
    color: var(--color-dark-green);
    background-color: white;
    line-height: 1.6;
}
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    color: var(--color-dark-green);
}
h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}
.btn {
    display: inline-block;
    padding: 12px 25px;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background-color 0.3s, color 0.3s;
}
.btn-primary {
    background-color: var(--color-accent-gold);
    color: white;
    border: 2px solid var(--color-accent-gold);
}
.btn-primary:hover {
    background-color: #a79579;
    border-color: #a79579;
}
.btn-outline-dark {
    background: transparent;
    color: var(--color-dark-green);
    border: 2px solid var(--color-dark-green);
}
.btn-outline-dark:hover {
    background-color: var(--color-dark-green);
    color: white;
}
.text-cream {
    color: var(--color-cream) !important;
}
.text-center { text-align: center; }

/* --- Fixed Navbar (Top 3 buttons) --- */
.navbar {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: rgba(61, 72, 60, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* LOGO IMAGE STYLING */
.nav-logo-img {
    height: 64px; /* Default height for desktop/tablet */
    width: auto;
}
.nav-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cream);
    text-decoration: none;
    display: flex; 
    align-items: center;
    justify-content: center;
}
/* END LOGO IMAGE STYLING */
.nav-toggle, .book-btn {
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px;
}
.nav-toggle svg path {
    stroke: var(--color-accent-gold) !important;
}
.nav-toggle svg { 
    width: 24px; 
    height: 24px; 
    fill: none; 
}
.book-btn {
    display: flex;
    align-items: center;
    background-color: var(--color-accent-gold);
    padding: 10px 20px;
    border-radius: 3px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
}
.book-btn svg { fill: white; width: 18px; height: 18px; margin-right: 8px; }

/* --- Side Navigation (Hamburger Menu) --- */
.side-menu {
    height: 100%;
    width: 0; 
    position: fixed;
    z-index: 1001;
    top: 0;
    left: 0; 
    background-color: var(--color-dark-green);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.5);
}
.side-menu a {
    padding: 10px 30px 10px 30px;
    text-decoration: none;
    font-size: 0.75rem;
    color: var(--color-cream);
    display: block;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.side-menu a:hover {
    color: var(--color-accent-gold);
    background-color: rgba(0, 0, 0, 0.2);
}
.side-menu .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
    color: white;
    border: none;
    background: none;
    cursor: pointer;
}

/* --- Floating Input Div --- */
.floating-input-div {
    position: fixed; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    background-color: white;
    padding: 15px 25px; 
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    
    /* === FIX 2: Vertical Repositioning === */
    /* Remove bottom anchor */
    bottom: unset; 
    /* Anchor it 200px from the top (or adjust based on where you want it) 
       This ensures the calendar has room to drop down below the widget. */
    top: 200px; 

    /* === FIX 1: Widget Containment === */
    display: block; 
    width: auto; 
    /* Increased max-width to ensure the widget's three inputs fit comfortably */
    max-width: 850px; 
    min-width: 320px; 
}

/* Specific styling for the Hospitable widget to ensure it fits its container */
hospitable-direct-mps {
    display: block; 
    width: 100%; 
    box-sizing: border-box; 
}

/* ----------------------------------------------------- */

/* Adjustments for Small Phones (Max width 500px) */
@media (max-width: 500px) {
    /* ... existing mobile styles ... */
    
    /* Adjust floating-input-div for smaller screens */
    .floating-input-div {
        width: 95%; 
        max-width: unset; 
        padding: 10px 15px; 
        
        /* Keep vertical repositioning, adjust top position for smaller viewports */
        top: 150px; /* Moves it up slightly higher on small phones */
    }
}

/* --- Section Styling --- */
.section {
    padding: 80px 0;
}
.hero {
    height: 100vh;
    background: url('img/WhitingBasementHole1.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    margin-top: -85px; 
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
}
.hero-content {
    z-index: 10;
    padding-top: 85px; 
}
.hero-content h1 {
    color: white;
    font-size: 4rem;
    margin-bottom: 20px;
}
.section-dark-cards {
    background-color: var(--color-cream);
}
.card-grid {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
}
.card {
    width: 30%;
    min-height: 400px;
    background-color: var(--color-dark-green);
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    text-align: left;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.card-1 { background-image: url('https://picsum.photos/400/600?random=2'); }
.card-2 { background-image: url('https://picsum.photos/400/600?random=3'); }
.card-3 { background-image: url('https://picsum.photos/400/600?random=4'); }
.card-text {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 4px;
}
.card h3 {
    color: var(--color-cream);
    margin-bottom: 10px;
}

.section-split {
    display: flex;
    gap: 40px;
    align-items: center;
}
.split-image, .split-content {
    flex: 1;
}
.split-image img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}
.section-dark {
    background-color: var(--color-dark-green);
    color: var(--color-cream);
}
.section-dark h2, .section-dark h3 {
    color: var(--color-cream);
}
.map-section {
    background-color: var(--color-cream);
    padding-bottom: 80px; /* Added matching padding for the bottom */
}
.map-section .map-content {
    display: flex;
    gap: 50px;
}
.map-text, .map-visual {
    flex: 1;
}
.map-visual {
    /* Removed background-color and border from map-visual as requested to fit the image */
    display: flex; 
    justify-content: center;
    align-items: center;
    height: auto; 
}

/* Ensure the image within map-visual is always responsive and contained */
.map-visual img {
    max-width: 100%; 
    height: auto;
    display: block; 
    border-radius: 5px; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}


.map-text ul {
    list-style: none;
    margin-top: 20px;
}
.map-text li {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

/* --- Testimonial/People Section --- */
.people-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
}
.person-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-accent-gold);
}
.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Footer --- */
.footer {
    background-color: var(--color-dark-green);
    color: var(--color-cream);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}
.footer-left, .footer-right {
    padding: 10px;
}
.footer-links a {
    color: var(--color-cream);
    margin-right: 15px;
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--color-accent-gold);
}
.footer-social-icons {
    margin-top: 10px;
}

/* --- Image Rotator Styling --- */
.image-rotator-container {
    max-width: 880px; /* Width maintained */
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    background-color: white; 
    padding: 20px 80px; /* Padding for buttons maintained */
    
    /* Center the image within the container */
    display: flex; 
    flex-direction: column;
    align-items: center; /* FIX 2: Ensures image (and dots) are centered horizontally */
}

.review-image {
    /* FIX 1: Reduce image size to 85% */
    width: 85%; 
    max-width: 700px; 
    height: auto;
    display: block;
    transition: opacity 0.5s ease-in-out; 
    border-radius: 5px; 
    /* The combination of flex/align-items in the parent and a percentage width here centers the scaled image */
}

.indicator-dots {
    position: relative; 
    margin-top: 15px; 
    justify-content: center;
    display: flex;
    gap: 8px;
}

.indicator-dot {
    height: 10px;
    width: 10px;
    background-color: rgba(61, 72, 60, 0.4); 
    border-radius: 50%;
    display: inline-block;
    cursor: pointer; 
}

.indicator-dot.active {
    background-color: var(--color-accent-gold);
}

/* --- Navigation Buttons for Rotator --- */
.nav-button {
    cursor: pointer;
    position: absolute;
    /* FIX 3: Anchor to the top of the container (20px to match top padding) */
    top: 20px; 
    
    /* REMOVE margin-top: -22px; which was used for vertical centering */
    margin-top: 0; 
    
    width: auto;
    padding: 16px 12px; 
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0,0,0,0.6);
    border: none;
    z-index: 10;
    line-height: 1; 
}

.prev-button {
    left: 10px; 
    border-radius: 3px 0 0 3px;
}

.next-button {
    right: 10px; 
    border-radius: 0 3px 3px 0;
}

.nav-button:hover {
    background-color: rgba(0,0,0,0.8);
}

/* ======================================= */
/* 📱 MOBILE RESPONSIVENESS FIXES (MEDIA QUERIES) */
/* ======================================= */

/* Adjustments for Tablets and large Phones (Max width 768px) */
@media (max-width: 768px) {
    /* Logo Height Adjustment for Mobile/Tablet */
    .nav-logo-img {
        height: 48px; 
    }
    
    /* Font Size Reductions */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    .navbar {
        padding: 10px 20px;
    }
    .nav-logo {
        font-size: 1.2rem;
    }
    .book-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    /* 1. Card Grid: Force stack vertically */
    .card-grid {
        flex-direction: column;
        gap: 30px;
        align-items: center; 
    }
    .card {
        width: 100%; 
        min-height: 350px;
        background-size: cover;
    }
    .card-text {
        padding: 20px;
    }

    .container {
        padding: 0 20px;
    }

    /* 2. Split Sections (About and Map Content): Stack vertically */
    .section-split {
        flex-direction: column;
        gap: 30px;
    }
    .split-image {
        order: -1; 
    }
    .map-section .map-content {
        flex-direction: column;
    }
    /* --- FIX: Allow map-visual height to auto-adjust on mobile --- */
    .map-visual {
        height: auto; 
    }
    /* ----------------------------------------------------------- */
    
    .people-grid {
        flex-wrap: wrap;
        padding: 0 10px;
    }
}

/* Adjustments for Small Phones (Max width 500px) */
@media (max-width: 500px) {
    /* Hero Text Fix */
    .hero-content h1 {
        font-size: 2.2rem; 
        padding: 0 10px; 
        line-height: 1.1;
    }
    
    .section {
        padding: 50px 0;
    }
    
    /* Floating Input Div: Stack vertically */
    .floating-input-div {
        flex-direction: column; 
        width: 90%; 
        bottom: 15px;
        padding: 15px;
    }
    .input-group {
        width: 100%;
    }
    .input-group input, .input-group select, .input-group button {
        min-width: unset;
        width: 100%; 
    }
    .input-group button {
        margin-top: 15px; 
    }
    
    .section:last-of-type {
        padding-bottom: 200px; 
    }

    /* Smaller nav buttons on small screens */
    .nav-button {
        padding: 10px;
        font-size: 16px;
    }
}