/*
 * Neighbourhood landing pages — /byron/, /old-north/, /wortley-village/, etc.
 *
 * Loaded only on pages using page-neighbourhood.php (see functions.php's
 * conditional enqueue). All selectors are `.lt-nb*` prefixed so this
 * stylesheet can't leak into any other part of the theme.
 *
 * The design language is deliberately restrained: neutral background
 * cards, big serif headings that match the rest of the site, and a
 * green accent for CTAs to reinforce the Limelight brand. On mobile
 * everything collapses to a single readable column with generous
 * vertical rhythm — 40+ neighbourhood pages will get browsed heavily
 * on phones and long-scroll comfort matters more than desktop density.
 */

:root {
  --lt-nb-max: 1180px;
  --lt-nb-radius: 12px;
  --lt-nb-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
  --lt-nb-brand: #6ab75a;
  --lt-nb-brand-dark: #4c9b3f;
  --lt-nb-navy: #2c3a4f;
  --lt-nb-ink: #1f2937;
  --lt-nb-muted: #4b5563;
  --lt-nb-line: #e5e7eb;
  --lt-nb-surface: #ffffff;
  --lt-nb-surface-alt: #f7f8fa;
}

/* ---------- Breadcrumbs ---------- */

.lt-nb__crumbs {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 18px;
  letter-spacing: 0.02em;
}
.lt-nb__crumbs a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}
.lt-nb__crumbs a:hover {
  color: #fff;
  border-color: #fff;
}
.lt-nb__crumb-sep {
  margin: 0 8px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Hero ---------- */

.lt-nb__hero {
  /* Solid slate-navy hero panel that matches the "editorial dark"
   * sections used elsewhere on the site (Our Team, Active Listings).
   * We use a subtle top-to-bottom gradient rather than a flat colour
   * to add a bit of depth without needing a background image. */
  background: linear-gradient(180deg, #2c3a4f 0%, #1f2937 100%);
  color: #fff;
  padding: 56px 20px 64px;
  text-align: left;
}
.lt-nb__hero-inner {
  max-width: var(--lt-nb-max);
  margin: 0 auto;
}
.lt-nb__title {
  color: #fff;
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.08;
  margin: 0 0 12px;
}
.lt-nb__tagline {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  max-width: 680px;
  line-height: 1.5;
  margin: 0 0 28px;
}

.lt-nb__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin: 0 0 28px;
}
.lt-nb__meta-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--lt-nb-radius);
  padding: 10px 14px 12px;
  min-width: 220px;
}
.lt-nb__meta-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 3px;
}
.lt-nb__meta-value {
  display: block;
  font-size: 15px;
  color: #fff;
  font-weight: 500;
}

.lt-nb__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lt-nb__chip {
  background: rgba(106, 183, 90, 0.18);
  border: 1px solid rgba(106, 183, 90, 0.35);
  color: #dbf5d0;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* CTA buttons in the hero */

.lt-nb__hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.lt-nb__cta {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease;
}
.lt-nb__cta:hover { transform: translateY(-1px); }
.lt-nb__cta--primary {
  background: var(--lt-nb-brand);
  color: #fff !important;
  border: 1px solid var(--lt-nb-brand);
}
.lt-nb__cta--primary:hover { background: var(--lt-nb-brand-dark); border-color: var(--lt-nb-brand-dark); }
.lt-nb__cta--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.lt-nb__cta--ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }

/* ---------- Body prose ---------- */

.lt-nb__body {
  background: var(--lt-nb-surface);
  padding: 56px 20px;
}
.lt-nb__body-inner {
  max-width: 780px;
  margin: 0 auto;
}
.lt-nb__prose h2,
.lt-nb__section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  color: var(--lt-nb-navy);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  line-height: 1.15;
}
.lt-nb__prose p {
  font-size: 17px;
  line-height: 1.72;
  color: var(--lt-nb-ink);
  margin: 0 0 18px;
}
.lt-nb__prose--editor {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--lt-nb-line);
}

/* ---------- Cards row (Schools / Amenities) ---------- */

.lt-nb__cards {
  background: var(--lt-nb-surface-alt);
  padding: 48px 20px 56px;
}
.lt-nb__cards-inner {
  max-width: var(--lt-nb-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.lt-nb__card {
  background: #fff;
  border-radius: var(--lt-nb-radius);
  padding: 26px 26px 22px;
  box-shadow: var(--lt-nb-shadow);
  border: 1px solid var(--lt-nb-line);
}
.lt-nb__card-title {
  font-size: 1.15rem;
  color: var(--lt-nb-navy);
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.lt-nb__card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.lt-nb__card-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--lt-nb-line);
  font-size: 15px;
  color: var(--lt-nb-ink);
  line-height: 1.4;
}
.lt-nb__card-list li:last-child { border-bottom: 0; }
.lt-nb__card-note {
  font-size: 12.5px;
  color: var(--lt-nb-muted);
  margin: 12px 0 0;
  line-height: 1.5;
  font-style: italic;
}

/* ---------- Listings feed ---------- */

.lt-nb__listings {
  background: var(--lt-nb-surface);
  padding: 56px 20px;
}
.lt-nb__listings-inner {
  max-width: var(--lt-nb-max);
  margin: 0 auto;
}
.lt-nb__listings-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--lt-nb-muted);
  margin: 0 0 24px;
  max-width: 780px;
}
.lt-nb__listings-lead a { color: var(--lt-nb-brand-dark); text-decoration: none; }
.lt-nb__listings-lead a:hover { text-decoration: underline; }

/* Cap the RealtyPress slider width inside our neighbourhood page so it
 * matches the rest of the design (RPS defaults to full-bleed, which
 * blows past our card grid on wide desktops). */
.lt-nb__listings-frame > * {
  max-width: 100%;
}

/* ---------- Related neighbourhoods ---------- */

.lt-nb__related {
  background: var(--lt-nb-surface-alt);
  padding: 56px 20px 64px;
}
.lt-nb__related-inner {
  max-width: var(--lt-nb-max);
  margin: 0 auto;
}
.lt-nb__related-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.lt-nb__related-item {
  margin: 0;
  padding: 0;
}
.lt-nb__related-item a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--lt-nb-line);
  border-left: 3px solid var(--lt-nb-brand);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--lt-nb-ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  height: 100%;
}
.lt-nb__related-item a:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  border-left-color: var(--lt-nb-brand-dark);
}
.lt-nb__related-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--lt-nb-navy);
  letter-spacing: 0.01em;
}
.lt-nb__related-tag {
  font-size: 13px;
  color: var(--lt-nb-muted);
  line-height: 1.45;
}
.lt-nb__related-cta {
  margin: 0;
  font-size: 14px;
}
.lt-nb__related-cta a {
  color: var(--lt-nb-brand-dark);
  text-decoration: none;
  font-weight: 500;
}
.lt-nb__related-cta a:hover { text-decoration: underline; }

/* ---------- Closing CTA ---------- */

.lt-nb__closer {
  background: linear-gradient(180deg, #2c3a4f 0%, #1f2937 100%);
  color: #fff;
  padding: 56px 20px 64px;
  text-align: center;
}
.lt-nb__closer-inner {
  max-width: 780px;
  margin: 0 auto;
}
.lt-nb__closer .lt-nb__section-title {
  color: #fff;
}
.lt-nb__closer p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 28px;
}
.lt-nb__closer-ctas {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Hub page (/london-neighbourhoods/) tweaks ---------- */

.lt-nbhub__grid {
  background: var(--lt-nb-surface);
  padding: 56px 20px 64px;
}
.lt-nbhub__inner {
  max-width: var(--lt-nb-max);
  margin: 0 auto;
}
.lt-nbhub__region {
  margin: 0 0 48px;
}
.lt-nbhub__region:last-child { margin-bottom: 0; }
.lt-nbhub__region .lt-nb__section-title {
  border-bottom: 2px solid var(--lt-nb-brand);
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 22px;
}
.lt-nbhub__list {
  margin-top: 12px;
}
.lt-nbhub__price {
  font-size: 12.5px;
  color: var(--lt-nb-brand-dark);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 6px;
  display: inline-block;
}

/* ---------- Mobile ---------- */

@media (max-width: 640px) {
  .lt-nb__hero { padding: 40px 18px 48px; }
  .lt-nb__body,
  .lt-nb__cards,
  .lt-nb__listings,
  .lt-nb__related,
  .lt-nb__closer { padding-left: 18px; padding-right: 18px; }
  .lt-nb__prose p { font-size: 16px; line-height: 1.7; }
  .lt-nb__meta-pill { min-width: 0; width: 100%; }
  .lt-nb__hero-meta { gap: 12px; }
  .lt-nb__hero-ctas { flex-direction: column; }
  .lt-nb__cta { text-align: center; }
}
