/* ============================================================================
   TruProperties — World-Class Architectural Luxury Real Estate
   Design: Haute Horlogerie & Architectural Digest Standard
   Palette: Velvet Obsidian (#070E17) · Champagne Gold (#D4AF37) · Crisp Alabaster (#FAF9F6) · Emerald Glow (#14B8A6)
   ========================================================================== */

:root {
  --ink: #FAF9F6;
  --ink-card: #FFFFFF;
  --ink-muted: #F2EFE9;
  --obsidian: #070E17;
  --obsidian-deep: #04080D;
  --obsidian-surface: #0C1726;
  --obsidian-card: #112033;
  --obsidian-border: rgba(255, 255, 255, 0.08);

  --gold: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-dark: #AA820A;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --gold-border: rgba(212, 175, 55, 0.35);

  --teal: #0E9D98;
  --teal-bright: #14B8A6;
  --teal-neon: #2DD4BF;
  --teal-glow: rgba(20, 184, 166, 0.30);

  --text-primary: #070E17;
  --text-muted: #566479;
  --text-faint: rgba(86, 100, 121, 0.6);
  --text-gold: #C5A030;

  --border: rgba(7, 14, 23, 0.10);
  --border-subtle: rgba(7, 14, 23, 0.05);
  --border-gold: rgba(212, 175, 55, 0.30);

  --shadow-sm: 0 2px 10px rgba(7, 14, 23, 0.04);
  --shadow-md: 0 8px 30px rgba(7, 14, 23, 0.07);
  --shadow-lg: 0 24px 70px rgba(7, 14, 23, 0.12);
  --shadow-luxury: 0 30px 90px rgba(0, 0, 0, 0.50);

  --font-serif: 'Bodoni Moda', Georgia, serif;
  --font-sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 9999px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  background-color: var(--ink);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

/* ── Container ─────────────────────────────────────────────────────────── */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) {
  .container { padding: 0 56px; }
}

/* ── Floating Capsule Header ───────────────────────────────────────────── */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 20px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@media (min-width: 768px) {
  .nav-wrapper { padding: 20px 24px; }
}

.navbar {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-gold);
  border-radius: var(--r-pill);
  box-shadow: 0 10px 40px rgba(7, 14, 23, 0.08);
}
@media (min-width: 768px) {
  .navbar { padding: 14px 32px; }
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--obsidian);
}
.nav-brand em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-dark);
}
.nav-brand-crest {
  color: var(--gold);
  font-size: 14px;
  transform: translateY(-1px);
}

.nav-links {
  display: none;
  gap: 32px;
  align-items: center;
}
@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-link {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--obsidian);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  position: relative;
  padding: 6px 0;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-dark);
}
.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */
.btn-luxury {
  background: linear-gradient(135deg, #0A1420 0%, #15253A 100%);
  color: #FFFFFF;
  border: 1px solid var(--gold-border);
  padding: 14px 28px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(7, 14, 23, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
}
.btn-luxury:hover {
  background: var(--gold);
  color: var(--obsidian);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-secondary {
  background: rgba(7, 14, 23, 0.05);
  color: var(--obsidian);
  border: 1px solid var(--border);
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-secondary:hover {
  background: var(--obsidian);
  color: #FFFFFF;
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  border: none;
  padding: 14px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  border-radius: var(--r-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.28);
  text-decoration: none;
  box-sizing: border-box;
}
.btn-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37, 211, 102, 0.4);
}

/* ── Hero Section ──────────────────────────────────────────────────────── */
.hero-section {
  padding: 110px 16px 0;
}
@media (min-width: 768px) {
  .hero-section { padding: 130px 24px 0; }
}

.hero-banner {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: flex-end;
  padding: 48px 24px;
  border-radius: 32px;
  overflow: hidden;
  color: #FFFFFF;
  box-shadow: var(--shadow-luxury);
}
@media (min-width: 768px) {
  .hero-banner { padding: 80px 64px; border-radius: 36px; }
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.03);
  transition: transform 16s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-banner:hover .hero-bg-img {
  transform: scale(1.08);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,14,23,0.2) 0%, rgba(7,14,23,0.58) 45%, rgba(4,8,13,0.96) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 28px;
  font-family: var(--font-mono);
  flex-wrap: wrap;
}
.hero-eyebrow-line {
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(48px, 8.5vw, 120px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -3px;
  color: #FFFFFF;
  margin-bottom: 28px;
}
.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--ink);
}

.hero-lead-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(250, 249, 246, 0.9);
  max-width: 580px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}
.hero-stat-value {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 500;
  color: #FFFFFF;
  line-height: 1;
}
.hero-stat-value span {
  color: var(--gold);
}
.hero-stat-label {
  font-size: 10.5px;
  color: rgba(250, 249, 246, 0.65);
  letter-spacing: 2.2px;
  text-transform: uppercase;
  margin-top: 8px;
  font-family: var(--font-mono);
}

/* ── Interactive Search & Filter Widget ─────────────────────────────────── */
.search-widget {
  position: relative;
  z-index: 10;
  margin: -50px 16px 0;
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
@media (min-width: 768px) {
  .search-widget { margin: -64px 48px 0; }
}

.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  background: rgba(250, 249, 246, 0.85);
}
.search-tab {
  flex: 1;
  padding: 18px;
  border: none;
  background: none;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s ease;
  border-bottom: 2px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.search-tab.active {
  color: var(--obsidian);
  background: #FFFFFF;
  border-bottom: 2px solid var(--gold);
}

.search-fields {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 768px) {
  .search-fields {
    grid-template-columns: 1.4fr 1fr 1fr auto;
  }
}

.search-col {
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 768px) {
  .search-col {
    border-bottom: none;
    border-right: 1px solid var(--border);
  }
}

.search-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: var(--font-mono);
}

.search-input, .search-select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--obsidian);
  outline: none;
}

.search-btn-col {
  padding: 18px 24px;
  display: flex;
  align-items: center;
}
.btn-search {
  width: 100%;
  min-height: 52px;
  background: var(--obsidian);
  color: #FFFFFF;
  border: 1px solid var(--gold-border);
  border-radius: var(--r-md);
  padding: 0 32px;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-search:hover {
  background: var(--gold);
  color: var(--obsidian);
  box-shadow: 0 6px 24px var(--gold-glow);
}

/* ── Property Cards & Grid ─────────────────────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 24px;
}
.section-tag {
  color: var(--gold-dark);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: var(--font-mono);
}
.section-title {
  font-size: clamp(34px, 4.8vw, 60px);
  font-weight: 500;
  letter-spacing: -1.5px;
}

.listings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .listings-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
}

.property-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-border);
}

.property-card-img-wrap {
  position: relative;
  height: 300px;
  overflow: hidden;
  background: #070E17;
}
.property-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.property-card:hover .property-card-img {
  transform: scale(1.08);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(7, 14, 23, 0.92);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: var(--font-mono);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.property-badge.purpose-rent {
  background: rgba(212, 175, 55, 0.95);
  color: #070E17;
}

.property-badge-vir {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(250, 249, 246, 0.95);
  backdrop-filter: blur(10px);
  color: #070E17;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--gold-border);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.vir-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 8px var(--teal-bright);
  display: inline-block;
}

.property-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-price {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--obsidian);
  margin-bottom: 6px;
  letter-spacing: -0.6px;
}

.property-title {
  font-size: 18.5px;
  font-weight: 600;
  color: var(--obsidian);
  margin-bottom: 6px;
}

.property-location {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.property-specs {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.property-specs strong {
  color: var(--obsidian);
  font-weight: 700;
}

/* ── Detail Page Layout ─────────────────────────────────────────────────── */
.detail-hero-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 100px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}
@media (min-width: 1024px) {
  .detail-grid {
    grid-template-columns: 1.7fr 1fr;
  }
}

/* ── Media Switcher Tabs & 4K Gallery ───────────────────────────────────── */
.media-nav-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.media-tab-btn {
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--obsidian);
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  outline: none;
}
.media-tab-btn:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.media-tab-btn.active {
  background: var(--obsidian);
  color: #FFFFFF;
  border-color: var(--obsidian);
  box-shadow: 0 4px 18px rgba(7, 14, 23, 0.25);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  height: 480px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: 2fr 1fr;
    height: 560px;
  }
}

.gallery-side {
  display: none;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}
@media (min-width: 768px) {
  .gallery-side { display: grid; }
}

.gallery-item {
  overflow: hidden;
  position: relative;
  background: #070E17;
  border-radius: 18px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.gallery-item:hover img {
  transform: scale(1.04);
}

.proplens-scorecard {
  position: relative;
  background: #0A1420;
  border: 1px solid var(--gold-border);
  border-radius: 28px;
  padding: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-luxury);
}
.proplens-scorecard-glow {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.22), transparent 70%);
  pointer-events: none;
}
.vir-metric-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-sm);
  padding: 16px 20px;
}

/* ── Proportional Forms & Inputs (Universal) ────────────────────────────── */
.form-group {
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
  width: 100%;
  box-sizing: border-box;
}
@media (min-width: 600px) {
  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input, .form-textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 15px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: #FFFFFF;
  color: var(--obsidian);
  outline: none;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  transition: all 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
  display: block;
}
.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.85;
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--gold);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px var(--gold-glow);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* ── Lead Card Sidebar ──────────────────────────────────────────────────── */
.lead-card {
  background: #FFFFFF;
  border: 1px solid var(--border-gold);
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: 110px;
  box-sizing: border-box;
  width: 100%;
}

/* ── Footer ────────────────────────────────────────────────────────────── */
.footer {
  background: var(--obsidian);
  color: rgba(250, 249, 246, 0.75);
  padding: 90px 24px 44px;
  margin-top: 120px;
  border-top: 1px solid var(--border-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-title {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--gold);
}
