@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================================================
   DESIGN SYSTEM — CASA PALMS REALTY
   Luxury dark-mode palette inspired by The Agency, Sotheby's, Compass
   ================================================================ */

:root {
  /* Dark luxury palette */
  --bg-deep: #0a0a0a;
  --bg-primary: #111111;
  --bg-elevated: #1a1a1a;
  --bg-card: #161616;
  --bg-glass: rgba(22, 22, 22, 0.65);

  /* Warm luxury gold */
  --gold: #c9a96e;
  --gold-light: #dfc090;
  --gold-dark: #a07d3f;
  --gold-glow: rgba(201, 169, 110, 0.15);
  --gold-glow-strong: rgba(201, 169, 110, 0.3);

  /* Text */
  --text-white: #f5f0eb;
  --text-muted: #9a9590;
  --text-dim: #6b6560;

  /* Accents */
  --border-subtle: rgba(201, 169, 110, 0.12);
  --border-medium: rgba(201, 169, 110, 0.25);
  --divider: rgba(255, 255, 255, 0.06);

  /* Shadows */
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.2);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  /* Spacing & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-normal: 0.4s var(--ease-out);
  --transition-slow: 0.7s var(--ease-out);
}

/* ================================================================
   LIGHT MODE THEME
   ================================================================ */

[data-theme="light"] {
  --bg-deep: #f8f6f3;
  --bg-primary: #ffffff;
  --bg-elevated: #f0ede8;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.72);

  --gold: #9a7b3e;
  --gold-light: #b8944e;
  --gold-dark: #7a5f2a;
  --gold-glow: rgba(154, 123, 62, 0.1);
  --gold-glow-strong: rgba(154, 123, 62, 0.2);

  --text-white: #1a1612;
  --text-muted: #5c564e;
  --text-dim: #8a847c;

  --border-subtle: rgba(154, 123, 62, 0.15);
  --border-medium: rgba(154, 123, 62, 0.3);
  --divider: rgba(0, 0, 0, 0.08);

  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.12);
  --shadow-gold: 0 4px 20px rgba(154, 123, 62, 0.15);
}

/* Light mode specific overrides */
[data-theme="light"] header {
  border-bottom-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] header.scrolled {
  background: rgba(255, 255, 255, 0.88);
}

[data-theme="light"] .hero-bg::after {
  background: linear-gradient(
    to top,
    rgba(248, 246, 243, 1) 0%,
    rgba(10, 10, 10, 0.55) 30%,
    rgba(10, 10, 10, 0.25) 60%,
    rgba(10, 10, 10, 0.35) 100%
  );
}

[data-theme="light"] .search-container {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 40px rgba(0,0,0,0.1);
}

[data-theme="light"] .property-card {
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

[data-theme="light"] .property-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

[data-theme="light"] .sim-payload {
  background: #1a1612;
}

[data-theme="light"] .modal-card {
  background: var(--bg-primary);
}

[data-theme="light"] .lang-switcher {
  background: rgba(0,0,0,0.04);
  border-color: rgba(0,0,0,0.1);
}

[data-theme="light"] .lang-btn {
  color: var(--text-dim);
}

[data-theme="light"] .lang-btn:hover:not(.active) {
  color: var(--text-white);
  background: rgba(0,0,0,0.06);
}

[data-theme="light"] .lifestyle-band::after {
  background: rgba(248, 246, 243, 0.55);
}

[data-theme="light"] .whatsapp-fab {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
}

[data-theme="light"] .footer-social a {
  border-color: rgba(0,0,0,0.12);
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
  background: rgba(0,0,0,0.03);
  border-color: rgba(0,0,0,0.1);
  color: var(--text-white);
}

/* ================================================================
   THEME TOGGLE BUTTON
   ================================================================ */

.theme-toggle {
  background: none;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-glow);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  transition: transform 0.4s var(--ease-spring);
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ================================================================
   RESET & BASE
   ================================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

::selection {
  background-color: var(--gold);
  color: var(--bg-deep);
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ================================================================
   SCROLL-REVEAL ANIMATION SYSTEM
   ================================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ================================================================
   HEADER — Frosted Glass Navigation
   ================================================================ */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 3rem;
  transition: all 0.5s var(--ease-out);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
}

header.scrolled {
  padding: 0.7rem 3rem;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
}

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

/* Logo */
.logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-item a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item a:hover,
.nav-item a.active {
  color: var(--gold);
}

.nav-item a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: all var(--transition-normal);
  transform: translateX(-50%);
}

.nav-item a:hover::after,
.nav-item a.active::after {
  width: 100%;
}

/* Controls (Language + CTA) */
.controls {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.lang-switcher {
  display: flex;
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  overflow: hidden;
  padding: 3px;
  background: rgba(255,255,255,0.06);
}

.lang-btn {
  background: none;
  border: none;
  padding: 0.5rem 1.1rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 100px;
  transition: all var(--transition-fast);
  color: var(--text-muted);
  letter-spacing: 0.12em;
  font-family: var(--font-body);
}

.lang-btn:hover:not(.active) {
  color: var(--text-white);
  background: rgba(255,255,255,0.08);
}

.lang-btn.active {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: var(--shadow-gold);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--gold);
  padding: 0.65rem 1.6rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: 1px solid var(--gold);
  cursor: pointer;
  font-family: var(--font-body);
}

.cta-btn:hover {
  background: var(--gold);
  color: var(--bg-deep);
  box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

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

.cta-btn-filled:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* ================================================================
   HERO — Full-Viewport Cinematic
   ================================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
}

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

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1.2s ease;
}

.hero-bg video.fading {
  opacity: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.55) 35%,
    rgba(10, 10, 10, 0.25) 65%,
    rgba(10, 10, 10, 0.2) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 3rem 6rem 3rem;
}

.hero-tagline {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  font-size: 0.8rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hero-tagline::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--gold);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  max-width: 700px;
  color: var(--text-white);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}

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

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollPulse 2s ease-in-out infinite;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(5px); }
}

/* ================================================================
   SEARCH SECTION — Floating Glass Bar
   ================================================================ */

.search-section {
  position: relative;
  z-index: 10;
  margin-top: -5rem;
  padding: 0 3rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.search-container {
  background: var(--bg-glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-elevated);
}

.search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--divider);
  padding-bottom: 1rem;
}

.tab-btn {
  background: none;
  border: none;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text-dim);
  cursor: pointer;
  padding: 0.4rem 1.5rem;
  transition: all var(--transition-fast);
  position: relative;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
}

.tab-btn.active {
  color: var(--gold);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1.1rem;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
}

.search-fields {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field-group label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.field-group select,
.field-group input[type="text"] {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.field-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239a9590' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.field-group select option {
  background: var(--bg-elevated);
  color: var(--text-white);
}

.field-group select:focus,
.field-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

.search-submit-btn {
  background: var(--gold);
  color: var(--bg-deep);
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  font-family: var(--font-body);
}

.search-submit-btn:hover {
  background: var(--gold-light);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}

/* ================================================================
   STATS BAR — Animated Counters
   ================================================================ */

.stats-section {
  padding: 5rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  padding: 3rem 0;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: var(--divider);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 500;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 500;
}

/* ================================================================
   FEATURED LISTINGS — Premium Card Grid
   ================================================================ */

.listings-section {
  padding: 6rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
}

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

.section-eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-weight: 500;
  font-size: 0.75rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--gold);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.2;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-top: 0.8rem;
  font-weight: 300;
  max-width: 500px;
}

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

/* Property Card */
.property-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: all 0.5s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card);
  border-color: var(--gold-dark);
}

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

.card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

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

/* Image overlay gradient */
.card-img-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  pointer-events: none;
}

.badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  background: var(--gold);
  color: var(--bg-deep);
  padding: 0.3rem 0.9rem;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  z-index: 2;
}

.card-price {
  position: absolute;
  bottom: 1.2rem;
  right: 1.2rem;
  color: var(--text-white);
  font-size: 1.4rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  font-family: var(--font-display);
}

.card-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text-white);
}

.card-address {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.card-details {
  display: flex;
  gap: 1.5rem;
  border-top: 1px solid var(--divider);
  padding-top: 1.2rem;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-detail-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-detail-icon {
  font-size: 1rem;
}

/* ================================================================
   LIFESTYLE PARALLAX BAND
   ================================================================ */

.lifestyle-band {
  position: relative;
  height: 500px;
  overflow: hidden;
  margin: 2rem 0;
}

.lifestyle-band img {
  width: 100%;
  height: 140%;
  object-fit: cover;
  position: absolute;
  top: -20%;
}

.lifestyle-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
}

.lifestyle-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.lifestyle-content h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  color: var(--text-white);
  margin-bottom: 1rem;
  font-style: italic;
}

.lifestyle-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 550px;
  font-weight: 300;
  margin-bottom: 2rem;
}

/* ================================================================
   VALUATION SECTION
   ================================================================ */

.valuation-section {
  padding: 8rem 3rem;
  background: var(--bg-primary);
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
}

.valuation-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 5rem;
  align-items: center;
}

.valuation-info .section-eyebrow {
  margin-bottom: 1.2rem;
}

.valuation-info h2 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--text-white);
}

.valuation-info p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}

.valuation-info .val-badge-line {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.valuation-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 2.8rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

.form-group input {
  width: 100%;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.form-group input::placeholder {
  color: var(--text-dim);
}

.form-group input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold-glow);
}

/* ================================================================
   BOLDTRAIL CRM SIMULATOR
   ================================================================ */

.boldtrail-sim {
  padding: 6rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sim-container {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  color: var(--text-white);
  padding: 3rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  box-shadow: var(--shadow-card);
}

.sim-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-weight: 500;
}

.sim-info p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
  line-height: 1.7;
}

.sim-flow {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.flow-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.flow-num {
  background: var(--gold);
  color: var(--bg-deep);
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
}

.flow-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text-white);
}

.flow-text p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0;
}

.sim-payload {
  background: #050505;
  border-radius: var(--radius-sm);
  padding: 1.8rem;
  border: 1px solid rgba(201, 169, 110, 0.08);
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: #4af626;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.6;
  position: relative;
}

.sim-payload::before {
  content: '● ● ●';
  display: block;
  color: var(--text-dim);
  font-size: 0.6rem;
  margin-bottom: 1rem;
  letter-spacing: 4px;
}

/* ================================================================
   FOOTER
   ================================================================ */

footer {
  background: var(--bg-primary);
  color: var(--text-muted);
  padding: 5rem 3rem 2rem 3rem;
  border-top: 1px solid var(--divider);
}

.footer-content {
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  color: var(--text-white);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.footer-brand h3 span {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
}

.footer-brand p {
  font-size: 0.9rem;
  font-weight: 300;
  line-height: 1.7;
}

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

.footer-links ul {
  list-style: none;
}

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

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

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

.footer-contact-line {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid var(--divider);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  max-width: 1440px;
  margin: 0 auto;
  color: var(--text-dim);
}

/* ================================================================
   MODAL — Premium Lead Capture Pop-in
   ================================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 480px;
  width: 92%;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--border-subtle);
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.5s var(--ease-spring);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dim);
  transition: color var(--transition-fast);
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--gold);
}

.modal-badge {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.modal-card h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--text-white);
}

.modal-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.6;
}

/* ================================================================
   DROPDOWN MENU
   ================================================================ */

.nav-item.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-elevated);
  border-radius: var(--radius-md);
  list-style: none;
  min-width: 260px;
  padding: 1rem 0;
  margin-top: 0.8rem;
  z-index: 1000;
  animation: menuFadeIn 0.25s var(--ease-out);
}

@keyframes menuFadeIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  padding: 0.3rem 1.5rem;
}

.dropdown-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 400;
  transition: color var(--transition-fast);
  display: block;
  padding: 0.4rem 0;
  text-transform: none;
  letter-spacing: 0;
}

.dropdown-menu a:hover {
  color: var(--gold);
}

.dropdown-search {
  padding: 0.3rem 1.5rem 0.8rem 1.5rem;
}

.dropdown-search input {
  width: 100%;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.82rem;
  outline: none;
  font-family: var(--font-body);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-white);
  transition: border-color var(--transition-fast);
}

.dropdown-search input::placeholder {
  color: var(--text-dim);
}

.dropdown-search input:focus {
  border-color: var(--gold);
}

.dropdown-divider {
  border: 0;
  border-top: 1px solid var(--divider);
  margin: 0.5rem 0;
}

/* ================================================================
   HAMBURGER — Mobile Menu
   ================================================================ */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}

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

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

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

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

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 1024px) {
  header { padding: 1rem 2rem; }
  header.scrolled { padding: 0.8rem 2rem; }
  .hero-content { padding: 0 2rem 5rem 2rem; }
  .search-section { padding: 0 2rem; }
  .listings-section { padding: 5rem 2rem; }
  .valuation-section { padding: 5rem 2rem; }
  .boldtrail-sim { padding: 5rem 2rem; }
  footer { padding: 4rem 2rem 2rem 2rem; }

  .search-fields {
    grid-template-columns: 1fr 1fr;
  }
  .search-submit-btn {
    grid-column: span 2;
  }
  .listings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .stat-item:nth-child(2)::after { display: none; }
  .valuation-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .sim-container {
    grid-template-columns: 1fr;
  }
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-deep);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .nav-item a {
    font-size: 1.2rem;
    letter-spacing: 0.15em;
  }

  .nav-item.dropdown:hover .dropdown-menu {
    display: none;
  }

  .hero h1 {
    font-size: 2.4rem;
  }

  .search-fields {
    grid-template-columns: 1fr;
  }
  .search-submit-btn {
    grid-column: span 1;
  }

  .listings-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .section-header h2 {
    font-size: 2.2rem;
  }

  .lifestyle-band { height: 350px; }

  .scroll-indicator { display: none; }
}

@media (max-width: 480px) {
  header { padding: 1rem 1.2rem; }
  .hero-content { padding: 0 1.2rem 4rem 1.2rem; }
  .search-section { padding: 0 1.2rem; margin-top: -3rem; }
  .listings-section, .valuation-section, .boldtrail-sim { padding: 4rem 1.2rem; }
  .stats-section { padding: 3rem 1.2rem; }
  footer { padding: 3rem 1.2rem 1.5rem 1.2rem; }

  .hero h1 { font-size: 2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .valuation-info h2 { font-size: 2rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
}

/* ================================================================
   iOS / ANDROID CROSS-PLATFORM FIXES
   ================================================================ */

/* Safe area insets for iPhone notch & gesture bar */
header {
  padding-left: max(1.5rem, env(safe-area-inset-left));
  padding-right: max(1.5rem, env(safe-area-inset-right));
}

footer {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.whatsapp-fab {
  bottom: max(2rem, calc(env(safe-area-inset-bottom) + 0.5rem));
  right: max(2rem, env(safe-area-inset-right));
}

/* Minimum touch targets (44px) for iOS/Android accessibility */
button, .cta-btn, .lang-btn, .theme-toggle, .tab-btn, .search-submit-btn,
.hamburger, a[href^="tel"], a[href^="mailto"] {
  min-height: 44px;
  min-width: 44px;
}

/* iOS momentum scrolling */
.nav-menu.mobile-open {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Prevent iOS text zoom on landscape */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .hero h1 { font-size: 1.8rem; }
  .hero { min-height: 80vh; }
}

/* Fix iOS video fullscreen & rendering */
video {
  -webkit-playsinline: true;
  object-fit: cover;
}

/* Prevent tap highlight on Android Chrome */
a, button, input, select {
  -webkit-tap-highlight-color: transparent;
}

/* Smooth scroll containers on iOS */
select {
  -webkit-appearance: none;
  appearance: none;
}

/* Fix 300ms tap delay on older mobile browsers */
a, button {
  touch-action: manipulation;
}

/* High-DPI screen optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .property-card img,
  .hero-bg video,
  .lifestyle-band img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* ================================================================
   SVG ICONS — Property Cards & Footer
   ================================================================ */

.card-icon {
  width: 18px;
  height: 18px;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-icon {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-line {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer-contact-line a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

/* Social Icons */
.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
}

.social-icon {
  width: 18px;
  height: 18px;
}

/* ================================================================
   WHATSAPP FLOATING BUTTON
   ================================================================ */

.whatsapp-fab {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}

@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
  .whatsapp-fab {
    bottom: 1.2rem;
    right: 1.2rem;
  }
}

/* ================================================================
   BLOG & VIDEO SECTION — Premium Content Layout
   ================================================================ */

.content-section {
  padding: 8rem 3rem;
  max-width: 1440px;
  margin: 0 auto;
}

.content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
  align-items: stretch;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-elevated);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  background: #000;
}

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

.video-info {
  padding: 2.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.video-info h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-white);
  margin-bottom: 1rem;
  font-weight: 500;
  line-height: 1.35;
}

.video-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  justify-content: space-between;
}

.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  cursor: pointer;
}

.blog-card:hover {
  transform: translateX(6px);
  border-color: var(--gold);
  box-shadow: var(--shadow-elevated);
}

.blog-card-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--border-medium);
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gold-glow);
}

.blog-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--text-white);
  font-weight: 500;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.blog-card-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  transition: transform var(--transition-fast), color var(--transition-fast);
  margin-top: 0.4rem;
  display: flex;
  align-items: center;
}

.blog-card:hover .blog-card-cta {
  color: var(--gold-light);
  transform: translateX(4px);
}

.social-follow-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2.2rem 3.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  margin-top: 1.5rem;
}

.social-follow-bar p {
  font-size: 1.05rem;
  color: var(--text-white);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.social-follow-links {
  display: flex;
  gap: 1.2rem;
}

.social-follow-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.social-follow-links a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: var(--gold-glow);
  transform: translateY(-3px);
}

.social-follow-links svg {
  width: 20px;
  height: 20px;
}

/* Light mode specifics for content section */
[data-theme="light"] .video-card,
[data-theme="light"] .blog-card {
  box-shadow: 0 8px 30px rgba(0,0,0,0.03);
}

[data-theme="light"] .video-card:hover,
[data-theme="light"] .blog-card:hover {
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
}

/* Responsive queries for content section */
@media (max-width: 1024px) {
  .content-section {
    padding: 6rem 2rem;
  }
  .content-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .blog-cards-stack {
    gap: 1.5rem;
  }
  .social-follow-bar {
    padding: 2rem 2.5rem;
  }
}

@media (max-width: 768px) {
  .social-follow-bar {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .content-section {
    padding: 5rem 1.2rem;
  }
  .video-info {
    padding: 2rem 1.5rem;
  }
  .blog-card {
    padding: 1.5rem;
  }
}

