/* ==========================================================================
   VÉRONA ESTATES - Core Design System & Styling
   ========================================================================== */

/* 1. Global Reset & Theme Variables */
:root {
    --color-black: #0A0A0A;
    --color-matte-black: #121212;
    --color-charcoal-dark: #1E1E1E;
    --color-charcoal-light: #2A2A2A;
    --color-gold-deep: #C5A059;
    --color-gold-bright: #D4AF37;
    --color-gold-light: #E5C483;
    --color-off-white: #F9F9FB;
    --color-white: #FFFFFF;
    --color-muted: #8E8E93;
    --color-border-glass: rgba(229, 196, 131, 0.15);
    
    --font-serif: 'Cormorant Garamond', 'Playfair Display', serif;
    --font-sans: 'Inter', 'Montserrat', sans-serif;
    
    --transition-slow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-medium: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s ease;
}

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

/* Only hide default cursor when JS is loaded and custom cursor is active */
body.js-ready * {
    cursor: none;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: var(--color-black);
    color: var(--color-off-white);
    font-family: var(--font-sans);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

/* Helper Utilities */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
}

.relative { position: relative; }
.z-index-2 { z-index: 2; }
.text-center { text-align: center; }
.text-white { color: var(--color-white); }
.accent-gold { color: var(--color-gold-bright); }
.font-serif { font-family: var(--font-serif); }
.block { display: block; }
.text-uppercase { text-transform: uppercase; }
.w-100 { width: 100%; }
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }

/* Custom Cursor — hidden until JS adds .js-ready to body */
.custom-cursor {
    display: none;
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-gold-deep);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease;
}

.custom-cursor-dot {
    display: none;
    width: 6px;
    height: 6px;
    background-color: var(--color-gold-bright);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}

body.js-ready .custom-cursor {
    display: block;
}

body.js-ready .custom-cursor-dot {
    display: block;
}

.custom-cursor.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(212, 175, 55, 0.1);
    border-color: var(--color-gold-bright);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-black);
}
::-webkit-scrollbar-thumb {
    background: var(--color-charcoal-light);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-deep);
}

/* ==========================================================================
   2. Typography & Buttons
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 300;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.section-tag {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-gold-deep);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
    position: relative;
    padding-left: 30px;
}

.section-tag::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 1px;
    background-color: var(--color-gold-deep);
}

.section-tag-gold {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--color-gold-bright);
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.section-title {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 300;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    color: var(--color-white);
}

.section-lead-center {
    font-size: 1.15rem;
    font-weight: 300;
    color: var(--color-muted);
    margin-bottom: 4rem;
}

/* Premium Buttons */
.btn-gold-fill {
    background-color: var(--color-gold-deep);
    color: var(--color-black);
    padding: 1.1rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--color-gold-deep);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px rgba(197, 160, 89, 0.2);
}

.btn-gold-fill:hover {
    background-color: transparent;
    color: var(--color-gold-bright);
    border-color: var(--color-gold-bright);
    box-shadow: 0 4px 25px rgba(212, 175, 55, 0.4);
}

.btn-gold-outline {
    background-color: transparent;
    color: var(--color-gold-light);
    padding: 0.9rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid var(--color-border-glass);
    transition: var(--transition-fast);
}

.btn-gold-outline:hover {
    border-color: var(--color-gold-bright);
    color: var(--color-white);
    background-color: rgba(212, 175, 55, 0.05);
}

.btn-trans-border {
    background-color: transparent;
    color: var(--color-white);
    padding: 1.1rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-fast);
}

.btn-trans-border:hover {
    border-color: var(--color-gold-bright);
    color: var(--color-gold-bright);
}

.btn-link-gold {
    color: var(--color-gold-bright);
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 1.5rem;
    transition: var(--transition-fast);
}

.btn-link-gold i {
    transition: transform 0.3s ease;
}

.btn-link-gold:hover {
    color: var(--color-white);
}

.btn-link-gold:hover i {
    transform: translateX(8px);
}

/* ==========================================================================
   3. Header / Navigation
   ========================================================================== */
.luxury-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-medium);
    border-bottom: 1px solid transparent;
}

.luxury-header.scrolled {
    background-color: rgba(10, 10, 10, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--color-border-glass);
    padding: 1rem 0;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    font-weight: 300;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.15em;
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-sub {
    font-family: var(--font-sans);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.45em;
    color: var(--color-gold-deep);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-off-white);
    text-decoration: none;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    position: relative;
    padding: 5px 0;
    transition: var(--transition-fast);
    opacity: 0.8;
}

.nav-link:hover {
    opacity: 1;
    color: var(--color-gold-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-gold-bright);
    transition: var(--transition-fast);
}

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

.header-cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Mobile Navigation Visibility */
@media screen and (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  .mobile-nav-toggle {
    display: flex; /* show hamburger */
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
  }
}


.mobile-nav-toggle .bar {
    width: 100%;
    height: 1px;
    background-color: var(--color-white);
    transition: var(--transition-fast);
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-black);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-medium);
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.mobile-nav-link {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-white);
    text-decoration: none;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

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

.mobile-cta-btn {
    margin-top: 1.5rem;
}

/* ==========================================================================
   4. Cinematic Hero Section
   ========================================================================== */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-parallax-bg {
    width: 100%;
    height: 120%; /* Taller for parallax room */
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(10,10,10,1) 0%, rgba(10,10,10,0.5) 50%, rgba(10,10,10,0.8) 100%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5rem;
}

.hero-text-content {
    max-width: 650px;
}

.hero-title {
    font-size: 4.8rem;
    font-weight: 300;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--color-off-white);
    opacity: 0.85;
    margin-bottom: 3rem;
    max-width: 500px;
}

.hero-btn-group {
    display: flex;
    gap: 1.5rem;
}

/* Floating Glassmorphic Card */
.hero-floating-card {
    width: 380px;
    position: relative;
    border: 1px solid var(--color-border-glass);
    border-radius: 4px;
    overflow: hidden;
    z-index: 3;
}

.card-blur-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 28, 30, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1;
}

.floating-card-content {
    position: relative;
    z-index: 2;
    padding: 2.2rem;
}

.badge-exclusive {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--color-gold-bright);
    margin-bottom: 1.2rem;
}

.floating-title {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 1.5rem;
}

.floating-details {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1.5rem;
}

.floating-details span {
    font-size: 0.85rem;
    color: var(--color-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.floating-details i {
    color: var(--color-gold-deep);
    width: 16px;
    text-align: center;
}

.floating-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.price-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
}

.price-val {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--color-gold-bright);
}

.btn-card-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.btn-card-action:hover {
    background-color: var(--color-gold-deep);
    color: var(--color-black);
    border-color: var(--color-gold-deep);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.mouse-icon {
    width: 22px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 4px;
    height: 8px;
    background-color: var(--color-gold-bright);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollMouse 1.8s infinite;
}

@keyframes scrollMouse {
    0% { opacity: 0; top: 6px; }
    30% { opacity: 1; }
    100% { opacity: 0; top: 18px; }
}

.scroll-label {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-muted);
}

/* ==========================================================================
   5. About Section
   ========================================================================== */
.about-section {
    padding: 10rem 0;
    background-color: var(--color-black);
}

.about-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-lead {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    line-height: 1.4;
    color: var(--color-gold-light);
    margin-bottom: 2rem;
}

.about-body {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--color-muted);
    margin-bottom: 2rem;
}

.about-stats-col {
    align-content: center;
}

.stat-card {
    background-color: var(--color-matte-black);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 3.5rem 2.5rem;
    text-align: center;
    transition: var(--transition-medium);
}

.stat-card:hover {
    border-color: var(--color-border-glass);
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.05);
}

.stat-num {
    font-family: var(--font-serif);
    font-size: 3.6rem;
    color: var(--color-white);
    font-weight: 300;
}

.stat-plus {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    color: var(--color-gold-bright);
}

.stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted);
    margin-top: 10px;
}

/* ==========================================================================
   6. Featured Properties
   ========================================================================== */
.properties-section {
    padding: 8rem 0;
    background-color: var(--color-matte-black);
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.property-filter-tabs {
    display: flex;
    gap: 1rem;
}

.filter-tab {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-off-white);
    padding: 0.7rem 1.8rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.filter-tab:hover {
    border-color: var(--color-gold-deep);
    color: var(--color-gold-light);
}

.filter-tab.active {
    background-color: var(--color-gold-deep);
    color: var(--color-black);
    border-color: var(--color-gold-deep);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.property-card {
    background-color: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    border-color: var(--color-border-glass);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.card-img-wrapper {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.property-card:hover .property-img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 1rem;
    color: var(--color-black);
}

.card-badge.bg-gold {
    background-color: var(--color-gold-bright);
}

.card-badge.bg-black {
    background-color: var(--color-black);
    color: var(--color-white);
    border: 1px solid var(--color-border-glass);
}

.card-details {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-location {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 0.5rem;
}

.card-location i {
    color: var(--color-gold-deep);
    margin-right: 5px;
}

.card-title {
    font-size: 1.6rem;
    color: var(--color-white);
    margin-bottom: 1.2rem;
}

.card-specs {
    display: flex;
    gap: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.card-specs span {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.card-specs i {
    color: var(--color-gold-deep);
    margin-right: 6px;
}

.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-gold-bright);
}

.btn-card-link {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    text-decoration: none;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-card-link:hover {
    color: var(--color-gold-bright);
}

/* ==========================================================================
   7. Interactive Mansion Showcase
   ========================================================================== */
.mansion-section {
    position: relative;
    padding: 10rem 0;
    overflow: hidden;
}

.mansion-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mansion-bg-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.mansion-grad-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 50%, rgba(10,10,10,0.1) 0%, rgba(10,10,10,1) 80%);
}

.mansion-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 45% 50%;
    gap: 5%;
    align-items: center;
}

.mansion-title {
    font-size: 3.8rem;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 2rem;
}

.mansion-desc {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-muted);
    margin-bottom: 3rem;
}

.mansion-feature-triggers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.feature-trigger {
    background-color: var(--color-charcoal-dark);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition-fast);
}

.feature-trigger:hover {
    border-color: rgba(212, 175, 55, 0.3);
}

.feature-trigger.active {
    background-color: var(--color-black);
    border-color: var(--color-gold-deep);
}

.trigger-icon {
    color: var(--color-gold-bright);
    font-size: 1.2rem;
}

.trigger-name {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.feature-detail-panel {
    min-height: 120px;
    margin-bottom: 3.5rem;
}

.feature-content {
    display: none;
}

.feature-content.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

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

.feature-content h4 {
    font-size: 1.3rem;
    color: var(--color-white);
    margin-bottom: 0.8rem;
}

.feature-content p {
    font-size: 0.9rem;
    color: var(--color-muted);
    font-weight: 300;
}

.mansion-cta-row {
    display: flex;
    gap: 1.5rem;
}

.mansion-visual-col {
    position: relative;
}

.mansion-main-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(0,0,0,0) 100%);
    pointer-events: none;
}

.mansion-card-img {
    width: 100%;
    height: 580px;
    object-fit: cover;
}

.mansion-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0) 100%);
    padding: 3rem;
    display: flex;
    justify-content: space-between;
}

.overlay-stat {
    display: flex;
    flex-direction: column;
}

.overlay-stat span:first-child {
    font-size: 2.2rem;
    color: var(--color-gold-bright);
}

.overlay-stat .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    margin-top: 5px;
}

/* ==========================================================================
   8. Virtual Tour Experience
   ========================================================================== */
.virtual-tour-section {
    padding: 8rem 0;
    background-color: var(--color-black);
}

.tour-interactive-wrapper {
    margin-top: 3rem;
}

.tour-mode-selector {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.tour-btn {
    background-color: var(--color-matte-black);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-muted);
    padding: 1rem 2.2rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.tour-btn i {
    margin-right: 8px;
}

.tour-btn:hover {
    color: var(--color-gold-light);
    border-color: rgba(212,175,55,0.3);
}

.tour-btn.active {
    background-color: var(--color-gold-deep);
    color: var(--color-black);
    border-color: var(--color-gold-deep);
}

.tour-panel {
    display: none;
}

.tour-panel.active {
    display: block;
    animation: fadeIn 0.8s ease forwards;
}

/* Draggable 360 View */
.panoramic-container {
    width: 100%;
    height: 550px;
    border: 1px solid var(--color-border-glass);
    overflow: hidden;
    position: relative;
}

.pano-canvas {
    width: 250%; /* Overflow for drag space */
    height: 100%;
    position: absolute;
    top: 0;
    left: -50%;
    cursor: grab;
}

.pano-canvas:active {
    cursor: grabbing;
}

.pano-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.pano-hotspot {
    position: absolute;
    color: var(--color-gold-bright);
    font-size: 1.4rem;
    width: 40px;
    height: 40px;
    background-color: rgba(10,10,10,0.8);
    border: 1px solid var(--color-gold-bright);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.pano-hotspot:hover {
    transform: scale(1.15);
    background-color: var(--color-gold-bright);
    color: var(--color-black);
}

.pano-hotspot::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-matte-black);
    color: var(--color-off-white);
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    white-space: nowrap;
    border: 1px solid var(--color-border-glass);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.pano-hotspot:hover::after {
    opacity: 1;
}

.hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--color-gold-bright);
    border-radius: 50%;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

.pano-overlay-controls {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    right: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.pano-hint {
    background-color: rgba(10,10,10,0.85);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.pano-zoom-btn {
    display: flex;
    gap: 0.5rem;
    pointer-events: auto;
}

.pano-zoom-btn button {
    background-color: rgba(10,10,10,0.85);
    border: 1px solid rgba(255,255,255,0.05);
    color: var(--color-white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.pano-zoom-btn button:hover {
    color: var(--color-gold-bright);
    border-color: var(--color-gold-bright);
}

/* Floor Plan Layout */
.floorplan-layout {
    display: grid;
    grid-template-columns: 25% 70%;
    gap: 5%;
}

.floorplan-nav {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.floor-level-btn {
    background-color: var(--color-matte-black);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--color-muted);
    padding: 1.5rem;
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: var(--transition-fast);
}

.floor-level-btn:hover {
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.1);
}

.floor-level-btn.active {
    border-left: 3px solid var(--color-gold-bright);
    color: var(--color-gold-bright);
    background-color: var(--color-charcoal-dark);
}

.floorplan-display {
    border: 1px solid var(--color-border-glass);
    background-color: rgba(28, 28, 30, 0.3);
    backdrop-filter: blur(10px);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.floorplan-svg-container {
    display: none;
    width: 90%;
    height: 90%;
}

.floorplan-svg-container.active {
    display: block;
    animation: fadeIn 0.6s ease forwards;
}

.blueprint-svg {
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   9. Neighborhood Showcase
   ========================================================================== */
.neighborhoods-section {
    padding: 8rem 0;
    background-color: var(--color-matte-black);
}

.section-heading-wrapper {
    margin-bottom: 4rem;
}

.neighborhoods-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.location-card {
    height: 520px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    border: 1px solid rgba(255,255,255,0.02);
}

.location-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: var(--transition-slow);
    z-index: 1;
}

.location-card:hover .location-img-overlay {
    transform: scale(1.08);
}

.location-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(360deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.4) 50%, rgba(10,10,10,0) 100%);
    z-index: 2;
    transition: var(--transition-medium);
}

.location-card:hover::after {
    background: linear-gradient(360deg, rgba(10,10,10,0.98) 0%, rgba(10,10,10,0.7) 60%, rgba(10,10,10,0.2) 100%);
}

.location-content {
    position: relative;
    z-index: 3;
    padding: 2.2rem;
    width: 100%;
    transform: translateY(60px);
    transition: var(--transition-medium);
}

.location-card:hover .location-content {
    transform: translateY(0);
}

.location-badge {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-gold-bright);
    margin-bottom: 0.8rem;
    display: block;
}

.location-title {
    font-size: 1.8rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.location-description {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.location-card:hover .location-description {
    opacity: 1;
}

.location-btn {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.location-btn:hover {
    color: var(--color-gold-bright);
}

/* ==========================================================================
   10. Investment Opportunities
   ========================================================================== */
.investments-section {
    padding: 10rem 0;
    background-color: var(--color-black);
    overflow: hidden;
}

/* Glow Blobs */
.blur-blob-top {
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212,175,55,0.05) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.blur-blob-bottom {
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212,175,55,0.03) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
}

.investment-visual {
    position: relative;
    padding-right: 3rem;
}

.inv-frame {
    position: relative;
    border: 1px solid var(--color-border-glass);
    padding: 1rem;
    width: 90%;
}

.inv-image-holder {
    width: 100%;
    height: 480px;
    background-size: cover;
    background-position: center;
}

.inv-badge-floating {
    position: absolute;
    bottom: 2.5rem;
    right: -2.5rem;
    background-color: var(--color-charcoal-dark);
    border: 1px solid var(--color-gold-deep);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.inv-badge-floating span:first-child {
    font-size: 2.4rem;
    color: var(--color-gold-bright);
}

.inv-badge-floating .sub {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--color-muted);
    margin-top: 5px;
}

.investment-perks-list {
    margin: 2.5rem 0 3.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.perk-item {
    display: flex;
    gap: 1.5rem;
}

.perk-num {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-gold-deep);
    line-height: 1;
}

.perk-item h4 {
    font-size: 1.1rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.perk-item p {
    font-size: 0.85rem;
    color: var(--color-muted);
}

.inv-cta-row {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.investor-stat {
    display: flex;
    flex-direction: column;
}

.investor-stat .val {
    font-size: 2rem;
    color: var(--color-white);
}

.investor-stat .lbl {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted);
}

/* ==========================================================================
   11. Services Section
   ========================================================================== */
.services-section {
    padding: 8rem 0;
    background-color: var(--color-matte-black);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--color-black);
    border: 1px solid rgba(255, 255, 255, 0.02);
    padding: 3.5rem 2.2rem;
    transition: var(--transition-medium);
}

.service-card:hover {
    border-color: var(--color-border-glass);
    transform: translateY(-8px);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--color-gold-bright);
    margin-bottom: 2rem;
}

.service-card-title {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 1.2rem;
}

.service-card-desc {
    font-size: 0.85rem;
    color: var(--color-muted);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.service-link {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-white);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-card:hover .service-link {
    color: var(--color-gold-bright);
}

.service-card:hover .service-link i {
    transform: translateX(6px);
}

/* ==========================================================================
   12. Architectural Gallery
   ========================================================================== */
.gallery-section {
    padding: 8rem 0;
    background-color: var(--color-black);
}

.gallery-wrapper {
    margin-top: 4rem;
    width: 100%;
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 240px;
    gap: 1.5rem;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background-color: var(--color-matte-black);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10,10,10,0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
}

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

.gallery-title {
    font-size: 1.4rem;
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.gallery-cat {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold-bright);
}

/* Masonry spans */
.gallery-item.size-h {
    grid-column: span 2;
}

.gallery-item.size-v {
    grid-row: span 2;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10,10,10,0.98);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    animation: zoomModal 0.4s ease;
    border: 1px solid var(--color-border-glass);
}

@keyframes zoomModal {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--color-white);
    font-size: 3rem;
    font-weight: 200;
    transition: var(--transition-fast);
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--color-gold-bright);
    text-decoration: none;
}

.lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--color-muted);
    padding: 1.5rem 0;
    font-family: var(--font-serif);
    font-size: 1.2rem;
}

/* ==========================================================================
   13. Testimonials Section
   ========================================================================== */
.testimonials-section {
    padding: 10rem 0;
    background-color: var(--color-matte-black);
    position: relative;
}

.testimonials-swiper {
    margin-top: 4rem;
    padding-bottom: 4rem !important;
}

.testimonial-card {
    background-color: var(--color-black);
    border: 1px solid rgba(255,255,255,0.03);
    padding: 4rem;
    border-radius: 4px;
}

.testi-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
}

.testi-user {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.user-initials {
    width: 50px;
    height: 50px;
    background-color: var(--color-charcoal-dark);
    border: 1px solid var(--color-border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-gold-bright);
}

.testi-name {
    font-size: 1.1rem;
    color: var(--color-white);
    font-weight: 500;
}

.testi-origin {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.testi-rating {
    color: var(--color-gold-bright);
    font-size: 0.8rem;
    display: flex;
    gap: 4px;
}

.testi-content {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--color-gold-light);
    margin-bottom: 2.5rem;
    font-style: italic;
}

.testi-meta {
    font-size: 0.8rem;
}

.testi-meta .lbl {
    color: var(--color-muted);
}

.testi-meta .val {
    color: var(--color-white);
    font-weight: 500;
}

.testi-pagination .swiper-pagination-bullet {
    background: var(--color-muted);
    opacity: 0.3;
}

.testi-pagination .swiper-pagination-bullet-active {
    background: var(--color-gold-bright);
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

/* ==========================================================================
   14. VIP Consultation Inquiry (Contact)
   ========================================================================== */
.contact-section {
    padding: 10rem 0;
    background-color: var(--color-black);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 45%;
    height: 100%;
    background-color: var(--color-matte-black);
    z-index: 1;
}

.contact-title {
    font-size: 3.8rem;
    margin-bottom: 2rem;
}

.contact-lead {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--color-muted);
    margin-bottom: 4.5rem;
}

.contact-concierge-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.concierge-item {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.icon-holder {
    width: 55px;
    height: 55px;
    background-color: var(--color-charcoal-dark);
    border: 1px solid var(--color-border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--color-gold-bright);
}

.concierge-item h5 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.3rem;
}

.concierge-item p {
    font-size: 1rem;
    color: var(--color-white);
    font-weight: 300;
}

/* Form Glass Card */
.form-glassmorphic-card {
    background-color: rgba(28, 28, 30, 0.45);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border-glass);
    padding: 3.5rem;
    position: relative;
    overflow: hidden;
}

.form-row {
    margin-bottom: 1.8rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.8rem;
}

.input-group label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
    margin-bottom: 0.6rem;
}

.input-group input,
.input-group select,
.input-group textarea {
    background-color: rgba(10, 10, 10, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    transition: var(--transition-fast);
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--color-gold-bright);
    background-color: rgba(10, 10, 10, 0.7);
}

/* Custom styling for options inside dropdowns */
.input-group select option {
    background-color: var(--color-matte-black);
    color: var(--color-white);
}

/* Form Submit Loading/Feedback Panel */
.form-feedback-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-black);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    text-align: center;
    z-index: 10;
}

.form-feedback-overlay.active {
    display: flex;
    animation: fadeIn 0.4s ease forwards;
}

.feedback-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.feedback-success-icon {
    font-size: 4rem;
    color: var(--color-gold-bright);
}

.feedback-content h3 {
    font-size: 2.2rem;
    color: var(--color-white);
}

.feedback-content p {
    font-size: 0.95rem;
    color: var(--color-muted);
    max-width: 320px;
    margin-bottom: 1rem;
}

/* ==========================================================================
   15. Footer
   ========================================================================== */
.luxury-footer {
    background-color: var(--color-black);
    border-top: 1px solid rgba(255,255,255,0.03);
    padding: 6rem 0 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 35% repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-logo {
    font-size: 1.8rem;
    color: var(--color-white);
    text-decoration: none;
    letter-spacing: 0.15em;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--color-muted);
    max-width: 250px;
    margin-bottom: 2rem;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    color: var(--color-muted);
    font-size: 1.1rem;
    transition: var(--transition-fast);
}

.footer-socials a:hover {
    color: var(--color-gold-bright);
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 1rem;
}

.footer-links-col a {
    font-size: 0.85rem;
    color: var(--color-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links-col a:hover {
    color: var(--color-gold-light);
}

.footer-bottom-row {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    font-size: 0.75rem;
    color: var(--color-muted);
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    font-size: 0.75rem;
    color: var(--color-muted);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-legal-links a:hover {
    color: var(--color-gold-bright);
}

/* ==========================================================================
   16. Animation Triggers & Entrance States
   ========================================================================== */
/* animate-on-scroll: only hidden when JS is active (body.js-ready).
   Falls back to fully visible if JS fails or is slow. */
body.js-ready .animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.js-ready .animate-on-scroll.appeared {
    opacity: 1;
    transform: translateY(0);
}

/* GSAP Specific Reveal States */
.reveal-text {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* ==========================================================================
   17. Responsive Layout Media Queries (Mobile-first fallback)
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.8rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .neighborhoods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-masonry {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero-content-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 4rem;
        margin-top: 8rem;
    }
    
    .hero-floating-card {
        width: 100%;
    }
    
    .about-stats-col {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mansion-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .mansion-card-img {
        height: 400px;
    }
    
    .floorplan-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-section::before {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu, .header-btn {
        display: none;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-btn-group {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .neighborhoods-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    
    .gallery-item.size-h {
        grid-column: span 1;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-bottom-row {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-legal-links {
        justify-content: center;
    }
    
    .pano-canvas {
        width: 400%;
        left: -150%;
    }
}

/* ==========================================================================
   18. CRITICAL BUG FIXES & VISUAL POLISH
   ========================================================================== */

/* Fix: panoramic canvas — let JS fully control positioning */
.pano-canvas {
    left: 0; /* JS will set correct value on DOMContentLoaded */
}

/* Fix: investments section needs position:relative for blobs */
.investments-section {
    position: relative;
}

/* Fix: contact section ::before needs to stay behind content */
.contact-section {
    position: relative;
    overflow: hidden;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

/* Fix: gallery cursor should show pointer */
.gallery-item {
    cursor: pointer;
}

body.js-ready .gallery-item {
    cursor: none;
}

/* Fix: lightbox — default display none, JS uses flex to show */
.lightbox-modal {
    align-items: center;
    justify-content: center;
}

/* Fix: form input placeholder color */
.input-group input::placeholder,
.input-group textarea::placeholder {
    color: rgba(142, 142, 147, 0.5);
    font-size: 0.85rem;
}

/* Fix: select arrow styling */
.input-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23C5A059' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* Fix: swiper overflow clipping */
.testimonials-swiper {
    overflow: hidden;
    padding-bottom: 3rem !important;
}

/* Fix: hero section min-height on short screens */
.hero-section {
    min-height: 100vh;
}

/* Fix: hero content pushed below header on small screens */
@media (max-width: 768px) {
    .hero-content-wrapper {
        padding-top: 5rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-floating-card {
        width: 100%;
        max-width: 420px;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .mansion-title {
        font-size: 2.5rem;
    }

    .about-lead {
        font-size: 1.4rem;
    }

    .mansion-cta-row {
        flex-direction: column;
    }

    .tour-mode-selector {
        flex-direction: column;
        align-items: center;
    }

    .floorplan-layout {
        grid-template-columns: 1fr;
    }

    .floorplan-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .floor-level-btn {
        flex: 1;
        font-size: 0.7rem;
        padding: 0.8rem;
        text-align: center;
    }

    .floorplan-display {
        height: 320px;
    }

    .panoramic-container {
        height: 320px;
    }

    .mansion-card-img {
        height: 320px;
    }

    .property-filter-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-tab {
        font-size: 0.7rem;
        padding: 0.6rem 1rem;
    }

    .inv-badge-floating {
        right: 0;
        bottom: 1rem;
    }

    .testimonial-card {
        padding: 2rem;
    }

    .testi-content {
        font-size: 1.2rem;
    }

    .form-glassmorphic-card {
        padding: 2rem;
    }

    .form-row.grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mansion-feature-triggers {
        grid-template-columns: 1fr 1fr;
    }

    .pano-hint {
        display: none;
    }
}

/* Fix: about-stats-col inside grid-2 — add column count on its own */
@media (min-width: 769px) {
    .about-stats-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-content: start;
    }
}

/* Fix: section spacings on medium screens */
@media (max-width: 991px) {
    .about-section,
    .investments-section,
    .testimonials-section,
    .contact-section {
        padding: 6rem 0;
    }

    .services-section,
    .gallery-section,
    .virtual-tour-section,
    .neighborhoods-section,
    .properties-section {
        padding: 5rem 0;
    }

    .section-header-row {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }

    .neighborhoods-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .inv-frame {
        width: 100%;
    }

    .inv-badge-floating {
        right: -1rem;
    }
}

/* Smooth image loading */
img {
    display: block;
    max-width: 100%;
}

/* Mobile Responsive Adjustments */
@media screen and (max-width: 768px) {
  /* Header */
  .nav-menu { display: none; }
  .mobile-nav-toggle { display: flex; }
  /* Hero */
  .hero-content-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin-top: 3rem;
  }
  .hero-text-content { max-width: 100%; }
  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-btn-group { flex-direction: column; width: 100%; }
  .hero-btn-group a { width: 100%; text-align: center; margin-bottom: 0.8rem; }
  .hero-floating-card { width: 100%; margin-top: 2rem; }
  /* Property Grid */
  .properties-grid { grid-template-columns: 1fr; }
  /* Neighborhoods */
  .neighborhoods-grid { grid-template-columns: 1fr; }
  /* Virtual Tour */
  .panoramic-container { height: 300px; }
  .floorplan-layout { grid-template-columns: 1fr; }
  .floorplan-nav { flex-direction: row; overflow-x: auto; }
  .floorplan-display { height: 300px; }
}
/* Additional breakpoints for very small screens */
@media screen and (max-width: 390px) {
  .hero-title { font-size: 2.5rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-btn-group a { margin-bottom: 0.55rem; }
}
  .hero-title { font-size: 2.4rem; }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-btn-group a { margin-bottom: 0.6rem; }
}
@media screen and (max-width: 375px) {
  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.85rem; }
  .hero-btn-group a { margin-bottom: 0.5rem; }
}
@media screen and (max-width: 320px) {
  .hero-title { font-size: 1.9rem; }
  .hero-subtitle { font-size: 0.8rem; }
}
/* Adjust property card image height for small screens */
@media screen and (max-width: 768px) {
  .card-img-wrapper { height: 200px; }
}
img {
    display: block;
    max-width: 100%;
}

/* Prevent any blue flash on links */
a, button {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* Ensure sections never go below content */
section {
    position: relative;
}

/* Gold accent line separator */
.section-gold-line {
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, var(--color-gold-bright), transparent);
    margin: 1.5rem 0 3rem 0;
}

/* Additional responsive utilities */
@media screen and (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .gallery-masonry {
    column-count: 1;
  }
}
