/* ═══════════════════════════════════════════════════════
   FIRST CAPITAL INVESTMENT REALTY
   Color: Navy (#0a1628) + Gold (#c9a84c)
   Fonts: Outfit (display) + Inter (body)
   ═══════════════════════════════════════════════════════ */

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

:root {
  --navy-darkest: #060e1a;
  --navy-dark: #0a1628;
  --navy: #0f1d32;
  --navy-mid: #152542;
  --navy-light: #1c2f52;
  --gold: #c9a84c;
  --gold-light: #d4af5a;
  --gold-pale: #e8d5a0;
  --white: #ffffff;
  --white-90: rgba(255,255,255,0.9);
  --white-70: rgba(255,255,255,0.7);
  --white-50: rgba(255,255,255,0.5);
  --white-20: rgba(255,255,255,0.2);
  --white-10: rgba(255,255,255,0.1);
  --white-05: rgba(255,255,255,0.05);
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 72px;
  --container-max: 1200px;
  --container-wide: 1400px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--white-90);
  background: var(--navy-dark);
  overflow-x: hidden;
}

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

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

/* --- HEADER --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--white-10);
  transition: box-shadow 0.3s var(--ease-out);
}
.header--scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.header__inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.header__logo-img {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  filter: brightness(1.6);
}
.header__nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.header__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--white-70);
  letter-spacing: 0.3px;
  transition: color var(--transition-interactive);
  position: relative;
}
.header__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.header__link:hover { color: var(--white); }
.header__link:hover::after { width: 100%; }

.header__link--cta {
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 10px 24px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background var(--transition-interactive), transform var(--transition-interactive);
}
.header__link--cta::after { display: none; }
.header__link--cta:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}
.header__link--cta:active { transform: translateY(0); }

.header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out);
}
.header__burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header__burger.active span:nth-child(2) { opacity: 0; }
.header__burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px);
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out);
}
.mobile-nav.active {
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mobile-nav__link {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white-70);
  transition: color var(--transition-interactive);
}
.mobile-nav__link:hover, .mobile-nav__link:active { color: var(--gold); }
.mobile-nav__link--cta {
  margin-top: 12px;
  background: var(--gold);
  color: var(--navy-dark) !important;
  padding: 14px 36px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
  text-decoration: none;
}
.btn--gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn--gold:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.25);
}
.btn--gold:active { transform: translateY(0); box-shadow: none; }

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid var(--white-50);
}
.btn--outline:hover {
  border-color: var(--white);
  background: var(--white-10);
  transform: translateY(-2px);
}
.btn--outline:active { transform: translateY(0); }

.btn--large {
  padding: 18px 44px;
  font-size: 16px;
}

.link-arrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.3px;
  transition: color var(--transition-interactive);
}
.link-arrow:hover { color: var(--gold-light); }

/* --- SECTION UTILITIES --- */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.section-header {
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title--light { color: var(--white); }
.section-accent {
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto 20px;
  border-radius: 2px;
}
.section-subtitle {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--white-50);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}
.section-subtitle--light { color: var(--white-50); }

/* --- HERO --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    url('./la-skyline.jpg') center center / cover no-repeat;
  z-index: 0;
}
/* Dark overlay for readability on photo background */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.82) 0%, rgba(10,22,40,0.55) 40%, rgba(10,22,40,0.75) 100%);
  z-index: 1;
}
.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 35%;
  background:
    linear-gradient(0deg,
      rgba(201,168,76,0.06) 0%,
      rgba(201,168,76,0.02) 30%,
      transparent 100%
    );
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 40%, transparent 0%, rgba(6,14,26,0.6) 100%);
  z-index: 2;
}
.hero__content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1100px;
  padding: calc(var(--header-h) + 40px) 24px 80px;
}
.hero__eyebrow {
  font-size: 13px;
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
@media (min-width: 641px) {
  .hero__markets { white-space: nowrap; }
}
.hero__subtitle {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--white-70);
  line-height: 1.6;
  margin-bottom: 40px;
}
.hero__ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white-50);
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* --- STATS BAR --- */
.stats {
  background: var(--navy-darkest);
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
  padding: clamp(40px, 5vw, 56px) 0;
}
.stats__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats__item {
  position: relative;
}
.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--white-10);
}
.stats__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 8px;
}
.stats__label {
  font-size: clamp(12px, 1.5vw, 14px);
  color: var(--white-50);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* --- PROPERTIES (ACTIVE LISTINGS) --- */
.properties {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--navy);
}
.properties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
.properties__grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.properties__grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.property-card {
  background: var(--navy-dark);
  border: 1px solid var(--white-10);
  border-radius: 8px;
  overflow: hidden;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
  border-color: var(--gold);
}
.property-card__image {
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--navy-dark);
}
.property-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.property-card__image--1 {
  background: linear-gradient(135deg, #1a2a4a 0%, #2a3a5a 50%, #1c2f52 100%);
}
.property-card__image--2 {
  background: linear-gradient(135deg, #1c2f52 0%, #253a5e 50%, #1a2a4a 100%);
}
.property-card__image--3 {
  background: linear-gradient(135deg, #152542 0%, #1c2f52 50%, #253a5e 100%);
}
/* Placeholder building shapes (hidden when real photos are used) */
.property-card__image--placeholder::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 60%;
  background:
    linear-gradient(90deg,
      transparent 0%,
      rgba(201,168,76,0.06) 15%, rgba(201,168,76,0.06) 25%,
      transparent 25%,
      transparent 40%,
      rgba(201,168,76,0.08) 40%, rgba(201,168,76,0.08) 55%,
      transparent 55%,
      transparent 70%,
      rgba(201,168,76,0.05) 70%, rgba(201,168,76,0.05) 85%,
      transparent 85%
    );
}
.property-card__image--placeholder::after {
  content: '🏢';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  opacity: 0.15;
}
.property-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: var(--navy-dark);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  z-index: 2;
}
.property-card__body {
  padding: 24px;
}
.property-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.3;
}
.property-card__location {
  font-size: 14px;
  color: var(--white-70);
  margin-bottom: 14px;
  letter-spacing: 0.2px;
}
.property-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.property-card__price {
  font-size: 20px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.property-card__cap {
  font-size: 13px;
  color: var(--white-50);
  font-weight: 500;
}
.property-card__details {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--white-50);
}
.property-card__details span {
  padding-right: 16px;
  border-right: 1px solid var(--white-10);
}
.property-card__details span:last-child { border-right: none; padding-right: 0; }
.property-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  transition: color var(--transition-interactive);
}
.property-card__link:hover { color: var(--gold-light); }

/* --- PROPERTY EXPANDED DETAILS --- */
.property-card__expanded {
  border-top: 1px solid rgba(201, 168, 76, 0.15);
  background: rgba(10, 22, 40, 0.4);
}
.property-card__expanded-inner {
  padding: 28px 28px 32px;
}
.property-card__expanded-inner h4 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold);
  margin: 0 0 12px 0;
  letter-spacing: 0.02em;
}
.property-card__expanded-inner h4:not(:first-child) {
  margin-top: 24px;
}
.property-card__expanded-inner > p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin: 0 0 20px 0;
}
.property-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 480px) {
  .property-card__specs { grid-template-columns: 1fr; }
}
.property-card__spec {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.property-card__spec-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45);
}
.property-card__spec-value {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
}
.property-card__highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
}
.property-card__highlights li {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  padding: 6px 0 6px 20px;
  position: relative;
}
.property-card__highlights li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.property-card__cta {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.property-card__cta p {
  width: 100%;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin: 0 0 4px 0;
}
.btn--sm {
  padding: 10px 22px;
  font-size: 13px;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-interactive);
  text-decoration: none;
}
.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.properties__more { text-align: center; }

/* --- RECENTLY SOLD --- */
.sold {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--navy-dark);
}
.sold__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.sold-card {
  background: var(--navy);
  border: 1px solid var(--white-10);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-interactive), box-shadow var(--transition-interactive);
}
.sold-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}


.sold-card__image {
  height: 160px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a2a4a 0%, #253a5e 100%);
  flex-shrink: 0;
}
.sold-card__image--empty {
  height: 80px;
}
.sold-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sold-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  padding: 3px 10px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 1;
}
.sold-card__body {
  padding: 14px 16px;
}
.sold-card__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  line-height: 1.3;
}
.sold-card__address {
  display: block;
  font-size: 12px;
  color: var(--white-50);
  margin-bottom: 8px;
  line-height: 1.3;
}
.sold-card__price {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}
.sold-card__type {
  font-size: 11px;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* --- SERVICES --- */
.services {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--navy-darkest);
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.service-card {
  background: var(--navy);
  border: 1px solid var(--white-10);
  border-radius: 8px;
  padding: 40px 32px;
  text-align: center;
  transition: transform var(--transition-interactive),
              box-shadow var(--transition-interactive),
              border-color var(--transition-interactive);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
  border-color: var(--gold);
}
.service-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 24px;
}
.service-card__icon svg {
  width: 100%;
  height: 100%;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}
.service-card__text {
  font-size: 15px;
  color: var(--white-50);
  line-height: 1.65;
  margin-bottom: 20px;
}
.service-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gold);
  transition: color var(--transition-interactive);
}
.service-card__link:hover { color: var(--gold-light); }

/* --- CASE STUDY / WHY WORK WITH US --- */
.case-study {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--navy);
}

.case-study__card {
  background: var(--navy-dark);
  border: 1px solid var(--white-10);
  border-radius: 16px;
  padding: clamp(32px, 5vw, 56px) clamp(24px, 4vw, 48px);
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.case-study__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, rgba(201,168,76,0.2) 100%);
}

.case-study__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.case-study__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 36px;
}

/* Narrative Steps */
.case-study__narrative {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 40px;
}

.case-study__step {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--white-05);
}

.case-study__step:first-child {
  padding-top: 0;
}

.case-study__step:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-study__step-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 10px;
  background: rgba(201, 168, 76, 0.06);
  margin-top: 2px;
}

.case-study__step-content h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.3;
}

.case-study__step-content p {
  font-size: 15px;
  color: var(--white-70);
  line-height: 1.75;
  margin: 0;
}

/* Metrics Bar */
.case-study__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--white-05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.case-study__metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px 12px;
  background: var(--navy);
}

.case-study__metric-value {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
  margin-bottom: 6px;
}

.case-study__metric-label {
  font-size: 12px;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

/* Takeaway */
.case-study__takeaway {
  background: rgba(201, 168, 76, 0.05);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
}

.case-study__takeaway p {
  font-size: 15px;
  color: var(--white-70);
  line-height: 1.75;
  margin: 0;
  font-style: italic;
}

/* Case Study Responsive */
@media (max-width: 768px) {
  .case-study__metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-study__step {
    gap: 14px;
  }
  .case-study__step-num {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .case-study__metrics {
    grid-template-columns: 1fr 1fr;
  }
  .case-study__step {
    flex-direction: column;
    gap: 10px;
  }
  .case-study__step-num {
    width: 34px;
    height: 34px;
  }
}

/* --- LA PHOTO DIVIDER --- */
.photo-divider {
  height: clamp(200px, 25vw, 340px);
  position: relative;
  overflow: hidden;
}
.photo-divider__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.photo-divider__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.5) 0%, rgba(10,22,40,0.15) 30%, rgba(10,22,40,0.15) 70%, rgba(10,22,40,0.5) 100%);
  z-index: 1;
}
.photo-divider__caption {
  position: absolute;
  bottom: 16px;
  right: 24px;
  z-index: 2;
  font-size: 12px;
  color: var(--white-50);
  letter-spacing: 0.5px;
}

/* --- ABOUT / TEAM --- */
.about {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--navy);
}
.about__story {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.about__story p {
  font-size: 16px;
  color: var(--white-70);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__story strong { color: var(--white); font-weight: 600; }

/* Team Photo */
.team-photo {
  text-align: center;
  margin: 48px auto 56px;
  max-width: 800px;
}
.team-photo__img {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  border: 2px solid var(--white-10);
}
.team-photo__caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.team-card {
  text-align: center;
  background: var(--navy-dark);
  border: 1px solid var(--white-10);
  border-radius: 8px;
  padding: 40px 28px;
  transition: border-color var(--transition-interactive);
}
.team-card:hover { border-color: var(--gold); }
.team-card__avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.team-card__avatar--1 { background: linear-gradient(135deg, #152542, #1c2f52); }
.team-card__avatar--2 { background: linear-gradient(135deg, #1a2a4a, #253a5e); }
.team-card__avatar--3 { background: linear-gradient(135deg, #1c2f52, #152542); }
.team-card__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.team-card__title {
  font-size: 13px;
  color: var(--gold);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.team-card__bio {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.65;
  margin-bottom: 12px;
}
.team-card__dre {
  font-size: 12px;
  color: var(--white-30, rgba(255,255,255,0.3));
  font-variant-numeric: tabular-nums;
}

/* --- CLIENT REVIEWS / GOOGLE REVIEWS --- */
.testimonials {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--navy-darkest);
}

/* Google Badge */
.google-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}
.google-badge__link {
  text-decoration: none;
  display: inline-block;
}
.google-badge__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--navy);
  border: 1px solid var(--white-10);
  border-radius: 14px;
  padding: 18px 32px;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}
.google-badge__link:hover .google-badge__inner {
  border-color: var(--gold);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.12);
}
.google-badge__logo {
  flex-shrink: 0;
}
.google-badge__source {
  font-size: 13px;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.google-badge__rating {
  display: flex;
  align-items: center;
  gap: 8px;
}
.google-badge__score {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
}
.google-badge__stars {
  display: flex;
  gap: 2px;
}

/* Reviews Grid */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonials__grid--centered {
  grid-template-columns: 1fr;
  max-width: 620px;
  margin: 0 auto;
}

/* Review Card */
.testimonial-card {
  background: var(--navy);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  transition: border-color var(--transition-interactive);
  display: flex;
  flex-direction: column;
}
.testimonial-card:hover { border-color: var(--gold); }
.testimonial-card--google {
  border-radius: 16px;
}
.testimonial-card__source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--white-50);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 12px;
}
.testimonial-card__stars {
  display: flex;
  gap: 2px;
  margin-bottom: 8px;
}
.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: -12px;
  opacity: 0.6;
}
.testimonial-card__text {
  font-size: 14px;
  color: var(--white-70);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 28px;
  border: none;
  padding: 0;
  flex: 1;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy-light);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 600;
  color: var(--white);
  font-size: 15px;
}
.testimonial-card__detail {
  font-size: 13px;
  color: var(--white-50);
}
.testimonial-card__disclaimer {
  margin-top: 12px;
  font-size: 11px;
  color: var(--gold);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Leave a Review CTA */
.google-review-cta {
  text-align: center;
  margin-top: 40px;
}
.google-review-cta__text {
  font-size: 15px;
  color: var(--white-50);
  margin-bottom: 16px;
}
.google-review-cta__btn {
  display: inline-flex;
  align-items: center;
}

/* --- INSTAGRAM FEED --- */
.instagram {
  padding: clamp(64px, 8vw, 112px) 0;
  background: var(--navy-dark);
}
.instagram__feed {
  max-width: 640px;
  margin: 0 auto;
}
.instagram__embed {
  display: flex;
  justify-content: center;
}
.instagram__embed iframe {
  border-radius: 12px !important;
  max-width: 100% !important;
}
.instagram__embed .instagram-media {
  margin: 0 auto !important;
  border-radius: 12px !important;
}
.instagram__cta {
  text-align: center;
  margin-top: 36px;
}
.instagram__cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-size: 15px;
  padding: 14px 32px;
}

@media (max-width: 768px) {
  .instagram__embed {
    padding: 0 4px;
  }
  .instagram__embed iframe {
    max-width: 100% !important;
    min-width: unset !important;
  }
}

/* --- CTA BANNER --- */
.cta-banner {
  padding: clamp(64px, 8vw, 96px) 0;
  background: url('./beverly-hills.jpg') center center / cover no-repeat;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,22,40,0.88) 0%, rgba(10,22,40,0.82) 50%, rgba(10,22,40,0.88) 100%);
}
.cta-banner__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding: 0 24px;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 16px;
}
.cta-banner__text {
  font-size: 17px;
  color: var(--white-70);
  margin-bottom: 32px;
}

/* --- FOOTER --- */
.footer {
  background: var(--navy-darkest);
  border-top: 1px solid var(--white-10);
}
.footer__main {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(20px, 5vw, 40px);
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1.2fr;
  gap: 40px;
}
.footer__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer__logo-img {
  height: 60px;
  width: auto;
  margin-bottom: 20px;
  filter: brightness(1.6);
}
.footer__offices {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__office {
  font-style: normal;
  font-size: 13px;
  color: var(--white-50);
  line-height: 1.6;
}
.footer__office-title {
  color: var(--white-90);
  font-weight: 600;
  font-size: 13px;
}
.footer__office a {
  color: var(--white-70);
  transition: color var(--transition-interactive);
}
.footer__office a:hover { color: var(--gold); }
.footer__office-email {
  margin-top: 4px;
}
.footer__office-email a {
  color: var(--gold);
  font-size: 13px;
  transition: color var(--transition-interactive);
}
.footer__office-email a:hover { color: var(--gold-light); }

.footer__heading {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.footer__list {
  list-style: none;
}
.footer__list li {
  margin-bottom: 10px;
}
.footer__list a {
  font-size: 14px;
  color: var(--white-50);
  transition: color var(--transition-interactive);
}
.footer__list a:hover { color: var(--white); }

.footer__newsletter-text {
  font-size: 14px;
  color: var(--white-50);
  line-height: 1.6;
  margin-bottom: 16px;
}
.footer__form {
  display: flex;
  gap: 0;
}
.footer__input {
  flex: 1;
  padding: 12px 16px;
  background: var(--navy);
  border: 1px solid var(--white-20);
  border-right: none;
  border-radius: 4px 0 0 4px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition-interactive);
}
.footer__input::placeholder { color: var(--white-50); }
.footer__input:focus { border-color: var(--gold); }
.footer__submit {
  padding: 12px 20px;
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  border-radius: 0 4px 4px 0;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-interactive);
  white-space: nowrap;
}
.footer__submit:hover { background: var(--gold-light); }

.footer__form-msg {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--white-70);
  min-height: 1.2em;
}
.footer__form-msg--success { color: #4ade80; }
.footer__form-msg--error { color: #f87171; }

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.footer__social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  border: 1px solid var(--white-20);
  border-radius: 4px;
  color: var(--white-70);
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              border-color var(--transition-interactive);
}
.footer__social-link svg { width: 16px; height: 16px; }
.footer__social-link:hover {
  background: var(--gold);
  color: var(--navy-dark);
  border-color: var(--gold);
}

.footer__bottom {
  border-top: 1px solid var(--white-10);
  padding: 20px 0;
}
.footer__bottom-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--white-50);
}
.footer__bottom-links {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer__bottom-links a {
  color: var(--white-50);
  transition: color var(--transition-interactive);
}
.footer__bottom-links a:hover { color: var(--white); }

.footer__attribution {
  font-size: 12px;
  color: var(--white-30, rgba(255,255,255,0.3));
  transition: color var(--transition-interactive);
}
.footer__attribution:hover { color: var(--white-50); }

/* --- SCROLL REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  .properties__grid { grid-template-columns: repeat(2, 1fr); }
  .sold__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__main { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .header__nav { display: none; }
  .header__burger { display: flex; }

  .hero__content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .stats__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }
  .stats__item:nth-child(2)::after { display: none; }

  .properties__grid { grid-template-columns: 1fr; }
  .properties__grid--two { grid-template-columns: 1fr; max-width: 100%; }
  .sold__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .testimonials__grid { grid-template-columns: 1fr; }

  .footer__main {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer__bottom-links { justify-content: center; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 32px; }
  .hero__ctas {
    flex-direction: column;
    align-items: center;
  }
  .hero__ctas .btn { width: 100%; max-width: 280px; }

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

  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stats__item::after { display: none !important; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* --- LEAD CAPTURE MODAL --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 14, 26, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--navy);
  border: 1px solid var(--white-10);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
  transform: translateY(16px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal {
  transform: translateY(0);
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--white-50);
  font-size: 28px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.modal__close:hover {
  color: var(--white);
  background: var(--white-10);
}
.modal__header {
  text-align: center;
  margin-bottom: 28px;
}
.modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.modal__subtitle {
  font-size: 15px;
  color: var(--white-50);
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--white-70);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.form-label .required {
  color: var(--gold);
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  background: var(--navy-dark);
  border: 1px solid var(--white-20);
  border-radius: 6px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
  -webkit-appearance: none;
}
.form-input::placeholder {
  color: var(--white-30, rgba(255,255,255,0.3));
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
select.form-input {
  cursor: pointer;
}
.form-textarea {
  resize: vertical;
  min-height: 80px;
}
.form-submit {
  width: 100%;
  margin-top: 8px;
  font-size: 16px;
  padding: 16px;
}
.form-disclaimer {
  text-align: center;
  font-size: 12px;
  color: var(--white-30, rgba(255,255,255,0.3));
  margin-top: 12px;
  line-height: 1.5;
}

/* Success state */
.modal__success {
  text-align: center;
  padding: 24px 0;
}
.success-icon {
  width: 64px;
  height: 64px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 auto 20px;
}
.modal__success h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.modal__success p {
  font-size: 15px;
  color: var(--white-70);
  line-height: 1.6;
  margin-bottom: 16px;
}
.success-contact a {
  color: var(--gold);
}
.modal__success .btn {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .modal {
    padding: 28px 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .modal__title {
    font-size: 24px;
  }
}

/* --- FORM ERROR --- */
.form-error {
  background: rgba(220, 53, 69, 0.15);
  border: 1px solid rgba(220, 53, 69, 0.4);
  color: #ff6b6b;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
}

/* --- NEWSLETTER SECTION --- */
.newsletter {
  background: linear-gradient(135deg, #0d1d35 0%, #0a1628 100%);
  padding: 80px 0;
  border-top: 1px solid var(--white-10);
  border-bottom: 1px solid var(--white-10);
}
.newsletter__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.newsletter__content {
  flex: 1;
  max-width: 480px;
}
.newsletter__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}
.newsletter__text {
  font-size: 15px;
  color: var(--white-70);
  line-height: 1.6;
}
.newsletter__form {
  flex: 1;
  max-width: 480px;
}
.newsletter__input-group {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--white-20);
  background: rgba(255,255,255,0.05);
  transition: border-color 0.3s;
}
.newsletter__input-group:focus-within {
  border-color: var(--gold);
}
.newsletter__input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 18px;
  font-size: 15px;
  color: var(--white);
  font-family: var(--font-body);
  outline: none;
}
.newsletter__input::placeholder {
  color: var(--white-50);
}
.newsletter__btn {
  border-radius: 0;
  padding: 14px 28px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}
.newsletter__msg {
  font-size: 13px;
  margin-top: 10px;
  min-height: 18px;
}
.newsletter__msg--success {
  color: #4ade80;
}
.newsletter__msg--error {
  color: #ff6b6b;
}
.newsletter__disclaimer {
  font-size: 12px;
  color: var(--white-40);
  margin-top: 8px;
}

@media (max-width: 768px) {
  .newsletter__inner {
    flex-direction: column;
    text-align: center;
    gap: 32px;
  }
  .newsletter__content,
  .newsletter__form {
    max-width: 100%;
  }
  .newsletter__title {
    font-size: 26px;
  }
}

/* ═══════════════════════════════════════════════════════
   INTERACTIVE PROPERTY MAP
   ═══════════════════════════════════════════════════════ */

.prop-map {
  padding: 96px 0 80px;
  background: var(--navy);
}
.prop-map .section-title {
  color: #ffffff;
}
.prop-map .section-subtitle {
  color: rgba(255,255,255,0.7);
}
.prop-map .section-accent {
  background: var(--gold);
}

.prop-map__filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.prop-map__filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border: 1px solid #ffffff;
  border-radius: 100px;
  background: #ffffff;
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-interactive);
}

.prop-map__filter:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}

.prop-map__filter.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
  font-weight: 600;
}

.prop-map__dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.prop-map__dot--active {
  background: var(--gold);
}

.prop-map__dot--sold {
  background: #152542;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.prop-map__dot--office {
  background: none;
  width: auto;
  height: auto;
  border-radius: 0;
}
.prop-map__dot--office::before {
  content: '\2605';
  font-size: 14px;
  color: var(--gold);
  line-height: 1;
}

.prop-map__wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.prop-map__canvas {
  width: 100%;
  height: 520px;
  background: #ffffff;
}

.prop-map__legend {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.prop-map__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  font-family: var(--font-body);
}

/* --- Leaflet Overrides ---------------------------------------- */

.fcir-marker {
  background: none !important;
  border: none !important;
}

.fcir-popup .leaflet-popup-content-wrapper {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  color: #1B2A3D;
  padding: 0;
}

.fcir-popup .leaflet-popup-content {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
}

.fcir-popup .leaflet-popup-tip {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.1);
  border-top: none;
  border-left: none;
}

.fcir-popup .leaflet-popup-close-button {
  color: #999 !important;
  font-size: 18px;
  top: 6px !important;
  right: 8px !important;
}

.fcir-popup .leaflet-popup-close-button:hover {
  color: #1B2A3D !important;
}

.map-popup {
  padding: 16px 18px;
}

.map-popup__badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.map-popup__badge--active {
  background: var(--gold);
  color: var(--navy-dark);
}

.map-popup__badge--sold {
  background: rgba(27,42,61,0.1);
  color: #1B2A3D;
}

.map-popup__badge--office {
  background: rgba(201,168,76,0.15);
  color: #8a7230;
}


.map-popup__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #1B2A3D;
  margin-bottom: 4px;
}

.map-popup__address {
  font-size: 13px;
  color: #666;
  margin-bottom: 6px;
}

.map-popup__price {
  font-size: 15px;
  font-weight: 600;
  color: var(--gold);
}

.map-popup__type {
  font-size: 12px;
  color: #888;
  margin-top: 2px;
}

/* --- Leaflet controls dark theme --- */

.leaflet-control-zoom a {
  background: #ffffff !important;
  color: #333 !important;
  border-color: rgba(0,0,0,0.15) !important;
}

.leaflet-control-zoom a:hover {
  background: #f0f0f0 !important;
  color: #1B2A3D !important;
}

.leaflet-control-attribution {
  background: rgba(255,255,255,0.85) !important;
  color: #999 !important;
  font-size: 10px !important;
}

.leaflet-control-attribution a {
  color: #999 !important;
}

@media (max-width: 768px) {
  .prop-map {
    padding: 64px 0 56px;
  }
  .prop-map__canvas {
    height: 380px;
  }
  .prop-map__filters {
    gap: 6px;
  }
  .prop-map__filter {
    padding: 7px 14px;
    font-size: 12px;
  }
  .prop-map__legend {
    gap: 16px;
  }
}
