/* ==========================================================================
   MATTHUGA - EXPERT PREMIUM DESIGN (LIGHT / WARM THEME)
   ========================================================================== */

:root {
    --c-primary: #1A1C1D;      
    --c-secondary: #A8674E;    
    --c-sand: #E9E0D2;         
    --c-light: #F7F5F0;        
    --c-white: #FFFFFF;        
    --c-border: #EAE6DF;
    
    --font-heading: 'Playfair Display', serif; 
    --font-body: 'Lato', sans-serif;           
    
    --spacing-section: clamp(80px, 10vw, 120px);
    --easing-premium: cubic-bezier(0.25, 1, 0.5, 1);
    --easing-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE RESETS
   ========================================================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body); color: var(--c-primary);
    background-color: var(--c-white); line-height: 1.6; font-size: 16px;
    -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--c-primary); font-weight: 500; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: color 0.4s var(--easing-premium); }
ul { list-style: none; }
img { max-width: 100%; display: block; border-radius: 2px; }

/* UTILITIES */
.container { max-width: 1200px; margin: 0 auto; padding: 0 30px; }
.section-standard { padding: var(--spacing-section) 0; }
.text-center { text-align: center; }
.bg-light { background-color: var(--c-light); }
.bg-white { background-color: var(--c-white); }
.bg-sand { background-color: var(--c-sand); }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-4 { margin-bottom: 2rem; }
.pt-4 { padding-top: 1.5rem; }
.mx-2 { margin: 0 10px; }
.desktop-only { display: block; }
.mobile-only { display: none; }
.eyebrow { display: block; font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--c-secondary); margin-bottom: 15px; }

/* ==========================================================================
   BUTTONS & LINKS
   ========================================================================== */
.btn-primary {
    display: inline-flex; align-items: center; justify-content: center; padding: 14px 35px; 
    background-color: var(--c-primary); color: var(--c-white); 
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; 
    border-radius: 2px; transition: background 0.4s var(--easing-premium), transform 0.4s var(--easing-premium);
}
.btn-primary:hover { background-color: var(--c-secondary); color: var(--c-white); transform: translateY(-3px); }

.btn-secondary {
    display: inline-flex; align-items: center; justify-content: center; padding: 13px 30px; 
    border: 1px solid var(--c-primary); color: var(--c-primary); 
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; 
    transition: all 0.4s var(--easing-premium); border-radius: 2px;
}
.btn-secondary:hover { background-color: var(--c-primary); color: var(--c-white); }

/* Hero Buttons */
.hero-actions { display: flex; gap: 20px; justify-content: center; margin-bottom: 30px; position: relative; z-index: 10; }
.btn-hero-choice {
    display: inline-flex; align-items: center; justify-content: center; padding: 12px 32px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 2px; border-radius: 3px; background-color: rgba(0, 0, 0, 0.45); color: var(--c-white); border: 1px solid rgba(255, 255, 255, 0.6); backdrop-filter: blur(8px); transition: all 0.4s var(--easing-premium);
}
.btn-hero-choice:hover { background-color: var(--c-secondary); border-color: var(--c-secondary); color: var(--c-white); transform: translateY(-4px); box-shadow: 0 10px 25px rgba(0,0,0,0.3); }

.btn-text-link {
    display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 700; color: var(--c-primary); border-bottom: 1px solid var(--c-secondary);
    padding-bottom: 4px; margin-top: 10px; transition: color 0.4s var(--easing-premium);
}
.btn-text-link:hover { color: var(--c-secondary); border-color: var(--c-primary); }

/* ==========================================================================
   ELEGANT HEADER
   ========================================================================== */
.header-classic {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; padding: 30px 0; 
    transition: background 0.6s var(--easing-premium), padding 0.6s var(--easing-premium);
    background: linear-gradient(to bottom, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 100%);
    color: var(--c-white); border: none; 
}
.header-classic.scrolled { 
    background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); 
    color: var(--c-primary); padding: 12px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.header-container { max-width: 1600px; margin: 0 auto; padding: 0 5vw; display: flex; justify-content: space-between; align-items: center; }
.header-left, .header-right { width: 33.33%; }
.header-center { width: 33.33%; text-align: center; }
.header-right { text-align: right; }
.brand-logo { font-family: var(--font-heading); font-size: clamp(25px, 4vw, 28px); font-weight: 400; letter-spacing: 4px; display: inline-flex; align-items: center; justify-content: center; }
.brand-logo img { height: 105px; width: auto; object-fit: contain; transition: all 0.4s ease; }
.brand-logo .logo-dark { display: none; }
.header-classic.scrolled .logo-light { display: none; }
.header-classic.scrolled .logo-dark { display: block; height: 105px; }
.brand-logo.dark img { display: block; height: 105px; }

.menu-btn { background: transparent; border: none; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 12px; padding: 5px; }
.hamburger { display: flex; flex-direction: column; gap: 5px; width: 28px; }
.hamburger .line { width: 100%; height: 2px; background: currentColor; transition: 0.3s; }
.menu-text { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; font-weight: 400; }
.header-link { font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; transition: color 0.4s var(--easing-premium); }
.header-link:hover { color: var(--c-secondary); opacity: 0.8; }

.nav-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; background: rgba(247,245,240,0.99); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1); }
.nav-overlay.active { opacity: 1; visibility: visible; }
.nav-overlay-inner { padding: 5vw; height: 100%; display: flex; flex-direction: column; }
.nav-top { display: flex; justify-content: space-between; align-items: center; }
.close-btn { font-size: 40px; background: none; border: none; cursor: pointer; color: var(--c-primary); line-height: 1; transition: transform 0.4s var(--easing-premium); }
.close-btn:hover { transform: rotate(90deg); color: var(--c-secondary); }
.nav-menu-wrapper { flex: 1; display: flex; align-items: center; justify-content: center; }
.nav-menu { text-align: center; display: flex; flex-direction: column; gap: 30px; }
.nav-menu a { font-family: var(--font-heading); font-size: clamp(32px, 6vw, 48px); color: var(--c-primary); transition: color 0.4s var(--easing-premium), transform 0.4s var(--easing-premium); display: inline-block; }
.nav-menu a:hover { color: var(--c-secondary); transform: translateX(10px); }
/* ==========================================================================
   01. HERO SECTION (UI/UX TYPOGRAPHY & SPOTLIGHT)
   ========================================================================== */
.hero-premium { position: relative; width: 100%; height: 100vh; height: 100svh; background: #000; overflow: hidden; display: flex; align-items: center; justify-content: center; }

.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 2s ease; transform: scale(1.02); }
.hero-slide.active { opacity: 1; animation: subtleZoom 20s infinite alternate ease-in-out; }
@keyframes subtleZoom { 100% { transform: scale(1.08); } }

.hero-gradient-overlay { 
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; 
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 20%, rgba(0,0,0,0.1) 80%, rgba(0,0,0,0.6) 100%); 
}

/* UI EXPERT SPOTLIGHT LAYER */
.hero-spotlight-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.1) 35%, transparent 65%);
}

/* ==========================================================================
   EXPERT TYPOGRAPHY: COLORS, HIERARCHY, AND INFINITE WORD FLIPPER
   ========================================================================== */
.hero-content-wrapper { 
    position: relative; z-index: 3;
    margin-top: 5vh; 
    width: 100%; max-width: 900px; text-align: center; color: var(--c-white); padding: 0 20px;
}

/* 1. "Welcome to" - Infinite Word Flipper (Now in Pure White) */
.hero-eyebrow { 
    font-family: var(--font-heading); font-style: italic; font-size: clamp(16px, 2.5vw, 22px); 
    margin-bottom: 5px; 
    color: #ffffff; /* Pure white as requested */
    text-shadow: 1px 1px 3px rgba(0,0,0,1), 0 2px 8px rgba(0,0,0,0.8); 
    
    /* Flipper Setup */
    height: 1.5em; overflow: hidden; display: flex; justify-content: center;
}
.eyebrow-scroller {
    display: flex; flex-direction: column; text-align: center;
    animation: wordScroller 10s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
.eyebrow-scroller span { height: 1.5em; line-height: 1.5em; display: block; }

@keyframes wordScroller {
    0%, 15% { transform: translateY(0); }
    25%, 40% { transform: translateY(-1.5em); }
    50%, 65% { transform: translateY(-3.0em); }
    75%, 90% { transform: translateY(-4.5em); }
    100% { transform: translateY(-6.0em); }
}

/* 2. Subtitle */
.hero-subtitle { 
    font-family: var(--font-body); font-size: clamp(10px, 1.2vw, 13px); 
    text-transform: uppercase; letter-spacing: 3px; font-weight: 700; 
    margin-bottom: 30px; 
    color: var(--c-sand); /* Soft Sand */
    text-shadow: 1px 1px 3px rgba(0,0,0,1), 0 2px 8px rgba(0,0,0,0.8); 
}

/* 3. Main "MATTHUGA" Title - Solid White */
.hero-title { 
    font-size: clamp(44px, 6vw, 84px); 
    font-weight: 400; letter-spacing: 0.15em; text-indent: 0.15em; margin-bottom: 20px; line-height: 1.1; 
    color: #ffffff;
    
    /* Clean, strong, closely-hugging black shadow */
    text-shadow: 
        2px 2px 5px rgba(0,0,0,1), 
        0 5px 15px rgba(0,0,0,0.8);
}
.hero-title.fade-up { filter: blur(10px); transform: translateY(20px) scale(0.98); opacity: 0; transition: all 1.5s cubic-bezier(0.25, 1, 0.5, 1); }
.is-visible .hero-title.fade-up { filter: blur(0); transform: translateY(0) scale(1); opacity: 1; }


  /* ========================================================================== */
.hero-features-interactive { display: flex; justify-content: center; gap: 30px; margin-top: 35px; }
.feature-item { display: flex; flex-direction: column; align-items: center; gap: 10px; color: #fff; cursor: pointer; text-shadow: 0 4px 10px rgba(0,0,0,0.9); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.feature-icon-ring { 
    width: 44px; height: 44px; /* Reduced from 50px */
    border-radius: 50%; border: 1px solid rgba(255,255,255,0.5); 
    display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.2); 
    transition: all 0.4s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.feature-icon-ring svg { width: 18px; height: 18px; stroke: #fff; transition: stroke 0.4s; }
.feature-item span { font-size: 9.5px; text-transform: uppercase; letter-spacing: 2px; transition: transform 0.3s; }

.feature-item:hover { transform: translateY(-8px); }
.feature-item:hover .feature-icon-ring { background: var(--c-secondary); border-color: var(--c-secondary); transform: scale(1.1); box-shadow: 0 10px 25px rgba(0,0,0,0.5); }
.feature-item:hover span { transform: translateY(3px); color: var(--c-secondary); }

/* ==========================================================================
   MODERN SCROLL LINE ANIMATION (LOCKED IN EXACT CENTER)
   ========================================================================== */
.modern-scroll-indicator {
    position: absolute; bottom: 90px; 
    /* Using absolute transform ensures it is physically impossible for it to be off-center */
    left: 50%; transform: translateX(-50%); 
    display: flex; flex-direction: column; align-items: center; gap: 10px; z-index: 10;
}
.scroll-track { width: 1px; height: 50px; background: rgba(255,255,255,0.2); position: relative; overflow: hidden; }
.scroll-thumb {
    position: absolute; top: 0; left: 0; width: 100%; height: 25px; background: #fff;
    animation: luxuryScroll 2.5s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
@keyframes luxuryScroll { 0% { transform: translateY(-25px); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(50px); opacity: 0; } }
.modern-scroll-indicator span { font-size: 8px; text-transform: uppercase; letter-spacing: 4px; color: #fff; opacity: 0.8; text-shadow: 0 2px 4px rgba(0,0,0,0.8); }

/* ==========================================================================
   BESPOKE TRANSPARENT BLACK GLASS BOOKING WIDGET 
   ========================================================================== */
.booking-overlap-container {
    position: relative; z-index: 100;
    margin-top: -55px; 
    margin-bottom: -55px; 
}

.booking-premium-panel {
    background: rgba(15, 15, 15, 0.9); /* Transparent Black Glass */
    backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px);
    border-radius: 8px; 
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15); 
    padding: 10px; 
    width: 100%; max-width: 1050px; margin: 0 auto;
}
.booking-premium-panel .widget-form { display: flex; align-items: center; width: 100%; }

.booking-premium-panel .widget-field { 
    flex: 1; text-align: left; padding: 15px 30px; position: relative;
}
/* Expert UI Design: Custom inner divider lines */
.booking-premium-panel .widget-field:not(:last-child)::after {
    content: ''; position: absolute; right: 0; top: 20%; height: 60%; width: 1px; background: rgba(255,255,255,0.15);
}

.booking-premium-panel .widget-field label { 
    display: block; font-size: 10px; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-bottom: 5px; letter-spacing: 2px; font-weight: 700;
}

/* Base input styles */
.booking-premium-panel .widget-field input, .booking-premium-panel .widget-field select {
    width: 100%; background: transparent; border: none; color: #ffffff; 
    font-family: var(--font-body); font-size: 16px; font-weight: 600; outline: none; cursor: pointer; text-transform: uppercase; letter-spacing: 1px;
}

/* 1. CUSTOM DROPDOWN REDESIGN */
.booking-premium-panel select {
    appearance: none; -webkit-appearance: none; padding-right: 30px;
}
.booking-premium-panel .select-field::before {
    content: ''; position: absolute; right: 30px; bottom: 22px; width: 8px; height: 8px;
    border-right: 2px solid rgba(255,255,255,0.8); border-bottom: 2px solid rgba(255,255,255,0.8);
    transform: translateY(-50%) rotate(45deg); pointer-events: none;
}
.booking-premium-panel select option { background: #1a1c1d; color: #fff; padding: 10px; } 

/* 2. CUSTOM DATE PICKER REDESIGN */
.booking-premium-panel .widget-field input::-webkit-calendar-picker-indicator { 
    filter: invert(1) brightness(100%); opacity: 0.7; cursor: pointer; transition: 0.3s; 
}
.booking-premium-panel .widget-field input::-webkit-calendar-picker-indicator:hover { opacity: 1; }

.booking-premium-panel .widget-action { padding: 0 15px; }

/* 3. BUTTON REDESIGN (Made it pop with accent color and clear border) */
.booking-premium-panel .btn-search {
    background: var(--c-secondary); /* Terracotta Accent Color */
    color: #fff; height: 55px; padding: 0 45px;
    font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px;
    border: 1px solid rgba(255,255,255,0.4); /* Highly visible white border */
    border-radius: 4px; cursor: pointer; transition: all 0.4s ease;
}
.booking-premium-panel .btn-search:hover { 
    background: #ffffff; 
    color: var(--c-primary); /* Text becomes dark on hover */
    border-color: #ffffff;
    transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.3); 
}

/* Ensure Section 2 has enough padding so content isn't covered by the overlapping widget */
#properties { padding-top: 100px !important; }

/* Responsive Grid for Widget (Increased Sizes for Mobile) */
/* Responsive Grid for Widget (WIDER & IMPROVED FOR MOBILE) */
@media (max-width: 900px) {
    .hero-premium { height: auto; min-height: 80vh; padding-bottom: 120px; padding-top: 100px; }
    .hero-features-interactive { flex-wrap: wrap; gap: 20px; margin-top: 30px; }
    .feature-item { width: 40%; }
    .modern-scroll-indicator { display: none; } 
    
    /* 1. Removed double-padding to stretch the widget to the edges */
    .booking-overlap-container { margin-top: -60px; margin-bottom: 40px; padding: 0; }
    .booking-overlap-container .container { padding: 0 15px; } 
    
    /* 2. Reduced inner side-padding so the form fields have maximum width */
    .booking-premium-panel { padding: 20px 15px; background: rgba(10, 12, 14, 0.95); }
    .booking-premium-panel .widget-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    
    .booking-premium-panel .widget-field { padding: 20px 10px; width: 100%; }
    .booking-premium-panel .widget-field:not(:last-child)::after { display: none; } 
    
    .booking-premium-panel .widget-field.select-field { grid-column: 1 / -1; border-bottom: 1px solid rgba(255,255,255,0.15); }
    .booking-premium-panel .widget-form .widget-field:nth-of-type(2) { border-right: 1px solid rgba(255,255,255,0.15); }
    
    /* Adjusted custom arrow position to fit new width */
    .booking-premium-panel .select-field::before { right: 10px; bottom: 30px; }
    
    .booking-premium-panel .widget-action { grid-column: 1 / -1; padding: 20px 0 0; width: 100%; }
    
    .booking-premium-panel .btn-search { width: 100%; height: 60px; font-size: 14px; }
    
    #properties { padding-top: 40px !important; }
}
/* ==========================================================================
   02. OUR PROPERTIES
   ========================================================================== */
.section-heading { margin-bottom: 60px; }
.section-heading h2 { font-size: clamp(36px, 5vw, 48px); margin-bottom: 15px; }
.subtitle { font-size: 20px; color: var(--c-primary); font-family: var(--font-heading); margin-bottom: 20px; font-style: italic; }
.subtitle-text { max-width: 650px; margin: 0 auto; color: #555; font-size: 16px; line-height: 1.8; }

.properties-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 60px); }
.property-card { background: var(--c-white); border-radius: 2px; overflow: hidden; box-shadow: 0 5px 20px rgba(0,0,0,0.03); transition: transform 0.6s var(--easing-premium), box-shadow 0.6s var(--easing-premium); }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.06); }
.card-image { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform 1.5s var(--easing-premium); will-change: transform; }
.property-card:hover .card-image img { transform: scale(1.03); }
.card-content { padding: 50px 40px; text-align: left; }
.card-content h3 { font-size: 32px; margin-bottom: 5px; letter-spacing: 2px; }
.card-tagline { display: block; font-family: var(--font-heading); font-style: italic; color: #777; margin-bottom: 25px; font-size: 18px; }
.card-content p { font-size: 16px; color: #555; margin-bottom: 30px; line-height: 1.8; }


/* ==========================================================================
   03. OUR STORY (STRUCTURED GRID)
   ========================================================================== */
.section-structured-story { padding: 100px 0; background-color: var(--c-white); }
.story-structured-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; align-items: stretch; min-height: 550px; }
.story-text-col { display: flex; flex-direction: column; justify-content: center; padding-right: 30px; }
.story-text-col h2 { font-size: clamp(36px, 4vw, 48px); margin-bottom: 25px; line-height: 1.15; }
.story-text-col p { font-size: 17px; color: #555; margin-bottom: 20px; line-height: 1.8; }
.story-img-col { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; box-shadow: 0 15px 40px rgba(0,0,0,0.06); }
.story-img-col img { width: 100%; height: 100%; object-fit: cover; position: absolute; top: 0; left: 0; transition: transform 1.5s var(--easing-premium); will-change: transform; }
.story-img-col:hover img { transform: scale(1.03); }
.story-caption { position: absolute; bottom: 0; left: 0; width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.8), transparent); padding: 40px 20px 20px; color: var(--c-white); font-family: var(--font-body); font-size: 12px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; text-align: center; z-index: 2; pointer-events: none; }


/* ==========================================================================
   04. EXPERIENCES (INTERACTIVE ACCORDION)
   ========================================================================== */
.interactive-accordion { display: flex; width: 100%; max-width: 1400px; height: 550px; margin: 60px auto 0; gap: 15px; padding: 0 20px; }
.accordion-item { position: relative; flex: 1; border-radius: 24px; background-size: cover; background-position: center; background-repeat: no-repeat; overflow: hidden; transition: flex 0.7s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.accordion-item:hover { flex: 5; }
.accordion-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 100%); transition: background 0.7s ease; }
.accordion-item:hover .accordion-overlay { background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 100%); }
.icon-wrap { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); width: 55px; height: 55px; background: rgba(255,255,255,0.15); backdrop-filter: blur(10px); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1); z-index: 2; border: 1px solid rgba(255,255,255,0.2); }
.accordion-item:hover .icon-wrap { left: 40px; bottom: calc(100% - 95px); transform: translateX(0); background: var(--c-secondary); border-color: var(--c-secondary); }
.icon-wrap svg { stroke: var(--c-white); width: 24px; height: 24px; }
.title-vertical { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; color: var(--c-white); font-family: var(--font-body); font-size: 18px; letter-spacing: 6px; font-weight: 700; white-space: nowrap; transition: opacity 0.3s ease; z-index: 2; text-shadow: 0 4px 15px rgba(0,0,0,0.5); }
.accordion-item:hover .title-vertical { opacity: 0; pointer-events: none; }
.accordion-content { position: absolute; bottom: 40px; left: 40px; right: 40px; color: var(--c-white); opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1); z-index: 2; pointer-events: none; }
.accordion-item:hover .accordion-content { opacity: 1; transform: translateY(0); transition-delay: 0.2s; pointer-events: auto; }
.accordion-content h3 { font-size: 36px; color: var(--c-white); margin-bottom: 12px; font-family: var(--font-body); text-transform: uppercase; letter-spacing: 4px; font-weight: 700; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.accordion-content p { font-family: var(--font-heading); font-size: 20px; font-style: italic; opacity: 0.95; line-height: 1.6; max-width: 450px; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }


/* ==========================================================================
   05. GUEST NOTES (CAROUSEL)
   ========================================================================== */
.overflow-hidden { overflow: hidden; }
.editorial-heading { font-size: clamp(36px, 5vw, 48px); margin-bottom: 10px; letter-spacing: 1px; font-family: var(--font-heading); color: var(--c-primary); }
.review-carousel-wrapper { position: relative; max-width: 900px; margin: 0 auto; }
.review-carousel { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.review-slide { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; transform: translateX(30px); transition: all 0.8s var(--easing-premium); text-align: center; }
.review-slide.active { position: relative; opacity: 1; visibility: visible; transform: translateX(0); }
.review-property-label { display: block; font-family: var(--font-body); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 3px; color: var(--c-secondary); margin-bottom: 25px; }
.review-quote-large { font-family: var(--font-heading); font-size: clamp(24px, 4vw, 32px); font-style: italic; color: var(--c-primary); line-height: 1.5; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.review-meta.justify-center { display: flex; flex-direction: column; align-items: center; }
.review-author { font-family: var(--font-body); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 4px; }
.review-source { font-family: var(--font-body); font-size: 13px; color: #777; letter-spacing: 1px; }
.carousel-indicators { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }
.indicator { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border); border: none; cursor: pointer; transition: 0.4s var(--easing-premium); padding: 0; }
.indicator.active { background: var(--c-secondary); transform: scale(1.3); }


/* ==========================================================================
   06. CLOSING CTA
   ========================================================================== */
.closing-cta { padding: 120px 0; }
.closing-title { font-size: clamp(40px, 6vw, 60px); margin-bottom: 20px; }
.closing-subtitle { font-size: 22px; color: #555; font-family: var(--font-heading); font-style: italic; }
.closing-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 20px; margin-top: 40px; }


/* ==========================================================================
   EXPERT PREMIUM FOOTER 
   ========================================================================== */
.expert-footer { padding: 100px 0 40px; background-color: var(--c-light); color: var(--c-primary); border-top: 1px solid var(--c-border); text-align: left; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 70px; }
.footer-logo { display: inline-block; margin-bottom: 25px; }
.footer-logo img { height: 75px; width: auto; object-fit: contain; }
.footer-desc { font-family: var(--font-heading); font-size: 18px; font-style: italic; color: #555; line-height: 1.6; max-width: 380px; }
.footer-heading { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 3px; font-weight: 700; margin-bottom: 25px; color: var(--c-primary); }
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 15px; }
.footer-links a, .footer-contact a { font-family: var(--font-body); font-size: 15px; color: #666; transition: color 0.4s var(--easing-premium); }
.footer-links a:hover, .footer-contact a:hover { color: var(--c-secondary); }

.social-links { display: flex; gap: 12px; flex-wrap: nowrap; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--c-border); color: var(--c-primary); transition: all 0.4s var(--easing-premium); }
.social-links a:hover { 
    background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); 
    transform: translateY(-4px) scale(1.05); 
}
.social-links a svg { width: 17px; height: 17px; stroke-width: 1.5; }

.footer-bottom { border-top: 1px solid rgba(0,0,0,0.06); padding-top: 30px; display: flex; justify-content: center; align-items: center; font-size: 13px; color: #888; letter-spacing: 1px; }
.footer-bottom p { margin: 0; }
.trec-link { color: var(--c-secondary); font-weight: 700; text-decoration: none; transition: opacity 0.4s var(--easing-premium); }
.trec-link:hover { opacity: 0.8; }


/* ==========================================================================
   ANIMATIONS (Scroll Triggers)
   ========================================================================== */
/* ==========================================================================
   EXPERT ANIMATIONS & ACCESSIBILITY (Refined Easing)
   ========================================================================== */
:root {
    /* Upgraded to an Apple-style ultra-smooth easing curve */
    --easing-premium: cubic-bezier(0.16, 1, 0.3, 1); 
}

/* Scroll Reveals */
.fade-up { 
    opacity: 0; 
    transform: translateY(40px); /* Slightly increased for more natural movement */
    transition: opacity 1.2s var(--easing-premium), transform 1.2s var(--easing-premium); 
    will-change: transform, opacity; 
}
.is-visible .fade-up, .is-visible.fade-up { opacity: 1; transform: translateY(0); }

.img-reveal { 
    clip-path: inset(10% 0 0 0); /* More pronounced masking reveal */
    transform: scale(1.05); /* Subtle zoom out as it reveals */
    opacity: 0; 
    transition: clip-path 1.5s var(--easing-premium), transform 1.5s var(--easing-premium), opacity 1.5s var(--easing-premium); 
    will-change: clip-path, transform, opacity; 
}
.is-visible .img-reveal, .is-visible.img-reveal { 
    clip-path: inset(0 0 0 0); transform: scale(1); opacity: 1; 
}

/* Staggered Delays for Organic Sequencing */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* Enhanced Button Text Link (Smooth line-draw effect) */
.btn-text-link {
    display: inline-block; font-size: 13px; text-transform: uppercase; letter-spacing: 2px;
    font-weight: 700; color: var(--c-primary); position: relative; padding-bottom: 4px; margin-top: 10px;
    border-bottom: none; /* Removed hard border for the new animation */
}
.btn-text-link::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
    background: var(--c-secondary); transform-origin: right; transform: scaleX(0);
    transition: transform 0.5s var(--easing-premium);
}
.btn-text-link:hover::after { transform-origin: left; transform: scaleX(1); }

/* Staggered Reveal for Mobile Menu Links */
.nav-overlay .nav-menu a { opacity: 0; transform: translateY(20px); transition: opacity 0.5s var(--easing-premium), transform 0.5s var(--easing-premium); }
.nav-overlay.active .nav-menu a { opacity: 1; transform: translateY(0); }
.nav-overlay.active .nav-menu a:nth-child(1) { transition-delay: 0.1s; }
.nav-overlay.active .nav-menu a:nth-child(2) { transition-delay: 0.2s; }
.nav-overlay.active .nav-menu a:nth-child(3) { transition-delay: 0.3s; }
.nav-overlay.active .nav-menu a:nth-child(4) { transition-delay: 0.4s; }

/* Accessibility: Respect Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .fade-up, .img-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}

/* ==========================================================================
   RESPONSIVE DESIGN 
   ========================================================================== */
@media (max-width: 900px) {
    .fade-up { transform: translateY(20px); }
    .desktop-only { display: none; }
    .mobile-only { display: block; }
    
    .header-classic { padding: 15px 0; background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%); }
    .header-classic.scrolled { padding: 10px 0; } 
    .header-container { padding: 0 20px; }
    .header-left, .header-center { width: auto; }
    .header-left { flex: 1; }
    .header-center { flex: 2; text-align: right; }
    
    /* Hero Section Responsive Fixes */
    .hero-premium { height: auto; min-height: 85vh; padding-bottom: 120px; padding-top: 100px; }
    .hero-features-interactive { flex-wrap: wrap; gap: 20px; margin-top: 30px; }
    .feature-item { width: 40%; }
    .modern-scroll-indicator { display: none; } /* Prevents overlapping on small screens */
    
    /* Widget overlap fixes for mobile */
    .booking-overlap-container { margin-top: -60px; margin-bottom: 40px; padding: 0 15px; }
    .booking-premium-panel { padding: 20px; }
    .booking-premium-panel .widget-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
    .booking-premium-panel .widget-field { padding: 15px 10px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); width: 100%; }
    .booking-premium-panel .widget-field.select-field { grid-column: 1 / -1; }
    .booking-premium-panel .widget-form .widget-field:nth-of-type(2) { border-right: 1px solid rgba(255,255,255,0.08); }
    .booking-premium-panel .widget-action { grid-column: 1 / -1; padding: 20px 0 0; width: 100%; }
    .booking-premium-panel .btn-search { width: 100%; }
    
    #properties { padding-top: 40px !important; }
    
    .properties-grid { grid-template-columns: 1fr; gap: 40px; }
    
    .story-structured-grid { grid-template-columns: 1fr; gap: 30px; }
    .story-text-col { padding-right: 0; padding-bottom: 20px; text-align: center; }
    .story-img-col { min-height: 350px; }
    
    .interactive-accordion { flex-direction: column; height: 750px; }
    .accordion-item { flex: 1; border-radius: 16px; }
    .accordion-item:hover { flex: 3; }
    .icon-wrap { left: 20px; bottom: 50%; transform: translateY(50%); width: 45px; height: 45px; }
    .title-vertical { writing-mode: horizontal-tb; transform: none; left: 85px; bottom: 50%; transform: translateY(50%); font-size: 16px; letter-spacing: 3px; }
    .accordion-item:hover .icon-wrap { left: 20px; bottom: calc(100% - 65px); transform: none; }
    .accordion-content { left: 20px; right: 20px; bottom: 20px; }
    .accordion-content h3 { font-size: 24px; margin-bottom: 5px; }
    .accordion-content p { font-size: 16px; }
    
    .review-carousel { min-height: 350px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-desc { max-width: 100%; }
}

@media (max-width: 600px) {
    .fade-up { transform: translateY(15px); transition: opacity 0.8s var(--easing-premium), transform 0.8s var(--easing-premium); }
    .img-reveal { clip-path: inset(2% 0 0 0); transition: clip-path 1s var(--easing-premium), transform 1s var(--easing-premium), opacity 1s var(--easing-premium); }
    .delay-1, .delay-2, .delay-3, .delay-4, .delay-5, .delay-6 { transition-delay: 0s; }

    .hero-actions { flex-direction: column; width: 100%; gap: 15px; padding: 0 10px; margin-bottom: 25px; }
    .btn-hero-choice { width: 100%; padding: 12px 20px; font-size: 11px; }
    
    .hero-features-interactive { grid-template-columns: 1fr 1fr; display: grid; gap: 15px; }
    .feature-item { width: 100%; }
    
    .section-structured-story { padding: 60px 0; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .footer-logo { display: flex; justify-content: center; }
    .footer-desc { margin: 0 auto; text-align: center; }
    .social-links { justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 10px; }
}


/* ==========================================================================
   CHATY WIDGET & BACK TO TOP BUTTON
   ========================================================================== */
.chaty-widget { position: fixed; bottom: 25px; left: 20px; z-index: 999999; width: 60px; height: 60px; }

.chaty-main-btn {
  width: 55px; height: 55px; border-radius: 50%; background-color: #ffffff; border: none;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2); cursor: pointer; display: flex; align-items: center;
  justify-content: center; position: relative; z-index: 2; padding: 0;
  transition: transform 0.4s var(--easing-premium, ease); 
}
.chaty-main-btn:hover { transform: scale(1.05); }

.chaty-item {
  width: 50px; height: 50px; border-radius: 50%; position: absolute; top: 2.5px; left: 2.5px;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  transition: all 0.4s var(--easing-premium, ease); z-index: 1; opacity: 0; pointer-events: none;
  transform: translate(0, 0) scale(0.5); text-decoration: none;
}

.chaty-whatsapp { background-color: #4dc247; }
.chaty-phone { background-color: #10c379; }
.chaty-map { background-color: #ea4335; }

.chaty-widget.active .chaty-item { opacity: 1; pointer-events: auto; }

.chaty-widget.active .chaty-whatsapp { transform: translate(0px, -70px) scale(1); }
.chaty-widget.active .chaty-phone { transform: translate(0px, -135px) scale(1); }
.chaty-widget.active .chaty-map { transform: translate(0px, -200px) scale(1); }

.chaty-icon { width: 30px; height: 30px; fill: #000000; transition: transform 0.4s var(--easing-premium, ease); }
.chaty-item svg { width: 24px; height: 24px; fill: #ffffff; }

.chaty-item::before {
    content: attr(aria-label); position: absolute; left: calc(100% + 15px); top: 50%;
    transform: translateY(-50%); background: rgba(0,0,0,0.8); color: #fff;
    font-family: var(--font-body, sans-serif); font-size: 13px; font-weight: 500; letter-spacing: 0.5px;
    padding: 6px 12px; border-radius: 6px; white-space: nowrap; opacity: 0;
    pointer-events: none; transition: opacity 0.3s var(--easing-premium, ease);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.chaty-item::after {
    content: ''; position: absolute; left: calc(100% + 9px); top: 50%;
    transform: translateY(-50%); border-width: 6px; border-style: solid;
    border-color: transparent rgba(0,0,0,0.8) transparent transparent;
    opacity: 0; pointer-events: none; transition: opacity 0.3s var(--easing-premium, ease);
}

.chaty-item:hover::before,
.chaty-item:hover::after { opacity: 1; }

.back-to-top {
    position: fixed; bottom: 25px; right: 20px; z-index: 999998;
    width: 48px; height: 48px; border-radius: 50%; background-color: var(--c-primary, #000);
    color: var(--c-white, #fff); border: none; cursor: pointer; display: flex;
    align-items: center; justify-content: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0; visibility: hidden; transform: translateY(15px);
    transition: opacity 0.4s var(--easing-premium, ease), transform 0.4s var(--easing-premium, ease), visibility 0.4s var(--easing-premium, ease), background 0.4s var(--easing-premium, ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background-color: var(--c-secondary, #333); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }

@media (max-width: 768px) { 
    .chaty-widget { left: 15px; bottom: 15px; } 
    .back-to-top { right: 15px; bottom: 15px; }
    
    .chaty-widget.active .chaty-whatsapp { transform: translate(0px, -70px) scale(1); }
    .chaty-widget.active .chaty-phone    { transform: translate(0px, -130px) scale(1); }
    .chaty-widget.active .chaty-map      { transform: translate(0px, -190px) scale(1); }
    
    .chaty-item::before, .chaty-item::after { display: none; }
}

/* ==========================================================================
   TYPEWRITER CURSOR ANIMATION
   ========================================================================== */
.typewriter-text .cursor {
    font-weight: 300;
    color: var(--c-secondary); /* Uses your elegant Terracotta accent color */
    animation: blinkCursor 0.8s step-end infinite;
}
@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}