/* ================================================================
   TOP CARMEL REAL ESTATE
   Neighborhoods Page — css/pages/neighborhoods.css
   ================================================================ */

/* ── Neighborhoods hero override ─────────────────────────────────── */
.neighborhoods-hero .page-hero-bg {
  background-image: url('https://images.unsplash.com/photo-1566132127697-4524fea60007?w=1920&q=80');
  background-position: center 55%;
}

/* ── Intro Section ──────────────────────────────────────────────── */
.neighborhoods-intro {
  background: var(--color-white);
  padding-block: var(--space-16);
  text-align: center;
}

.neighborhoods-intro p {
  max-width: 680px;
  margin-inline: auto;
  color: var(--color-text-muted);
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
}

/* ── Neighborhood Section (alternating) ────────────────────────── */
.neighborhood-section {
  padding-block: var(--space-20);
}

.neighborhood-section:nth-child(even) {
  background: var(--color-sand-light);
}

.neighborhood-section:nth-child(odd) {
  background: var(--color-white);
}

.neighborhood-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 1024px) {
  .neighborhood-layout {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  /* Alternate image position */
  .neighborhood-section:nth-child(even) .neighborhood-layout {
    direction: rtl;
  }

  .neighborhood-section:nth-child(even) .neighborhood-layout > * {
    direction: ltr;
  }
}

/* Image side */
.neighborhood-image-wrap {
  position: relative;
}

.neighborhood-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

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

.neighborhood-image-wrap:hover .neighborhood-image img {
  transform: scale(1.04);
}

/* Floating stat badge */
.neighborhood-stat-badge {
  position: absolute;
  bottom: -var(--space-6);
  right: -var(--space-6);
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  box-shadow: var(--shadow-lg);
  min-width: 160px;
}

@media (max-width: 1023px) {
  .neighborhood-stat-badge {
    bottom: var(--space-4);
    right: var(--space-4);
  }
}

.neighborhood-stat-badge-value {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-gold);
  line-height: 1;
}

.neighborhood-stat-badge-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  margin-top: var(--space-1);
}

/* Content side */
.neighborhood-content {
  max-width: 560px;
}

.neighborhood-title {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.neighborhood-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-block: var(--space-5);
  padding-block: var(--space-5);
  border-block: 1px solid var(--color-border-light);
}

.neighborhood-meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.meta-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.meta-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-navy);
}

.neighborhood-vibe {
  display: inline-block;
  background: var(--color-sand);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-navy);
  padding: var(--space-1) var(--space-4);
}

.neighborhood-desc p {
  color: var(--color-text-muted);
  line-height: var(--leading-loose);
  margin-bottom: var(--space-4);
}

.neighborhood-desc p:last-child {
  margin-bottom: 0;
}

.neighborhood-cta {
  margin-top: var(--space-8);
}
