:root {
    /* Palette */
    --bg-main: #F4EFE7;       /* Sand White */
    --bg-card: #E9E1D6;       /* Warm Pebble */
    --bg-white: #FFFFFF;
    
    --primary: #AFCFC5;       /* Mint Cabinet */
    --primary-hover: #90B9AE; /* Seafoam Green */
    --accent: #7AA39A;        /* Dusty Sage */
    
    --wood: #C79963;          /* Olive Wood */
    
    --grey-panel: #D5D6D4;    /* Light Stone Grey */
    --text-body: #5B5E5A;     /* Deep Slate - Using for main text for readability */
    --text-light: #8D8F8C;    /* Mid Warm Grey */
    --text-heading: #5B5E5A;  /* Deep Slate */
    
    --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --spacing-unit: 1rem;
    --border-radius: 8px;
    --shadow-soft: 0 4px 20px rgba(0,0,0,0.05);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-main);
    color: var(--text-body);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-heading);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Loading Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- Header --- */
header {
    background-color: rgba(244, 239, 231, 0.95); /* --bg-main with opacity */
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo-container {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    margin: 0;
    padding: 0;
}

.logo-container:hover {
    opacity: 0.85;
}

.logo-image {
    height: 45px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
    margin: 0;
    padding: 0;
}

/* Legacy logo styles (kept for backwards compatibility) */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.5px;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo span {
    color: var(--wood);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--wood);
}

.lang-switcher select {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--text-heading);
    font-family: inherit;
    cursor: pointer;
}

.lang-switcher select:focus {
    outline: none;
    border-color: var(--wood);
}

/* Mobile Menu */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-heading);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-main);
        padding: 2rem;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        text-align: center;
    }

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

    .hamburger {
        display: block;
    }
}

/* --- Hero Buttons --- */
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary);
    color: #fff; /* White text for contrast on mint */
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(175, 207, 197, 0.4);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(175, 207, 197, 0.6);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--bg-white);
    color: var(--bg-white);
    box-shadow: none;
}

.btn-secondary:hover {
    background-color: var(--bg-white);
    color: var(--text-heading);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--accent);
    color: var(--text-heading);
    box-shadow: none;
}

.btn-outline:hover {
    border-color: var(--wood);
    color: var(--wood);
    background: transparent;
}

/* Button mobile adjustments */
@media (max-width: 600px) {
    .btn {
        padding: 0.7rem 1.4rem;
        font-size: 0.85rem;
    }
}

/* --- Hero Section --- */
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.3)), url('../assets/landscapeSunsetting.jpg');
    background-size: cover;
    background-position: center;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
    position: relative;
    max-width: 100% !important; /* Override section max-width */
    margin: 0 !important; /* Override section margin */
}

.hero-content {
    max-width: 800px;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(20px);
    transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.hero-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #f0f0f0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

/* Hero mobile adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.2s; }
.fade-in-delay-2 { transition-delay: 0.4s; }
.fade-in-delay-3 { transition-delay: 0.6s; }

/* --- Sections --- */
section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-heading);
    font-size: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--wood);
    margin: 1rem auto 0;
    border-radius: 2px;
}

/* --- Highlights / Cards --- */
.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* 2 columns for tablets */
@media (max-width: 900px) {
    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column for mobile */
@media (max-width: 600px) {
    .highlights-grid {
        grid-template-columns: 1fr;
    }
}

.highlight-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.5);
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
}

.highlight-card h3 {
    color: var(--text-heading);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.highlight-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* --- Gallery Preview --- */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

/* 1 column for mobile */
@media (max-width: 600px) {
    .gallery-preview {
        grid-template-columns: 1fr;
    }
}

.gallery-preview img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    transition: transform 0.5s ease;
}

.gallery-preview img:hover {
    transform: scale(1.02);
}

/* --- Forms --- */
.contact-form {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--grey-panel);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.phone-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 0.5rem;
    align-items: center;
}

.phone-row select {
    padding: 0.9rem 0.5rem;
    border: 1px solid var(--grey-panel);
    border-radius: 4px;
    background-color: #fff;
    font-family: inherit;
    font-size: 0.85rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.phone-row input {
    min-width: 0;
}

.date-row,
.guest-row {
    display: flex;
    gap: 1rem;
}

.date-row .form-group,
.guest-row .form-group {
    flex: 1;
}

@media (max-width: 640px) {
    .phone-row {
        grid-template-columns: 1fr;
    }
    
    .date-row,
    .guest-row {
        flex-direction: column;
        gap: 0;
    }
}

label {
    font-weight: 500;
    color: var(--text-heading);
    font-size: 0.9rem;
}

input, textarea, select {
    padding: 1rem;
    border: 1px solid var(--grey-panel);
    border-radius: 4px;
    font-family: inherit;
    background-color: #FAFAFA;
    transition: border-color 0.3s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: #E74C3C;
}

.form-error {
    color: #E74C3C;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Form status messages */
#form-status-message {
    border-radius: 4px;
    padding: 1rem;
    text-align: center;
    font-weight: 500;
    margin-bottom: 1rem;
}

#form-status-message[style*="display: block"] {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Footer --- */
footer {
    background-color: var(--text-heading); /* Deep Slate */
    color: #fff;
    padding: 4rem 2rem;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-content h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.footer-content p {
    color: #d0d0d0;
}

.footer-content a {
    color: var(--primary);
}

.footer-content a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.booking-link-small {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* --- Utilities --- */
.hidden {
    display: none;
}

.text-center {
    text-align: center;
}

.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }

/* Map Container */
.map-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Gallery Grid Page */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* 2 columns for tablets */
@media (max-width: 900px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 1 column for mobile */
@media (max-width: 600px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Google Reviews Widget */
.reviews-widget .review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

/* Carousel Lightbox Modal */
.carousel-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.carousel-lightbox-content {
    position: relative;
    width: 90%;
    max-width: 1400px;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: white;
    cursor: pointer;
    z-index: 10002;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.carousel-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Carousel inside lightbox */
.carousel-lightbox .gallery-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 70vh;
    border-radius: var(--border-radius);
}

.carousel-lightbox .gallery-track {
    display: flex;
    transition: transform 0.5s ease;
    cursor: grab;
    user-select: none;
    height: 100%;
}

.carousel-lightbox .gallery-track:active {
    cursor: grabbing;
}

.carousel-lightbox .gallery-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel-lightbox .gallery-slide img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Carousel Navigation Buttons in Lightbox */
.carousel-lightbox .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.carousel-lightbox .carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.carousel-lightbox .carousel-prev {
    left: 20px;
}

.carousel-lightbox .carousel-next {
    right: 20px;
}

/* Carousel Indicators in Lightbox */
.carousel-lightbox .carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
    max-width: 90%;
}

.carousel-lightbox .carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-lightbox .carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-lightbox .carousel-dot.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* Carousel Counter in Lightbox */
.carousel-lightbox .carousel-counter {
    text-align: center;
    margin-top: 1rem;
    font-size: 1.2rem;
    color: white;
    font-weight: 500;
}

.carousel-lightbox .carousel-counter .current-slide {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.5rem;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .carousel-lightbox .gallery-slide img {
        max-height: 60vh;
    }
    
    .carousel-lightbox .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.8rem;
    }
    
    .carousel-lightbox .carousel-prev {
        left: 10px;
    }
    
    .carousel-lightbox .carousel-next {
        right: 10px;
    }
    
    .carousel-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
        font-size: 2rem;
    }
    
    .carousel-lightbox .carousel-indicators {
        gap: 0.3rem;
    }
    
    .carousel-lightbox .carousel-dot {
        width: 8px;
        height: 8px;
    }
    
    .carousel-lightbox .carousel-dot.active {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .carousel-lightbox .gallery-slide img {
        max-height: 50vh;
    }
    
    .carousel-lightbox .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(91, 94, 90, 0.95); /* Deep Slate with opacity */
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary);
}

/* --- Cookie Consent Banner --- */
#cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

#cookie-consent-banner.visible {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-text {
    flex: 1;
    min-width: 280px;
}

.cookie-text p {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
    color: var(--text-body);
}

.cookie-text p:last-child {
    margin-bottom: 0;
}

.cookie-text a {
    color: var(--wood);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
}

.cookie-btn-primary {
    background: var(--primary);
    color: #fff;
}

.cookie-btn-primary:hover {
    background: var(--primary-hover);
}

.cookie-btn-secondary {
    background: transparent;
    border: 1px solid var(--grey-panel);
    color: var(--text-body);
}

.cookie-btn-secondary:hover {
    border-color: var(--text-body);
}

@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
}

