/* ============================================================
   SHARED - used by neighborhoods.html AND neighborhood-single.html
   ============================================================ */

/* PAGE HERO - shared inner-page pattern */
.page-hero {
  position: relative;
  height: 480px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-xl);
  margin-top: 60px;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.48);
}

.page-hero-content {
  position: relative;
  z-index: 2;
}

.page-hero-content .section-label {
  color: rgba(255,255,255,0.7);
}

.page-hero-content h1 {
  color: var(--color-white);
  font-size: var(--font-size-page-title);
}

/* LISTING CARD - reused on neighborhood-single listings section */
.listing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: box-shadow var(--transition), transform var(--transition);
}

.listing-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.listing-card-image {
  position: relative;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.listing-card-image-link {
  display: block;
  overflow: hidden;
}

.listing-card-image-link .listing-card-image {
  transition: transform var(--transition);
}

.listing-card-image-link:hover .listing-card-image {
  transform: scale(1.025);
}

.listing-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
}

.listing-badge--sale {
  background: var(--color-accent);
  color: var(--color-white);
}

.listing-card-body {
  padding: var(--space-sm);
}

.listing-price {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.listing-address {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  line-height: 1.4;
}

.listing-details {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  margin-bottom: var(--space-sm);
}

.listing-btn {
  font-size: 11px;
  padding: 8px 18px;
}

/* ============================================================
   NEIGHBORHOODS.HTML - grid overview page
   ============================================================ */

.nbhd-page-header {
  background: var(--color-bg-dark);
  padding-top: 168px;
  padding-bottom: var(--space-lg);
}

.nbhd-page-header .section-label {
  color: rgba(255,255,255,0.78);
}

.nbhd-page-header h1 {
  color: var(--color-white);
  font-size: var(--font-size-page-title);
  margin-bottom: var(--space-sm);
}

.nbhd-page-intro {
  color: rgba(255,255,255,0.6);
  font-size: 16px;
  line-height: 1.75;
  max-width: 680px;
}

.nbhd-grid-section {
  background: var(--color-bg-alt);
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

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

.nbhd-card {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: block;
  text-decoration: none;
}

.nbhd-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
  transition: opacity var(--transition);
}

.nbhd-card:hover .nbhd-card-overlay {
  opacity: 0.85;
}

.nbhd-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-sm);
  z-index: 2;
}

.nbhd-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 4px;
  transition: color var(--transition);
}

.nbhd-card:hover h3 {
  color: #D4B896;
}

.nbhd-tagline {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
}

/* NEIGHBORHOODS OVERVIEW CTA */
.nbhd-cta {
  background: #332C24;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.nbhd-cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.nbhd-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

.nbhd-cta-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   NEIGHBORHOOD-SINGLE.HTML - individual neighborhood page
   ============================================================ */

/* Hero - taller than standard for neighborhood pages */
.nbhd-hero {
  height: 560px;
  align-items: flex-end;
}

.nbhd-hero .page-hero-overlay {
  background: rgba(0,0,0,0.5);
}

/* Breadcrumb */
.nbhd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--space-sm);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.nbhd-breadcrumb a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color var(--transition);
}

.nbhd-breadcrumb a:hover {
  color: var(--color-white);
}

.nbhd-breadcrumb span {
  color: rgba(255,255,255,0.4);
}

.nbhd-hero-tagline {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* Overview section */
.nbhd-overview {
  background: var(--color-bg);
}

.nbhd-overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.nbhd-overview-content h2 {
  margin-bottom: var(--space-md);
}

.nbhd-overview-content p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.nbhd-overview-content p:last-of-type {
  margin-bottom: 0;
}

/* Facts panel */
.nbhd-facts-panel {
  background: var(--color-bg-alt);
  padding: var(--space-md);
  position: sticky;
  top: 120px;
}

.nbhd-facts-panel h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

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

.nbhd-facts-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--color-border);
}

.nbhd-facts-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.fact-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
}

/* Debby's Perspective */
.nbhd-perspective {
  background: var(--color-bg-alt);
}

.nbhd-perspective-inner {
  max-width: 800px;
}

.nbhd-perspective h2 {
  margin-bottom: var(--space-md);
}

.nbhd-perspective-content p {
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: var(--space-md);
}

.nbhd-perspective-content p:last-child {
  margin-bottom: 0;
}

/* Neighborhood listings */
.nbhd-listings {
  background: var(--color-bg);
}

.nbhd-listings h2 {
  margin-bottom: var(--space-sm);
}

.nbhd-listings-note {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.nbhd-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* Map section */
.nbhd-map-section {
  padding: 0;
}

.nbhd-map-frame {
  display: block;
  width: 100%;
  height: 380px;
  border: 0;
}

/* Single neighborhood CTA */
.nbhd-single-cta {
  background: #332C24;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  text-align: center;
}

.nbhd-single-cta h2 {
  color: var(--color-white);
  margin-bottom: var(--space-sm);
}

.nbhd-single-cta p {
  color: rgba(255,255,255,0.65);
  font-size: 17px;
  line-height: 1.75;
  max-width: 520px;
  margin: 0 auto var(--space-lg);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

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

  .nbhd-overview-grid {
    grid-template-columns: 1fr;
  }

  .nbhd-facts-panel {
    position: static;
  }

  .nbhd-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    height: 340px;
  }

  .nbhd-hero {
    height: 400px;
  }

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

  .nbhd-card {
    height: 220px;
  }

  .nbhd-cards-grid {
    grid-template-columns: 1fr;
  }

  .nbhd-page-header {
    padding-top: 136px;
  }
}
