/* ==========================================================================
   MumbaiPropertyLine.com — Complete Design System v2.0
   "Mumbai's Definitive Authority on Ultra-Premium Living"
   
   Luxury-grade CSS | Sotheby's / Christie's / Knight Frank aesthetic
   Every class name matches the EJS templates exactly.
   ========================================================================== */


/* ==========================================================================
   0. FONT IMPORTS & COLOR SCHEME
   ========================================================================== */

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

:root {
  color-scheme: light;
}


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
  /* — Colors: Clean White Luxury — */
  --color-bg-primary:    #ffffff;
  --color-bg-secondary:  #f8f6f3;
  --color-bg-card:       #ffffff;
  --color-bg-hero:       #1a1a2e;
  --color-gold:          #8b6914;
  --color-gold-light:    #b8942a;
  --color-gold-dark:     #6b5010;
  --color-text-primary:  #2d2d2d;
  --color-text-secondary:#6b7280;
  --color-text-heading:  #1a1a1a;
  --color-white:         #ffffff;
  --color-border:        rgba(0, 0, 0, 0.08);
  --color-border-strong: rgba(0, 0, 0, 0.15);
  --color-success:       #10b981;
  --color-error:         #ef4444;
  --color-whatsapp:      #25d366;

  /* — Typography — */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-display:  clamp(2.5rem, 5vw + 1rem, 5rem);
  --fs-h1:       clamp(2rem, 3.5vw + 0.5rem, 3.5rem);
  --fs-h2:       clamp(1.75rem, 2.5vw + 0.5rem, 2.75rem);
  --fs-h3:       clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
  --fs-h4:       clamp(1.1rem, 1vw + 0.5rem, 1.35rem);
  --fs-body:     clamp(0.9375rem, 0.5vw + 0.75rem, 1.0625rem);
  --fs-small:    clamp(0.8125rem, 0.3vw + 0.7rem, 0.9375rem);
  --fs-caption:  clamp(0.6875rem, 0.2vw + 0.6rem, 0.8125rem);

  --lh-tight:    1.2;
  --lh-normal:   1.6;
  --lh-relaxed:  1.8;

  /* — Spacing — */
  --space-xs:    0.25rem;
  --space-sm:    0.5rem;
  --space-md:    1rem;
  --space-lg:    1.5rem;
  --space-xl:    2rem;
  --space-2xl:   3rem;
  --space-3xl:   4rem;
  --space-4xl:   6rem;
  --space-section: clamp(3rem, 6vw, 6rem);

  /* — Layout — */
  --max-width:   1320px;
  --max-width-narrow: 860px;
  --gutter:      clamp(1rem, 3vw, 2rem);

  /* — Radii — */
  --radius-sm:   0.375rem;
  --radius-md:   0.625rem;
  --radius-lg:   1rem;
  --radius-xl:   1.5rem;
  --radius-full: 9999px;

  /* — Shadows — */
  --shadow-sm:   0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md:   0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:   0 8px 30px rgba(0, 0, 0, 0.5);
  --shadow-xl:   0 12px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px rgba(201, 169, 110, 0.15);
  --shadow-gold-lg: 0 8px 40px rgba(201, 169, 110, 0.2);

  /* — Transitions — */
  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.3s var(--ease-out);
  --transition-slow: 0.5s var(--ease-out);

  /* — Z-index Scale — */
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-header:    300;
  --z-overlay:   400;
  --z-modal:     500;
  --z-whatsapp:  600;
  --z-toast:     700;

  /* — Image placeholder gradient — */
  --img-placeholder: linear-gradient(135deg, #f0ece6 0%, #e8e2d8 40%, #f0ece6 60%, #e8e2d8 100%);
}


/* ==========================================================================
   2. MODERN CSS RESET
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
  scrollbar-color: var(--color-gold-dark) var(--color-bg-primary);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-normal);
  color: var(--color-text-primary);
  background-color: var(--color-bg-primary);
  min-height: 100dvh;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

/* Offset content below fixed header */
#main-content {
  padding-top: clamp(3.5rem, 5vw, 4.5rem);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  font-style: italic;
  vertical-align: middle;
  background: var(--img-placeholder);
  background-size: 200% 200%;
}

/* Broken image fallback — hide the broken icon, show gradient bg */
img::before {
  content: '';
  display: block;
  position: absolute;
  inset: 0;
  background: var(--img-placeholder);
}

img[src=""],
img:not([src]) {
  visibility: hidden;
  position: relative;
}

img[src=""]::after,
img:not([src])::after {
  content: '';
  visibility: visible;
  display: block;
  position: absolute;
  inset: 0;
  background: var(--img-placeholder);
  border-radius: inherit;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

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

a:hover {
  color: var(--color-gold-light);
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-text-heading);
  line-height: var(--lh-tight);
  text-wrap: balance;
  overflow-wrap: break-word;
}

p {
  text-wrap: pretty;
  overflow-wrap: break-word;
  max-width: 72ch;
}

:target {
  scroll-margin-top: 5rem;
}


/* ==========================================================================
   3. FOCUS & ACCESSIBILITY
   ========================================================================== */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: fixed;
  top: -100%;
  left: var(--space-md);
  background: var(--color-gold);
  color: var(--color-bg-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  font-weight: 600;
  z-index: var(--z-toast);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
  color: var(--color-bg-primary);
}

.serif {
  font-family: var(--font-heading);
}


/* ==========================================================================
   4. LAYOUT — CONTAINER & SECTION
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding-block: var(--space-section);
}

.section--alt {
  background-color: var(--color-bg-secondary);
}

.section--dark {
  background-color: #060e1a;
}

.section--gold {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(201, 169, 110, 0.03) 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section--light {
  background-color: var(--color-bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-header__title {
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-bottom: var(--space-md);
  position: relative;
}

.section-header__title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-md) auto 0;
}

.section-header__subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  max-width: 48ch;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

/* Also support flat naming */
.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  margin-bottom: var(--space-md);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  margin: var(--space-md) auto 0;
}

.section-subtitle {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  max-width: 48ch;
  margin-inline: auto;
  line-height: var(--lh-relaxed);
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.section-footer-cta {
  text-align: center;
  margin-top: var(--space-3xl);
}


/* ==========================================================================
   5. HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.site-header.menu-open {
  background: rgba(255, 255, 255, 0.98);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(3.5rem, 5vw, 4.5rem);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Site Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  color: var(--color-text-heading);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.site-logo:hover {
  color: var(--color-text-heading);
}

.logo-img {
  height: clamp(1.75rem, 2.5vw, 2.5rem);
  width: auto;
  object-fit: contain;
}

/* Primary Navigation */
.primary-nav {
  display: none;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  list-style: none;
}

.nav-item {
  position: relative;
}

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

.nav-link {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-block: var(--space-xs);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  text-decoration: none;
}

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

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

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

/* Dropdown toggle and chevron */
.nav-dropdown-toggle {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  padding-block: var(--space-xs);
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-dropdown-toggle:hover {
  color: var(--color-gold);
}

.nav-chevron {
  width: 0.6em;
  height: 0.6em;
  transition: transform var(--transition-fast);
}

.nav-item--dropdown:hover .nav-chevron,
.nav-item--dropdown.is-open .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown menu — hidden by default */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  min-width: 14rem;
  background: rgba(248, 246, 243, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-sm) 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
  z-index: var(--z-dropdown);
  box-shadow: var(--shadow-lg);
  list-style: none;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-dropdown.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  text-transform: none;
  letter-spacing: 0;
  transition: color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.nav-dropdown-link:hover {
  color: var(--color-gold);
  background: rgba(139, 105, 20, 0.04);
}

/* Header CTA button */
.header-cta {
  display: none;
}

/* Mobile hamburger toggle */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-header) + 1);
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.menu-open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay — works with .is-open on primary-nav */
.primary-nav.is-open {
  display: flex;
  position: fixed;
  inset: 0;
  top: clamp(3.5rem, 5vw, 4.5rem);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: var(--z-overlay);
  animation: fadeIn 0.3s var(--ease-out);
}

.primary-nav.is-open .nav-list {
  flex-direction: column;
  gap: var(--space-xl);
}

.primary-nav.is-open .nav-link {
  font-size: var(--fs-h4);
  text-transform: none;
  color: var(--color-text-primary);
}

.primary-nav.is-open .nav-dropdown {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  min-width: auto;
  text-align: center;
  padding: var(--space-sm) 0 0;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Desktop breakpoint */
@media (min-width: 1024px) {
  .primary-nav {
    display: flex;
  }

  .header-cta {
    display: inline-flex;
  }

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


/* ==========================================================================
   6. HERO SECTION
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  padding: var(--space-4xl) var(--gutter) var(--space-3xl);
  text-align: center;
  overflow: hidden;
}

.hero--compact {
  min-height: 50dvh;
  padding-top: var(--space-3xl);
}

.hero--building {
  min-height: 60dvh;
}

/* Hero background — CSS gradient (no image dependency) */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(139, 105, 20, 0.04) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(30, 64, 120, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(26, 26, 46, 0.8) 0%, transparent 50%),
    linear-gradient(175deg,
      #0a1628 0%,
      #0d1b30 15%,
      #10203a 30%,
      #132645 45%,
      #0f1f38 60%,
      #0c1a2f 80%,
      #0a1628 100%
    );
}

/* Gold shimmer animation on hero */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 30% at 50% 100%, rgba(201, 169, 110, 0.05) 0%, transparent 70%);
  animation: heroShimmer 8s ease-in-out infinite alternate;
}

@keyframes heroShimmer {
  0% { opacity: 0.3; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-2%); }
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

/* Hero overlay — for when there IS a background image */
.hero-overlay,
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      to bottom,
      rgba(26, 26, 46, 0.4) 0%,
      rgba(26, 26, 46, 0.6) 50%,
      rgba(26, 26, 46, 0.95) 100%
    );
}

.hero-content,
.hero__content {
  max-width: 52rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-lg);
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 2rem;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
}

.hero-heading {
  font-size: var(--fs-display);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.08;
}

.hero-heading-accent {
  color: var(--color-gold);
  font-style: italic;
}

.hero-subheading {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-relaxed);
}

/* BEM hero variants */
.hero__title,
.hero-title {
  font-size: var(--fs-display);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  line-height: 1.08;
}

.hero__subtitle,
.hero-subtitle {
  font-size: clamp(1rem, 1.2vw + 0.5rem, 1.25rem);
  color: var(--color-text-secondary);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: var(--lh-relaxed);
}

.hero__methodology {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  max-width: 50ch;
  margin-inline: auto;
  margin-top: var(--space-md);
  line-height: var(--lh-relaxed);
  opacity: 0.8;
}

.hero__figure {
  margin-top: var(--space-2xl);
  max-width: 40rem;
  margin-inline: auto;
}

.hero__image {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}

.hero-ctas,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}


/* ==========================================================================
   7. BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-small);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85em 2em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    border-color var(--transition-base),
    transform var(--transition-fast),
    box-shadow var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(0.97);
}

/* Gold fill */
.btn--gold,
.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-bg-primary);
  border-color: var(--color-gold);
}

.btn--gold:hover,
.btn-primary:hover {
  background-color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  color: var(--color-bg-primary);
  box-shadow: var(--shadow-gold);
}

.btn--gold:active,
.btn-primary:active {
  background-color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

/* Gold outline */
.btn--outline,
.btn-secondary {
  background-color: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--outline:hover,
.btn-secondary:hover {
  background-color: rgba(201, 169, 110, 0.1);
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
}

.btn--outline:active,
.btn-secondary:active {
  background-color: rgba(201, 169, 110, 0.15);
  color: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
}

/* Large */
.btn--lg {
  font-size: var(--fs-body);
  padding: 1em 2.5em;
}

/* Small */
.btn--sm {
  font-size: var(--fs-caption);
  padding: 0.6em 1.4em;
}

/* Full width */
.btn--full {
  width: 100%;
}

/* WhatsApp button */
.btn--whatsapp,
.btn-whatsapp {
  background-color: var(--color-whatsapp);
  color: #ffffff;
  border-color: var(--color-whatsapp);
}

.btn--whatsapp:hover,
.btn-whatsapp:hover {
  background-color: #20bd5a;
  border-color: #20bd5a;
  color: #ffffff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}


/* ==========================================================================
   8. BUILDING CARDS (Both naming conventions)
   ========================================================================== */

/* --- Flat naming convention (home page) --- */
.building-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
  position: relative;
}

.building-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--color-border-strong);
}

.building-card-figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--img-placeholder);
}

.building-card-figure::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-dark));
}

.building-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.building-card:hover .building-card-img {
  transform: scale(1.05);
}

.building-card-body {
  padding: var(--space-lg);
}

.building-card-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 2;
}

.building-card-name {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-heading);
}

.building-card-name a {
  color: inherit;
  text-decoration: none;
}

.building-card-name a:hover {
  color: var(--color-gold);
}

.building-card-location {
  font-size: var(--fs-caption);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.building-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.building-card-floors {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

.building-card-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--fs-caption);
  color: var(--color-gold);
}

.building-card-price {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-gold);
  margin-top: var(--space-sm);
}

.building-card-cta {
  margin-top: var(--space-md);
}

.building-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.building-card-link:hover {
  color: inherit;
}

.building-card--compact {
  border-radius: var(--radius-md);
}

.building-card--compact .building-card-figure {
  aspect-ratio: 16 / 10;
}

.building-card--compact .building-card-body {
  padding: var(--space-md);
}

/* --- BEM naming convention (buildings/index.ejs) --- */
.building-card__image-link {
  display: block;
  overflow: hidden;
  position: relative;
  background: var(--img-placeholder);
}

.building-card__figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--img-placeholder);
  margin: 0;
}

.building-card__figure::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold), var(--color-gold-dark));
  z-index: 1;
}

.building-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.building-card:hover .building-card__image {
  transform: scale(1.05);
}

.building-card__rank {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  width: 2.2rem;
  height: 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 26, 46, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-gold);
  z-index: 2;
}

.building-card__body {
  padding: var(--space-lg);
}

.building-card__name {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-heading);
}

.building-card__name-link {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.building-card__name-link:hover {
  color: var(--color-gold);
}

.building-card__location {
  font-size: var(--fs-caption);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.building-card__developer {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.building-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
  align-items: center;
}

.building-card__floors {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

.building-card__divider {
  width: 1px;
  height: 0.8em;
  background: var(--color-border);
  display: inline-block;
}

.building-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: var(--fs-caption);
  color: var(--color-gold);
}

.building-card__rating-value {
  font-weight: 600;
}

.building-card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-gold);
  margin-top: var(--space-sm);
}

.building-card__excerpt {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-top: var(--space-sm);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.building-card__cta {
  margin-top: var(--space-md);
}

/* Building grids */
.building-grid,
.buildings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .building-grid,
  .buildings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .building-grid,
  .buildings-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Buildings section & load more */
.buildings-section {
  /* Inherits from .section */
}

.buildings-section__load-more {
  text-align: center;
  margin-top: var(--space-2xl);
}


/* ==========================================================================
   9. PROPERTY CARDS
   ========================================================================== */

.property-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

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

.property-card__badge {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 2;
}

.property-card__header {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--img-placeholder);
}

.property-card__header img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.property-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-heading);
}

.property-card__price {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.property-card__details {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-md);
}

.property-card__detail {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
}

.property-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* Flat naming for property detail pages */
.property-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--space-xs);
  color: var(--color-text-heading);
}

.property-price {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-gold);
  margin-bottom: var(--space-sm);
}

.property-address {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-md);
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-md);
}

.property-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .property-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .property-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.properties-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}


/* ==========================================================================
   10. COLLECTION CARDS
   ========================================================================== */

.curated-collections {
  /* wrapper section — inherits from .section */
}

.collection-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .collection-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .collection-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.collection-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: var(--radius-lg);
  cursor: pointer;
  border: 1px solid var(--color-border);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.collection-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-gold);
}

.collection-card--featured {
  aspect-ratio: 2 / 3;
}

@media (min-width: 640px) {
  .collection-card--featured {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }
}

.collection-card-figure {
  position: absolute;
  inset: 0;
  background: var(--img-placeholder);
}

.collection-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.collection-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.88) 0%,
    rgba(26, 26, 46, 0.3) 40%,
    transparent 60%
  );
  transition: background var(--transition-base);
  z-index: 1;
}

.collection-card:hover .collection-card-overlay {
  background: linear-gradient(
    to top,
    rgba(26, 26, 46, 0.95) 0%,
    rgba(26, 26, 46, 0.4) 50%,
    rgba(10, 22, 40, 0.15) 70%
  );
}

.collection-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: var(--space-xs);
}

.collection-card-desc {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.collection-card-count {
  font-size: var(--fs-caption);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
}

.collection-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  text-indent: -9999px;
  overflow: hidden;
}


/* ==========================================================================
   11. INSIGHT CARDS
   ========================================================================== */

.market-insights {
  /* wrapper */
}

.insights-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .insights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .insights-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.insight-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.insight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--color-border-strong);
}

.insight-card-figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--img-placeholder);
}

.insight-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.insight-card:hover .insight-card-img {
  transform: scale(1.05);
}

.insight-card-body {
  padding: var(--space-lg);
}

.insight-card-date {
  font-size: var(--fs-caption);
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

.insight-card-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
  line-height: var(--lh-tight);
}

.insight-card-excerpt {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.insight-card-link {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  transition: gap var(--transition-fast), color var(--transition-fast);
  text-decoration: none;
}

.insight-card-link:hover {
  color: var(--color-gold-light);
  gap: 0.6em;
}

.insight-card-link::after {
  content: '→';
}


/* ==========================================================================
   12. FEATURE CARDS
   ========================================================================== */

.featured-buildings {
  /* section wrapper */
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition:
    transform var(--transition-base),
    box-shadow var(--transition-base),
    border-color var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--color-border-strong);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin: 0 auto var(--space-lg);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}


/* ==========================================================================
   13. STARS & RATINGS
   ========================================================================== */

.star {
  display: inline-block;
  color: var(--color-gold);
  font-size: 1.1rem;
  line-height: 1;
}

.star--full {
  color: var(--color-gold);
}

.star--half {
  color: var(--color-gold);
  position: relative;
  opacity: 0.7;
}

.star--empty {
  color: rgba(201, 169, 110, 0.25);
}

/* Expert Rating Card */
.expert-rating {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.expert-rating__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.expert-rating__overall {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--color-border);
}

.expert-rating__score {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
}

.expert-rating__stars {
  display: flex;
  gap: 0.15em;
  font-size: 1.25rem;
}

.expert-rating__label {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.expert-rating__out-of {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  opacity: 0.7;
}

.expert-rating__breakdown {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.expert-rating__criterion {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.expert-rating__criterion-name {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  display: flex;
  justify-content: space-between;
}

.expert-rating__criterion-value {
  font-weight: 600;
  color: var(--color-gold);
}

.expert-rating__bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.expert-rating__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-gold-dark), var(--color-gold));
  border-radius: var(--radius-full);
  transition: width 1s var(--ease-out);
}


/* ==========================================================================
   14. STATS BAR
   ========================================================================== */

.stats-bar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stats-bar-inner {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.stat-item:nth-child(2n) {
  border-right: none;
}

.stat-item:nth-last-child(-n+2) {
  border-bottom: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-label {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 768px) {
  .stats-bar-inner {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat-item {
    border-bottom: none;
  }

  .stat-item:nth-child(2n) {
    border-right: 1px solid var(--color-border);
  }

  .stat-item:last-child {
    border-right: none;
  }
}


/* ==========================================================================
   15. FILTER BAR
   ========================================================================== */

.filter-bar {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.filter-bar__form {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: flex-end;
}

.filter-bar__group {
  flex: 1;
  min-width: 10rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-bar__group--action {
  flex: 0 0 auto;
  min-width: auto;
  align-self: flex-end;
}

.filter-bar__label {
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-bar__select {
  width: 100%;
  padding: 0.65em 2.5em 0.65em 0.85em;
  font-size: var(--fs-small);
  color: var(--color-text-primary);
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85em center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-bar__select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}


/* ==========================================================================
   16. FORMS & LEAD CAPTURE
   ========================================================================== */

/* --- Form elements (flat naming) --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.form-label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.75em 1em;
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
  appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(156, 163, 175, 0.5);
}

.form-input:hover,
.form-select:hover,
.form-textarea:hover {
  border-color: rgba(201, 169, 110, 0.35);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.form-textarea {
  min-height: 8rem;
  resize: vertical;
}

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

.form-hint {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

.form-disclaimer {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  opacity: 0.7;
}

/* Validation states */
.form-input:user-valid,
.form-select:user-valid {
  border-color: rgba(16, 185, 129, 0.5);
}

.form-input:user-invalid,
.form-select:user-invalid {
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

@supports not selector(:user-valid) {
  .form-input:valid:not(:placeholder-shown) {
    border-color: rgba(16, 185, 129, 0.5);
  }

  .form-input:invalid:not(:placeholder-shown):not(:focus) {
    border-color: rgba(239, 68, 68, 0.6);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
  }
}

/* --- Lead Capture (flat naming) --- */
.lead-capture {
  background: linear-gradient(135deg, rgba(139, 105, 20, 0.04) 0%, rgba(26, 26, 46, 0.95) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.lead-capture-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
}

@media (min-width: 768px) {
  .lead-capture-inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.lead-capture-content {
  /* text side */
}

.lead-capture-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
}

.lead-capture-subtitle {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.lead-capture-form-wrap {
  /* form container */
}

.lead-capture-or {
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  margin-block: var(--space-md);
  position: relative;
}

.lead-capture-or::before,
.lead-capture-or::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: var(--color-border);
}

.lead-capture-or::before {
  left: 0;
}

.lead-capture-or::after {
  right: 0;
}

.lead-capture-whatsapp {
  /* WhatsApp alternative CTA */
}

.lead-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --- Lead Capture BEM variants --- */
.lead-capture__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.lead-capture__content {
  margin-bottom: var(--space-xl);
}

.lead-capture__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: var(--space-sm);
}

.lead-capture__text {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.lead-capture__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.lead-capture__field {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.lead-capture__label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text-secondary);
}

.lead-capture__input,
.lead-capture__select,
.lead-capture__textarea {
  width: 100%;
  padding: 0.75em 1em;
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  appearance: none;
}

.lead-capture__input:focus,
.lead-capture__select:focus,
.lead-capture__textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.lead-capture__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
  padding-right: 2.5em;
}

.lead-capture__textarea {
  min-height: 6rem;
  resize: vertical;
}

.lead-capture__disclaimer {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  opacity: 0.7;
}


/* ==========================================================================
   17. FAQ ACCORDION
   ========================================================================== */

.faq-section {
  /* inherits from .section */
}

.faq-accordion {
  max-width: 48rem;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--color-border-strong);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--color-gold);
}

.faq-item__question-text {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--color-text-heading);
  flex: 1;
}

.faq-item__icon {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--color-gold);
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__icon,
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-lg);
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  max-width: 60ch;
}


/* ==========================================================================
   18. CTA SECTION
   ========================================================================== */

.cta-section {
  text-align: center;
}

.cta-card {
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(201, 169, 110, 0.02) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-xl);
  text-align: center;
}

.cta-card--dark {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.9) 100%);
}

.cta-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: var(--space-md);
}

.cta-card__text {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  max-width: 42ch;
  margin-inline: auto;
  margin-bottom: var(--space-xl);
  line-height: var(--lh-relaxed);
}

.cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}


/* ==========================================================================
   19. BREADCRUMBS
   ========================================================================== */

.breadcrumb {
  padding-block: var(--space-md);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  list-style: none;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.breadcrumb__item + .breadcrumb__item::before {
  content: '/';
  color: rgba(156, 163, 175, 0.4);
}

.breadcrumb__link {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.breadcrumb__link:hover {
  color: var(--color-gold);
}

.breadcrumb__item--current {
  color: var(--color-gold);
}

/* Flat naming compat */
.breadcrumb-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  color: rgba(156, 163, 175, 0.4);
}

.breadcrumb-item a {
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
}

.breadcrumb-item a:hover {
  color: var(--color-gold);
}

.breadcrumb-item.active {
  color: var(--color-gold);
}


/* ==========================================================================
   20. EDITORIAL & PROSE
   ========================================================================== */

.editorial-intro {
  margin-bottom: var(--space-3xl);
}

.editorial-intro__content {
  max-width: 60ch;
  margin-inline: auto;
  text-align: center;
}

.editorial-intro__content p {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-md);
}

.editorial-review {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.editorial-review__header {
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
}

.editorial-review__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

.editorial-review__date {
  color: var(--color-gold);
}

.editorial-review__author {
  font-weight: 500;
}

.editorial-review__body {
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  line-height: var(--lh-relaxed);
}

.editorial-review__body p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

/* Prose — rich text content */
.prose {
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  line-height: var(--lh-relaxed);
}

.prose h2 {
  font-size: var(--fs-h3);
  margin-top: var(--space-2xl);
  margin-bottom: var(--space-md);
}

.prose h3 {
  font-size: var(--fs-h4);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

.prose p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
}

.prose ul {
  list-style-type: disc;
}

.prose ol {
  list-style-type: decimal;
}

.prose li {
  margin-bottom: var(--space-xs);
  color: var(--color-text-secondary);
}

.prose a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.prose blockquote {
  border-left: 3px solid var(--color-gold);
  padding-left: var(--space-lg);
  margin-block: var(--space-lg);
  font-style: italic;
  color: var(--color-text-secondary);
}

.prose img {
  border-radius: var(--radius-md);
  margin-block: var(--space-lg);
}

/* Neighborhood guide */
.neighborhood-guide {
  margin-top: var(--space-2xl);
}

.neighborhood-guide__content {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
}

.neighborhood-guide__content p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}


/* ==========================================================================
   21. DATA TABLES
   ========================================================================== */

.table-responsive,
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}

.data-table thead {
  border-bottom: 2px solid var(--color-border);
}

.data-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-gold);
  padding: var(--space-md);
  text-align: left;
  white-space: nowrap;
}

.data-table td {
  padding: var(--space-md);
  color: var(--color-text-primary);
  border-bottom: 1px solid rgba(201, 169, 110, 0.08);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background var(--transition-fast);
}

.data-table tbody tr:hover {
  background: rgba(201, 169, 110, 0.04);
}


/* ==========================================================================
   22. IMAGE GALLERY
   ========================================================================== */

.image-gallery {
  margin-block: var(--space-xl);
}

.image-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .image-gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .image-gallery__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.image-gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  background: var(--img-placeholder);
}

.image-gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

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

.image-gallery__item:hover .image-gallery__image {
  transform: scale(1.08);
}

.image-gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0);
  transition: background var(--transition-base);
  pointer-events: none;
}

.image-gallery__item:hover::after {
  background: rgba(0, 0, 0, 0.03);
}

.image-gallery__caption {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  text-align: center;
}


/* ==========================================================================
   23. QUICK FACTS
   ========================================================================== */

.quick-facts {
  margin-block: var(--space-xl);
}

.quick-facts__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .quick-facts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .quick-facts__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.quick-facts__item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.quick-facts__label {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-xs);
}

.quick-facts__value {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-text-heading);
}


/* ==========================================================================
   24. PROS & CONS
   ========================================================================== */

.pros-cons {
  margin-block: var(--space-xl);
}

.pros-cons__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .pros-cons__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.pros-cons__column {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

.pros-cons__column--pros {
  border-color: rgba(16, 185, 129, 0.2);
}

.pros-cons__column--cons {
  border-color: rgba(239, 68, 68, 0.2);
}

.pros-cons__column-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-text-heading);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.pros-cons__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
}

.pros-cons__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-normal);
}

.pros-cons__item--pro {
  /* green tint is on icon */
}

.pros-cons__item--con {
  /* red tint is on icon */
}

.pros-cons__icon {
  flex-shrink: 0;
  width: 1.2rem;
  height: 1.2rem;
  margin-top: 0.15em;
}

.pros-cons__icon--pro,
.pros-cons__check {
  color: var(--color-success);
}

.pros-cons__icon--con,
.pros-cons__cross {
  color: var(--color-error);
}


/* ==========================================================================
   25. AVAILABLE PROPERTIES & AMENITIES
   ========================================================================== */

.available-properties {
  /* section wrapper */
}

.apartment-types {
  /* section for apartment type listings */
}

.amenities-section {
  /* section wrapper */
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .amenities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .amenities-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.amenity-card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  padding: var(--space-md);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.amenity-card:hover {
  border-color: var(--color-border-strong);
}

.amenity-card__name {
  font-size: var(--fs-small);
  color: var(--color-text-primary);
}

.amenity-card svg,
.amenity-card img {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-gold);
}


/* ==========================================================================
   26. BADGES
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-caption);
  font-weight: 500;
  padding: 0.3em 0.75em;
  border-radius: var(--radius-full);
  background: rgba(201, 169, 110, 0.12);
  color: var(--color-gold);
  border: 1px solid rgba(201, 169, 110, 0.2);
  white-space: nowrap;
  line-height: 1.4;
}

.badge--bhk {
  background: rgba(255, 255, 255, 0.06);
  color: var(--color-text-primary);
  border-color: rgba(255, 255, 255, 0.1);
}

.badge--status {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-success);
  border-color: rgba(16, 185, 129, 0.2);
}

.badge--sold {
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-error);
  border-color: rgba(239, 68, 68, 0.2);
}


/* ==========================================================================
   27. FOOTER
   ========================================================================== */

.site-footer {
  background: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding-block: var(--space-3xl) var(--space-xl);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-bottom: var(--space-3xl);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col {
  /* grid child */
}

.footer-col--brand {
  max-width: 24rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-weight: 600;
  color: var(--color-text-heading);
  text-decoration: none;
  margin-bottom: var(--space-md);
}

.footer-logo:hover {
  color: var(--color-text-heading);
}

.footer-logo img {
  height: clamp(1.75rem, 2.5vw, 2.25rem);
  width: auto;
}

.footer-tagline {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
  text-decoration: none;
}

.social-link:hover {
  color: var(--color-gold);
  border-color: var(--color-gold);
  background: rgba(201, 169, 110, 0.08);
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-heading {
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
}

.footer-link {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.footer-links a {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

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

.footer-address {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  font-style: normal;
  margin-bottom: var(--space-md);
}

.footer-contact-line {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xs);
}

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

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: var(--space-xl);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.footer-disclaimer {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  line-height: var(--lh-relaxed);
  opacity: 0.7;
  margin-bottom: var(--space-md);
}

.footer-legal {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .footer-legal {
    flex-direction: row;
    align-items: center;
    gap: var(--space-lg);
  }
}

.footer-copyright {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-legal-link {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-legal-link:hover {
  color: var(--color-gold);
}


/* ==========================================================================
   28. WHATSAPP FLOATING BUTTON
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: var(--z-whatsapp);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius-full);
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  text-decoration: none;
  animation: whatsappBounce 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
  animation-play-state: paused;
}

@keyframes whatsappBounce {
  0%, 100% { transform: translateY(0); }
  15% { transform: translateY(-8px); }
  30% { transform: translateY(0); }
  45% { transform: translateY(-4px); }
  60% { transform: translateY(0); }
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: #ffffff;
}

/* Pulse ring */
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: waPulse 2s ease-out infinite;
}

@keyframes waPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-label {
  position: fixed;
  bottom: calc(var(--space-xl) + 0.75rem);
  right: calc(var(--space-xl) + 4.5rem);
  z-index: var(--z-whatsapp);
  background: rgba(10, 22, 40, 0.9);
  backdrop-filter: blur(12px);
  color: var(--color-text-primary);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: var(--fs-caption);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(0.5rem);
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  pointer-events: none;
}

.whatsapp-float:hover + .whatsapp-label,
.whatsapp-label:hover {
  opacity: 1;
  transform: translateX(0);
}


/* ==========================================================================
   29. BACK TO TOP
   ========================================================================== */

.back-to-top {
  position: fixed;
  bottom: var(--space-xl);
  right: calc(var(--space-xl) + 4.5rem);
  z-index: var(--z-whatsapp);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(1rem);
  transition:
    opacity var(--transition-base),
    visibility var(--transition-base),
    transform var(--transition-base),
    background var(--transition-fast),
    border-color var(--transition-fast);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-decoration: none;
}

.back-to-top.visible,
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(201, 169, 110, 0.15);
  border-color: var(--color-gold);
}

.back-to-top svg {
  width: 1.25rem;
  height: 1.25rem;
}


/* ==========================================================================
   30. SEARCH BAR
   ========================================================================== */

.search-bar {
  position: relative;
  max-width: 36rem;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.9em 1em 0.9em 3em;
  font-size: var(--fs-body);
  color: var(--color-text-primary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.12);
}

.search-icon {
  position: absolute;
  left: 1em;
  top: 50%;
  transform: translateY(-50%);
  width: 1.2rem;
  height: 1.2rem;
  color: var(--color-text-secondary);
  pointer-events: none;
}


/* ==========================================================================
   31. EMPTY STATE
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  color: var(--color-text-secondary);
}

.empty-state p {
  margin-inline: auto;
}


/* ==========================================================================
   32. LINKS
   ========================================================================== */

.link {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

.link--underline {
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-color: rgba(201, 169, 110, 0.4);
  transition: text-decoration-color var(--transition-fast), color var(--transition-fast);
}

.link--underline:hover {
  text-decoration-color: var(--color-gold);
}


/* ==========================================================================
   33. GRID LAYOUTS
   ========================================================================== */

.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: var(--space-lg);
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}


/* ==========================================================================
   34. SKELETON / LOADING STATES
   ========================================================================== */

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
  color: transparent !important;
}

.skeleton * {
  visibility: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(139, 105, 20, 0.04) 40%,
    rgba(201, 169, 110, 0.1) 50%,
    rgba(139, 105, 20, 0.04) 60%,
    transparent 100%
  );
  animation: shimmer 1.8s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}


/* ==========================================================================
   35. SCROLL-DRIVEN ANIMATIONS
   ========================================================================== */

.animate-on-scroll {
  opacity: 1;
}

/* Native scroll-driven — modern browsers */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes fadeSlideUp {
      from {
        opacity: 0;
        transform: translateY(2rem);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .animate-on-scroll {
      animation: fadeSlideUp linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 30%;
    }
  }
}

/* Fallback — IntersectionObserver adds .is-visible */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .animate-on-scroll {
      opacity: 0;
      transform: translateY(2rem);
      transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
    }

    .animate-on-scroll.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Staggered children */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .stagger-children > .animate-on-scroll {
      transition-delay: calc(var(--stagger-index, 0) * 0.1s);
    }
  }
}


/* ==========================================================================
   36. CONTENT VISIBILITY (Rendering Performance)
   ========================================================================== */

.section--lazy {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 40rem;
}


/* ==========================================================================
   37. DIVIDER
   ========================================================================== */

.divider {
  border: none;
  height: 1px;
  background: var(--color-border);
  margin-block: var(--space-xl);
}

.divider--gold {
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}


/* ==========================================================================
   38. UTILITY CLASSES
   ========================================================================== */

.serif         { font-family: var(--font-heading); }
.text-center   { text-align: center; }
.text-gold     { color: var(--color-gold); }
.text-muted    { color: var(--color-text-secondary); }

.flex          { display: flex; }
.flex-col      { flex-direction: column; }
.flex-wrap     { flex-wrap: wrap; }
.items-center  { align-items: center; }
.justify-center   { justify-content: center; }
.justify-between  { justify-content: space-between; }

.gap-sm  { gap: var(--space-sm); }
.gap-md  { gap: var(--space-md); }
.gap-lg  { gap: var(--space-lg); }

.w-full       { width: 100%; }
.max-w-prose  { max-width: 65ch; }
.mx-auto      { margin-inline: auto; }

.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }

.hidden { display: none; }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}


/* ==========================================================================
   39. SCROLLBAR STYLING
   ========================================================================== */

* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-gold-dark) transparent;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--color-gold-dark);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold);
}


/* ==========================================================================
   40. PRINT STYLES
   ========================================================================== */

@media print {
  *,
  *::before,
  *::after {
    background: transparent !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body {
    font-size: 11pt;
    line-height: 1.5;
  }

  .site-header,
  .site-footer,
  .whatsapp-float,
  .whatsapp-label,
  .back-to-top,
  .mobile-menu-toggle,
  .btn-whatsapp,
  .btn--whatsapp,
  .search-bar {
    display: none !important;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }

  .section {
    padding-block: 1rem;
    page-break-inside: avoid;
  }

  .building-card,
  .property-card,
  .collection-card,
  .insight-card {
    border: 1px solid #ccc;
    page-break-inside: avoid;
  }

  a[href]::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #666;
  }

  a[href^="#"]::after,
  a[href^="javascript:"]::after {
    content: '';
  }

  img {
    max-width: 100% !important;
    page-break-inside: avoid;
  }

  h2, h3, h4 {
    page-break-after: avoid;
  }
}


/* ==========================================================================
   41. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .whatsapp-float {
    animation: none;
  }

  .whatsapp-float::before {
    animation: none;
  }

  .skeleton::after {
    animation: none;
  }

  .hero-bg::before {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}
