/*
 * 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-shadow-lift: 0 14px 30px rgba(15, 23, 42, 0.12);
  --lt-nb-brand: #6ab75a;
  --lt-nb-brand-dark: #4c9b3f;
  --lt-nb-brand-ink: #0e7a26;      /* AA-safe green for text on light bg */
  --lt-nb-navy: #2c3a4f;
  --lt-nb-ink: #1f2937;
  --lt-nb-ink-strong: #0f172a;
  --lt-nb-muted: #4b5563;
  --lt-nb-mute-soft: #5b6470;
  --lt-nb-line: #e5e7eb;
  --lt-nb-surface: #ffffff;
  --lt-nb-surface-alt: #f7f8fa;
  --lt-nb-hero-bg:     #f6f3ec;    /* warm off-white */
  --lt-nb-hero-bg-end: #efece3;
  --lt-nb-hero-line:   rgba(15, 23, 42, 0.06);
}

/* ---------- Breadcrumbs (on light hero) ---------- */

.lt-nb__crumbs {
  font-size: 13px;
  color: var(--lt-nb-mute-soft);
  margin: 0 0 24px;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.lt-nb__crumbs a {
  color: var(--lt-nb-mute-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(91, 100, 112, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}
.lt-nb__crumbs a:hover {
  color: var(--lt-nb-ink-strong);
  border-color: var(--lt-nb-ink-strong);
}
.lt-nb__crumb-sep {
  margin: 0 8px;
  color: rgba(91, 100, 112, 0.55);
}

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

.lt-nb__hero {
  /* Editorial warm-cream hero. Softer than the previous slate-navy and
   * gives every neighbourhood page a modern, real-estate-magazine feel
   * with WCAG-AA text contrast throughout. Hairline bottom border
   * separates the hero from the white prose section without a hard rule. */
  background: linear-gradient(180deg, var(--lt-nb-hero-bg) 0%, var(--lt-nb-hero-bg-end) 100%);
  color: var(--lt-nb-ink);
  padding: 72px 20px 80px;
  text-align: left;
  border-bottom: 1px solid var(--lt-nb-hero-line);
}
.lt-nb__hero-inner {
  max-width: var(--lt-nb-max);
  margin: 0 auto;
}
.lt-nb__title {
  color: var(--lt-nb-ink-strong);
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 14px;
}
.lt-nb__tagline {
  color: var(--lt-nb-ink);
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  max-width: 60ch;
  line-height: 1.55;
  margin: 0 0 32px;
}

/* Meta row: "TYPICAL HOUSING" reads as inline editorial metadata with a
 * green accent bar instead of the old bordered-card treatment. Chips
 * flow to the right (or wrap below on narrow viewports). */
.lt-nb__hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  margin: 0 0 34px;
}
.lt-nb__meta-pill {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--lt-nb-brand);
  border-radius: 0;
  padding: 2px 0 2px 14px;
  min-width: 0;
  max-width: 540px;
}
.lt-nb__meta-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lt-nb-mute-soft);
  margin: 0 0 4px;
  font-weight: 600;
}
.lt-nb__meta-value {
  display: block;
  font-size: 15px;
  color: var(--lt-nb-ink);
  font-weight: 500;
  line-height: 1.5;
}

.lt-nb__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.lt-nb__chip {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(14, 122, 38, 0.35);
  color: var(--lt-nb-brand-ink);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  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: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, 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);
  box-shadow: 0 4px 12px rgba(76, 155, 63, 0.28);
}
.lt-nb__cta--primary:hover {
  background: var(--lt-nb-brand-dark);
  border-color: var(--lt-nb-brand-dark);
  box-shadow: 0 6px 16px rgba(76, 155, 63, 0.34);
}
.lt-nb__cta--ghost {
  background: #ffffff;
  color: var(--lt-nb-ink-strong) !important;
  border: 1px solid rgba(15, 23, 42, 0.28);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.lt-nb__cta--ghost:hover {
  background: #ffffff;
  border-color: var(--lt-nb-ink-strong);
  color: var(--lt-nb-ink-strong) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.10);
}

/* ---------- 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(260px, 1fr));
  gap: 22px;
}
.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: 20px 22px;
  text-decoration: none;
  color: var(--lt-nb-ink);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  height: 100%;
}
/* Beat the sitewide `body a:hover { text-decoration: underline }` rule
 * in typography-overrides.css so the whole card doesn't underline on
 * hover — only the title span picks up an underline. */
.lt-nb__related-item a:hover,
.lt-nb__related-item a:focus {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--lt-nb-shadow-lift);
  border-color: rgba(14, 122, 38, 0.25);
  border-left-color: var(--lt-nb-brand-dark);
}
.lt-nb__related-name {
  position: relative;
  padding-right: 20px;
  font-size: 17px;
  font-weight: 600;
  color: var(--lt-nb-ink-strong);
  letter-spacing: 0.005em;
  line-height: 1.3;
}
.lt-nb__related-name::after {
  content: "\203A";                /* single right angle quote */
  position: absolute;
  right: 2px;
  top: -1px;
  font-size: 22px;
  line-height: 1;
  color: var(--lt-nb-brand-dark);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.lt-nb__related-item a:hover .lt-nb__related-name,
.lt-nb__related-item a:focus .lt-nb__related-name {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.lt-nb__related-item a:hover .lt-nb__related-name::after,
.lt-nb__related-item a:focus .lt-nb__related-name::after {
  opacity: 1;
  transform: translateX(0);
}
.lt-nb__related-tag {
  font-size: 13.5px;
  color: var(--lt-nb-muted);
  line-height: 1.5;
}
.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;
}
/* The closer keeps the dark navy panel, so re-skin the ghost CTA back
 * to a translucent white-on-dark treatment (the base .lt-nb__cta--ghost
 * is white-with-navy-border, designed for the light hero). */
.lt-nb__closer .lt-nb__cta--ghost {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: none;
}
.lt-nb__closer .lt-nb__cta--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff !important;
  box-shadow: none;
}

/* ---------- 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 56px;
}
.lt-nbhub__region:last-child { margin-bottom: 0; }
.lt-nbhub__region .lt-nb__section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  border: 0;
  color: var(--lt-nb-ink-strong);
}
/* Slim green accent bar to the left of each region title — replaces
 * the old full-width underline for a cleaner editorial look. */
.lt-nbhub__region .lt-nb__section-title::before {
  content: "";
  display: inline-block;
  width: 32px;
  height: 3px;
  background: var(--lt-nb-brand);
  border-radius: 2px;
  flex: 0 0 auto;
}
.lt-nbhub__list {
  margin-top: 4px;
}
.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: 48px 18px 56px; }
  .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__hero-meta { flex-direction: column; align-items: flex-start; gap: 16px; }
  .lt-nb__meta-pill { width: 100%; max-width: none; }
  .lt-nb__hero-ctas { flex-direction: column; align-items: stretch; }
  .lt-nb__cta { text-align: center; }
  .lt-nb__related-grid { gap: 16px; }
}
