/* ==========================================================================
   CREDO ESTATES - CORE DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

/* Design Tokens */
:root {
  --color-bg: #0C0C0C;
  --color-gold: #C9A96E;
  --color-cream: #F0EBE1;
  --color-bronze: #7A5C2E;
  --color-surface: #161616;
  --color-border: rgba(201, 169, 110, 0.2);

  --font-headings: 'Cormorant Garamond', serif;
  --font-body: 'DM Sans', sans-serif;

  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-theme: background-color 0.55s ease, color 0.4s ease, border-color 0.45s ease;
}

/* =====================================================
   LIGHT MODE — Coastal Beach Luxury Palette
   Beach sand whites · Warm driftwood · Antique gold
   ===================================================== */
body.light-mode {
  --color-bg:      #F7F5EE;
  --color-gold:    #8A6825;
  --color-cream:   #1C1814;
  --color-bronze:  #5E3C0C;
  --color-surface: #EDE8DB;
  --color-border:  rgba(138, 104, 37, 0.18);
}

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

html {
  background-color: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
  scroll-behavior: auto; /* Required for Lenis smooth scroll */
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  cursor: none; /* Hide default cursor on desktop */
}

input, textarea, select, button {
  font-family: inherit;
  cursor: none; /* Keep custom cursor active */
}

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

/* SVG Grain/Noise Overlay */
.grain-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.04;
  pointer-events: none;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Canvas Layers */
#webgl-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1; /* Behind HTML but in front of hero video */
  pointer-events: none;
}

#transition-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999; /* Always on top */
  pointer-events: none;
}

/* WebGL fallback pattern: hide HTML image only when WebGL class is loaded */
body.webgl-active .webgl-image {
  opacity: 0;
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 300;
  color: var(--color-cream);
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

.section-label {
  font-size: 11px;
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: block;
}

.body-text {
  font-size: 1.05rem;
  color: rgba(240, 235, 225, 0.7);
  margin-bottom: 1.5rem;
}

.gold-accent {
  color: var(--color-gold);
}

/* 1. PRELOADER */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg);
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.preloader-title {
  font-size: 2.5rem;
  letter-spacing: 0.25em;
  margin-bottom: 2rem;
  font-weight: 300;
}

.preloader-bar-bg {
  width: 150px;
  height: 1px;
  background-color: rgba(240, 235, 225, 0.1);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.preloader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background-color: var(--color-gold);
}

/* Custom Dual-Ring Cursor System */
#cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background-color: var(--color-gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999999;
  will-change: transform;
  opacity: 0;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, opacity 0.3s ease;
}

#cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(201, 169, 110, 0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 999998;
  will-change: transform;
  opacity: 0;
  transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
}

/* Hover States for Cursor System */
#cursor-dot.hovered {
  width: 0px;
  height: 0px;
  opacity: 0;
}

#cursor-ring.hovered {
  width: 70px;
  height: 70px;
  background-color: rgba(201, 169, 110, 0.15);
  border-color: var(--color-gold);
}

/* Specular Glare Overlay */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  background: transparent;
  mix-blend-mode: overlay;
  transition: opacity 0.5s ease;
}

/* Multi-View System */
.page-view {
  display: none;
  opacity: 0;
}

.page-view.active-view {
  display: block;
  opacity: 1;
}

/* NAVIGATION */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  z-index: 1000;
  transition: var(--transition-smooth);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
}

.nav-logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  font-weight: 500;
  color: var(--color-cream);
}

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

.nav-link {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-cream);
  font-weight: 400;
  position: relative;
  padding: 0.5rem 0;
}

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

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

.nav-cta-btn {
  background: transparent;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  padding: 0.7rem 1.8rem;
  font-size: 10px;
  letter-spacing: 0.25em;
  font-weight: 500;
  transition: var(--transition-fast);
  outline: none;
}

.nav-cta-btn:hover {
  background: var(--color-gold);
  color: var(--color-bg);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
}

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

/* 2. HERO SECTION — EDITORIAL REDESIGN */
.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 6rem 7rem;
  z-index: 2;
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transform-origin: center center;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  /* Left-biased dark for text legibility, opens up on right to show the property */
  background:
    linear-gradient(to right, rgba(12,12,12,0.90) 0%, rgba(12,12,12,0.30) 55%, rgba(12,12,12,0.55) 100%),
    radial-gradient(ellipse at 15% 60%, transparent 25%, rgba(12,12,12,0.5) 100%);
}

/* Thin left editorial accent line */
.hero-accent-line {
  position: absolute;
  left: 3rem;
  top: 18%;
  height: 52%;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, var(--color-gold) 25%, var(--color-gold) 75%, transparent 100%);
  opacity: 0.4;
  z-index: 3;
}

/* Main editorial content block */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 1050px;
}

/* Eyebrow row: rule + label */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.hero-eyebrow-rule {
  display: block;
  width: 40px;
  height: 1px;
  background-color: var(--color-gold);
  flex-shrink: 0;
}

.hero-eyebrow-text {
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
}

/* Two-line split title */
.hero-title-block {
  margin-bottom: 2.5rem;
}

.hero-title-overflow {
  overflow: hidden; /* Clips chars animating up from below */
}

.hero-title-line {
  display: block;
  font-size: 8vw;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  font-weight: 300;
  line-height: 0.88;
  color: var(--color-cream);
}

/* Second line: outlined ghost text + editorial right-indent */
.hero-title-line--ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(240, 235, 225, 0.5);
  padding-left: 14%;
}

/* Italic tagline */
.hero-tagline {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(240, 235, 225, 0.48);
  letter-spacing: 0.04em;
  margin-bottom: 3rem;
}

/* CTA group */
.hero-cta-group {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Scroll indicator — right-anchored, vertical orientation */
.scroll-indicator {
  position: absolute;
  bottom: 9rem;
  right: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  z-index: 3;
}

.scroll-text {
  font-size: 8px;
  letter-spacing: 0.35em;
  color: var(--color-gold);
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.scroll-line {
  width: 1px;
  height: 55px;
  background: linear-gradient(to bottom, var(--color-gold) 0%, transparent 100%);
  position: relative;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 20px;
  background-color: var(--color-cream);
  animation: pulse-scroll 2s infinite ease-in-out;
}

@keyframes pulse-scroll {
  0% { transform: translateY(0); }
  50% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Hero bottom frosted info strip */
.hero-bottom-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 6rem;
  background: rgba(12, 12, 12, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(201, 169, 110, 0.12);
  z-index: 4;
}

.hero-bottom-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-bottom-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  text-transform: uppercase;
}

.hero-bottom-value {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  color: var(--color-cream);
  letter-spacing: 0.04em;
}

.hero-bottom-sep {
  width: 1px;
  height: 30px;
  background-color: rgba(201, 169, 110, 0.18);
  flex-shrink: 0;
}

.hero-bottom-stats {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(240, 235, 225, 0.52);
  text-transform: uppercase;
}

.hero-dot {
  color: var(--color-gold);
  font-size: 1rem;
  line-height: 1;
}

/* Hero Top Meta Strip */
.hero-top-meta {
  position: absolute;
  top: 5.5rem;
  left: 6rem;
  right: 6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  pointer-events: none;
}

.hero-meta-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-meta-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
}

.hero-meta-count {
  font-family: var(--font-headings);
  font-size: 0.88rem;
  color: rgba(240, 235, 225, 0.4);
  letter-spacing: 0.08em;
  font-style: italic;
}

.hero-meta-right {
  display: flex;
  align-items: center;
}

.hero-award-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 9px;
  letter-spacing: 0.25em;
  color: rgba(240, 235, 225, 0.5);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--color-gold);
  flex-shrink: 0;
  animation: badge-pulse 2.4s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.65); }
}

/* Hero Right Property Card */
.hero-property-card {
  position: absolute;
  right: 5rem;
  top: 50%;
  transform: translateY(-52%);
  width: 262px;
  background: rgba(10, 10, 10, 0.76);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 169, 110, 0.14);
  z-index: 4;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-property-card:hover {
  border-color: rgba(201, 169, 110, 0.32);
  transform: translateY(-52%) translateY(-5px);
}

.hero-prop-img-wrap {
  width: 100%;
  height: 162px;
  overflow: hidden;
}

.hero-prop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.82);
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-property-card:hover .hero-prop-img {
  transform: scale(1.07);
}

.hero-prop-info {
  padding: 1.3rem 1.4rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.hero-prop-label {
  font-size: 8px;
  letter-spacing: 0.28em;
  color: var(--color-gold);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}

.hero-prop-name {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  color: var(--color-cream);
  font-weight: 300;
  line-height: 1.1;
}

.hero-prop-location {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(240, 235, 225, 0.46);
  text-transform: uppercase;
  font-family: var(--font-body);
}

.hero-prop-price {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  color: var(--color-gold);
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-top: 0.35rem;
}

.hero-prop-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.4rem;
  margin-top: 1.1rem;
  border-top: 1px solid rgba(201, 169, 110, 0.1);
  font-size: 8px;
  letter-spacing: 0.24em;
  color: rgba(240, 235, 225, 0.48);
  font-family: var(--font-body);
  font-weight: 500;
  text-transform: uppercase;
  transition: color 0.3s ease;
}

.hero-property-card:hover .hero-prop-cta {
  color: var(--color-gold);
}

.hero-prop-arrow {
  font-size: 0.9rem;
  color: var(--color-gold);
  transition: transform 0.3s ease;
}

.hero-property-card:hover .hero-prop-arrow {
  transform: translateX(4px);
}

/* Hero Far-Right Vertical Label */
.hero-vertical-label {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 7.5px;
  letter-spacing: 0.3em;
  color: rgba(201, 169, 110, 0.32);
  font-family: var(--font-body);
  font-weight: 400;
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
  user-select: none;
}

/* 3. MARQUEE STRIP */
.marquee-section {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 1.8rem 0;
  overflow: hidden;
  position: relative;
  z-index: 4;
  transform: perspective(1000px) rotateX(2deg) skewY(-0.5deg);
}

.marquee-container {
  display: flex;
  white-space: nowrap;
}

.marquee-track {
  display: inline-block;
  animation: marquee-scroll 25s linear infinite;
}

.marquee-track span {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

@keyframes marquee-scroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-25%, 0, 0); }
}

/* 4. ABOUT SECTION */
.about-section {
  padding: 10rem 4rem;
  background-color: var(--color-bg);
  position: relative;
  z-index: 4;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.about-left {
  position: relative;
}

.about-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.25;
  overflow: hidden;
  background-color: var(--color-surface);
}

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

.year-badge {
  position: absolute;
  bottom: -2rem;
  right: -2rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-gold);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 5;
}

.year-badge-text {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

.about-heading {
  font-size: 4rem;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

.about-text-content {
  margin-bottom: 3rem;
}

.cta-underline-link {
  display: inline-flex;
  flex-direction: column;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  font-weight: 500;
  position: relative;
  padding-bottom: 0.5rem;
}

.link-line {
  height: 1px;
  background-color: var(--color-gold);
  width: 100%;
  margin-top: 0.4rem;
  transition: var(--transition-smooth);
  transform-origin: left;
}

.cta-underline-link:hover .link-line {
  transform: scaleX(1.3);
}

/* 5. FEATURED PROPERTIES (Horizontal Scroll Pin) */
.properties-section {
  background-color: var(--color-bg);
  position: relative;
  z-index: 4;
  overflow: hidden;
}

.properties-pin-wrap {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  padding: 0 6rem;
  position: relative;
}

.properties-intro {
  flex-shrink: 0;
  width: 400px;
  margin-right: 6rem;
}

.properties-heading {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.properties-desc {
  font-size: 1rem;
  color: rgba(240, 235, 225, 0.6);
}

.horizontal-scroll-container {
  display: flex;
  gap: 4rem;
  height: 65vh;
}

.property-card {
  width: 450px;
  height: 100%;
  flex-shrink: 0;
  position: relative;
  perspective: 1200px; /* 3D Tilt perspective context */
}

.property-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out; /* Keeps mouse tracking smooth */
}

/* Inner 3D Parallax Elements */
.property-card-inner .property-name {
  transform: translateZ(20px);
}

.property-card-inner .property-price {
  transform: translateZ(35px);
}

.property-card-inner .view-property-btn {
  transform: translateZ(50px);
}

.property-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1);
}

.property-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(12, 12, 12, 0.1) 0%, rgba(12, 12, 12, 0.8) 100%);
  transition: background 0.5s ease;
  z-index: 1;
}

.property-card-header {
  position: absolute;
  top: 2rem;
  right: 2rem;
  z-index: 2;
  transform: translateZ(30px); /* 3D pop effect */
}

.property-price {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  color: var(--color-gold);
  font-weight: 500;
  background-color: rgba(12, 12, 12, 0.7);
  padding: 0.5rem 1rem;
  border-radius: 4px;
}

.property-card-footer {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  z-index: 2;
  transform: translateZ(40px); /* 3D pop effect */
}

.property-name {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.property-location {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(240, 235, 225, 0.6);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.view-property-btn {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--color-bg);
  background-color: var(--color-gold);
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Card hover animation */
.property-card:hover .property-card-img {
  transform: scale(1.08);
}

.property-card:hover .property-card-overlay {
  background: linear-gradient(to bottom, rgba(12, 12, 12, 0.3) 0%, rgba(12, 12, 12, 0.95) 100%);
}

.property-card:hover .view-property-btn {
  opacity: 1;
  transform: translateY(0);
}

/* 6. SERVICES SECTION */
.services-section {
  padding: 10rem 4rem;
  background-color: var(--color-surface);
  position: relative;
  z-index: 4;
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
}

.services-header {
  margin-bottom: 6rem;
}

.services-heading {
  font-size: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px; /* Small gap for elegant thin division */
  background-color: var(--color-border);
}

.service-column {
  background-color: var(--color-surface);
  padding: 4.5rem 3rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.service-num {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  color: var(--color-gold);
  margin-bottom: 2rem;
}

.service-title {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  transition: var(--transition-fast);
}

.service-desc {
  font-size: 0.95rem;
  color: rgba(240, 235, 225, 0.6);
  line-height: 1.7;
}

.service-hover-border {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0px;
  background-color: var(--color-gold);
  transition: var(--transition-fast);
}

/* Service item hover */
.service-column:hover {
  transform: scale(1.02);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.service-column:hover .service-hover-border {
  width: 3px;
}

.service-column:hover .service-title {
  color: var(--color-gold);
}

/* 7. STATS BAR */
.stats-bar-section {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 6rem 0;
  position: relative;
  z-index: 4;
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4rem;
}

.stat-item {
  text-align: center;
  flex: 1;
}

.stat-num {
  font-family: var(--font-headings);
  font-size: 4.5rem;
  color: var(--color-gold);
  margin-bottom: 0.8rem;
  font-weight: 300;
}

.stat-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(240, 235, 225, 0.6);
}

.stat-divider {
  width: 1px;
  height: 80px;
  background-color: var(--color-border);
}

/* 8. INTERIOR DESIGN SHOWCASE */
.showcase-section {
  padding: 10rem 4rem;
  background-color: var(--color-bg);
  position: relative;
  z-index: 4;
}

.showcase-container {
  max-width: 1400px;
  margin: 0 auto;
}

.showcase-heading {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.showcase-desc {
  font-size: 1rem;
  color: rgba(240, 235, 225, 0.6);
  margin-bottom: 5rem;
  max-width: 600px;
}

/* Masonry Grid Layout */
.masonry-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2.5rem;
}

.masonry-item {
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface);
  cursor: pointer;
}

.masonry-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.showcase-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  background: linear-gradient(to top, rgba(12,12,12,0.8), transparent);
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cream);
  opacity: 0;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  z-index: 2;
}

/* Hover effects */
.masonry-item:hover .showcase-img {
  transform: scale(1.05);
}

.masonry-item:hover .showcase-img-caption {
  opacity: 1;
  transform: translateY(0);
}

/* Column Spanning Rules for Masonry */
.item-vertical {
  grid-column: span 4;
  aspect-ratio: 0.75;
}

.item-horizontal {
  grid-column: span 8;
  aspect-ratio: 1.6;
}

.item-small {
  grid-column: span 5;
  aspect-ratio: 1;
}

.item-large {
  grid-column: span 7;
  aspect-ratio: 1.3;
}

.item-medium {
  grid-column: span 6;
  aspect-ratio: 1.2;
}

/* 9. TESTIMONIALS SECTION */
.testimonials-section {
  padding: 10rem 4rem;
  background-color: var(--color-surface);
  position: relative;
  z-index: 4;
}

.testimonials-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.quote-mark {
  font-family: var(--font-headings);
  font-size: 8rem;
  line-height: 1;
  color: var(--color-gold);
  margin-bottom: 2rem;
  opacity: 0.3;
}

.testimonials-slider {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.testimonial-text {
  font-family: var(--font-headings);
  font-size: 2rem;
  line-height: 1.4;
  font-style: italic;
  color: var(--color-cream);
  margin-bottom: 3rem;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.client-title {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: rgba(240, 235, 225, 0.5);
  text-transform: uppercase;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 4rem;
}

.nav-arrow {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-cream);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition-fast);
  outline: none;
}

.nav-arrow:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
  background-color: rgba(201, 169, 110, 0.05);
}

/* 10. TEAM SECTION */
.team-section {
  padding: 10rem 4rem;
  background-color: var(--color-bg);
  position: relative;
  z-index: 4;
}

.team-container {
  max-width: 1400px;
  margin: 0 auto;
}

.team-heading {
  font-size: 4rem;
  margin-bottom: 6rem;
}

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

.team-card {
  position: relative;
  text-align: center;
  perspective: 1200px;
}

.team-img-wrap {
  width: 250px;
  height: 250px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: var(--transition-smooth);
}

.team-card:hover .team-img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.team-name {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.team-role {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
}

/* 11. CTA SECTION */
.cta-section {
  padding: 15rem 4rem;
  background-color: var(--color-bg);
  position: relative;
  z-index: 4;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-container {
  text-align: center;
  position: relative;
  z-index: 3;
  max-width: 1000px;
}

.cta-heading {
  font-size: 5rem;
  margin-bottom: 4rem;
  line-height: 1.1;
}

.gold-gradient {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-bronze) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.btn {
  padding: 1.2rem 3rem;
  font-size: 11px;
  letter-spacing: 0.25em;
  font-weight: 500;
  transition: var(--transition-fast);
  outline: none;
}

.btn-filled {
  background-color: var(--color-gold);
  color: var(--color-bg);
  border: 1px solid var(--color-gold);
}

.btn-filled:hover {
  background-color: transparent;
  color: var(--color-gold);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-cream);
  border: 1px solid rgba(240, 235, 225, 0.3);
}

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

/* 12. FOOTER */
.main-footer {
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 8rem 4rem 3rem;
  position: relative;
  z-index: 4;
}

.footer-glow {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  animation: glow-shift 8s linear infinite;
  z-index: 2;
}

@keyframes glow-shift {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 6rem;
  margin-bottom: 6rem;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo {
  font-size: 2.2rem;
  letter-spacing: 0.15em;
}

.footer-tagline {
  font-size: 1.1rem;
  color: rgba(240, 235, 225, 0.5);
  font-family: var(--font-headings);
  font-style: italic;
}

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

.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.25em;
  margin-bottom: 2rem;
  color: var(--color-gold);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col li {
  font-size: 13px;
  color: rgba(240, 235, 225, 0.6);
}

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

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  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: 11px;
  color: rgba(240, 235, 225, 0.4);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   VIEW 2: PROPERTY DETAILS VIEW STYLING
   ========================================================================== */
.detail-container {
  padding: 8rem 4rem 10rem;
  max-width: 1400px;
  margin: 0 auto;
}

.detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4rem;
}

.back-to-home-btn {
  background: transparent;
  border: 1px solid rgba(240, 235, 225, 0.2);
  color: var(--color-cream);
  padding: 0.8rem 2rem;
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: var(--transition-fast);
}

.back-to-home-btn:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.detail-header-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.detail-price {
  font-size: 2.5rem;
  font-family: var(--font-headings);
  font-weight: 400;
}

.detail-label {
  font-size: 9px;
  letter-spacing: 0.3em;
  color: rgba(240, 235, 225, 0.5);
}

.detail-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2.1;
  overflow: hidden;
  margin-bottom: 6rem;
}

.detail-hero-img-wrap {
  width: 100%;
  height: 100%;
  position: relative;
}

.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(12, 12, 12, 0.8));
}

.detail-title {
  position: absolute;
  bottom: 3rem;
  left: 4rem;
  font-size: 6rem;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 8rem;
}

.detail-section-title {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.detail-desc {
  font-size: 1.1rem;
  color: rgba(240, 235, 225, 0.7);
  line-height: 1.8;
  margin-bottom: 3rem;
}

.detail-specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--color-border);
  padding-top: 3rem;
}

.detail-specs li {
  font-size: 1.05rem;
  color: rgba(240, 235, 225, 0.7);
}

.detail-specs strong {
  color: var(--color-gold);
  font-weight: 500;
  margin-right: 0.5rem;
}

.inquiry-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  padding: 4rem 3.5rem;
  text-align: center;
}

.inquiry-card h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.inquiry-card p {
  font-size: 0.95rem;
  color: rgba(240, 235, 225, 0.6);
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* ==========================================================================
   VIEW 3: CONSULTATION BOOKING VIEW STYLING
   ========================================================================== */
.booking-container {
  padding: 8rem 4rem 10rem;
  max-width: 1400px;
  margin: 0 auto;
}

.booking-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6rem;
}

.booking-subtitle {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--color-gold);
  font-weight: 500;
}

.booking-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 8rem;
}

.booking-title {
  font-size: 5rem;
  margin-bottom: 2.5rem;
  line-height: 1.1;
}

.booking-contact-details {
  margin-top: 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-item .label {
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--color-gold);
}

.contact-item .val {
  font-size: 1.3rem;
  font-family: var(--font-headings);
  color: var(--color-cream);
}

.booking-form-wrap {
  position: relative;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  transition: opacity 0.5s ease;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.form-group label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(240, 235, 225, 0.5);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: rgba(22, 22, 22, 0.5);
  border: 1px solid rgba(201, 169, 110, 0.15);
  color: var(--color-cream);
  padding: 1.2rem;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  background-color: var(--color-surface);
}

.form-group select option {
  background-color: var(--color-surface);
  color: var(--color-cream);
}

.booking-submit-btn {
  width: 100%;
  margin-top: 1rem;
}

.booking-success-state {
  display: none;
  text-align: center;
  padding: 6rem 4rem;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1px solid var(--color-gold);
  color: var(--color-gold);
  font-size: 2.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.booking-success-state h2 {
  font-size: 2.5rem;
}

.booking-success-state p {
  font-size: 1rem;
  color: rgba(240, 235, 225, 0.6);
  max-width: 400px;
  line-height: 1.7;
}

/* ==========================================================================
   LIGHTBOX SYSTEM STYLING
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(12, 12, 12, 0.98);
  z-index: 999999;
  display: none;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lightbox-close {
  position: absolute;
  top: 2.5rem;
  right: 3rem;
  background: transparent;
  border: none;
  color: var(--color-cream);
  font-size: 3rem;
  font-weight: 300;
  transition: var(--transition-fast);
  outline: none;
}

.lightbox-close:hover {
  color: var(--color-gold);
  transform: rotate(90deg);
}

.lightbox-content {
  max-width: 90%;
  max-height: 80%;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.9);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-caption {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  color: var(--color-gold);
}

/* ==========================================================================
   MOBILE RESPONSIVENESS & GRACEFUL DEGRADATION
   ========================================================================== */
@media (max-width: 1100px) {
  .about-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-left {
    max-width: 800px;
    margin: 0 auto;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 5rem;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  body, input, textarea, select, button {
    cursor: auto !important; /* Fallback to default cursor on mobile */
  }
  #cursor-dot, #cursor-ring {
    display: none !important;
  }
  
  .main-nav {
    padding: 1.5rem 2rem;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-toggle {
    display: flex;
    z-index: 1001;
  }
  
  .nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  
  .nav-toggle.active .bar:nth-child(2) {
    transform: translateY(-2px) rotate(-45deg);
  }
  
  /* Hero mobile overrides */
  .hero-section {
    height: auto;
    min-height: 100vh;
    padding: 8rem 2rem 6.5rem;
    justify-content: flex-end;
  }

  .hero-accent-line {
    display: none;
  }

  .hero-top-meta {
    top: 4.5rem;
    left: 2rem;
    right: 2rem;
  }

  .hero-meta-count {
    display: none;
  }

  .hero-property-card {
    display: block;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 100%;
    max-width: 320px;
    margin-top: 3.5rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  }
  .hero-property-card:hover {
    transform: translateY(-5px);
  }
  body.light-mode .hero-property-card {
    box-shadow: 0 10px 30px rgba(28, 24, 20, 0.1);
  }

  .hero-vertical-label {
    display: block;
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 6.5px;
    letter-spacing: 0.25em;
    opacity: 0.4;
  }

  .hero-eyebrow-text {
    font-size: 8px;
    letter-spacing: 0.18em;
  }

  .hero-title-line {
    font-size: 20vw;
  }

  .hero-title-line--ghost {
    padding-left: 0;
  }

  .hero-tagline {
    font-size: 0.85rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .scroll-indicator {
    bottom: 7.5rem;
    right: 1.5rem;
  }

  .hero-bottom-bar {
    padding: 1.2rem 2rem;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .hero-bottom-sep {
    display: none;
  }

  .hero-bottom-stats {
    font-size: 9px;
    gap: 0.8rem;
  }
  
  .about-heading, .properties-heading, .services-heading, .showcase-heading, .team-heading, .cta-heading {
    font-size: 2.8rem;
  }
  
  .about-section, .services-section, .showcase-section, .testimonials-section, .team-section, .cta-section {
    padding: 6rem 2rem;
  }
  
  .year-badge {
    width: 100px;
    height: 100px;
    bottom: -1rem;
    right: -1rem;
  }
  
  .year-badge-text {
    font-size: 0.85rem;
  }
  
  /* Keep horizontal scroll on mobile */
  .properties-pin-wrap {
    height: 100vh;
    flex-direction: row;
    padding: 0 2rem;
    align-items: center;
  }
  
  .properties-intro {
    width: 280px;
    margin-right: 3rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .horizontal-scroll-container {
    height: 55vh;
    flex-direction: row;
    width: auto;
    gap: 3rem;
    align-items: center;
  }
  
  .property-card {
    width: 320px;
    height: 100%;
    flex-shrink: 0;
  }
  
  .stats-container {
    flex-direction: column;
    gap: 3rem;
    padding: 0 2rem;
  }
  
  .stat-divider {
    width: 60px;
    height: 1px;
    margin: 0 auto;
  }
  
  .masonry-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .item-vertical, .item-horizontal, .item-small, .item-large, .item-medium {
    grid-column: span 1;
    aspect-ratio: 1.2;
  }
  
  .testimonial-text {
    font-size: 1.4rem;
  }
  
  .cta-heading {
    font-size: 3.2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .detail-hero {
    aspect-ratio: 1.3;
  }
  
  .detail-title {
    font-size: 3rem;
    left: 2rem;
    bottom: 2rem;
  }
  
  .detail-specs {
    grid-template-columns: 1fr;
  }
  
  .booking-title {
    font-size: 3.2rem;
  }
}

/* ==========================================================================
   THEME TRANSITIONS — smooth color shift on toggle
   ========================================================================== */
body,
html,
.main-nav,
.hero-section,
.hero-bottom-bar,
.hero-property-card,
.marquee-section,
.about-section,
.properties-section,
.properties-pin-wrap,
.services-section,
.service-column,
.stats-bar-section,
.showcase-section,
.testimonials-section,
.team-section,
.cta-section,
.main-footer,
.preloader-bar-bg,
.property-card-inner,
.property-card-overlay,
.inquiry-card,
.booking-success-state,
.lightbox,
.detail-container,
.booking-container,
#preloader,
#cursor-dot,
#cursor-ring {
  transition: var(--transition-theme);
}

/* ==========================================================================
   LIGHT MODE — full element-level overrides
   ========================================================================== */

/* Scrollbar */
body.light-mode ::-webkit-scrollbar-track { background: var(--color-bg); }
body.light-mode ::-webkit-scrollbar-thumb { background: var(--color-bronze); }

/* Preloader */
body.light-mode #preloader { background-color: var(--color-bg); }
body.light-mode .preloader-bar-bg { background-color: rgba(28, 24, 20, 0.1); }

/* Cursor — dark on light background for clear visibility */
body.light-mode #cursor-dot  { background-color: #1C1814; }
body.light-mode #cursor-ring { border-color: rgba(28, 24, 20, 0.55); }
body.light-mode #cursor-ring.hovered {
  background-color: rgba(28, 24, 20, 0.07);
  border-color: rgba(28, 24, 20, 0.7);
}

/* Grain overlay — dark SVG noise creates a vignette film on light backgrounds */
body.light-mode .grain-overlay {
  opacity: 0;
}

/* Hero overlay — near-opaque to wash out dark video and eliminate vignette */
body.light-mode .hero-video-overlay {
  background: rgba(247, 245, 238, 0.96);
}

/* Hero title ghost stroke */
body.light-mode .hero-title-line { color: var(--color-cream); }
body.light-mode .hero-title-line--ghost {
  color: transparent;
  -webkit-text-stroke: 1px rgba(28, 24, 20, 0.3);
}

/* Hero tagline + muted text */
body.light-mode .hero-tagline        { color: rgba(28, 24, 20, 0.42); }
body.light-mode .hero-meta-count     { color: rgba(28, 24, 20, 0.38); }
body.light-mode .hero-award-badge    { color: rgba(28, 24, 20, 0.48); }
body.light-mode .hero-bottom-stats   { color: rgba(28, 24, 20, 0.48); }
body.light-mode .hero-vertical-label { color: rgba(138, 104, 37, 0.28); }
body.light-mode .hero-dot            { color: var(--color-gold); }

/* Hero bottom bar */
body.light-mode .hero-bottom-bar {
  background: rgba(247, 245, 238, 0.82);
  border-top-color: rgba(138, 104, 37, 0.14);
}

/* Hero property card */
body.light-mode .hero-property-card {
  background: rgba(240, 236, 226, 0.88);
  border-color: rgba(138, 104, 37, 0.22);
}
body.light-mode .hero-prop-location { color: rgba(28, 24, 20, 0.44); }
body.light-mode .hero-prop-cta      {
  color: rgba(28, 24, 20, 0.46);
  border-top-color: rgba(138, 104, 37, 0.12);
}
body.light-mode .hero-property-card:hover .hero-prop-cta { color: var(--color-gold); }

/* Marquee */
body.light-mode .marquee-section {
  background-color: var(--color-bg);
  border-color: var(--color-border);
}

/* Body / muted text */
body.light-mode .body-text       { color: rgba(28, 24, 20, 0.62); }
body.light-mode .properties-desc { color: rgba(28, 24, 20, 0.58); }
body.light-mode .showcase-desc   { color: rgba(28, 24, 20, 0.58); }
body.light-mode .service-desc    { color: rgba(28, 24, 20, 0.58); }
body.light-mode .detail-desc     { color: rgba(28, 24, 20, 0.65); }
body.light-mode .footer-tagline  { color: rgba(28, 24, 20, 0.46); }
body.light-mode .client-title    { color: rgba(28, 24, 20, 0.44); }
body.light-mode .copyright       { color: rgba(28, 24, 20, 0.38); }
body.light-mode .footer-col li   { color: rgba(28, 24, 20, 0.56); }
body.light-mode .property-location { color: rgba(28, 24, 20, 0.52); }

/* Property cards — explicit sand-tone overlay, no CSS variable interpolation in rgba() */
body.light-mode .property-card-overlay {
  background: linear-gradient(to bottom, transparent 0%, rgba(237, 232, 219, 0.90) 100%);
}
body.light-mode .property-card:hover .property-card-overlay {
  background: linear-gradient(to bottom, transparent 0%, rgba(237, 232, 219, 0.97) 100%);
}
body.light-mode .property-price {
  background-color: rgba(237, 232, 219, 0.78);
  color: var(--color-gold);
}
body.light-mode .property-card-inner {
  border-color: rgba(138, 104, 37, 0.12);
}
body.light-mode .view-property-btn {
  background-color: var(--color-gold);
  color: var(--color-bg);
}

/* Team cards */
body.light-mode .team-img-wrap { border-color: var(--color-border); }

/* Inquiry + booking */
body.light-mode .inquiry-card {
  background-color: var(--color-surface);
  border-color: var(--color-border);
}
body.light-mode .back-to-home-btn {
  border-color: rgba(28, 24, 20, 0.2);
  color: var(--color-cream);
}
body.light-mode .back-to-home-btn:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* Form fields */
body.light-mode .form-group label { color: rgba(28, 24, 20, 0.5); }
body.light-mode .form-group input,
body.light-mode .form-group select,
body.light-mode .form-group textarea {
  background-color: rgba(220, 215, 204, 0.45);
  border-color: rgba(138, 104, 37, 0.18);
  color: var(--color-cream);
}
body.light-mode .form-group input:focus,
body.light-mode .form-group select:focus,
body.light-mode .form-group textarea:focus {
  border-color: var(--color-gold);
  background-color: var(--color-surface);
}
body.light-mode .form-group select option {
  background-color: var(--color-surface);
  color: var(--color-cream);
}
body.light-mode .booking-success-state {
  background-color: var(--color-surface);
  border-color: var(--color-border);
}

/* Lightbox */
body.light-mode .lightbox { background-color: rgba(247, 245, 238, 0.97); }
body.light-mode .lightbox-close { color: var(--color-cream); }
body.light-mode .lightbox-close:hover { color: var(--color-gold); }

/* Nav arrows */
body.light-mode .nav-arrow {
  border-color: var(--color-border);
  color: var(--color-cream);
}
body.light-mode .nav-arrow:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Nav CTAs */
body.light-mode .nav-cta-btn:hover { background: var(--color-gold); color: var(--color-bg); }
body.light-mode .btn-filled { background-color: var(--color-gold); color: var(--color-bg); }
body.light-mode .btn-filled:hover { background-color: transparent; color: var(--color-gold); }
body.light-mode .btn-outline { color: var(--color-cream); border-color: rgba(28, 24, 20, 0.28); }
body.light-mode .btn-outline:hover { border-color: var(--color-gold); color: var(--color-gold); }

/* CTA heading gold gradient */
body.light-mode .gold-gradient {
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-bronze) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Footer glow line */
body.light-mode .footer-glow {
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

/* Property detail view — hardcoded dark values that need flipping */
body.light-mode .detail-hero-overlay {
  background: linear-gradient(to bottom, transparent 0%, rgba(237, 232, 219, 0.82) 100%);
}
body.light-mode .detail-title { color: var(--color-cream); }
body.light-mode .detail-label { color: rgba(28, 24, 20, 0.45); }
body.light-mode .detail-specs { border-top-color: var(--color-border); }
body.light-mode .detail-specs li { color: rgba(28, 24, 20, 0.65); }
body.light-mode .inquiry-card p { color: rgba(28, 24, 20, 0.58); }

/* Booking (consultation) view */
body.light-mode .booking-subtitle { color: var(--color-gold); }
body.light-mode .contact-item .label { color: var(--color-gold); }
body.light-mode .contact-item .val   { color: var(--color-cream); }
body.light-mode .success-icon {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

/* Stats section — muted text */
body.light-mode .stat-label { color: rgba(28, 24, 20, 0.52); }

/* Preloader bar track */
body.light-mode .preloader-bar-bg { background-color: rgba(28, 24, 20, 0.1); }

/* html element background — CSS variables on body don't cascade UP to html,
   so html{background-color:var(--color-bg)} stays dark unless we also set html */
html.light-mode {
  background-color: #F7F5EE;
}

/* Sub-view containers (property detail + booking) have no section background,
   so they fall through to html. Give them an explicit light background. */
html.light-mode #view-property-details,
html.light-mode #view-booking {
  background-color: #F7F5EE;
  min-height: 100vh;
}

/* ==========================================================================
   THEME TOGGLE BUTTON
   ========================================================================== */
#theme-toggle {
  position: fixed;
  bottom: 2.8rem;
  right: 2.8rem;
  z-index: 100001;
  cursor: none;
}

.theme-track {
  position: relative;
  width: 72px;
  height: 34px;
  border-radius: 17px;
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  transition: background-color 0.55s ease, border-color 0.45s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

#theme-toggle:hover .theme-track {
  border-color: var(--color-gold);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

body.light-mode .theme-track {
  box-shadow: 0 2px 12px rgba(28, 24, 20, 0.12);
}

body.light-mode #theme-toggle:hover .theme-track {
  box-shadow: 0 4px 18px rgba(28, 24, 20, 0.18);
}

/* Sliding thumb */
.theme-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-bronze) 100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), background 0.55s ease;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

body.light-mode .theme-thumb {
  transform: translateX(38px);
  background: linear-gradient(135deg, #C9A96E 0%, #8A6825 100%);
}

/* Icons */
.theme-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--color-gold);
  transition: opacity 0.35s ease, transform 0.4s ease;
  position: relative;
  z-index: 1;
}

.theme-icon--moon {
  opacity: 1;
  transform: scale(1);
}

.theme-icon--sun {
  opacity: 0.28;
  transform: scale(0.8);
}

body.light-mode .theme-icon--moon {
  opacity: 0.28;
  transform: scale(0.8);
}

body.light-mode .theme-icon--sun {
  opacity: 1;
  transform: scale(1);
}
