/* ============================================================
   NEIGHBOURHOOD.CSS — Neighbourhood landing page styles
   ============================================================ */

/* ── Hero ── */
.neighbourhood__hero {
  background: var(--color-primary);
  padding: calc(var(--nav-height) + 4rem) 0 4rem;
  color: #fff;
}

.neighbourhood__area-label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.neighbourhood__hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.neighbourhood__hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.82);
  max-width: 680px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

/* ── Breadcrumb ── */
.breadcrumb {
  margin-bottom: 1.5rem;
}

.breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
}

.breadcrumb__link {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--transition);
}

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

.breadcrumb__item--sep {
  color: rgba(255,255,255,0.35);
}

.breadcrumb__item[aria-current="page"] {
  color: rgba(255,255,255,0.85);
}

/* ── Section title ── */
.neighbourhood__section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3vw, 1.875rem);
  color: var(--color-primary);
  margin-bottom: 1.75rem;
}

.neighbourhood__section-title--centered {
  text-align: center;
}

/* ── Two-column layout ── */
.neighbourhood__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .neighbourhood__two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* ── Stats / At a Glance ── */
.neighbourhood__stats {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.neighbourhood__stat {
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}

.neighbourhood__stat-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.neighbourhood__stat-value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Badges (housing types) ── */
.neighbourhood__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.neighbourhood__badge {
  display: inline-block;
  background: var(--color-bg-slate);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

/* ── Highlights list ── */
.neighbourhood__highlight-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.neighbourhood__highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text);
  line-height: 1.5;
}

.neighbourhood__highlight-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-accent);
  margin-top: 1px;
}

/* ── Listing band ── */
.neighbourhood__listing-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.neighbourhood__band-title {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.75rem);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.neighbourhood__band-sub {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}

/* ── Related neighbourhood cards ── */
.neighbourhood__rel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

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

@media (max-width: 480px) {
  .neighbourhood__rel-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.neighbourhood__rel-card {
  display: block;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.neighbourhood__rel-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.neighbourhood__rel-name {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.375rem;
}

.neighbourhood__rel-price {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ── Mobile ── */

@media (max-width: 768px) {
  /* Hero — center all text, reduce top padding */
  .neighbourhood__hero {
    padding: calc(var(--nav-height) + 2.5rem) 0 3rem;
    text-align: center;
  }

  .neighbourhood__hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  /* Hero CTA button — center it */
  .neighbourhood__hero .btn {
    display: inline-block;
  }

  .neighbourhood__hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Breadcrumb — center and allow wrapping */
  .breadcrumb__list {
    justify-content: center;
  }

  /* Listing band — stack vertically, center */
  .neighbourhood__listing-band {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Section titles already use clamp() so no change needed,
     but centered variant should stay centered */
  .neighbourhood__section-title--centered {
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* Related cards — single column on very small phones */
  .neighbourhood__rel-grid {
    grid-template-columns: 1fr;
  }

  /* Badges wrap tightly on narrow screens */
  .neighbourhood__badges {
    gap: 0.3rem;
  }
}
