/* ==========================================================================
   SKYLINE HAVEN REALTY - CORE STYLE SHEET (UX AUDITED & SIMPLIFIED)
   Visual Theme: Modern Coastal Luxury (Bespoke Editorial & Ultra-Clarity)
   ========================================================================== */

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

/* --- CUSTOM ROOT VARIABLES (DESIGN TOKENS) --- */
:root {
  /* Color Palette */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --color-primary: #2563EB;     /* Sapphire Ocean */
  --color-secondary: #38BDF8;   /* Sky Blue */
  --color-accent: #14B8A6;      /* Coastal Aquamarine */
  --color-luxury: #EAB308;      /* Warm Sun/Golden Sand */
  --color-text: #0F172A;        /* Slate Abyss */
  --color-muted: #64748B;       /* Coastal Fog */
  --color-light-gray: #E2E8F0;
  
  /* Shared Gradients */
  --grad-primary: linear-gradient(135deg, var(--color-primary) 0%, #1D4ED8 100%);
  --grad-coastal: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
  --grad-sunset: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 70%, var(--color-luxury) 100%);
  --grad-soft: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(248, 250, 252, 1) 100%);
  --grad-overlay: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.1) 60%, rgba(15, 23, 42, 0) 100%);
  
  /* Glassmorphism Styles */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-bg-hover: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(15, 23, 42, 0.04);
  --glass-blur: blur(12px) saturate(180%);

  /* Premium Shadows */
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 20px -5px rgba(15, 23, 42, 0.04), 0 6px 12px -6px rgba(15, 23, 42, 0.02);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.06);
  --shadow-luxury: 0 15px 30px -10px rgba(37, 99, 235, 0.08);

  /* Typography Scale */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Outfit', sans-serif;
  
  /* Layout Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3.5rem;
  --spacing-xl: 6rem;
  
  /* Accelerated Timings (Apple UX Principle) */
  --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Layout Border Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
}

/* ==========================================================================
   RESET AND BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--color-text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* --- SCROLLBAR SYSTEM --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(37, 99, 235, 0.4);
}

/* --- TYPOGRAPHY & LAYOUT BASICS --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: 1.2rem; }

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

ul, ol {
  list-style: none;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

section {
  padding: var(--spacing-lg) 0;
  position: relative;
}

/* ==========================================================================
   SHARED DESIGN PATTERNS
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}
.glass-card:hover {
  background: var(--glass-bg-hover);
  box-shadow: var(--shadow-md);
}

.gradient-text {
  background: var(--grad-coastal);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-sunset-text {
  background: var(--grad-sunset);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 0.8rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-premium.primary {
  background: var(--grad-primary);
  color: var(--bg-surface);
  box-shadow: var(--shadow-luxury);
}
.btn-premium.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px -8px rgba(37, 99, 235, 0.2);
}

.btn-premium.secondary {
  background: var(--bg-surface);
  border: 1px solid var(--color-light-gray);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}
.btn-premium.secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-premium.accent {
  background: rgba(20, 184, 166, 0.08);
  color: var(--color-accent);
  border: 1px solid rgba(20, 184, 166, 0.15);
}
.btn-premium.accent:hover {
  background: var(--color-accent);
  color: var(--bg-surface);
  transform: translateY(-2px);
}

.section-header {
  max-width: 650px;
  margin-bottom: var(--spacing-md);
  z-index: 2;
  position: relative;
}
.section-header .tagline {
  font-family: var(--font-sans);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: block;
}
.section-header h2 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.section-header p {
  color: var(--color-muted);
  font-size: 1.05rem;
}

/* ==========================================================================
   DYNAMIC STICKY NAVIGATION & CURTAIN
   ========================================================================== */
.transition-curtain {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  background: var(--bg-surface);
  z-index: 9999;
  pointer-events: none;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.4s cubic-bezier(0.85, 0, 0.15, 1);
}
.transition-curtain.active {
  transform: scaleY(1);
  transform-origin: top;
}

.scroll-progress {
  position: fixed;
  top: 0; left: 0; width: 0%; height: 3px;
  background: var(--grad-coastal);
  z-index: 1001;
}

.main-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  height: 80px;
  z-index: 1000;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
}
.main-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  height: 70px;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--color-text);
}
.brand-logo .logo-icon {
  width: 28px;
  height: 28px;
  background: var(--grad-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-surface);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
}

.nav-menu {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}
.nav-link {
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-text);
  position: relative;
  padding: 0.4rem 0;
  letter-spacing: 0.01em;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0%; height: 2px;
  background: var(--color-primary);
  transition: var(--transition-normal);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.btn-favorites {
  position: relative;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  font-size: 1.15rem;
  transition: var(--transition-fast);
}
.btn-favorites:hover {
  color: var(--color-primary);
  transform: scale(1.05);
}
.favorites-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--color-primary);
  color: var(--bg-surface);
  border-radius: 50%;
  width: 16px; height: 16px;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
}
.menu-toggle span {
  width: 24px; height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   HOMEPAGE SPECIFIC LAYOUTS
   ========================================================================== */
.hero-section {
  min-height: 95vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  background-color: #EEF2F6;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 0;
}
.hero-bg-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: zoom-out-slow 15s infinite alternate;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(100deg, rgba(248, 250, 252, 0.94) 0%, rgba(248, 250, 252, 0.8) 50%, rgba(248, 250, 252, 0.1) 100%);
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--spacing-lg);
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 600px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-surface);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.hero-content h1 {
  color: var(--color-text);
  margin-bottom: 1rem;
  font-weight: 700;
}
.hero-content p {
  font-size: 1.1rem;
  color: var(--color-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  border-top: 1px solid var(--color-light-gray);
  padding-top: var(--spacing-sm);
}
.metric-card h3 {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-primary);
}
.metric-card p {
  font-size: 0.75rem;
  color: var(--color-muted);
  text-transform: uppercase;
  margin-top: 0.15rem;
}

.hero-search-wrapper {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.search-tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  padding-bottom: 0.5rem;
}
.search-tab-btn {
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}
.search-tab-btn.active {
  background: var(--color-primary);
  color: var(--bg-surface);
}

.search-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.search-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.search-input-group label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted);
}
.search-input-group select,
.search-input-group input {
  background: var(--bg-surface);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--color-text);
  width: 100%;
}
.search-input-group select:focus,
.search-input-group input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.08);
}

/* ==========================================================================
   DYNAMIC PROPERTY GRID CARD COMPONENT
   ========================================================================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-sm);
}

.property-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-light-gray);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition-normal);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.property-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.property-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.property-card:hover .property-img-wrapper img {
  transform: scale(1.03);
}

.property-tag-badge {
  position: absolute;
  top: 0.75rem; left: 0.75rem;
  background: var(--color-primary);
  color: var(--bg-surface);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
}

.property-fav-btn {
  position: absolute;
  top: 0.75rem; right: 0.75rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--color-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--color-muted);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
}
.property-fav-btn:hover {
  color: #EF4444;
  transform: scale(1.05);
}
.property-fav-btn.active {
  background: #EF4444;
  border-color: #EF4444;
  color: var(--bg-surface);
}

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

.property-price {
  font-family: var(--font-sans);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}
.property-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}
.property-loc {
  font-size: 0.8rem;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.property-specs {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-light-gray);
  border-bottom: 1px solid var(--color-light-gray);
  padding: 0.6rem 0;
  margin-bottom: 1rem;
}
.spec-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}
.spec-item strong {
  color: var(--color-text);
}

.property-card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
}
.property-card-actions .btn-premium {
  flex: 1;
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
}

/* ==========================================================================
   NEIGHBORHOOD INTERACTIVE SVG MAP LAYOUTS
   ========================================================================== */
.neighborhood-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  align-items: flex-start;
}
@media (min-width: 1024px) {
  .neighborhood-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.map-viewport {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-light-gray);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-svg {
  width: 100%;
  height: auto;
  max-height: 400px;
}

.map-region {
  fill: #EFF6FF;
  stroke: var(--color-secondary);
  stroke-width: 2;
  cursor: pointer;
  transition: var(--transition-normal);
}
.map-region:hover, .map-region.active {
  fill: rgba(37, 99, 235, 0.08);
  stroke: var(--color-primary);
  stroke-width: 3;
}

.neighborhood-info-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-light-gray);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.nh-header {
  border-bottom: 1px solid var(--color-light-gray);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}
.nh-header h3 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
}
.nh-header .tagline {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.nh-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.score-badge {
  background: var(--bg-primary);
  padding: 0.75rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: 1px solid rgba(15, 23, 42, 0.02);
}
.score-badge h4 {
  font-family: var(--font-sans);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent);
}
.score-badge p {
  font-size: 0.7rem;
  color: var(--color-muted);
}

/* Collapsible insights helper styling */
.collapsible-trigger {
  width: 100%;
  text-align: left;
  background: var(--bg-surface);
  border: 1px solid var(--color-light-gray);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-family: var(--font-serif);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.collapsible-content {
  display: none;
  padding: 1.5rem;
  border: 1px solid var(--color-light-gray);
  border-top: none;
  background: var(--bg-surface);
  border-bottom-left-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* ==========================================================================
   CALCULATOR AND SCHEDULER MODULES
   ========================================================================== */
.calc-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-light-gray);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) {
  .calc-container {
    grid-template-columns: 1fr 1fr;
  }
}

.calc-inputs {
  padding: 2rem;
}

.calc-results {
  padding: 2rem;
  background: #F1F5F9;
  border-top: 1px solid var(--color-light-gray);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 1024px) {
  .calc-results {
    border-top: none;
    border-left: 1px solid var(--color-light-gray);
  }
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.35rem;
}
.form-group input[type="range"] {
  width: 100%;
  accent-color: var(--color-primary);
  cursor: pointer;
}
.range-val-container {
  display: flex;
  justify-content: space-between;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

.scheduler-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
}
@media (min-width: 1024px) {
  .scheduler-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.calendar-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  text-align: center;
}
.calendar-day-header {
  font-weight: 600;
  font-size: 0.7rem;
  color: var(--color-muted);
  text-transform: uppercase;
}
.calendar-day-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 500;
  font-size: 0.85rem;
}
.calendar-day-cell:hover {
  background: var(--color-light-gray);
}
.calendar-day-cell.active {
  background: var(--color-primary);
  color: var(--bg-surface);
}
.calendar-day-cell.disabled {
  color: var(--color-light-gray);
  cursor: not-allowed;
  pointer-events: none;
}

.time-slots-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 1rem;
}
.time-slot-btn {
  background: var(--bg-primary);
  border: 1px solid var(--color-light-gray);
  padding: 0.5rem 0.35rem;
  text-align: center;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}
.time-slot-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.time-slot-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--bg-surface);
}

/* ==========================================================================
   AGENT PROFILE CARDS
   ========================================================================== */
.agent-card {
  background: var(--bg-surface);
  border: 1px solid var(--color-light-gray);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}
.agent-image {
  height: 280px;
  overflow: hidden;
}
.agent-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}
.agent-card:hover .agent-image img {
  transform: scale(1.02);
}
.agent-info {
  padding: 1.25rem;
}
.agent-title {
  font-size: 0.8rem;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.agent-bio-excerpt {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}
.agent-meta {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--color-light-gray);
  padding-top: 0.6rem;
  font-size: 0.75rem;
  color: var(--color-muted);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonial-slide {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
  border: 1px solid var(--color-light-gray);
}
.testimonial-quote {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}
.testimonial-client-img {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 3px solid var(--color-secondary);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   MOBILE STICKY CTA FOOTER (Apple UX Principle)
   ========================================================================== */
.mobile-sticky-ctas {
  position: fixed;
  bottom: 0; left: 0; width: 100%;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  box-shadow: 0 -10px 30px rgba(0,0,0,0.05);
  z-index: 999;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  display: flex;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .mobile-sticky-ctas {
    display: none; /* Hide on desktop targets */
  }
}
.mobile-sticky-ctas .btn-premium {
  flex: 1;
  padding: 0.85rem 0.5rem;
  font-size: 0.75rem;
  height: 50px;
}

/* ==========================================================================
   CTA MODULES & FOOTER
   ========================================================================== */
.luxury-cta-section {
  padding: var(--spacing-xl) 0;
  background: var(--grad-sunset);
  color: var(--bg-surface);
  position: relative;
  overflow: hidden;
}
.cta-overlay-media {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0.1;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.cta-container {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}
.cta-container h2 {
  margin-bottom: 1rem;
}
.cta-container p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.main-footer {
  background: var(--color-text);
  color: #E2E8F0;
  padding: var(--spacing-lg) 0 var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.5fr repeat(3, 1fr);
  }
}
.footer-column h4 {
  font-family: var(--font-sans);
  color: var(--bg-surface);
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.footer-column p {
  color: var(--color-muted);
  margin-bottom: 1rem;
  font-size: 0.85rem;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.footer-links a {
  color: #94A3B8;
}
.footer-links a:hover {
  color: var(--color-secondary);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ==========================================================================
   MOTION TIMELINE KEYFRAMES & UTILITIES
   ========================================================================== */
@keyframes zoom-out-slow {
  0% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   MOBILE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: 0; right: 0; width: 280px; height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 90px 2.5rem 2.5rem;
    gap: 1.5rem;
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.04);
    transform: translateX(100%);
    transition: transform var(--transition-normal);
  }
  .nav-menu.active {
    transform: translateX(0);
  }
  .nav-actions {
    display: none;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }
  .hero-content {
    margin: 0 auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-metrics {
    justify-content: center;
  }
  .hero-search-wrapper {
    margin-top: var(--spacing-sm);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 clamp(1rem, 3vw, 2rem);
  }
  section {
    padding: var(--spacing-md) 0;
  }
  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero-metrics {
    grid-template-columns: 1fr;
  }
  .property-grid {
    grid-template-columns: 1fr;
  }
}
