/* ==========================================================================
   ECR Street pages — single-ecr_street.php
   ========================================================================== */

.ecr-street #street-listings,
.ecr-street #homes-for-sale,
.ecr-street #street-sales-history,
.ecr-street #street-alerts {
  scroll-margin-top: 144px;
}

.ecr-street__anchor {
  display: block;
  height: 0;
}

/* --------------------------------------------------------------------------
   Button system — shared across street template
   -------------------------------------------------------------------------- */

.ecr-btn {
  border: 2px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  white-space: nowrap;
}

/* Gold — primary hero CTA */
.ecr-btn--gold {
  background: #c7a76c;
  border-color: #c7a76c;
  color: #18231f;
}
.ecr-btn--gold:hover {
  background: #d4b87a;
  border-color: #d4b87a;
}

/* Outline light — secondary CTA on dark/image backgrounds */
.ecr-btn--outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.65);
  color: #fff;
}
.ecr-btn--outline-light:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}

/* Outline dark — secondary CTA on light backgrounds */
.ecr-btn--outline-dark {
  background: transparent;
  border-color: #2c3e2d;
  color: #2c3e2d;
}
.ecr-btn--outline-dark:hover {
  background: #2c3e2d;
  color: #fff;
}

/* Forest — filled green */
.ecr-btn--forest {
  background: #2c3e2d;
  border-color: #2c3e2d;
  color: #f7f2ea;
}
.ecr-btn--forest:hover {
  background: #1a2b1b;
  border-color: #1a2b1b;
}

/* Dark — kept for back-compat with other templates */
.ecr-btn--dark {
  background: #18231f;
  border-color: #18231f;
  color: #fff;
}
.ecr-btn--dark:hover {
  background: #2c3e2d;
  border-color: #2c3e2d;
}

/* --------------------------------------------------------------------------
   Hero — split layout, dark left / image right
   -------------------------------------------------------------------------- */

.ecr-street__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 520px;
}

.ecr-street__hero-inner {
  background: #18231f;
  color: #f7f2ea;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px max(40px, calc((100vw - 1180px) / 2 + 40px));
  padding-right: 56px;
}

.ecr-street__eyebrow {
  color: #c7a76c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.ecr-street__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  color: #f7f2ea;
  margin: 0 0 20px;
}

.ecr-street__intro {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #b5c0b5;
  margin: 0 0 32px;
  max-width: 480px;
}

.ecr-street__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Inline hero facts */
.ecr-street__hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
}

.ecr-street__hero-facts li {
  color: #b5c0b5;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.ecr-street__hero-facts b {
  color: #f7f2ea;
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.1;
}

/* Hero map — fills the right half, always present */
.ecr-street__hero-map {
  overflow: hidden;
  position: relative;
  min-height: 360px;
  background: #0f1714;
}

.ecr-street__hero-map iframe,
.ecr-street__hero-map > * {
  border: 0;
  display: block;
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

.ecr-street__hero-mapcanvas { inset: 0; }
/* Keep the map box absolutely positioned once the map library styles load
   (they set position: relative on the map element, which would reflow it). */
.ecr-street__hero-map > .ecr-street__hero-mapcanvas { position: absolute; }
.ecr-street__hero-mapcanvas.is-unavailable { display: none; }
.ecr-street__hero-map .mapboxgl-ctrl-bottom-right { z-index: 2; }

/* Street hover popup */
.ecr-street-map-popup .mapboxgl-popup-content {
  background: #18231f;
  border-radius: 7px;
  box-shadow: 0 12px 30px rgba(12, 19, 12, 0.34);
  color: #f7f2ea;
  font-family: 'Manrope', Arial, sans-serif;
  padding: 11px 14px;
}
.ecr-street-map-popup .mapboxgl-popup-tip { display: none; }
.ecr-street-map-popup strong {
  color: #f7f2ea;
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  margin-bottom: 3px;
}
.ecr-street-map-popup .ecr-pin-counts {
  color: #c9d3c9;
  display: block;
  font-size: 0.82rem;
}
.ecr-street-map-popup .ecr-pin-cta {
  color: #c7a76c;
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-top: 5px;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Video embed
   -------------------------------------------------------------------------- */

.ecr-street__video {
  background: #111;
  padding: 56px 0;
}

.ecr-street__video-inner {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 24px;
}

.ecr-street__video-embed {
  aspect-ratio: 16 / 9;
  position: relative;
}

.ecr-street__video-embed iframe,
.ecr-street__video-embed > * {
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Stats bar
   -------------------------------------------------------------------------- */

.ecr-street__stats {
  background: #fffdf9;
  border-bottom: 1px solid #e9e1d3;
}

.ecr-street__stats-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 22px 24px;
}

.ecr-street__stat-chip {
  align-items: center;
  display: flex;
  gap: 10px;
}

.ecr-street__stat-chip .material-symbols-outlined {
  color: #c7a76c;
  font-size: 26px;
}

.ecr-street__stat-chip-value {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.ecr-street__stat-chip-label {
  color: #6d756d;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.ecr-street__stats-cta {
  align-items: center;
  color: #7f5c36;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 700;
  gap: 6px;
  margin-left: auto;
  text-decoration: none;
}

.ecr-street__stats-cta:hover { color: #c7a76c; }
.ecr-street__stats-cta .material-symbols-outlined { font-size: 19px; }

/* --------------------------------------------------------------------------
   About the street — rendered only when written content exists
   -------------------------------------------------------------------------- */

.ecr-street__about {
  padding: 72px 0;
}

.ecr-street__about-inner {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) 320px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.ecr-street__about-inner:not(:has(.ecr-street__note-card)) { grid-template-columns: minmax(0, 760px); }
.ecr-street__about-inner:not(:has(.ecr-street__copy))      { grid-template-columns: minmax(0, 520px); }

.ecr-street__copy {
  color: #3f463f;
  font-size: 1.05rem;
  line-height: 1.75;
}

.ecr-street__copy .eyebrow { display: block; margin-bottom: 14px; }

.ecr-street__copy h2,
.ecr-street__copy h3 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
}

.ecr-street__note-card {
  align-self: start;
  background: #18231f;
  border-radius: 6px;
  color: #f7f2ea;
  padding: 28px;
}

.ecr-street__note-card .material-symbols-outlined { color: #c7a76c; font-size: 26px; }

.ecr-street__note-card h2 {
  color: #f7f2ea;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  margin: 10px 0 12px;
}

.ecr-street__note-card p {
  color: #b5c0b5;
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0 0 18px;
}

.ecr-street__note-cta {
  color: #c7a76c;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.ecr-street__note-cta:hover { color: #d9c39a; }

/* --------------------------------------------------------------------------
   Map section
   -------------------------------------------------------------------------- */

.ecr-street__map {
  padding: 0 0 72px;
}

.ecr-street__map-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.ecr-street__map-embed iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
  height: auto;
  width: 100%;
}

/* --------------------------------------------------------------------------
   Active listings
   -------------------------------------------------------------------------- */

.ecr-street__listings {
  background: #f7f2ea;
  padding: 72px 0;
}

.ecr-street__listings-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.ecr-street__listings-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.ecr-street__listings-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ecr-forest, #2c3e2d);
  margin: 4px 0 0;
}

.ecr-street__listings-summary {
  color: #6d756d;
  font-size: 0.95rem;
  margin: 8px 0 0;
}

.ecr-street__listing-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ecr-street-listing {
  background: #fffdf9;
  border: 1px solid #e4ddd0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.ecr-street-listing:hover {
  border-color: #c7a76c;
  box-shadow: 0 16px 36px rgba(24, 35, 31, 0.09);
  transform: translateY(-2px);
}

.ecr-street-listing__media {
  aspect-ratio: 4 / 3;
  background: #18231f;
  color: #c7a76c;
  display: block;
  overflow: hidden;
  position: relative;
  text-decoration: none;
}

.ecr-street-listing__media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.ecr-street-listing__media .material-symbols-outlined {
  font-size: 44px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}

.ecr-street-listing__status {
  background: rgba(247, 242, 234, 0.92);
  bottom: 14px;
  color: #18231f;
  font-size: 0.75rem;
  font-weight: 800;
  left: 14px;
  letter-spacing: 0.04em;
  padding: 8px 10px;
  position: absolute;
  text-transform: uppercase;
}

.ecr-street-listing__status--lease {
  background: #d9ead7;
}

/* Virtual-tour tag — top-left, provider-aware */
.ecr-street-listing__tour {
  align-items: center;
  background: rgba(24, 35, 31, 0.82);
  border-radius: 999px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
  color: #fff;
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 800;
  gap: 5px;
  left: 14px;
  letter-spacing: 0.04em;
  padding: 6px 11px 6px 8px;
  position: absolute;
  text-transform: uppercase;
  top: 14px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}
.ecr-street-listing__tour--video { background: rgba(40, 28, 22, 0.84); }

/* Override the generic centered media icon for the badge's own icon */
.ecr-street-listing__media .ecr-street-listing__tour .material-symbols-outlined {
  color: #c7a76c;
  font-size: 15px;
  left: auto;
  position: static;
  top: auto;
  transform: none;
}
.ecr-street-listing__tour--video .material-symbols-outlined { color: #e8b572; }

.ecr-street-listing__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 18px 20px 20px;
}

.ecr-street-listing__topline {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.ecr-street-listing__topline h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.25;
  margin: 0;
}

.ecr-street-listing__topline h3 a {
  color: #2c3e2d;
  text-decoration: none;
}

.ecr-street-listing__topline h3 a:hover {
  color: #7f5c36;
}

.ecr-street-listing__topline strong {
  color: #18231f;
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 800;
}

.ecr-street-listing__meta,
.ecr-street-listing__brokerage,
.ecr-street-listing__remarks,
.ecr-street-listing__footer {
  font-size: 0.84rem;
  line-height: 1.55;
}

.ecr-street-listing__meta {
  color: #6d756d;
  margin: 8px 0 0;
}

.ecr-street-listing__meta span {
  color: #b7a27e;
  margin: 0 4px;
}

.ecr-street-listing__brokerage {
  color: #7f5c36;
  font-weight: 700;
  margin: 10px 0 0;
}

.ecr-street-listing__facts {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0 0;
}

.ecr-street-listing__facts span {
  align-items: center;
  background: #f7f2ea;
  color: #6d756d;
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  gap: 1px;
  padding: 10px 6px;
  text-align: center;
}

.ecr-street-listing__facts .material-symbols-outlined {
  color: #c7a76c;
  font-size: 19px;
  margin-bottom: 2px;
}

.ecr-street-listing__facts b {
  color: #18231f;
  display: block;
  font-size: 0.92rem;
  line-height: 1.2;
}

.ecr-street-listing__remarks {
  color: #626b62;
  margin: 15px 0 0;
}

.ecr-street-listing__footer {
  align-items: center;
  border-top: 1px solid #eee7da;
  color: #7b847b;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
}

.ecr-street-listing__footer span {
  background: #fbf8f2;
  border: 1px solid #eadfcd;
  padding: 5px 9px;
}

.ecr-street-listing__footer a {
  color: #2c3e2d;
  font-weight: 800;
  margin-left: auto;
  text-decoration: none;
  text-transform: uppercase;
}

.ecr-street-listing__footer a:hover {
  color: #7f5c36;
}

.ecr-street__listings-placeholder {
  align-items: flex-start;
  background: #fffdf9;
  border: 1px solid #e4ddd0;
  border-radius: 6px;
  display: flex;
  gap: 24px;
  padding: 40px;
}

.ecr-street__listings-placeholder .material-symbols-outlined {
  color: #c7a76c;
  flex-shrink: 0;
  font-size: 40px;
}

.ecr-street__listings-placeholder h3 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 8px;
}

.ecr-street__listings-placeholder p {
  color: #6d756d;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 18px;
  max-width: 560px;
}

.ecr-street__placeholder-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --------------------------------------------------------------------------
   Sold data — locked
   -------------------------------------------------------------------------- */

.ecr-street__sold {
  background: #18231f;
  padding: 72px 0;
}

.ecr-street__sold-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.ecr-street__sold-inner .eyebrow {
  color: #c7a76c;
}

.ecr-street__sold-inner h2 {
  color: #f7f2ea;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 0 0 20px;
}

.ecr-street__sold-locked {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  margin: 0 auto;
  max-width: 540px;
  padding: 48px 40px;
  text-align: center;
}

.ecr-street__sold-locked--compact {
  border: 0;
  background: 0;
  padding: 28px 0 0;
}

.ecr-street__sold-lock-icon {
  align-items: center;
  background: rgba(199,167,108,0.12);
  border-radius: 50%;
  display: flex;
  height: 64px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 64px;
}

.ecr-street__sold-lock-icon .material-symbols-outlined {
  color: #c7a76c;
  font-size: 28px;
}

.ecr-street__sold-teaser {
  color: #b5c0b5;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0 0 28px;
}

.ecr-street__sold-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
}

.ecr-street__sold-note {
  color: #6e7e6e;
  font-size: 0.85rem;
  margin: 0;
}

.ecr-street__sold-note a {
  color: #c7a76c;
  text-decoration: underline;
}

/* Sold card grid (inside the dark section) */
.ecr-street__sold-cards {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

/* Dark card variant — used for sold/leased records and blurred teasers */
.ecr-street-listing--sold {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.ecr-street-listing--sold:hover {
  border-color: #c7a76c;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.ecr-street-listing--sold .ecr-street-listing__topline h3 {
  font-size: 1rem;
}

.ecr-street-listing--sold .ecr-street-listing__topline h3,
.ecr-street-listing--sold .ecr-street-listing__topline h3 a {
  color: #f0ece4;
}

.ecr-street-listing--sold .ecr-street-listing__topline h3 a:hover {
  color: #c7a76c;
}

.ecr-street-listing--sold .ecr-street-listing__topline strong {
  color: #c7a76c;
}

.ecr-street-listing--sold .ecr-street-listing__meta {
  color: #7a8a7a;
}

.ecr-street-listing--sold .ecr-street-listing__brokerage {
  color: #7a8a7a;
  font-weight: 600;
}

.ecr-street-listing--sold .ecr-street-listing__facts span {
  background: rgba(255, 255, 255, 0.05);
  color: #6a7a6a;
}

.ecr-street-listing--sold .ecr-street-listing__facts b {
  color: #e8e0d4;
}

.ecr-street-listing--sold .ecr-street-listing__facts .material-symbols-outlined {
  color: #c7a76c;
}

.ecr-street-listing--sold .ecr-street-listing__footer {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #6a7a6a;
}

.ecr-street-listing--sold .ecr-street-listing__footer a {
  color: #c7a76c;
}

.ecr-street-listing--sold .ecr-street-listing__footer a:hover {
  color: #d4b87a;
}

/* Status badge sold/leased variants */
.ecr-street-listing__status--sold {
  background: rgba(24, 35, 31, 0.9);
  color: #c7a76c;
}

.ecr-street-listing__status--leased {
  background: rgba(30, 64, 38, 0.9);
  color: #a8dfb0;
}

/* Blurred / gated card — guest sold teasers */
.ecr-street-listing--gated {
  cursor: default;
  position: relative;
}

.ecr-street-listing--gated:hover {
  box-shadow: none;
  transform: none;
}

.ecr-street-listing--gated .ecr-street-listing__media img {
  filter: blur(12px);
  transform: scale(1.06);
}

.ecr-street-listing--gated .ecr-street-listing__body {
  filter: blur(5px);
  opacity: 0.2;
  pointer-events: none;
}

.ecr-street-listing__gate {
  align-items: center;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  background: rgba(14, 20, 16, 0.6);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: absolute;
  right: 0;
  text-align: center;
  top: 0;
  z-index: 10;
}

.ecr-street-listing__gate .material-symbols-outlined {
  color: #c7a76c;
  font-size: 26px;
}

.ecr-street-listing__gate-msg {
  color: #f0ece4;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.45;
}

/* Sold table toggle (details/summary) */
.ecr-street__sold-table-toggle {
  margin-bottom: 20px;
}

.ecr-street__sold-table-toggle > summary {
  -webkit-user-select: none;
  align-items: center;
  color: #c7a76c;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 6px;
  letter-spacing: 0.05em;
  list-style: none;
  padding: 10px 0;
  text-transform: uppercase;
  user-select: none;
}

.ecr-street__sold-table-toggle > summary::-webkit-details-marker { display: none; }

.ecr-street__sold-table-toggle > summary::before {
  content: '▶';
  display: inline-block;
  font-size: 0.55em;
  transition: transform 0.15s;
}

.ecr-street__sold-table-toggle[open] > summary::before {
  transform: rotate(90deg);
}

.ecr-street__sold-table-toggle > summary:hover {
  color: #d4b87a;
}

/* --------------------------------------------------------------------------
   Street alerts CTA — two-column form
   -------------------------------------------------------------------------- */

.ecr-street__alerts {
  background: #f7f2ea;
  padding: 80px 0;
}

.ecr-street__alerts-inner {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr 420px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.ecr-street__alerts-copy .eyebrow {
  color: #7f5c36;
}

.ecr-street__alerts-copy h2 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.2;
  margin: 0 0 16px;
}

.ecr-street__alerts-copy > p {
  color: #3f463f;
  font-size: 1rem;
  line-height: 1.7;
  margin: 0 0 28px;
}

.ecr-street__alerts-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ecr-street__alerts-benefits li {
  align-items: center;
  color: #3f463f;
  display: flex;
  font-size: 0.95rem;
  gap: 10px;
}

.ecr-street__alerts-benefits .material-symbols-outlined {
  color: #2c3e2d;
  font-size: 18px;
  flex-shrink: 0;
}

/* Alert form */
.ecr-street__alerts-form-wrap {
  background: #fff;
  border: 1px solid #e4ddd0;
  padding: 32px 28px;
}

.ecr-street__alerts-form input[type="text"],
.ecr-street__alerts-form input[type="email"] {
  background: #f9f7f4;
  border: 1px solid #d4c5a8;
  box-sizing: border-box;
  color: #18231f;
  display: block;
  font-size: 0.95rem;
  margin-bottom: 12px;
  padding: 12px 14px;
  width: 100%;
}

.ecr-street__alerts-form input::placeholder {
  color: #aaa;
}

.ecr-street__alerts-form button {
  background: #c7a76c;
  border: none;
  color: #18231f;
  cursor: pointer;
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 20px;
  text-transform: uppercase;
  transition: background 0.15s;
  width: 100%;
}

.ecr-street__alerts-form button:hover {
  background: #d4b87a;
}

.ecr-street__alerts-trust {
  color: #999;
  font-size: 0.78rem;
  margin: 14px 0 0;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Explore other streets
   -------------------------------------------------------------------------- */

.ecr-street__explore {
  background: #fff;
  padding: 72px 0;
}

.ecr-street__explore-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.ecr-street__explore-header {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.ecr-street__explore-header .eyebrow {
  color: #7f5c36;
}

.ecr-street__explore-header h2 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin: 4px 0 0;
}

.ecr-street__explore-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.ecr-street__explore-card {
  align-items: center;
  background: #f7f2ea;
  border: 1px solid #e4ddd0;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  padding: 20px 22px;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.ecr-street__explore-card:hover {
  background: #f0ebe0;
  border-color: #c7a76c;
}

.ecr-street__explore-name {
  color: #18231f;
  font-size: 0.95rem;
  font-weight: 600;
}

.ecr-street__explore-count {
  color: #6b6b6b;
  font-size: 0.8rem;
  margin-left: auto;
  white-space: nowrap;
}

.ecr-street__explore-arrow {
  color: #c7a76c;
  font-size: 1rem;
  margin-left: 8px;
}

/* --------------------------------------------------------------------------
   Kept for back-compat (school / park templates use ecr-cpt-hero / ecr-cpt-cta)
   -------------------------------------------------------------------------- */

.ecr-cpt-hero {
  background: #f7f2ea;
  padding: 80px max(24px, calc((100vw - 1180px) / 2));
}

.ecr-cpt-hero__eyebrow {
  color: #7f5c36;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 16px;
  text-transform: uppercase;
}

.ecr-cpt-hero__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  line-height: 1.0;
  color: var(--ecr-forest, #2c3e2d);
  margin: 0 0 20px;
}

.ecr-cpt-hero__intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3f463f;
  max-width: 600px;
  margin: 0 0 28px;
}

.ecr-cpt-cta {
  background: #18231f;
  color: #f7f2ea;
  padding: 72px max(24px, calc((100vw - 1180px) / 2));
}

.ecr-cpt-cta__inner {
  display: grid;
  gap: 56px;
  grid-template-columns: 1fr 1fr;
  max-width: 1180px;
  margin: 0 auto;
}

.ecr-cpt-cta__headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #f7f2ea;
  margin: 0 0 16px;
  line-height: 1.2;
}

.ecr-cpt-cta__subline {
  font-size: 1rem;
  line-height: 1.65;
  color: #b5c0b5;
  margin: 0 0 20px;
}

.ecr-cpt-cta__agent {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #b5c0b5;
  margin: 0;
}

.ecr-cpt-cta__agent a {
  color: #c7a76c;
  text-decoration: none;
}

.ecr-cpt-cta__form input,
.ecr-cpt-cta__form textarea {
  display: block;
  width: 100%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: #f7f2ea;
  font-size: 0.95rem;
  padding: 11px 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
}

.ecr-cpt-cta__form input::placeholder,
.ecr-cpt-cta__form textarea::placeholder {
  color: rgba(247,242,234,0.45);
}

.ecr-cpt-cta__form button {
  background: #c7a76c;
  border: none;
  color: #18231f;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  width: 100%;
}

.ecr-cpt-cta__form button:hover {
  background: #d4b87a;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .ecr-street__hero {
    grid-template-columns: 1fr;
  }

  .ecr-street__hero-inner {
    padding: 56px 24px;
  }

  .ecr-street__hero-map {
    min-height: 300px;
    height: 300px;
  }

  .ecr-street__alerts-inner {
    grid-template-columns: 1fr;
  }

  .ecr-street__listing-grid,
  .ecr-street__sold-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .ecr-street__about-inner,
  .ecr-cpt-cta__inner {
    grid-template-columns: 1fr !important;
  }

  .ecr-street__stats-cta {
    margin-left: 0;
    width: 100%;
  }

  .ecr-street__sold-locked {
    padding: 36px 24px;
  }

  .ecr-street__explore-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ecr-cpt-hero {
    padding: 56px 24px;
  }
}

@media (max-width: 540px) {
  .ecr-street__listings-placeholder {
    flex-direction: column;
    gap: 16px;
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  .ecr-street__listing-grid,
  .ecr-street__sold-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 540px) {
  .ecr-street-listing__topline {
    display: block;
  }

  .ecr-street-listing__topline strong {
    display: block;
    margin-top: 6px;
  }

  .ecr-street-listing__footer a {
    flex-basis: 100%;
    margin-left: 0;
  }

  .ecr-street__explore-grid {
    grid-template-columns: 1fr;
  }

  .ecr-street__listings-header,
  .ecr-street__explore-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ecr-street__sold-actions {
    flex-direction: column;
  }

  .ecr-street__sold-actions .ecr-btn {
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================================================
   Streets hub — archive-ecr_street.php
   ========================================================================== */

.ecr-streets-hub { background: #fffdf9; }

/* Map-led hero */
.ecr-streets-hub__hero {
  background: #0f1714;
  color: #f7f2ea;
  height: max(680px, calc(100svh - var(--ecr-site-nav-height, 72px)));
  min-height: 680px;
  overflow: hidden;
  position: relative;
}

.ecr-streets-hub__mapcanvas {
  background: #dfe5dc;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
}
.ecr-streets-hub__mapcanvas.is-unavailable { display: none; }
.ecr-streets-hub__hero > .ecr-streets-hub__mapcanvas { position: absolute; }

.ecr-streets-hub__hero-shade {
  background:
    linear-gradient(90deg, rgba(14, 25, 18, 0.9) 0%, rgba(14, 25, 18, 0.74) 25%, rgba(14, 25, 18, 0.16) 48%, rgba(14, 25, 18, 0.03) 100%),
    linear-gradient(0deg, rgba(14, 25, 18, 0.54) 0%, transparent 24%, transparent 72%, rgba(14, 25, 18, 0.18) 100%);
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.ecr-streets-hub__hero-inner {
  background: rgba(14, 25, 18, 0.93);
  border: 1px solid rgba(247, 242, 234, 0.1);
  border-top: 2px solid #c7a76c;
  box-shadow: 0 40px 100px rgba(7, 16, 10, 0.38);
  left: clamp(20px, 5vw, 76px);
  max-width: min(510px, 38vw);
  padding: clamp(24px, 3vw, 38px);
  position: absolute;
  top: clamp(54px, 9vh, 92px);
  z-index: 3;
}

.ecr-streets-hub__eyebrow {
  color: #c7a76c;
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.ecr-streets-hub__hero h1 {
  font-family: 'Literata', 'Playfair Display', Georgia, serif;
  font-size: clamp(2.35rem, 4vw, 4rem);
  font-weight: 650;
  line-height: 0.98;
  margin: 0 0 18px;
  text-wrap: balance;
}

.ecr-streets-hub__intro {
  color: rgba(247, 242, 234, 0.68);
  font-size: 0.92rem;
  line-height: 1.72;
  margin: 0 0 26px;
  max-width: 46ch;
}

.ecr-streets-hub__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 34px;
  margin-bottom: 26px;
}

.ecr-streets-hub__stats div { display: flex; flex-direction: column; }
.ecr-streets-hub__stats b {
  color: #f7f2ea;
  font-family: 'Literata', 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
}
.ecr-streets-hub__stats span {
  color: #9aa79a;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin-top: 4px;
  text-transform: uppercase;
}

.ecr-streets-hub__hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ecr-streets-hub__active-streets {
  border-top: 1px solid rgba(247, 242, 234, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 24px;
  padding-top: 18px;
}
.ecr-streets-hub__active-streets > span {
  color: rgba(247, 242, 234, 0.46);
  flex: 0 0 100%;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ecr-streets-hub__active-streets a {
  align-items: center;
  background: rgba(247, 242, 234, 0.06);
  border: 1px solid rgba(247, 242, 234, 0.11);
  color: rgba(247, 242, 234, 0.8);
  display: inline-flex;
  font-size: 12px;
  gap: 7px;
  min-height: 34px;
  padding: 7px 10px;
  transition: background 160ms, border-color 160ms;
}
.ecr-streets-hub__active-streets a:hover {
  background: rgba(199, 167, 108, 0.14);
  border-color: rgba(199, 167, 108, 0.46);
}
.ecr-streets-hub__active-streets b {
  align-items: center;
  background: #c7a76c;
  border-radius: 50%;
  color: #18231f;
  display: inline-flex;
  font-size: 12px;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.ecr-streets-hub__map-legend {
  align-items: center;
  background: rgba(250, 248, 244, 0.93);
  bottom: 24px;
  color: #18231f;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 18px;
  left: clamp(20px, 5vw, 76px);
  letter-spacing: 0.06em;
  padding: 11px 14px;
  position: absolute;
  text-transform: uppercase;
  z-index: 3;
}
.ecr-streets-hub__map-legend span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}
.ecr-streets-hub__legend-line {
  background: #5f8b6a;
  border-radius: 999px;
  height: 4px;
  width: 28px;
}
.ecr-streets-hub__legend-pin {
  background: #1f412a;
  border: 2px solid #fffdf9;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(15, 23, 20, 0.35);
  height: 12px;
  width: 12px;
}

.ecr-streets-hub__map-hint {
  align-items: center;
  background: rgba(24, 35, 31, 0.9);
  border-radius: 999px;
  bottom: 18px;
  color: #f7f2ea;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 7px;
  margin: 0;
  padding: 9px 16px;
  position: absolute;
  right: 20px;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  z-index: 3;
}
.ecr-streets-hub__map-hint .material-symbols-outlined { color: #c7a76c; font-size: 18px; }

.ecr-streets-hub__listing-pin {
  background: #1f412a;
  border: 2px solid #fffdf9;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(15, 23, 20, 0.28);
  color: #fffdf9;
  display: block;
  font-family: 'Manrope', Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  padding: 7px 9px;
  text-decoration: none;
  transform-origin: bottom center;
  transition: background 160ms, transform 160ms;
  white-space: nowrap;
}
.ecr-streets-hub__listing-pin:hover,
.ecr-streets-hub__listing-pin:focus-visible {
  background: #c7a76c;
  color: #18231f;
  transform: scale(1.08);
}
.ecr-streets-hub__listing-pin--lease {
  background: #315f7b;
}

/* From the neighbourhood — street photo strip */
.ecr-streets-hub__photo-strip { padding: 48px 0 8px; }
.ecr-streets-hub__photo-strip-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}
.ecr-streets-hub__photo-strip-title {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--ecr-forest, #2c3e2d);
  margin: 0 0 20px;
}
.ecr-streets-hub__photo-strip-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
}
.ecr-streets-hub__photo-strip-item {
  display: block;
  text-decoration: none;
  color: inherit;
}
.ecr-streets-hub__photo-strip-item img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.5rem;
}
.ecr-streets-hub__photo-strip-caption {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ecr-slate, #4a5568);
}
@media (max-width: 960px) {
  .ecr-streets-hub__photo-strip-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .ecr-streets-hub__photo-strip-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
}

/* Directory */
.ecr-streets-hub__directory { padding: 72px 0; }
.ecr-streets-hub__directory-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 24px;
}

.ecr-streets-hub__directory-head {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 36px;
}

.ecr-streets-hub__directory-head h2 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 4px 0 0;
}

.ecr-streets-hub__search {
  align-items: center;
  background: #fff;
  border: 1px solid #d9cdb6;
  border-radius: 999px;
  display: flex;
  gap: 8px;
  min-width: min(320px, 100%);
  padding: 11px 18px;
}
.ecr-streets-hub__search .material-symbols-outlined { color: #b08d4f; font-size: 20px; }
.ecr-streets-hub__search input {
  background: none;
  border: 0;
  color: #18231f;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  width: 100%;
}

.ecr-streets-hub__groups { column-count: 3; column-gap: 44px; }
.ecr-streets-hub__group {
  break-inside: avoid;
  display: inline-block;
  margin-bottom: 26px;
  width: 100%;
}

.ecr-streets-hub__letter {
  border-bottom: 2px solid #e4ddd0;
  color: #c7a76c;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  margin: 0 0 8px;
  padding-bottom: 6px;
}

.ecr-streets-hub__group ul { list-style: none; margin: 0; padding: 0; }

.ecr-streets-hub__item a {
  align-items: center;
  border-radius: 7px;
  color: #18231f;
  display: flex;
  gap: 10px;
  padding: 9px 12px;
  text-decoration: none;
  transition: background 0.14s ease;
}
.ecr-streets-hub__item a:hover { background: #f3ecdd; }

.ecr-streets-hub__item-name { font-weight: 600; }
.ecr-streets-hub__item-meta {
  color: #8a8f86;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 4px 8px;
  margin-left: auto;
  text-align: right;
}
.ecr-streets-hub__item-active { color: #7f5c36; font-weight: 700; }
.ecr-streets-hub__item-arrow {
  color: #c7a76c;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.14s, transform 0.14s;
}
.ecr-streets-hub__item a:hover .ecr-streets-hub__item-arrow { opacity: 1; transform: translateX(0); }

.ecr-streets-hub__noresults { color: #6d756d; font-size: 1rem; margin: 8px 0 0; }
.ecr-streets-hub__empty { text-align: center; padding: 40px 0; color: #6d756d; }

/* CTA band */
.ecr-streets-hub__cta { background: var(--ecr-forest, #2c3e2d); color: #f7f2ea; }
.ecr-streets-hub__cta-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding: 56px 24px;
}
.ecr-streets-hub__cta .eyebrow { color: #c7a76c; }
.ecr-streets-hub__cta h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  margin: 6px 0 10px;
  max-width: 20ch;
}
.ecr-streets-hub__cta p { color: #b5c0b5; margin: 0; max-width: 46ch; }
.ecr-streets-hub__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 900px) {
  .ecr-streets-hub__groups { column-count: 2; column-gap: 32px; }
  .ecr-streets-hub__hero-inner {
    left: 24px;
    max-width: min(500px, calc(100% - 48px));
  }
}

@media (max-width: 600px) {
  .ecr-streets-hub__hero {
    height: 880px;
    min-height: 880px;
  }
  .ecr-streets-hub__hero-shade {
    background: linear-gradient(180deg, rgba(14, 25, 18, 0.84) 0%, rgba(14, 25, 18, 0.44) 46%, rgba(14, 25, 18, 0.76) 100%);
  }
  .ecr-streets-hub__hero-inner {
    left: 16px;
    max-width: none;
    padding: 22px;
    right: 16px;
    top: 82px;
  }
  .ecr-streets-hub__hero h1 {
    font-size: clamp(36px, 11vw, 46px);
  }
  .ecr-streets-hub__intro {
    margin-bottom: 18px;
  }
  .ecr-streets-hub__stats {
    gap: 14px 26px;
    margin-bottom: 18px;
  }
  .ecr-streets-hub__hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecr-streets-hub__hero-actions .ecr-btn {
    justify-content: center;
    padding-inline: 10px;
    text-align: center;
  }
  .ecr-streets-hub__active-streets {
    display: none;
  }
  .ecr-streets-hub__map-legend {
    bottom: 20px;
    left: 16px;
  }
  .ecr-streets-hub__map-hint {
    bottom: 68px;
    left: 16px;
    right: auto;
  }
  .ecr-streets-hub__listing-pin {
    border-width: 2px;
    font-size: 0;
    height: 15px;
    padding: 0;
    width: 15px;
  }
  .ecr-streets-hub__groups { column-count: 1; }
  .ecr-streets-hub__item-meta { margin-left: auto; }
}

/* ------------------------------------------------------------------
   Sold history table (members only)
   ------------------------------------------------------------------ */
.ecr-street__sold-count {
  color: #c9c4b8;
  font-size: 0.9rem;
  margin: 0 0 20px;
}
.ecr-street__sold-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 10px;
}
.ecr-street__sold-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.ecr-street__sold-table th,
.ecr-street__sold-table td {
  padding: 10px 14px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid rgba(44, 62, 45, 0.08);
}
.ecr-street__sold-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7264;
  background: rgba(44, 62, 45, 0.04);
}
.ecr-street__sold-table tbody tr:last-child td { border-bottom: none; }
.ecr-street__sold-table tbody tr:hover { background: rgba(176, 141, 46, 0.05); }
.ecr-street__sold-table a {
  color: var(--ecr-forest, #2C3E2D);
  font-weight: 600;
  text-decoration: none;
}
.ecr-street__sold-table a:hover { text-decoration: underline; }
.ecr-street__sold-vow-note {
  margin: 14px auto 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #9aa093;
  max-width: 70ch;
}

/* Street photo behind the hero copy (streets with original photography) */
.ecr-street__hero--photo .ecr-street__hero-inner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.ecr-street__hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.ecr-street__hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.ecr-street__hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 28, 22, 0.86) 0%, rgba(18, 28, 22, 0.62) 55%, rgba(18, 28, 22, 0.35) 100%),
    linear-gradient(0deg, rgba(18, 28, 22, 0.5) 0%, rgba(18, 28, 22, 0) 45%);
}
.ecr-street__hero--photo .ecr-street__intro { color: rgba(247, 242, 234, 0.86); }

/* ==========================================================================
   Street Facts — open-data block (ward, garbage day, transit, school
   safety zone, nearest green space). See inc/ecr-street-facts.php.
   ========================================================================== */

.ecr-city-facts {
  background: #F7F3EC;
  padding: 48px 24px;
}
.ecr-city-facts__inner {
  margin: 0 auto;
  max-width: 1040px;
}
.ecr-city-facts__inner .eyebrow {
  color: #7f6418;
  display: block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.ecr-city-facts__title {
  color: #2C3E2D;
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 24px;
}
.ecr-city-facts__grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.ecr-city-facts__item {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.1);
  border-radius: 10px;
  display: flex;
  gap: 12px;
  padding: 16px;
}
.ecr-city-facts__item > .material-symbols-outlined {
  color: #B08D2E;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.ecr-city-facts__item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ecr-city-facts__label {
  color: #4A5568;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ecr-city-facts__value {
  color: #2C3E2D;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}
.ecr-city-facts__value a {
  color: #2C3E2D;
  text-decoration: underline;
}
.ecr-city-facts__value a:hover { color: #B08D2E; }
.ecr-city-facts__sub {
  color: #4A5568;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}
.ecr-city-facts__attribution {
  color: #4A5568;
  font-size: 0.72rem;
  line-height: 1.6;
  margin: 24px 0 0;
  max-width: 80ch;
}

@media (max-width: 640px) {
  .ecr-city-facts { padding: 36px 18px; }
  .ecr-city-facts__grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Street guide + streets hub refinements (Oct 2026 UX pass)
   ========================================================================== */

/* Buttons: ecr-pages.css loads after this file and resets .ecr-btn borders
   and the gold fill, which left outline buttons borderless and gold buttons
   at white-on-gold (3.1:1). Re-assert the street button system with
   template-scoped selectors. */
.ecr-street .ecr-btn,
.ecr-streets-hub .ecr-btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 48px;
}
.ecr-street .ecr-btn--gold,
.ecr-streets-hub .ecr-btn--gold {
  background: #c7a76c;
  border-color: #c7a76c;
  color: #18231f;
}
.ecr-street .ecr-btn--gold:hover,
.ecr-streets-hub .ecr-btn--gold:hover {
  background: #d4b87a;
  border-color: #d4b87a;
  color: #18231f;
}
.ecr-street .ecr-btn--outline-dark,
.ecr-streets-hub .ecr-btn--outline-dark {
  border-color: #2c3e2d;
  color: #2c3e2d;
}
.ecr-street .ecr-btn--outline-dark:hover,
.ecr-streets-hub .ecr-btn--outline-dark:hover {
  background: #2c3e2d;
  color: #fff;
}
.ecr-street .ecr-btn--outline-light,
.ecr-streets-hub .ecr-btn--outline-light {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

/* Sold section (dark): readable secondary text */
.ecr-street .ecr-street__sold-note { color: #b5c0b5; }
.ecr-street .ecr-street__sold-actions .ecr-btn { min-width: 200px; }

/* Guest sold teasers (up to four): 2-up, or one row of four on wide
   screens, so no card sits alone on its own row. */
.ecr-street .ecr-street__sold-cards--teaser {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 1200px) {
  .ecr-street .ecr-street__sold-cards--teaser {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Guest sold teasers: a compact 2-up grid on phones instead of four
   full-height cards stacked one after another. */
@media (max-width: 640px) {
  .ecr-street .ecr-street__sold-cards--teaser {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecr-street .ecr-street-listing--gated .ecr-street-listing__body { display: none; }
  .ecr-street .ecr-street-listing--gated .ecr-street-listing__media { aspect-ratio: 1 / 1; }
  .ecr-street .ecr-street-listing--gated .ecr-street-listing__gate-msg { font-size: 0.75rem; }
}

/* Stats strip (asking price + alert shortcut) */
.ecr-street__stat-chip-label { color: #5f675f; }
.ecr-street__stats-cta {
  color: #7f5c36;
  min-height: 44px;
}
.ecr-street__stats-cta:hover { color: #2c3e2d; }

/* Listing-card footer link: a full-size tap target */
.ecr-street .ecr-street-listing__footer a {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

/* One content width for every block on the street guide, so the open-data,
   nearby-places and link sections line up with the listings above them. */
.ecr-street .ecr-city-facts__inner,
.ecr-street .ecr-od__inner {
  max-width: 1132px;
}
.ecr-street .ecr-nearby-places {
  max-width: 1180px;
  padding: 56px 24px;
}
.ecr-street .ecr-link-network__inner,
.ecr-street .ecr-street-homes-index__inner {
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

/* Nearby schools & parks: the whole row is the link target */
.ecr-street .ecr-nearby-places__list li { position: relative; }
.ecr-street .ecr-nearby-places__list a::after {
  content: "";
  inset: 0;
  position: absolute;
}
.ecr-street .ecr-nearby-places__list li:hover { background: #efe6d6; }

/* Link network + home index: legible sizes (12px minimum) and AA contrast */
.ecr-street .ecr-link-network__head > span,
.ecr-street .ecr-street-homes-index__eyebrow {
  color: #7f6418;
  font-size: 12px;
}
.ecr-street .ecr-link-network__group h3 {
  color: #4a5568;
  font-size: 12px;
}
.ecr-street .ecr-link-network__links strong { font-size: 14px; }
.ecr-street .ecr-link-network__links span {
  color: #5f675f;
  font-size: 12px;
}
.ecr-street .ecr-link-network__links a { min-height: 48px; }
.ecr-street .ecr-link-network__groups:has(> .ecr-link-network__group:only-child) {
  grid-template-columns: 1fr;
}
.ecr-street .ecr-link-network__group:only-child .ecr-link-network__links {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.ecr-street .ecr-link-network__group:only-child .ecr-link-network__links a:nth-child(even) { padding-left: 0; }
.ecr-street .ecr-link-network__group:only-child .ecr-link-network__links a:nth-child(n + 3) { border-top: 0; }
.ecr-street .ecr-link-network__group:only-child .ecr-link-network__links a:nth-child(n + 5) { border-top: 1px solid rgba(26,46,29,0.08); }
.ecr-street .ecr-street-homes-index summary { min-height: 44px; justify-content: center; }
.ecr-street .ecr-street-homes-index__list a {
  display: inline-block;
  font-size: 14px;
  padding: 6px 0;
}
@media (max-width: 860px) {
  .ecr-street .ecr-link-network__group:only-child .ecr-link-network__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ecr-street .ecr-link-network__group:only-child .ecr-link-network__links a:nth-child(n + 3) { border-top: 1px solid rgba(26,46,29,0.08); }
}

/* Section eyebrows: 12px minimum */
.ecr-street .eyebrow,
.ecr-streets-hub .eyebrow { font-size: 12px; }

/* Streets hub */
.ecr-streets-hub__item a { min-height: 44px; }
@media (max-width: 600px) {
  .ecr-streets-hub__eyebrow { font-size: 0.7rem; }
  .ecr-streets-hub__hero h1 { font-size: clamp(32px, 9.5vw, 40px); }
}

/* ------------------------------------------------------------------
   A-Z directory rows (owner review, Oct 15 2026): one fixed grid per row
   so names, home counts and status tags line up in columns.
   name (1fr) | homes (fixed, right-aligned) | status (fixed, empty if none)
   ------------------------------------------------------------------ */
.ecr-streets-hub__groups { column-gap: 36px; column-fill: balance; }
.ecr-streets-hub__group {
  display: block;
  margin: 0;
  padding-bottom: 26px;
  break-inside: avoid;
  page-break-inside: avoid;
}
.ecr-streets-hub__group:last-child { padding-bottom: 0; }
.ecr-streets-hub__letter { line-height: 1.2; margin-top: 0; }

.ecr-streets-hub__item a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 4.6rem 4.4rem;
  align-items: center;
  column-gap: 10px;
  min-height: 48px;
  padding: 6px 10px;
}
.ecr-streets-hub__item a:focus-visible {
  outline: 2px solid var(--ecr-forest, #2c3e2d);
  outline-offset: 1px;
}
.ecr-streets-hub__item-name {
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.ecr-streets-hub__item-homes {
  color: #555c54; /* 6.6:1 on the directory's #fffdf9 */
  font-size: 0.76rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}
.ecr-streets-hub__item-active {
  color: #6f4f2c; /* 7:1 on #fffdf9 */
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  gap: 1px;
  line-height: 1.2;
  white-space: nowrap;
}
.ecr-streets-hub__item a:hover .ecr-streets-hub__item-name { text-decoration: underline; text-underline-offset: 3px; }

/* Two narrower columns: give the name a little more room. */
@media (max-width: 900px) {
  .ecr-streets-hub__groups { column-gap: 28px; }
}
/* Columns get too tight for three tracks below ~720px: go single column. */
@media (max-width: 720px) {
  .ecr-streets-hub__groups { column-count: 1; }
}
@media (max-width: 380px) {
  .ecr-streets-hub__item a { grid-template-columns: minmax(0, 1fr) 4.2rem 4.2rem; column-gap: 8px; padding: 6px 8px; }
}
