/* ==========================================================================
   Bricklet Solution Custom Design System & Core Stylesheet
   ========================================================================== */

/* 1. Theme Configuration & Variables */
:root {
  /* Common Design Tokens */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --accent-gold: #c5a25d;
  --accent-gold-hover: #e5c483;
  --accent-glow: rgba(197, 162, 93, 0.2);
  --positive-green: #22c55e;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Default Light Mode Tokens */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(15, 23, 42, 0.08);
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  
  --logo-cube-top: #64748b;
  --logo-cube-left: #475569;
  --logo-cube-right: #334155;
  
  color-scheme: light dark;
}

/* Dark Mode Tokens Override */
:root[data-theme="dark"] {
  --bg-primary: #080a10;
  --bg-secondary: #0f121d;
  --bg-tertiary: #161b2c;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #1e293b;
  
  --glass-bg: rgba(8, 10, 16, 0.75);
  --glass-border: rgba(255, 255, 255, 0.05);
  --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  
  --logo-cube-top: #94a3b8;
  --logo-cube-left: #64748b;
  --logo-cube-right: #475569;
}

/* 2. Global Resets & Scrollbars */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset sticky header */
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Standard scrollbar customization */
.scroller {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-gold) var(--bg-tertiary);
}

@supports not (scrollbar-color: auto) {
  .scroller::-webkit-scrollbar {
    height: 6px;
    width: 6px;
  }
  .scroller::-webkit-scrollbar-thumb {
    background: var(--accent-gold);
    border-radius: 3px;
  }
  .scroller::-webkit-scrollbar-track {
    background: var(--bg-tertiary);
  }
}

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

ul {
  list-style: none;
}

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

/* Buttons & Common Interactive Components */
.cta-button {
  display: inline-block;
  padding: 12px 28px;
  background-color: var(--accent-gold);
  color: #080a10;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.cta-button:hover {
  background-color: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

.cta-button:active {
  transform: translateY(0);
}

.cta-button.full-width {
  width: 100%;
}

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--accent-gold);
  transition: color var(--transition-fast);
}

.link-btn svg {
  transition: transform var(--transition-fast);
}

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

.link-btn:hover svg {
  transform: translateX(4px);
}

/* 3. Header & Navigation (Glassmorphic) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: background-color var(--transition-normal), height var(--transition-normal);
}

.site-header.scrolled {
  height: 70px;
}

.header-container {
  max-width: 1300px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-svg {
  transition: transform var(--transition-normal);
}

.logo-link:hover .logo-svg {
  transform: rotate(-10deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

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

/* Primary Nav Menu */
.primary-navigation {
  height: 100%;
}

.nav-list {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 10px 0;
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--text-primary);
}

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

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

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

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.theme-toggle-btn {
  background: none;
  border: 1px solid var(--border-color);
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
  border-color: var(--accent-gold);
  background-color: var(--bg-tertiary);
}

.theme-toggle-btn svg {
  transition: transform var(--transition-slow) ease-out;
}

/* Toggle Sun/Moon Icon Display based on theme attribute */
:root[data-theme="dark"] .sun-icon {
  display: block;
}
:root[data-theme="dark"] .moon-icon {
  display: none;
}
:root[data-theme="light"] .sun-icon {
  display: none;
}
:root[data-theme="light"] .moon-icon {
  display: block;
}

.mobile-nav-toggle {
  display: none;
}

/* 4. Hero Section with responsive grid overlay */
.hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 80px;
}

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

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transform-origin: center;
  transition: transform var(--transition-slow);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(8, 10, 16, 0.92) 20%, rgba(8, 10, 16, 0.4) 60%, rgba(8, 10, 16, 0.8) 100%);
  z-index: 2;
}

/* In Light Mode, we adjust the gradient overlay of the hero slightly to balance readability */
:root[data-theme="light"] .hero-overlay {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 20%, rgba(255, 255, 255, 0.5) 60%, rgba(255, 255, 255, 0.85) 100%);
}

.hero-content-container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.hero-text-block {
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--accent-glow);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -1.5px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 35px;
  max-width: 650px;
}

/* Glassmorphic Search / Filter Form */
.hero-search-bar {
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  padding: 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  box-shadow: var(--card-shadow);
  margin-bottom: 40px;
}

.search-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 140px;
}

.search-field label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.search-field select {
  background: transparent;
  border: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  outline: none;
  width: 100%;
}

.search-field select option {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

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

.search-submit-btn {
  background-color: var(--accent-gold);
  color: #080a10;
  border: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.search-submit-btn:hover {
  background-color: var(--accent-gold-hover);
  transform: scale(1.02);
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 30px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 2.2rem;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

/* Scroll Down Button */
.scroll-down-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  color: var(--text-muted);
  animation: bounce 2s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--glass-bg);
  backdrop-filter: blur(4px);
}

.scroll-down-indicator:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translate(-50%, 0);
  }
  40% {
    transform: translate(-50%, -10px);
  }
  60% {
    transform: translate(-50%, -5px);
  }
}

/* 5. Advantages / Why Us Section */
.advantages-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.section-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-tagline {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.advantage-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 40px 30px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.advantage-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

:root[data-theme="dark"] .advantage-card:hover {
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.adv-icon-wrapper {
  color: var(--accent-gold);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background-color: var(--accent-glow);
}

.adv-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.adv-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* 6. Properties Section & Carousel scroller */
.properties-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.filter-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.filter-tabs {
  background-color: var(--bg-tertiary);
  padding: 6px;
  border-radius: 30px;
  display: flex;
  gap: 4px;
}

.filter-tab {
  background: none;
  border: none;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.filter-tab:hover {
  color: var(--text-primary);
}

.filter-tab.active {
  background-color: var(--bg-primary);
  color: var(--accent-gold);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Horizontal scroller carousel styles */
.properties-carousel-container {
  width: 100%;
  position: relative;
  overflow: visible;
}

.properties-carousel {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 20px 4px 40px;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Responsive constraints on items */
.property-card {
  flex: 0 0 400px;
  scroll-snap-align: center;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), border-color var(--transition-normal);
}

/* Custom styles for filtering cards hide */
.property-card.hidden {
  display: none;
}

.property-image-wrapper {
  position: relative;
  height: 250px;
  width: 100%;
  overflow: hidden;
}

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

.property-card:hover .property-image {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: var(--glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  padding: 4px 12px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--accent-gold);
}

.property-details {
  padding: 28px;
}

.property-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.property-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

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

.property-specs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.property-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.property-specs svg {
  color: var(--text-muted);
}

.property-pricing {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.price-box, .yield-box {
  display: flex;
  flex-direction: column;
}

.price-label, .yield-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.price-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--text-primary);
}

.yield-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--positive-green);
}

.view-details-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 12px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.view-details-btn:hover {
  background-color: var(--accent-glow);
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

/* Scroll-driven Scale-up Animation for Carousel Slides */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes scale-carousel-items {
      0% {
        transform: scale(0.92);
        opacity: 0.65;
      }
      50% {
        transform: scale(1);
        opacity: 1;
      }
      100% {
        transform: scale(0.92);
        opacity: 0.65;
      }
    }
    .properties-carousel > * {
      animation: scale-carousel-items auto linear both;
      view-timeline: --carousel-item inline;
      animation-timeline: --carousel-item;
      animation-range: cover 0% cover 100%;
    }
  }
}

/* Carousel controls */
.carousel-controls-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 30px;
}

.carousel-control-btn {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.carousel-control-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: var(--bg-tertiary);
}

.carousel-indicators {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--border-color);
  cursor: pointer;
  transition: background-color var(--transition-fast), width var(--transition-fast);
}

.carousel-dot.active {
  background-color: var(--accent-gold);
  width: 24px;
  border-radius: 4px;
}

/* 7. Calculator Section */
.calculator-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.calc-description {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.input-group {
  margin-bottom: 35px;
}

.input-labels {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.input-labels label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

.input-val-display {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent-gold);
}

/* Custom range inputs */
.custom-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-color);
  outline: none;
}

.custom-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.custom-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-gold-hover);
}

.custom-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  border: none;
  transition: transform var(--transition-fast);
}

.custom-slider::-moz-range-thumb:hover {
  transform: scale(1.2);
  background: var(--accent-gold-hover);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.calc-disclaimer {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 40px;
}

/* Results panel */
.calc-results-panel {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.results-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.total-value-box {
  background-color: var(--bg-secondary);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 30px;
}

.value-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.value-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--text-primary);
  line-height: 1;
}

/* Stacked bar chart indicator */
.valuation-graph-container {
  margin-bottom: 30px;
}

.progress-bar-stack {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
  background-color: var(--bg-tertiary);
  width: 100%;
}

.progress-segment {
  height: 100%;
  transition: width var(--transition-normal);
}

.segment-principal {
  background-color: var(--text-muted);
}

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

.segment-yield {
  background-color: var(--positive-green);
}

/* Legend breakdown */
.results-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 35px;
}

.breakdown-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 12px;
  flex-shrink: 0;
}

.color-principal { background-color: var(--text-muted); }
.color-appreciation { background-color: var(--accent-gold); }
.color-yield { background-color: var(--positive-green); }

.breakdown-label {
  color: var(--text-secondary);
  flex-grow: 1;
}

.breakdown-value {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-primary);
}

/* 8. Advisor Section */
.advisor-section {
  padding: 100px 0;
  background-color: var(--bg-primary);
}

.advisor-card-wrapper {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  box-shadow: var(--card-shadow);
}

.advisor-image-col {
  position: relative;
  height: 100%;
  min-height: 400px;
}

.advisor-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background-color: rgba(8, 10, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.badge-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  color: #ffffff;
}

.badge-role {
  font-size: 0.8rem;
  color: var(--accent-gold);
  font-weight: 500;
  text-transform: uppercase;
}

.advisor-content-col {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.advisor-bio {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-style: italic;
  margin: 25px 0 35px;
}

.advisor-credentials {
  display: flex;
  gap: 40px;
  margin-bottom: 40px;
}

.cred-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cred-num {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--accent-gold);
  line-height: 1;
}

.cred-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.advisor-contact-shortcut {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
}

.advisor-quote {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* 9. Contact Form & Map details */
.contact-section {
  padding: 100px 0;
  background-color: var(--bg-secondary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.contact-pitch {
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.detail-icon-box {
  width: 48px;
  height: 48px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.detail-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

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

.detail-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Contact form panel */
.contact-form-panel {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--card-shadow);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 14px 18px;
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.6;
}

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

/* Form validation styles using :user-valid / :user-invalid */
.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid {
  border-color: #ef4444;
}

.error-message {
  display: none;
  font-size: 0.8rem;
  color: #ef4444;
  margin-top: -2px;
}

.form-group input:user-invalid ~ .error-message,
.form-group select:user-invalid ~ .error-message {
  display: block;
}

.form-submit-btn {
  font-size: 1rem;
  padding: 16px;
  margin-top: 10px;
}

/* 10. Footer Section */
.site-footer {
  background-color: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: 80px 0 0;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px 60px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1.5fr;
  gap: 60px;
}

.brand-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 20px 0 24px;
  max-width: 320px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.social-link-icon:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background-color: var(--bg-tertiary);
}

.footer-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.footer-links-list a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.newsletter-sub {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-input {
  flex: 1;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.newsletter-input:focus {
  border-color: var(--accent-gold);
}

.newsletter-submit-btn {
  background-color: var(--accent-gold);
  color: #080a10;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.newsletter-submit-btn:hover {
  background-color: var(--accent-gold-hover);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 30px 0;
  background-color: var(--bg-secondary);
}

.bottom-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-policy-links {
  display: flex;
  gap: 24px;
}

.footer-policy-links a {
  transition: color var(--transition-fast);
}

.footer-policy-links a:hover {
  color: var(--text-primary);
}

/* 11. Toast Notification Center */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 2000;
  max-width: 380px;
  width: 90%;
}

.toast-msg {
  background-color: var(--bg-primary);
  border-left: 4px solid var(--accent-gold);
  border-radius: 8px;
  padding: 16px 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-primary);
  font-size: 0.9rem;
  transform: translateY(20px);
  opacity: 0;
  animation: slide-toast 0.3s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.toast-msg.success {
  border-left-color: var(--positive-green);
}

.toast-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close-btn:hover {
  color: var(--text-primary);
}

@keyframes slide-toast {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 12. Modal dialog animations & styles */
.property-dialog {
  border: 1px solid var(--glass-border);
  background-color: var(--bg-secondary);
  border-radius: 24px;
  padding: 0;
  max-width: 1000px;
  width: 90%;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Backdrop */
.property-dialog::backdrop {
  background-color: rgba(8, 10, 16, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Open State */
.property-dialog[open] {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.property-dialog[open]::backdrop {
  opacity: 1;
}

/* Modern Starting style animation fallback */
@starting-style {
  .property-dialog[open] {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  .property-dialog[open]::backdrop {
    opacity: 0;
  }
}

.dialog-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.dialog-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.dialog-close-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.dialog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 550px;
}

.dialog-image-panel {
  position: relative;
  height: 100%;
}

.dialog-image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dialog-details-panel {
  padding: 50px 40px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  max-height: 90vh;
}

.dialog-badge {
  display: inline-block;
  padding: 4px 10px;
  background-color: var(--accent-glow);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  border-radius: 6px;
  margin-bottom: 12px;
}

.dialog-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 1.2;
}

.dialog-location {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.dialog-investment-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  background-color: var(--bg-tertiary);
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 24px;
}

.dlg-stat-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dlg-stat-lbl {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.dlg-stat-val {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.dialog-description h3, .dialog-specs-list h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.dialog-description p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.dialog-specs-list {
  margin-bottom: 30px;
}

.dialog-specs-list ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* 13. Scroll entry reveals (without view timeline support fallback) */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Apply scroll-driven animations for supporting browsers */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes scroll-fade-up {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .reveal-on-scroll {
      opacity: auto;
      transform: auto;
      transition: none;
      animation: scroll-fade-up auto linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 30%;
    }
  }
}

/* 14. Responsive Media Queries */
@media (max-width: 1024px) {
  .site-header {
    height: 70px;
  }
  
  .header-actions .header-cta {
    display: none; /* Hide header CTA on tablet/mobile to save space */
  }
  
  .section-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .advisor-card-wrapper {
    grid-template-columns: 1fr;
  }
  
  .advisor-image-col {
    height: 350px;
    min-height: auto;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .dialog-grid {
    grid-template-columns: 1fr;
  }
  
  .dialog-image-panel {
    height: 250px;
  }
  
  .dialog-details-panel {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .mobile-nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
  }
  
  .hamburger-bar {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }
  
  /* Mobile Open State animations */
  .mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .primary-navigation {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background-color: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    padding: 100px 30px 40px;
    transition: right var(--transition-normal);
    z-index: 1001;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }
  
  .primary-navigation.open {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    gap: 24px;
  }
  
  .nav-link {
    font-size: 1.15rem;
  }
  
  .hero-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
  }
  
  .search-divider {
    width: 100%;
    height: 1px;
  }
  
  .hero-stats {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
  
  .hero-text-block {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .property-card {
    flex: 0 0 320px;
  }
}

@media (max-width: 480px) {
  .hero-section {
    min-height: 600px;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .calc-results-panel {
    padding: 24px;
  }
  
  .contact-form-panel {
    padding: 24px;
  }
  
  .total-value-box .value-number {
    font-size: 2rem;
  }
}

/* 15. Legal Content Page Styling */
.legal-page-header {
  padding: 160px 0 60px;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.legal-page-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  letter-spacing: -1px;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.legal-page-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-content-section {
  padding: 80px 0;
  background-color: var(--bg-primary);
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--card-shadow);
}

.legal-text {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-text h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 40px 0 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.legal-text h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
  margin: 30px 0 15px;
}

.legal-text p {
  margin-bottom: 20px;
}

.legal-text ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: disc;
}

.legal-text li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 30px 20px;
  }
}
