:root {
    --color-bg: #fdfcf8;
    --color-bg-light: #f5f3ec;
    --color-text: #2f342b;
    --color-text-light: #525a4d;
    --color-accent: #6f7b5a; /* Deep sage */
    --color-highlight: #d1ba98; /* Stone/sand */
    --color-white: #ffffff;
    
    --font-heading: 'Lora', serif;
    --font-text: 'Inter', sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2.5rem;
    --spacing-lg: 5rem;
    --spacing-xl: 8rem;
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-full: 9999px;
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-text);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Typography */
h1, h2, h3, h4, h5, h6, .heading-elegant {
    font-family: var(--font-heading);
    font-weight: 500;
    line-height: 1.2;
    color: var(--color-text);
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-light);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-highlight);
}

ul {
    list-style: none;
}

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

.subtitle {
    font-size: 1.1rem;
    margin-top: 1rem;
    margin-bottom: 2rem;
    color: var(--color-text-light);
}

.lead-text {
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.heading-elegant {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .heading-elegant {
        font-size: 3.5rem;
    }
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.section {
    padding: var(--spacing-lg) 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

/* Buttons */
.btn-book {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-white);
    padding: 0.75rem 1.8rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-accent);
}

.btn-book:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Header */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
    padding: 1.5rem 0;
    background-color: transparent;
}

.main-header.scrolled {
    padding: 0.8rem 0;
    background-color: rgba(253, 252, 248, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Header links: white on hero, dark when scrolled */
.main-header .nav-link {
    color: var(--color-white);
    font-weight: 500;
    position: relative;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.main-header.scrolled .nav-link {
    color: var(--color-text);
    text-shadow: none;
}

.main-header .btn-book {
    border-color: var(--color-white);
    color: var(--color-white);
    background-color: transparent;
    text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.main-header.scrolled .btn-book {
    border-color: var(--color-accent);
    color: var(--color-white);
    background-color: var(--color-accent);
    text-shadow: none;
}

.main-header.scrolled .btn-book:hover {
    background-color: transparent;
    color: var(--color-accent);
}

.main-header .logo img {
    filter: brightness(1.3) drop-shadow(0 2px 6px rgba(0,0,0,0.4));
    transition: filter 0.3s ease;
}

.main-header.scrolled .logo img {
    filter: none;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.navbar {
    display: none;
    gap: 2rem;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--color-highlight);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

@media (min-width: 992px) {
    .navbar {
        display: flex;
    }
}

/* Hamburger Button */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    padding: 0;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.main-header.scrolled .hamburger span {
    background-color: var(--color-text);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--color-white);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--color-white);
}

/* When menu open: make close button more prominent */
.hamburger.active {
    position: fixed;
    top: 1.2rem;
    right: 5%;
    z-index: 1100;
}

.hamburger.active span {
    width: 28px;
    height: 2.5px;
}

@media (min-width: 992px) {
    .hamburger {
        display: none;
    }
}

/* Desktop book button - hide on mobile */
.btn-book-desktop {
    display: none;
}

@media (min-width: 992px) {
    .btn-book-desktop {
        display: inline-block;
    }
}

/* Language Switcher */
.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.25);
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    margin-left: 0.5rem;
    order: 10;
}

.lang-switch:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.45);
    transform: translateY(-1px);
}

.lang-flag {
    display: block;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.lang-label {
    font-family: var(--font-text);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: color 0.3s ease;
}

/* Scrolled state */
.main-header.scrolled .lang-switch {
    border-color: rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    backdrop-filter: none;
}

.main-header.scrolled .lang-switch:hover {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.2);
}

.main-header.scrolled .lang-label {
    color: var(--color-text);
    text-shadow: none;
}

/* Inner pages (always scrolled look) */
.main-header-inner .lang-switch {
    border-color: rgba(0,0,0,0.1);
    background: rgba(0,0,0,0.03);
    backdrop-filter: none;
}

.main-header-inner .lang-switch:hover {
    background: rgba(0,0,0,0.06);
    border-color: rgba(0,0,0,0.2);
}

.main-header-inner .lang-label {
    color: var(--color-text);
    text-shadow: none;
}

/* Mobile: centered by default, slides into hamburger on scroll */
@media (max-width: 991px) {
    .header-container {
        position: relative;
    }

    .lang-switch {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        z-index: 5;
        opacity: 1;
        transition: left 1.2s cubic-bezier(0.25, 1, 0.5, 1),
                    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1),
                    opacity 0.4s ease 0.8s,
                    background 0.4s ease,
                    border-color 0.4s ease;
    }

    /* On scroll: slide right, shrink into hamburger, disappear */
    .main-header.scrolled .lang-switch,
    .main-header-inner .lang-switch {
        left: calc(100% - 24px);
        transform: translate(-50%, -50%) scale(0);
        opacity: 0;
        pointer-events: none;
    }

    /* Language option inside mobile nav */
    .mobile-nav .mobile-lang-switch {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        margin-top: 1.5rem;
        padding: 0.6rem 1.4rem;
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: var(--radius-full);
        text-decoration: none;
        transition: background 0.3s ease, border-color 0.3s ease;
    }

    .mobile-nav .mobile-lang-switch:hover {
        background: rgba(255,255,255,0.1);
        border-color: rgba(255,255,255,0.4);
    }

    .mobile-nav .mobile-lang-switch .lang-flag {
        display: block;
        border-radius: 2px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    }

    .mobile-nav .mobile-lang-switch .lang-label {
        font-family: var(--font-text);
        font-size: 0.8rem;
        font-weight: 600;
        letter-spacing: 1.5px;
        text-transform: uppercase;
        color: rgba(255,255,255,0.85);
    }
}

/* Desktop: hide mobile-only lang option in nav */
.mobile-lang-switch {
    display: none;
}

/* Mobile Navigation Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(35, 38, 32, 0.98);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

/* Close button inside mobile nav */
.mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 5%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    cursor: pointer;
    z-index: 1110;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.mobile-nav-close:hover {
    border-color: rgba(255,255,255,0.5);
    transform: rotate(90deg);
}

.mobile-nav-close span {
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--color-white);
    border-radius: 2px;
}

.mobile-nav-close span:first-child {
    transform: rotate(45deg);
}

.mobile-nav-close span:last-child {
    transform: rotate(-45deg);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-white);
    font-weight: 400;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--color-highlight);
}

@media (min-width: 992px) {
    .mobile-nav {
        display: none !important;
    }
}

/* ==============================
   HERO SECTION
   ============================== */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.08);
    animation: heroZoomIn 8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes heroZoomIn {
    0% {
        transform: translateZ(0) scale(1.08);
    }
    100% {
        transform: translateZ(0) scale(1);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.3) 0%,
        rgba(0,0,0,0.1) 30%,
        rgba(0,0,0,0.5) 70%,
        rgba(0,0,0,0.65) 100%
    );
    z-index: 1;
}

@media (max-width: 767px) {
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.35) 0%,
            rgba(0,0,0,0.15) 25%,
            rgba(0,0,0,0.55) 60%,
            rgba(0,0,0,0.75) 100%
        );
    }

    .hero-subtitle {
        letter-spacing: 2px;
        font-size: clamp(0.7rem, 2.2vw, 1rem);
    }

    .hero-content {
        max-width: 100%;
        padding: 0 1rem;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: heroTextReveal 1.2s ease-out 0.4s forwards;
    text-shadow: 0 2px 8px rgba(60,75,40,0.85), 0 4px 16px rgba(50,65,30,0.7), 0 8px 35px rgba(40,55,25,0.5);
}

.hero-subtitle {
    font-family: var(--font-text);
    font-size: clamp(0.9rem, 2.5vw, 1.4rem);
    font-weight: 300;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: heroTextReveal 1.2s ease-out 0.8s forwards;
    text-shadow: 0 1px 6px rgba(60,75,40,0.9), 0 3px 12px rgba(50,65,30,0.7), 0 6px 28px rgba(40,55,25,0.5);
}

@keyframes heroTextReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-scroll-hint {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: heroTextReveal 1s ease-out 1.6s forwards;
    transition: color 0.3s ease;
}

.hero-scroll-hint:hover {
    color: var(--color-white);
}

.hero-scroll-hint i {
    font-size: 1rem;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

/* ==============================
   GALLERY SECTION (Flexible Masonry)
   ============================== */
.gallery-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

/* ---- Preview Grid (controlled layout) ---- */
.gallery-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
    gap: 10px;
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
}

@media (min-width: 768px) {
    .gallery-preview {
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 12px;
    }

    /* Layout:
       1(H)  2(H)  3(V)
       4(H)  5(H)  3(V) */
    .gallery-preview > :nth-child(1) { grid-area: 1 / 1; }
    .gallery-preview > :nth-child(2) { grid-area: 1 / 2; }
    .gallery-preview > :nth-child(3) { grid-area: 1 / 3 / 3 / 4; }  /* vertical: span 2 rows */
    .gallery-preview > :nth-child(4) { grid-area: 2 / 1; }
    .gallery-preview > :nth-child(5) { grid-area: 2 / 2; }
}

.gallery-preview .gallery-item {
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: var(--color-bg-light);
}

.gallery-preview .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-preview .gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

.masonry-gallery {
    column-count: 2;
    column-gap: 10px;
    width: 94%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 1.5rem;
}

@media (min-width: 640px) {
    .masonry-gallery {
        column-count: 3;
        column-gap: 12px;
    }
}

@media (min-width: 1024px) {
    .masonry-gallery {
        column-count: 4;
        column-gap: 14px;
    }
}

.gallery-item {
    display: block;
    break-inside: avoid;
    margin-bottom: 10px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background-color: var(--color-bg-light);
}

@media (min-width: 640px) {
    .gallery-item {
        margin-bottom: 12px;
    }
}

@media (min-width: 1024px) {
    .gallery-item {
        margin-bottom: 14px;
    }
}

.gallery-item picture {
    display: block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.15) 0%, transparent 40%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* ==============================
   GALLERY TOGGLE & COLLAPSIBLE
   ============================== */
.gallery-toggle-wrap {
    text-align: center;
    padding: 2rem 0 0.5rem;
}

.gallery-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
    font-family: var(--font-text);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.gallery-toggle-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.gallery-toggle-count {
    background-color: var(--color-accent);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.55rem;
    border-radius: var(--radius-full);
    transition: var(--transition-smooth);
}

.gallery-toggle-btn:hover .gallery-toggle-count {
    background-color: var(--color-white);
    color: var(--color-accent);
}

.gallery-toggle-icon {
    font-size: 0.8rem;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-toggle-btn[aria-expanded="true"] .gallery-toggle-icon {
    transform: rotate(180deg);
}

/* Collapsed container */
.gallery-collapsed {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.8s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.5s ease;
    opacity: 0;
}

.gallery-collapsed.is-expanded {
    opacity: 1;
    /* max-height is set dynamically via JS */
}

/* Extra masonry inherits same styles, but adds top spacing */
.masonry-gallery-extra {
    padding-top: 10px;
}

/* Staggered reveal animation for each photo */
.gallery-item-reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.gallery-collapsed.is-expanded .gallery-item-reveal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger delays applied via CSS custom property set by JS, fallback to nth-child */
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(1) { transition-delay: 0.05s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(2) { transition-delay: 0.1s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(3) { transition-delay: 0.15s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(4) { transition-delay: 0.2s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(5) { transition-delay: 0.25s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(6) { transition-delay: 0.3s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(7) { transition-delay: 0.35s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(8) { transition-delay: 0.4s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(9) { transition-delay: 0.45s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(10) { transition-delay: 0.5s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(11) { transition-delay: 0.55s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(12) { transition-delay: 0.6s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(13) { transition-delay: 0.65s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(14) { transition-delay: 0.7s; }
.gallery-collapsed.is-expanded .gallery-item-reveal:nth-child(15) { transition-delay: 0.75s; }

/* About Section */
.about-section .container {
    max-width: 800px;
    text-align: center;
}

/* Spaces Grid */
.spaces-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .spaces-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.space-card {
    background-color: var(--color-bg);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    text-align: center;
    transition: transform 0.4s ease;
}

.space-card:hover {
    transform: translateY(-5px);
}

.icon-large {
    font-size: 2.5rem;
    color: var(--color-highlight);
    margin-bottom: 1.5rem;
}

.space-card h3 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (min-width: 576px) {
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.amenity-item i {
    font-size: 2rem;
    color: var(--color-accent);
}

.amenity-item span {
    font-weight: 500;
    font-size: 0.95rem;
}

.amenity-note {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-light);
    opacity: 0.7;
    margin-top: -0.4rem;
    font-style: italic;
}

/* ==============================
   TERRITORY SECTION
   ============================== */
.territory-section {
    padding-top: var(--spacing-lg);
    padding-bottom: var(--spacing-lg);
}

.territory-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
}

.territory-card {
    background-color: var(--color-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    max-width: 100%;
    overflow: hidden;
}

.territory-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

.territory-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent), #8a9970);
    display: flex;
    align-items: center;
    justify-content: center;
}

.territory-icon i {
    font-size: 1.5rem;
    color: var(--color-white);
}

.territory-text h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.territory-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* Territory card with images (Grotta Urlante + Cascata) */
.territory-card-visual {
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.territory-card-visual .territory-card-img {
    width: 100%;
    overflow: hidden;
}

.territory-card-visual .territory-card-img picture {
    display: block;
    width: 100%;
    height: 100%;
}

.territory-card-visual .territory-card-img img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.territory-card-visual:hover .territory-card-img img {
    transform: scale(1.03);
}

.territory-text-wide {
    padding: 2rem 2rem 2.5rem;
}

.territory-text-wide .territory-icon {
    margin-bottom: 1rem;
}

/* Two images side-by-side on larger screens */
@media (min-width: 768px) {
    .territory-card-visual {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }

    .territory-card-visual .territory-card-img img {
        height: 300px;
    }

    .territory-text-wide {
        grid-column: 1 / -1;
    }
}

/* On mobile: stack cards vertically, icon on top */
@media (max-width: 767px) {
    .territory-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .territory-card-visual .territory-card-img img {
        height: 200px;
    }

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

/* ==============================
   CTA SECTION
   ============================== */
.cta-section {
    background: linear-gradient(135deg, #3a4030, #232620);
    color: var(--color-white);
}

.cta-section .heading-elegant {
    color: var(--color-white);
}

.cta-section p {
    color: rgba(255,255,255,0.75);
    font-size: 1.15rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.main-footer {
    background-color: #232620;
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
    font-size: 0.9rem;
}

.main-footer a {
    color: #a0a699;
}

.main-footer a:hover {
    color: var(--color-white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-col h3 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.footer-col p {
    color: #a0a699;
    margin-bottom: 0.5rem;
}

.footer-col i {
    width: 20px;
    margin-right: 10px;
    color: var(--color-highlight);
}

.footer-logo {
    height: 60px;
    margin-bottom: 1.5rem;
}

.footer-nav li {
    margin-bottom: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #8c9384;
    font-size: 0.85rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ==============================
   COOKIE BANNER & OVERLAY
   ============================== */
.cookie-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.cookie-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

body.cookie-blocking {
    overflow: hidden;
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    z-index: 9999;
    background-color: rgba(35, 38, 32, 0.97);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 1.25rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.cookie-banner.is-hidden {
    transform: translateY(100%);
    pointer-events: none;
}

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

.cookie-content p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    margin: 0;
    flex: 1;
    min-width: 250px;
}

.cookie-content a {
    color: var(--color-highlight);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-content a:hover {
    color: var(--color-white);
}

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

.btn-cookie {
    font-family: var(--font-text);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(255,255,255,0.2);
    cursor: pointer;
    transition: var(--transition-smooth);
    letter-spacing: 0.3px;
}

.btn-cookie-accept {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
}

.btn-cookie-accept:hover {
    background-color: #8a9970;
    border-color: #8a9970;
}

.btn-cookie-reject {
    background-color: transparent;
    color: rgba(255,255,255,0.4);
    border-color: transparent;
}

.btn-cookie-reject:hover {
    color: rgba(255,255,255,0.8);
    background-color: rgba(255,255,255,0.05);
}

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

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

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

/* ==============================
   FLOATING CTA
   ============================== */
.floating-cta-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-white);
    padding: 1rem 1.5rem;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: 900;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(150%);
}

.floating-cta-container.is-visible {
    transform: translateY(0);
}

.floating-cta-container .btn-floating {
    display: block;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
}

@media (min-width: 992px) {
    .floating-cta-container {
        bottom: 2rem;
        right: 2.5rem;
        left: auto;
        width: auto;
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }
    
    .floating-cta-container .btn-floating {
        width: auto;
        padding: 1rem 2.5rem;
        box-shadow: 0 10px 30px rgba(111,123,90,0.4);
    }
    
    .floating-cta-container .btn-floating:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(111,123,90,0.5);
    }
}

/* Map Container for Mobile Review Visibility Trick */
.map-section {
    background-color: var(--color-bg);
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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