/* ==========================================================================
   ECR Inner Pages - shared component styles
   Loaded on all pages via functions.php
   ========================================================================== */

/* --------------------------------------------------------------------------
   Breadcrumb navigation
   -------------------------------------------------------------------------- */

.ecr-breadcrumbs {
  color: #6f776f;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 20px;
  text-transform: uppercase;
}

.ecr-breadcrumbs ol {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ecr-breadcrumbs li {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  min-width: 0;
}

.ecr-breadcrumbs li:not(:last-child)::after {
  color: #b7a27e;
  content: "/";
  font-weight: 800;
}

.ecr-breadcrumbs a,
.ecr-breadcrumbs span {
  display: inline-block;
  max-width: min(42ch, 72vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecr-breadcrumbs a {
  color: #536454;
  text-decoration: none;
  text-underline-offset: 3px;
}

.ecr-breadcrumbs a:hover {
  color: #7f5c36;
  text-decoration: underline;
}

.ecr-breadcrumbs span[aria-current="page"] {
  color: #2c3e2d;
}

.ecr-breadcrumbs--dark {
  color: rgba(247, 242, 234, 0.66);
}

.ecr-breadcrumbs--dark a {
  color: rgba(247, 242, 234, 0.78);
}

.ecr-breadcrumbs--dark a:hover {
  color: #c7a76c;
}

.ecr-breadcrumbs--dark span[aria-current="page"] {
  color: #f7f2ea;
}

.ecr-breadcrumbs--dark li:not(:last-child)::after {
  color: rgba(199, 167, 108, 0.78);
}

.ecr-cpt-hero .ecr-breadcrumbs,
.ecr-street__hero-inner .ecr-breadcrumbs {
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Legal pages
   -------------------------------------------------------------------------- */

.ecr-page__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 40px;
}

.ecr-page__header {
  max-width: 780px;
  margin: 0 auto 44px;
  text-align: center;
}

.ecr-page__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  color: var(--ecr-forest, #2c3e2d);
  margin: 10px 0 16px;
}

.ecr-page__dek {
  font-size: 1rem;
  line-height: 1.75;
  color: #555;
  margin: 0;
}

.ecr-page__meta {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-gold, #b08d2e);
}

.ecr-legal {
  max-width: 780px;
}

.ecr-legal--solo {
  margin: 0 auto;
}

.ecr-legal h2,
.ecr-legal h3,
.ecr-legal h4 {
  color: var(--ecr-forest, #2c3e2d);
}

.ecr-legal h2 {
  margin: 36px 0 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.28;
}

.ecr-legal h2:first-child {
  margin-top: 0;
}

.ecr-legal h3 {
  margin: 24px 0 8px;
  font-size: 1rem;
}

.ecr-legal p,
.ecr-legal li {
  color: #3f463f;
  font-size: 0.97rem;
  line-height: 1.75;
}

.ecr-legal p + p {
  margin-top: 12px;
}

.ecr-legal ul,
.ecr-legal ol {
  margin: 12px 0 0 20px;
  padding: 0;
}

.ecr-legal li + li {
  margin-top: 8px;
}

.ecr-legal a {
  color: var(--ecr-sage, #667b68);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ecr-legal__notice {
  padding: 18px 20px;
  border-left: 4px solid var(--brand-gold, #b08d2e);
  background: rgba(176, 141, 46, 0.08);
  border-radius: 0 8px 8px 0;
  margin-bottom: 28px;
}

.ecr-legal__notice p {
  margin: 0;
}

.ecr-vow-notice {
  margin-top: 22px;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Listings page
   -------------------------------------------------------------------------- */

.ecr-listings-page {
  background: #f5f1e9;
}

.ecr-listings-hero {
  background:
    linear-gradient(135deg, rgba(44, 62, 45, 0.96), rgba(44, 62, 45, 0.82)),
    radial-gradient(circle at 82% 18%, rgba(176, 141, 46, 0.28), transparent 34%),
    #2c3e2d;
  color: #f9f6f0;
  padding: 86px 24px 54px;
}

.ecr-listings-hero__inner {
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 44px;
  align-items: end;
}

.ecr-listings-hero__copy {
  max-width: 760px;
}

.ecr-listings-hero h1 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: clamp(2.2rem, 5vw, 4.3rem);
  font-weight: 500;
  line-height: 1.02;
  color: inherit;
  margin: 0 0 20px;
  letter-spacing: 0;
}

.ecr-listings-hero p {
  max-width: 680px;
  color: rgba(249, 246, 240, 0.84);
  font-size: 1rem;
  line-height: 1.75;
  margin: 0;
}

.ecr-listings-hero__panel {
  border: 1px solid rgba(249, 246, 240, 0.18);
  border-radius: 8px;
  padding: 22px;
  background: rgba(249, 246, 240, 0.08);
  box-shadow: 0 18px 44px rgba(13, 13, 13, 0.18);
}

.ecr-listings-hero__label {
  display: block;
  color: var(--brand-gold, #b08d2e);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 9px;
}

.ecr-listings-hero__panel strong {
  display: block;
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 8px;
}

.ecr-listings-shell {
  max-width: 1380px;
  margin: 0 auto;
  padding: 26px 24px 72px;
}

.ecr-listings-toolbar,
.ecr-listings-filters,
.ecr-listings-summary,
.ecr-listings-map-panel,
.ecr-listing-card,
.ecr-listings-empty {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(44, 62, 45, 0.07);
}

.ecr-listings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
}

.ecr-listings-toolbar__main,
.ecr-listings-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ecr-listings-mode {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #f0ece4;
}

.ecr-listings-mode button,
.ecr-listings-advanced-toggle,
.ecr-listings-summary button,
.ecr-listing-card__actions button,
.ecr-listing-card__primary {
  min-height: 38px;
  border-radius: 6px;
  border: 0;
  font-family: var(--font-sans, Arial, sans-serif);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
}

.ecr-listings-mode button {
  background: transparent;
  color: rgba(44, 62, 45, 0.72);
  padding: 0 12px;
}

.ecr-listings-mode button.is-active {
  background: #fff;
  color: var(--ecr-forest, #2c3e2d);
  box-shadow: 0 3px 10px rgba(44, 62, 45, 0.1);
}

.ecr-listings-search {
  min-width: min(42vw, 360px);
  height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(44, 62, 45, 0.14);
  border-radius: 8px;
  background: #fff;
}

.ecr-listings-search .material-symbols-outlined {
  font-size: 20px;
  color: var(--ecr-sage, #7d9a72);
}

.ecr-listings-search input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 0.9rem;
  color: var(--ecr-forest, #2c3e2d);
}

.ecr-listings-select,
.ecr-listings-filters label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.ecr-listings-select span,
.ecr-listings-filters span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(44, 62, 45, 0.58);
}

.ecr-listings-select select,
.ecr-listings-filters select {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(44, 62, 45, 0.16);
  border-radius: 6px;
  background: #fff;
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.84rem;
  padding: 0 34px 0 10px;
}

.ecr-listings-advanced-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  color: #fff;
  background: var(--ecr-forest, #2c3e2d);
}

.ecr-listings-advanced-toggle .material-symbols-outlined {
  font-size: 18px;
}

.ecr-listings-filters {
  display: none;
  grid-template-columns: repeat(8, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
}

.ecr-listings-filters.is-open {
  display: grid;
}

.ecr-listings-summary {
  margin-top: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.ecr-listings-summary strong {
  display: block;
  color: var(--ecr-forest, #2c3e2d);
  font-size: 1rem;
}

.ecr-listings-summary span {
  color: rgba(74, 85, 104, 0.78);
  font-size: 0.86rem;
}

.ecr-listings-summary button {
  padding: 0 12px;
  background: rgba(125, 154, 114, 0.14);
  color: var(--ecr-forest, #2c3e2d);
}

.ecr-listings-layout {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 22px;
  margin-top: 22px;
}

.ecr-listings-map-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
}

.ecr-listings-map {
  position: relative;
  height: min(68vh, 650px);
  min-height: 460px;
  background: #e7eadf;
}

.ecr-map-pin {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--ecr-forest, #2c3e2d);
  color: #fff;
  box-shadow: 0 8px 18px rgba(44, 62, 45, 0.24);
  cursor: pointer;
}

.mapboxgl-marker .ecr-map-pin {
  position: static;
  transform: none;
}

.ecr-map-pin span {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  white-space: nowrap;
}

.ecr-map-pin--lease {
  background: var(--brand-gold, #b08d2e);
}

.ecr-listings-map-panel__footer {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid rgba(44, 62, 45, 0.1);
  background: #fff;
}

.ecr-listings-map-panel__footer .material-symbols-outlined {
  color: var(--brand-gold, #b08d2e);
  font-size: 20px;
}

.ecr-listings-map-panel__footer p {
  color: rgba(74, 85, 104, 0.82);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 0;
}

.ecr-listings-results__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.ecr-listings-results__head h2 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--ecr-forest, #2c3e2d);
  font-size: 1.85rem;
  font-weight: 500;
  margin: 0;
}

.ecr-listings-results__head p {
  color: rgba(74, 85, 104, 0.76);
  font-size: 0.86rem;
  margin: 0;
}

.ecr-listings-head-cta {
  align-items: center;
  color: #7f5c36;
  display: inline-flex;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 5px;
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}
.ecr-listings-head-cta:hover { color: #c7a76c; }
.ecr-listings-head-cta .material-symbols-outlined { font-size: 18px; }


.ecr-listings-grid {
  display: grid;
  gap: 16px;
}

.ecr-listing-card {
  overflow: hidden;
  position: relative;
  transition: border-color 180ms, box-shadow 180ms, transform 180ms;
}

.ecr-listing-card__click-target {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ecr-listing-card.is-highlighted {
  border-color: var(--brand-gold, #b08d2e);
  box-shadow: 0 0 0 3px rgba(176, 141, 46, 0.18), 0 16px 40px rgba(44, 62, 45, 0.11);
  transform: translateY(-2px);
}

.ecr-listing-card__media {
  min-height: 168px;
  position: relative;
  display: grid;
  gap: 8px;
  padding: 16px;
  cursor: pointer;
  background:
    linear-gradient(145deg, rgba(44, 62, 45, 0.08), rgba(176, 141, 46, 0.12)),
    linear-gradient(90deg, #dce4d6, #f3eee3);
}

.ecr-listing-card__media::before {
  content: "";
  position: absolute;
  inset: 26px 20px 0;
  border-radius: 8px 8px 0 0;
  background:
    linear-gradient(135deg, transparent 48%, rgba(44, 62, 45, 0.18) 49%, rgba(44, 62, 45, 0.18) 52%, transparent 53%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.2));
  clip-path: polygon(0 36%, 50% 0, 100% 36%, 100% 100%, 0 100%);
}

/* When a real photo is present — hide the house placeholder, show the image */
.ecr-listing-card__media--photo::before { display: none; }

.ecr-listing-card__media--photo {
  background: #101612;
  min-height: 0;
  padding: 0;
}

.ecr-listing-card__photo-stage {
  min-height: 168px;
}

.ecr-listing-card__media--photo .ecr-listing-card__photo-stage {
  min-height: 0;
  overflow: hidden;
}

.ecr-listing-card__carousel {
  aspect-ratio: 3 / 2;
  height: auto;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.ecr-listing-card__carousel-track {
  display: flex;
  height: 100%;
  transition: transform 220ms ease;
  width: 100%;
}

.ecr-listing-card__carousel img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.ecr-listing-card__carousel-btn,
.ecr-listing-card__carousel-count {
  position: absolute;
  z-index: 3;
}

.ecr-listing-card__carousel-btn {
  top: 50%;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ecr-forest, #2c3e2d);
  cursor: pointer;
  font-size: 1.5rem;
  font-weight: 900;
  transform: translateY(-50%);
}

.ecr-listing-card__carousel-btn--prev {
  left: 14px;
}

.ecr-listing-card__carousel-btn--next {
  right: 14px;
}

.ecr-listing-card__carousel-count {
  right: 14px;
  top: 14px;
  border-radius: 999px;
  background: rgba(16, 22, 18, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 6px 9px;
}

.ecr-listing-card__status,
.ecr-listing-card__street {
  position: absolute;
  bottom: 14px;
  z-index: 1;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
  padding: 7px 10px;
}

.ecr-listing-card__status {
  left: 14px;
  background: var(--ecr-forest, #2c3e2d);
  color: #fff;
}

.ecr-listing-card__status--lease {
  background: var(--brand-gold, #b08d2e);
}

.ecr-listing-card__street {
  right: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ecr-forest, #2c3e2d);
}

/* Virtual-tour tag — top-left, provider-aware */
.ecr-listing-card__tour {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 11px 6px 8px;
  color: #fff;
  background: rgba(24, 35, 31, 0.82);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
.ecr-listing-card__tour .material-symbols-outlined {
  font-size: 15px;
  color: var(--brand-gold, #c7a76c);
}
/* Video tours read as "play" — warm the pill slightly so it differs at a glance */
.ecr-listing-card__tour--video { background: rgba(40, 28, 22, 0.84); }
.ecr-listing-card__tour--video .material-symbols-outlined { color: #e8b572; }

.ecr-listing-card__body {
  position: relative;
  z-index: 2;
  padding: 18px;
}

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

.ecr-listing-card h3 {
  margin: 0 0 3px;
  color: var(--ecr-forest, #2c3e2d);
  font-size: 1.05rem;
}

.ecr-listing-card h3 a {
  position: relative;
  z-index: 3;
  color: inherit;
  text-decoration: none;
}

.ecr-listing-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ecr-listing-card__top p,
.ecr-listing-card__brokerage,
.ecr-listing-card__note {
  color: rgba(74, 85, 104, 0.82);
  font-size: 0.84rem;
  line-height: 1.55;
  margin: 0;
}

.ecr-listing-card__brokerage {
  margin-top: 8px;
  color: rgba(44, 62, 45, 0.7);
  font-size: 0.78rem;
  font-weight: 800;
}

.ecr-listing-card__top strong {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 1.15rem;
  white-space: nowrap;
}

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

.ecr-listing-card__facts span {
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 6px;
  background: #f6f3ed;
  color: rgba(74, 85, 104, 0.82);
  font-size: 0.68rem;
  padding: 8px 6px;
  text-align: center;
}

.ecr-listing-card__facts .material-symbols-outlined {
  color: var(--brand-gold, #c7a76c);
  font-size: 18px;
  margin-bottom: 2px;
}

.ecr-listing-card__facts b {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.95rem;
}

.ecr-listing-card__chips,
.ecr-listing-card__meta,
.ecr-listing-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ecr-listing-card__chips span,
.ecr-listing-card__meta span {
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.72rem;
}

.ecr-listing-card__chips span {
  background: rgba(125, 154, 114, 0.14);
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 800;
}

.ecr-listing-card__meta {
  padding-top: 12px;
  border-top: 1px solid rgba(44, 62, 45, 0.1);
}

.ecr-listing-card__meta span {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.12);
  color: rgba(74, 85, 104, 0.8);
}

.ecr-listing-card__primary,
.ecr-listing-card__actions button {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
}

.ecr-listing-card__primary {
  background: var(--ecr-forest, #2c3e2d);
  color: #fff;
}

.ecr-listing-card__actions button {
  background: #f0ece4;
  color: var(--ecr-forest, #2c3e2d);
}

.ecr-listings-empty {
  padding: 46px 28px;
  text-align: center;
}

.ecr-listings-empty .material-symbols-outlined {
  color: var(--brand-gold, #b08d2e);
  font-size: 42px;
}

.ecr-listings-empty h3 {
  color: var(--ecr-forest, #2c3e2d);
  margin: 8px 0;
}

.ecr-listings-empty p {
  margin: 0 auto 20px;
  max-width: 420px;
}

.ecr-listings-vow-note {
  max-width: none;
}

/* --------------------------------------------------------------------------
   Neighbourhood interactive map
   -------------------------------------------------------------------------- */

.ecr-page.ecr-neighbourhood {
  padding: 60px 0 0;
}

.ecr-neighbourhood-map-section .ecr-section-header {
  position: absolute;
  top: 18px;
  left: 24px;
  right: 24px;
  z-index: 2;
  max-width: calc(100% - 48px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  background: rgba(249, 246, 240, 0.9);
  box-shadow: 0 12px 32px rgba(44, 62, 45, 0.12);
  backdrop-filter: blur(10px);
}

.ecr-content-section.ecr-neighbourhood-map-section {
  padding: 0 0 36px;
}

.ecr-neighbourhood-map-section .ecr-content-section__inner {
  max-width: none;
}

.ecr-neighbourhood-map-section .eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f6418;
  margin-bottom: 6px;
}

.ecr-neighbourhood-map-section h1 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--ecr-forest, #2c3e2d);
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
  font-weight: 500;
  line-height: 1.05;
  margin: 0;
}

.ecr-neighbourhood-map-section .ecr-section-header p {
  max-width: 620px;
  color: rgba(44, 62, 45, 0.74);
  line-height: 1.55;
  margin: 0;
}

.ecr-neighbourhood-map-shell {
  position: relative;
  border: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.ecr-neighbourhood-map {
  min-height: calc(100vh - 72px);
  background: #e7eadf;
}

.ecr-neighbourhood-map-legend {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  width: auto;
  padding: 12px 14px;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: rgba(44, 62, 45, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(44, 62, 45, 0.13);
  backdrop-filter: blur(10px);
}

.ecr-neighbourhood-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ecr-neighbourhood-map-legend__line {
  display: inline-block;
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--brand-gold, #b08d2e);
  box-shadow: 0 0 0 2px #f9f6f0;
}

.ecr-neighbourhood-map-legend__dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(44, 62, 45, 0.08);
}

.ecr-neighbourhood-map-legend__dot--school {
  background: var(--ecr-forest, #2c3e2d);
}

.ecr-neighbourhood-map-legend__dot--park {
  background: #6f9d65;
}

.ecr-neighbourhood-poi {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44, 62, 45, 0.22);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ecr-neighbourhood-poi:hover,
.ecr-neighbourhood-poi:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(44, 62, 45, 0.28);
}

.ecr-neighbourhood-poi--school {
  background: var(--ecr-forest, #2c3e2d);
}

.ecr-neighbourhood-poi--park {
  background: #6f9d65;
}

.ecr-neighbourhood-poi .material-symbols-outlined {
  font-size: 19px;
  line-height: 1;
}

.ecr-neighbourhood-map-panel__label,
.ecr-map-popup__type {
  display: block;
  color: var(--brand-gold, #b08d2e);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.ecr-neighbourhood-map-panel h3 {
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  color: var(--ecr-forest, #2c3e2d);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.18;
  margin: 0 0 12px;
}

.ecr-neighbourhood-map-panel p {
  color: rgba(74, 85, 104, 0.82);
  font-size: 0.92rem;
  line-height: 1.68;
  margin: 0;
}

.ecr-neighbourhood-map-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.ecr-neighbourhood-map-panel__meta span {
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 999px;
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 9px;
}

.ecr-neighbourhood-map__missing {
  min-height: 580px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 800;
  text-align: center;
}

.ecr-map-popup {
  color: var(--ecr-slate, #4a5568);
  font-family: var(--font-sans, Arial, sans-serif);
  padding: 2px;
}

.ecr-map-popup h3 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 0 0 8px;
}

.ecr-map-popup p {
  color: rgba(74, 85, 104, 0.86);
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0 0 12px;
}

.ecr-map-popup a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 6px;
  background: var(--ecr-forest, #2c3e2d);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0 12px;
}

@media (max-width: 860px) {
  .ecr-page__inner {
    padding: 48px 20px;
  }

  .ecr-listings-hero__inner,
  .ecr-listings-layout {
    grid-template-columns: 1fr;
  }

  .ecr-listings-hero {
    padding-top: 62px;
  }

  .ecr-listings-hero__panel {
    max-width: 460px;
  }

  .ecr-listings-toolbar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .ecr-listings-toolbar__main,
  .ecr-listings-toolbar__actions {
    width: 100%;
  }

  .ecr-listings-mode,
  .ecr-listings-search,
  .ecr-listings-select,
  .ecr-listings-advanced-toggle {
    width: 100%;
  }

  .ecr-listings-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecr-listings-map-panel {
    position: relative;
    top: auto;
  }

  .ecr-listings-map {
    height: 380px;
    min-height: 380px;
  }

  .ecr-listing-card__carousel {
    aspect-ratio: 4 / 3;
  }

  .ecr-neighbourhood-map {
    min-height: 500px;
  }

  .ecr-neighbourhood-map-section .ecr-section-header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
    left: 16px;
    right: 16px;
    max-width: calc(100% - 32px);
  }

  .ecr-neighbourhood-map-section .ecr-section-header p {
    max-width: none;
  }

  .ecr-school-explorer {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .ecr-school-explorer-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ecr-school-explorer__panel {
    border-right: 0;
    border-bottom: 1px solid rgba(44, 62, 45, 0.1);
  }

  .ecr-school-list {
    max-height: 360px;
  }

  .ecr-school-explorer__map-wrap,
  .ecr-school-map {
    min-height: 400px;
  }

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

}

/* --------------------------------------------------------------------------
   Page hero
   -------------------------------------------------------------------------- */

.ecr-page-hero {
  padding: 80px 40px 72px;
  text-align: center;
}

.ecr-page-hero--forest {
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
}

.ecr-page-hero__inner {
  max-width: 860px;
  margin: 0 auto;
}

.ecr-page-hero .eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d4b45f;
  margin-bottom: 16px;
}

.ecr-page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 20px;
  color: inherit;
}

.ecr-page-hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.7;
  opacity: 0.88;
  margin: 0;
}

.ecr-page-hero.ecr-schools-hero {
  padding: 34px 40px 30px;
}

.ecr-page-hero.ecr-schools-hero .eyebrow {
  margin-bottom: 8px;
}

.ecr-page-hero.ecr-schools-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 2.35rem);
}

.ecr-page-hero.ecr-schools-hero h1 {
  margin-bottom: 9px;
}

.ecr-page-hero.ecr-schools-hero p {
  font-size: 0.98rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   Content sections
   -------------------------------------------------------------------------- */

.ecr-content-section {
  padding: 72px 40px;
  background: #fff;
}

.ecr-content-section--cream {
  background: var(--ecr-cream, #f9f6f0);
}

.ecr-content-section--forest {
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
}

.ecr-content-section--muted {
  background: #f2f2f2;
}

.ecr-content-section__inner {
  max-width: 1440px;
  margin: 0 auto;
}

.ecr-content-section__body--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}

.ecr-content-section__body--two-col p,
.ecr-content-section__body--two-col li {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #333;
}

.ecr-content-section--forest .ecr-content-section__body--two-col p,
.ecr-content-section--forest .ecr-content-section__body--two-col li {
  color: rgba(249, 246, 240, 0.88);
}

/* Paragraph rhythm on the neighbourhood, local amenities and shopping guides */
.ecr-page:is(.ecr-neighbourhood, .ecr-amenities, .ecr-shopping) .ecr-content-section__body p + p,
.ecr-page.ecr-neighbourhood .ecr-neighbourhood-map-section .ecr-section-header p + p,
.ecr-page:is(.ecr-neighbourhood, .ecr-amenities, .ecr-shopping) .ecr-info-card p:not(.ecr-info-card__distance) + p {
  margin-top: 0.9em;
}

/* Local amenities: free-standing column subheadings ("Driving", "Brampton
   Transit", "Close to Home") use the site's serif/forest heading style, get
   room above each new subheading, and a column beside a highlight card
   starts level with the card's own heading. */
.ecr-amenities .ecr-content-section__body--two-col > div > h3 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 10px;
}
.ecr-amenities .ecr-content-section__body--two-col > div > * + h3 {
  margin-top: 32px;
}
.ecr-amenities .ecr-content-section__body--two-col > div > p {
  margin-top: 0;
}
@media (min-width: 769px) {
  .ecr-amenities .ecr-content-section__body--two-col:has(> div > .ecr-highlight-box:first-child) > div:not(:has(> .ecr-highlight-box)) {
    padding-top: 25px; /* highlight box: 1px border + 24px padding */
  }
}

/* --------------------------------------------------------------------------
   Section header
   -------------------------------------------------------------------------- */

.ecr-section-header {
  margin-bottom: 36px;
}

.ecr-section-header .eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7f6418;
  margin-bottom: 8px;
}

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

.ecr-content-section--forest .ecr-section-header h2 {
  color: var(--ecr-cream, #f9f6f0);
}

.ecr-section-header p {
  font-size: 1rem;
  color: #555;
  margin: 0;
}

.ecr-content-section--forest .ecr-section-header p {
  color: rgba(249, 246, 240, 0.75);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.ecr-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.ecr-btn--gold {
  background: #7f6418;
  color: #fff;
  border-color: #7f6418;
}

.ecr-btn--gold:hover {
  background: #6b5414;
  border-color: #6b5414;
  color: #fff;
}

.ecr-btn--forest {
  background: var(--ecr-forest, #2c3e2d);
  color: #fff;
  border-color: var(--ecr-forest, #2c3e2d);
}

.ecr-btn--forest:hover {
  background: #1e2e1f;
  border-color: #1e2e1f;
  color: #fff;
}

.ecr-btn--outline-light {
  background: transparent;
  color: var(--ecr-cream, #f9f6f0);
  border-color: rgba(249, 246, 240, 0.5);
}

.ecr-btn--outline-light:hover {
  border-color: var(--ecr-cream, #f9f6f0);
  color: #fff;
}

.ecr-btn--outline-forest {
  background: transparent;
  color: var(--ecr-forest, #2c3e2d);
  border-color: var(--ecr-forest, #2c3e2d);
}

.ecr-btn--outline-forest:hover {
  background: var(--ecr-forest, #2c3e2d);
  color: #fff;
}

/* --------------------------------------------------------------------------
   CTA block (used inside forest sections)
   -------------------------------------------------------------------------- */

.ecr-cta-block {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.ecr-cta-block h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--ecr-cream, #f9f6f0);
  margin: 0 0 16px;
}

.ecr-cta-block p {
  color: rgba(249, 246, 240, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
  margin: 0 0 32px;
}

.ecr-cta-block__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Card grid
   -------------------------------------------------------------------------- */

.ecr-card-grid {
  display: grid;
  gap: 24px;
}

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

.ecr-card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* --------------------------------------------------------------------------
   Nav cards (neighbourhood sub-page links)
   -------------------------------------------------------------------------- */

.ecr-nav-card {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
}

.ecr-nav-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  border-color: var(--brand-gold, #b08d2e);
  transform: translateY(-2px);
}

.ecr-nav-card__icon {
  font-size: 32px;
  color: var(--brand-gold, #b08d2e);
  margin-bottom: 12px;
}

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

.ecr-nav-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.ecr-nav-card__cta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-gold, #b08d2e);
  letter-spacing: 0.03em;
  margin-top: auto;
}

/* --------------------------------------------------------------------------
   Info cards
   -------------------------------------------------------------------------- */

.ecr-info-card {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 8px;
}

.ecr-info-card__icon {
  font-size: 32px;
  color: var(--brand-gold, #b08d2e);
  display: block;
  margin-bottom: 12px;
}

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

.ecr-info-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.ecr-info-card--horizontal {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.ecr-info-card--horizontal .ecr-info-card__icon-wrap {
  flex-shrink: 0;
}

.ecr-info-card--horizontal .ecr-info-card__icon-wrap .material-symbols-outlined {
  font-size: 32px;
  color: var(--brand-gold, #b08d2e);
}

.ecr-info-card__distance {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-gold, #b08d2e);
  margin: 0 0 6px !important;
}

/* --------------------------------------------------------------------------
   School cards
   -------------------------------------------------------------------------- */

.ecr-schools-hero {
  padding: 48px 40px 42px;
}

.ecr-schools-hero .ecr-page-hero__inner {
  max-width: 780px;
}

.ecr-schools-hero .eyebrow {
  margin-bottom: 10px;
}

.ecr-schools-hero h1 {
  font-size: clamp(1.95rem, 4vw, 2.65rem);
  margin-bottom: 12px;
}

.ecr-schools-hero p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.ecr-content-section.ecr-schools-map-section {
  padding-top: 34px;
  padding-bottom: 42px;
}

.ecr-schools-map-section .ecr-section-header {
  max-width: none;
}

.ecr-school-explorer-header {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 0.62fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 18px;
}

.ecr-school-explorer-header h2 {
  margin-bottom: 0;
}

.ecr-school-explorer-header p {
  line-height: 1.55;
}

.ecr-school-explorer {
  display: grid;
  grid-template-columns: minmax(330px, 390px) minmax(0, 1fr);
  height: 560px;
  min-height: 0;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(44, 62, 45, 0.08);
  overflow: hidden;
}

.ecr-school-explorer__panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid rgba(44, 62, 45, 0.1);
  background: #fff;
}

.ecr-school-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid rgba(44, 62, 45, 0.1);
  background: #f6f3ed;
}

.ecr-school-filters button {
  min-height: 40px;
  border: 1px solid rgba(44, 62, 45, 0.18);
  border-radius: 6px;
  background: #fff;
  color: #3a4a3b;
  cursor: pointer;
  font-family: var(--font-sans, Arial, sans-serif);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 12px;
}

@media (pointer: coarse) {
  .ecr-school-filters button { min-height: 44px; }
}

.ecr-school-filters button.is-active {
  border-color: var(--ecr-forest, #2c3e2d);
  background: var(--ecr-forest, #2c3e2d);
  color: #fff;
}

.ecr-school-list {
  display: grid;
  gap: 9px;
  align-content: start;
  overflow: auto;
  padding: 10px;
  min-height: 0;
}

.ecr-school-result {
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 12px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ecr-school-result:hover,
.ecr-school-result.is-active,
.ecr-school-result.is-selected {
  border-color: rgba(176, 141, 46, 0.78);
  box-shadow: 0 14px 28px rgba(44, 62, 45, 0.12);
  transform: translateY(-1px);
}

.ecr-school-result__top {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ecr-school-result__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--ecr-forest, #2c3e2d);
  color: var(--brand-gold, #b08d2e);
  font-size: 17px;
}

.ecr-school-result h3 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.22;
  margin: 0 0 3px;
}

.ecr-school-result__summary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ecr-school-result__top p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.ecr-school-result__top p,
.ecr-school-result__summary {
  color: rgba(74, 85, 104, 0.86);
  font-size: 0.78rem;
  line-height: 1.45;
  margin: 0;
}

.ecr-school-result__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 9px 0 8px;
}

.ecr-school-result__tags span {
  border-radius: 999px;
  background: rgba(44, 62, 45, 0.08);
  color: rgba(44, 62, 45, 0.78);
  font-size: 0.64rem;
  font-weight: 900;
  padding: 4px 7px;
}

.ecr-school-result__facts {
  display: none;
}

.ecr-school-result__facts div {
  min-width: 0;
}

.ecr-school-result__facts dt {
  color: rgba(44, 62, 45, 0.62);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.ecr-school-result__facts dd {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.36;
  margin: 0;
}

.ecr-school-result__links a,
.ecr-school-pathways a,
.ecr-highlight-box a {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.74rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ecr-school-result__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 9px;
}

.ecr-school-explorer__map-wrap {
  position: relative;
  height: 100%;
  min-height: 560px;
}

.ecr-school-map {
  height: 100%;
  min-height: 560px;
  background: #dfe7de;
}

.ecr-school-map__legend {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(44, 62, 45, 0.13);
  color: rgba(44, 62, 45, 0.78);
  font-size: 0.7rem;
  font-weight: 900;
}

.ecr-school-map__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.ecr-school-map__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(44, 62, 45, 0.08);
}

.ecr-school-map__dot--public {
  background: var(--ecr-forest, #2c3e2d);
}

.ecr-school-map__dot--catholic {
  background: var(--brand-gold, #b08d2e);
}

.ecr-school-map__line {
  width: 28px;
  height: 4px;
  border-radius: 999px;
  background: var(--ecr-forest, #2c3e2d);
}

.ecr-school-map__area {
  width: 24px;
  height: 14px;
  border: 2px solid rgba(44, 62, 45, 0.72);
  border-radius: 3px;
  background: rgba(176, 141, 46, 0.22);
}

.ecr-school-marker {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(44, 62, 45, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.ecr-school-marker--public {
  background: var(--ecr-forest, #2c3e2d);
}

.ecr-school-marker--catholic {
  background: var(--brand-gold, #b08d2e);
}

.ecr-school-marker.is-active,
.ecr-school-marker:hover,
.ecr-school-marker:focus-visible {
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 16px 32px rgba(44, 62, 45, 0.32);
}

.ecr-school-marker .material-symbols-outlined {
  font-size: 21px;
}

.ecr-school-map__missing {
  min-height: 520px;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 900;
  text-align: center;
}

.ecr-school-pathways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ecr-school-pathways article {
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  background: #fff;
  padding: 24px;
}

.ecr-school-pathways .material-symbols-outlined {
  color: var(--brand-gold, #b08d2e);
  font-size: 28px;
  margin-bottom: 14px;
}

.ecr-school-pathways h3 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: var(--font-serif, 'Playfair Display', Georgia, serif);
  font-size: 1.18rem;
  margin: 0 0 9px;
}

.ecr-school-pathways p {
  color: #444;
  font-size: 0.92rem;
  line-height: 1.65;
  margin: 0 0 14px;
}

.ecr-school-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.ecr-school-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.ecr-school-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 20px 16px;
  background: var(--ecr-forest, #2c3e2d);
}

.ecr-school-card__header .material-symbols-outlined {
  color: var(--brand-gold, #b08d2e);
  font-size: 24px;
  flex-shrink: 0;
}

.ecr-school-card__header h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 0.95rem;
  color: var(--ecr-cream, #f9f6f0);
  margin: 0;
  line-height: 1.3;
}

.ecr-school-card__body {
  padding: 20px;
}

.ecr-school-card__body p {
  font-size: 0.87rem;
  color: #444;
  line-height: 1.65;
  margin: 0 0 12px;
}

.ecr-school-card__body ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ecr-school-card__body li {
  font-size: 0.82rem;
  color: #555;
  padding: 3px 0;
  border-top: 1px solid #f0f0f0;
}

.ecr-school-card__body li:first-child {
  border-top: none;
}

/* Schools hub, tablet and phone. Declared after the base explorer rules so
   the single-column layout wins the cascade. */
@media (max-width: 860px) {
  .ecr-school-explorer-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .ecr-school-explorer {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .ecr-school-explorer__panel {
    border-right: 0;
    border-bottom: 1px solid rgba(44, 62, 45, 0.1);
  }

  .ecr-school-list {
    max-height: 360px;
  }

  .ecr-school-explorer__map-wrap,
  .ecr-school-map {
    height: 400px;
    min-height: 400px;
  }

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

/* --------------------------------------------------------------------------
   Stat tiles (market data)
   -------------------------------------------------------------------------- */

.ecr-stat-grid {
  display: grid;
  gap: 20px;
}

.ecr-stat-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.ecr-stat-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.ecr-stat-tile {
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
  padding: 28px 20px;
  border-radius: 8px;
  text-align: center;
}

.ecr-stat-tile__num {
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  color: var(--brand-gold, #b08d2e);
  margin-bottom: 6px;
}

.ecr-stat-tile__label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* --------------------------------------------------------------------------
   Data table (market data year breakdown)
   -------------------------------------------------------------------------- */

.ecr-data-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ecr-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ecr-data-table thead {
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
}

.ecr-data-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
}

.ecr-data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #333;
}

.ecr-data-table tbody tr:last-child td {
  border-bottom: none;
}

.ecr-data-table__row--highlight {
  background: rgba(176, 141, 46, 0.06);
}

.ecr-data-table__row--peak {
  background: rgba(176, 141, 46, 0.1);
}

/* Secondary value under a primary table cell (e.g. median under average) */
.ecr-data-table__sub {
  display: block;
  font-size: 0.75rem;
  color: #6b6b6b;
  font-weight: 400;
  margin-top: 2px;
}

.ecr-data-table__th-sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 400;
  opacity: 0.6;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Sortable street table
   -------------------------------------------------------------------------- */

.ecr-street-table th {
  padding: 0;
}

.ecr-street-table th button {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: 600;
  color: inherit;
  text-align: left;
  transition: background 0.15s ease;
}

.ecr-street-table th button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.ecr-street-table th button::after {
  content: '\2195'; /* ↕ up-down arrow */
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.4;
  margin-left: auto;
}

.ecr-street-table th button[data-ecr-sort-active='asc']::after {
  content: '\2191'; /* ↑ */
  opacity: 1;
  color: var(--brand-gold, #d4b45f);
}

.ecr-street-table th button[data-ecr-sort-active='desc']::after {
  content: '\2193'; /* ↓ */
  opacity: 1;
  color: var(--brand-gold, #d4b45f);
}

.ecr-street-table tbody tr {
  transition: background 0.12s ease;
}

.ecr-street-table tbody tr:hover {
  background: rgba(44, 62, 45, 0.04);
}

.ecr-street-table__link {
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.ecr-street-table__link:hover {
  border-bottom-color: var(--brand-gold, #b08d2e);
}

/* --------------------------------------------------------------------------
   Market hero — data-forward stat strip
   -------------------------------------------------------------------------- */

.ecr-market-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 32px auto 0;
  max-width: 720px;
  background: rgba(241, 230, 211, 0.14);
  border: 1px solid rgba(212, 180, 95, 0.28);
  border-radius: 10px;
  overflow: hidden;
}

.ecr-market-hero__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 14px;
  background: rgba(14, 24, 18, 0.32);
}

.ecr-market-hero__stat strong {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  font-weight: 600;
  line-height: 1;
  color: #f4ead8;
}

.ecr-market-hero__stat span {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(212, 180, 95, 0.92);
  line-height: 1.3;
}

.ecr-market-hero__freshness {
  margin-top: 18px !important;
  font-size: 0.78rem !important;
  opacity: 0.62 !important;
  letter-spacing: 0.02em;
}

/* Section anchors must clear both the sticky site nav and the sticky
   wayfinder when jumped to from the wayfinder section links. */
.ecr-surface-market .ecr-content-section[id] {
  scroll-margin-top: calc(var(--ecr-site-nav-height, 72px) + 64px);
}

@media (max-width: 640px) {
  .ecr-market-hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Badges
   -------------------------------------------------------------------------- */

.ecr-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.ecr-badge--hot {
  background: rgba(176, 141, 46, 0.15);
  color: #8a6200;
}

.ecr-badge--peak {
  background: rgba(176, 141, 46, 0.2);
  color: #7a5600;
}

.ecr-badge--cool {
  background: rgba(100, 120, 160, 0.12);
  color: #3a4a6a;
}

.ecr-badge--neutral {
  background: rgba(0, 0, 0, 0.07);
  color: #555;
}

/* --------------------------------------------------------------------------
   Market data dashboard
   -------------------------------------------------------------------------- */

.ecr-market-lab {
  display: grid;
  gap: 24px;
  margin-top: 12px;
}

.ecr-market-lab__input {
  display: none;
}

.ecr-market-lab__controls {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  background: #fff;
  margin-bottom: 22px;
}

.ecr-market-lab__controls label {
  min-width: 112px;
  padding: 10px 14px;
  border-radius: 6px;
  color: var(--ecr-forest, #2c3e2d);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  text-transform: uppercase;
  transition: background-color 180ms, color 180ms;
}

#ecr-view-price:checked ~ .ecr-market-lab__controls label[for="ecr-view-price"],
#ecr-view-volume:checked ~ .ecr-market-lab__controls label[for="ecr-view-volume"] {
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
}

.ecr-market-lab__panels {
  position: relative;
}

.ecr-market-lab__panel {
  display: block;
  margin-bottom: 24px;
}

.ecr-market-lab__panel:last-child {
  margin-bottom: 0;
}

.ecr-market-lab__panel--pressure,
.ecr-market-lab__panel--2026 {
  display: none;
}

.ecr-chart-card {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(44, 62, 45, 0.08);
  padding: 28px;
}

.ecr-chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ecr-chart-card__head h3 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  line-height: 1.25;
  margin: 8px 0 0;
  max-width: 760px;
}

.ecr-chart-card__stat {
  background: rgba(176, 141, 46, 0.14);
  border-radius: 999px;
  color: #7a5600;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 9px 13px;
  text-transform: uppercase;
}

.ecr-combo-chart__controls,
.ecr-segment-lab__controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.ecr-combo-chart__controls label,
.ecr-segment-lab__controls label {
  align-items: center;
  background: rgba(44, 62, 45, 0.055);
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 999px;
  color: var(--ecr-forest, #2c3e2d);
  cursor: pointer;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 8px;
  letter-spacing: 0.05em;
  padding: 9px 13px;
  text-transform: uppercase;
}

.ecr-combo-chart__controls input {
  accent-color: var(--brand-gold, #b08d2e);
}

.ecr-chart-filters {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  margin: 0 0 14px;
}

.ecr-chart-filters label {
  display: grid;
  gap: 5px;
}

.ecr-chart-filters label span {
  color: #666;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.ecr-chart-filters select,
.ecr-chart-filters button {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.16);
  border-radius: 6px;
  color: var(--ecr-forest, #2c3e2d);
  font: inherit;
  font-size: 0.84rem;
  min-height: 40px;
  padding: 8px 10px;
}

.ecr-chart-filters button {
  align-self: end;
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ecr-chart-summary {
  background: rgba(44, 62, 45, 0.045);
  border: 1px solid rgba(44, 62, 45, 0.08);
  border-radius: 7px;
  color: #555;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 16px;
  padding: 11px 12px;
}

.ecr-combo-chart__wrap {
  background: linear-gradient(180deg, rgba(44, 62, 45, 0.04), rgba(44, 62, 45, 0.015));
  border: 1px solid rgba(44, 62, 45, 0.08);
  border-radius: 8px;
  overflow-x: auto;
  padding: 14px;
  position: relative;
}

.ecr-combo-chart__svg {
  display: block;
  min-width: 780px;
  width: 100%;
}

.ecr-combo-chart__grid line {
  stroke: rgba(44, 62, 45, 0.12);
  stroke-width: 1;
}

.ecr-combo-chart__axis-labels text,
.ecr-combo-chart__years text {
  fill: #6f746c;
  font-size: 12px;
}

.ecr-combo-chart__years text {
  text-anchor: middle;
}

.ecr-combo-chart__volume rect {
  fill: rgba(44, 62, 45, 0.18);
  transition: opacity 180ms;
}

.ecr-combo-chart__price-line {
  fill: none;
  stroke: var(--brand-gold, #b08d2e);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  transition: opacity 180ms;
}

.ecr-combo-chart__points circle {
  cursor: pointer;
  fill: var(--ecr-forest, #2c3e2d);
  outline: none;
  stroke: #fff;
  stroke-width: 2;
}

.ecr-combo-chart__points circle:hover,
.ecr-combo-chart__points circle:focus {
  fill: #9b2c2c;
  r: 9;
}

.ecr-combo-chart:not(.is-showing-price) .ecr-combo-chart__price-line,
.ecr-combo-chart:not(.is-showing-price) .ecr-combo-chart__points {
  opacity: 0.08;
}

.ecr-combo-chart:not(.is-showing-volume) .ecr-combo-chart__volume {
  opacity: 0.08;
}

.ecr-combo-tooltip {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(44, 62, 45, 0.18);
  color: #555;
  display: grid;
  font-size: 0.82rem;
  gap: 5px;
  left: 18px;
  line-height: 1.5;
  max-width: 240px;
  opacity: 0;
  padding: 13px 15px;
  pointer-events: none;
  position: absolute;
  top: 18px;
  transition: opacity 100ms;
  z-index: 10;
}

.ecr-combo-tooltip--visible {
  opacity: 1;
}

.ecr-combo-tooltip strong {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.97rem;
}

.ecr-combo-tooltip span b {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 1rem;
}

.ecr-combo-chart__volume rect:hover,
.ecr-combo-chart__volume rect:focus {
  fill: rgba(44, 62, 45, 0.38);
  outline: none;
}

.ecr-chart-summary--active {
  background: rgba(176, 141, 46, 0.08);
  border-color: rgba(176, 141, 46, 0.25);
  color: #4a3800;
}

.ecr-chart-summary--empty {
  background: rgba(200, 30, 30, 0.06);
  border-color: rgba(200, 30, 30, 0.2);
  color: #7a1a1a;
}

.ecr-segment-lab {
  margin-top: 24px;
}

.ecr-segment-lab__input {
  display: none;
}

.ecr-segment-lab__controls label {
  border-radius: 7px;
}

#ecr-segment-type:checked ~ .ecr-segment-lab__controls label[for="ecr-segment-type"],
#ecr-segment-bedrooms:checked ~ .ecr-segment-lab__controls label[for="ecr-segment-bedrooms"],
#ecr-segment-below-grade:checked ~ .ecr-segment-lab__controls label[for="ecr-segment-below-grade"],
#ecr-segment-total-bedrooms:checked ~ .ecr-segment-lab__controls label[for="ecr-segment-total-bedrooms"],
#ecr-segment-kitchens:checked ~ .ecr-segment-lab__controls label[for="ecr-segment-kitchens"],
#ecr-segment-washrooms:checked ~ .ecr-segment-lab__controls label[for="ecr-segment-washrooms"],
#ecr-segment-future:checked ~ .ecr-segment-lab__controls label[for="ecr-segment-future"] {
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
}

.ecr-segment-lab__panel {
  display: none;
}

#ecr-segment-type:checked ~ .ecr-segment-lab__panels .ecr-segment-lab__panel--type,
#ecr-segment-bedrooms:checked ~ .ecr-segment-lab__panels .ecr-segment-lab__panel--bedrooms,
#ecr-segment-below-grade:checked ~ .ecr-segment-lab__panels .ecr-segment-lab__panel--below-grade,
#ecr-segment-total-bedrooms:checked ~ .ecr-segment-lab__panels .ecr-segment-lab__panel--total-bedrooms,
#ecr-segment-kitchens:checked ~ .ecr-segment-lab__panels .ecr-segment-lab__panel--kitchens,
#ecr-segment-washrooms:checked ~ .ecr-segment-lab__panels .ecr-segment-lab__panel--washrooms,
#ecr-segment-future:checked ~ .ecr-segment-lab__panels .ecr-segment-lab__panel--future {
  display: block;
}

.ecr-segment-bars {
  display: grid;
  gap: 12px;
}

.ecr-segment-bars span {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr 84px;
}

.ecr-segment-bars span::before {
  background: rgba(44, 62, 45, 0.1);
  border-radius: 999px;
  content: "";
  display: block;
  grid-column: 2;
  height: 10px;
}

.ecr-segment-bars span::after {
  background: linear-gradient(90deg, var(--brand-gold, #b08d2e), var(--ecr-forest, #2c3e2d));
  border-radius: 999px;
  content: "";
  display: block;
  grid-column: 2;
  height: 10px;
  margin-top: -22px;
  width: var(--bar);
}

.ecr-segment-bars .ecr-segment-bars__selected b,
.ecr-segment-bars .ecr-segment-bars__selected i,
.ecr-segment-bars .ecr-segment-bars__selected em {
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 900;
}

.ecr-segment-bars .ecr-segment-bars__empty {
  background: rgba(44, 62, 45, 0.045);
  border: 1px solid rgba(44, 62, 45, 0.08);
  border-radius: 7px;
  color: #666;
  display: block;
  font-size: 0.84rem;
  padding: 12px;
}

.ecr-segment-bars .ecr-segment-bars__empty::before,
.ecr-segment-bars .ecr-segment-bars__empty::after {
  display: none;
}

.ecr-segment-bars b,
.ecr-segment-bars i,
.ecr-segment-bars em {
  color: #555;
  font-size: 0.8rem;
  font-style: normal;
}

.ecr-segment-bars b {
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 800;
}

.ecr-segment-bars em {
  text-align: right;
}

.ecr-segment-lab__note {
  color: #666;
  font-size: 0.86rem;
  line-height: 1.65;
  margin: 18px 0 0;
}

.ecr-future-field-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, 1fr);
}

.ecr-bedroom-logic-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
}

.ecr-future-field-grid span,
.ecr-bedroom-logic-grid span {
  background: rgba(44, 62, 45, 0.045);
  border: 1px solid rgba(44, 62, 45, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  padding: 14px;
}

.ecr-future-field-grid b,
.ecr-bedroom-logic-grid b {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.86rem;
}

.ecr-future-field-grid i,
.ecr-bedroom-logic-grid i {
  color: #666;
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.5;
}

.ecr-line-chart {
  background: linear-gradient(180deg, rgba(44, 62, 45, 0.04), rgba(44, 62, 45, 0.015));
  border: 1px solid rgba(44, 62, 45, 0.08);
  border-radius: 8px;
  padding: 16px;
}

.ecr-line-chart svg {
  display: block;
  height: auto;
  width: 100%;
}

.ecr-line-chart__grid {
  stroke: rgba(44, 62, 45, 0.12);
  stroke-width: 1;
}

.ecr-line-chart__line {
  fill: none;
  stroke: var(--brand-gold, #b08d2e);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
}

.ecr-line-chart circle {
  fill: var(--ecr-forest, #2c3e2d);
}

.ecr-line-chart__peak {
  fill: #9b2c2c;
}

.ecr-line-chart__labels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.ecr-line-chart__labels span {
  color: #666;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ecr-chart-insights {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
}

.ecr-chart-insights span,
.ecr-market-depth-card {
  background: rgba(44, 62, 45, 0.045);
  border: 1px solid rgba(44, 62, 45, 0.08);
  border-radius: 8px;
  color: #555;
  font-size: 0.84rem;
  line-height: 1.58;
  padding: 14px;
}

.ecr-chart-insights strong,
.ecr-market-depth-card h3 {
  color: var(--ecr-forest, #2c3e2d);
}

.ecr-bar-chart {
  display: grid;
  gap: 10px;
  padding: 4px 0;
}

.ecr-bar-chart div {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 64px 1fr 64px;
  min-height: auto;
}

.ecr-bar-chart div::before {
  background: linear-gradient(90deg, var(--brand-gold, #b08d2e), var(--ecr-forest, #2c3e2d));
  border-radius: 999px;
  content: "";
  display: block;
  grid-column: 2;
  height: 13px;
  width: var(--bar);
}

.ecr-bar-chart span {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.78rem;
  font-weight: 800;
}

.ecr-bar-chart b {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.78rem;
  text-align: right;
}

.ecr-pressure-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.ecr-pressure-card {
  border: 1px solid rgba(44, 62, 45, 0.1);
  border-radius: 8px;
  padding: 20px;
}

.ecr-pressure-card h4 {
  color: var(--ecr-forest, #2c3e2d);
  margin: 0 0 16px;
}

.ecr-pressure-bars {
  display: grid;
  gap: 10px;
}

.ecr-pressure-bars span {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 52px 1fr 42px;
}

.ecr-pressure-bars span::before {
  background: rgba(44, 62, 45, 0.1);
  border-radius: 999px;
  content: "";
  display: block;
  grid-column: 2;
  height: 9px;
  overflow: hidden;
}

.ecr-pressure-bars span::after {
  background: var(--brand-gold, #b08d2e);
  border-radius: 999px;
  content: "";
  display: block;
  grid-column: 2;
  height: 9px;
  margin-top: -19px;
  width: var(--bar);
}

.ecr-pressure-bars b,
.ecr-pressure-bars i {
  color: #555;
  font-size: 0.78rem;
  font-style: normal;
}

.ecr-ratio-list {
  display: grid;
  gap: 10px;
}

.ecr-ratio-list span {
  background: rgba(44, 62, 45, 0.045);
  border-radius: 6px;
  display: grid;
  gap: 8px;
  grid-template-columns: 80px 72px 1fr;
  padding: 12px;
}

.ecr-ratio-list b,
.ecr-ratio-list i {
  color: var(--ecr-forest, #2c3e2d);
  font-style: normal;
  font-weight: 800;
}

.ecr-ratio-list em {
  color: #666;
  font-size: 0.78rem;
  font-style: normal;
}

.ecr-ytd-grid,
.ecr-market-depth-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.ecr-ytd-overview {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(44, 62, 45, 0.08);
  display: grid;
  gap: 24px;
  grid-template-columns: 0.9fr 1.1fr;
  margin-bottom: 42px;
  padding: 28px;
}

.ecr-ytd-overview__copy h2 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.22;
  margin: 8px 0 12px;
}

.ecr-ytd-overview__copy p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.68;
  margin: 0;
}

.ecr-ytd-card {
  background: var(--ecr-forest, #2c3e2d);
  border-radius: 8px;
  color: var(--ecr-cream, #f9f6f0);
  padding: 22px;
}

.ecr-ytd-card span,
.ecr-ytd-card i {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-size: 0.78rem;
  font-style: normal;
}

.ecr-ytd-card strong {
  color: var(--brand-gold, #b08d2e);
  display: block;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.7rem;
  margin: 8px 0;
}

.ecr-ytd-card b {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 5px;
}

.ecr-market-depth-grid {
  margin-top: 24px;
}

.ecr-market-depth-card .material-symbols-outlined {
  color: var(--brand-gold, #b08d2e);
}

.ecr-market-depth-card h3 {
  margin: 8px 0;
}

.ecr-market-depth-card p {
  margin: 0;
}

/* --------------------------------------------------------------------------
   Market data deep dive
   -------------------------------------------------------------------------- */

.ecr-deep-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ecr-deep-card {
  background: #fff;
  border: 1px solid rgba(44, 62, 45, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(44, 62, 45, 0.07);
  padding: 24px;
}

.ecr-deep-card--wide {
  grid-column: 1 / -1;
}

.ecr-deep-card__head {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 18px;
}

.ecr-deep-card__head h3 {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.3;
  margin: 7px 0 0;
}

.ecr-deep-card__head strong {
  background: rgba(176, 141, 46, 0.14);
  border-radius: 999px;
  color: #7a5600;
  flex: 0 0 auto;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  padding: 8px 12px;
  text-transform: uppercase;
}

.ecr-band-chart,
.ecr-mini-bars,
.ecr-donut-list {
  display: grid;
  gap: 12px;
}

.ecr-band-chart span,
.ecr-mini-bars span,
.ecr-donut-list span {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 150px 1fr 82px;
  grid-template-rows: auto auto;
}

.ecr-band-chart span::before,
.ecr-mini-bars span::before,
.ecr-donut-list span::before {
  align-self: center;
  background: rgba(44, 62, 45, 0.1);
  border-radius: 999px;
  content: "";
  display: block;
  grid-column: 2;
  grid-row: 1 / 3;
  height: 10px;
}

.ecr-band-chart span::after,
.ecr-mini-bars span::after,
.ecr-donut-list span::after {
  align-self: center;
  background: linear-gradient(90deg, var(--brand-gold, #b08d2e), var(--ecr-forest, #2c3e2d));
  border-radius: 999px;
  content: "";
  display: block;
  grid-column: 2;
  grid-row: 1 / 3;
  height: 10px;
  width: var(--bar, var(--share));
}

.ecr-band-chart b,
.ecr-mini-bars b,
.ecr-donut-list b,
.ecr-band-chart i,
.ecr-mini-bars i,
.ecr-donut-list i,
.ecr-band-chart em,
.ecr-donut-list em {
  color: #555;
  font-size: 0.8rem;
  font-style: normal;
}

.ecr-band-chart b,
.ecr-mini-bars b,
.ecr-donut-list b {
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 800;
  grid-column: 1;
  grid-row: 1;
}

.ecr-band-chart i,
.ecr-mini-bars i,
.ecr-donut-list i {
  grid-column: 1;
  grid-row: 2;
}

.ecr-band-chart em,
.ecr-donut-list em {
  grid-column: 3;
  grid-row: 2;
}

.ecr-band-chart em,
.ecr-donut-list em {
  text-align: right;
}

.ecr-month-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ecr-month-grid span {
  background: color-mix(in srgb, var(--brand-gold, #b08d2e) calc(var(--heat) * 0.7), #fff);
  border: 1px solid rgba(44, 62, 45, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 13px;
}

.ecr-month-grid b {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.92rem;
}

.ecr-month-grid i {
  color: var(--ecr-forest, #2c3e2d);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
}

.ecr-month-grid em {
  color: #555;
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.3;
}

.ecr-street-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 1fr;
}

.ecr-street-grid h4 {
  color: var(--ecr-forest, #2c3e2d);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.ecr-street-list {
  display: grid;
  gap: 8px;
}

.ecr-street-list span {
  align-items: center;
  background: rgba(44, 62, 45, 0.045);
  border: 1px solid rgba(44, 62, 45, 0.08);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 70px 90px;
  padding: 11px 12px;
}

.ecr-street-list b,
.ecr-street-list i,
.ecr-street-list em {
  color: #555;
  font-size: 0.78rem;
  font-style: normal;
}

.ecr-street-list b {
  color: var(--ecr-forest, #2c3e2d);
  font-weight: 800;
}

.ecr-street-list em {
  text-align: right;
}

/* --------------------------------------------------------------------------
   Source note
   -------------------------------------------------------------------------- */

.ecr-source-note {
  margin-top: 20px;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Fact list (icon + text)
   -------------------------------------------------------------------------- */

.ecr-fact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.ecr-fact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  font-size: 0.9rem;
  color: #333;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.ecr-content-section--forest .ecr-fact-list li {
  color: rgba(249, 246, 240, 0.85);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.ecr-fact-list li:last-child {
  border-bottom: none;
}

.ecr-fact-list .material-symbols-outlined {
  font-size: 18px;
  color: var(--brand-gold, #b08d2e);
  flex-shrink: 0;
  margin-top: 1px;
}

/* --------------------------------------------------------------------------
   Highlight box
   -------------------------------------------------------------------------- */

.ecr-highlight-box {
  background: var(--ecr-cream, #f9f6f0);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--brand-gold, #b08d2e);
  border-radius: 4px;
  padding: 24px 20px;
}

.ecr-highlight-box h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ecr-forest, #2c3e2d);
  margin: 0 0 10px;
}

.ecr-highlight-box p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.65;
  margin: 0 0 12px;
}

/* --------------------------------------------------------------------------
   About page
   -------------------------------------------------------------------------- */

.ecr-about__photo-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.ecr-about__photo-placeholder {
  aspect-ratio: 3/4;
  background: var(--ecr-sage, #7d9a72);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  max-height: 380px;
}

.ecr-about__photo-placeholder .material-symbols-outlined {
  font-size: 80px;
  color: rgba(255, 255, 255, 0.4);
}

.ecr-about__contact-card {
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
  padding: 24px;
  border-radius: 8px;
}

.ecr-about__contact-card p {
  font-size: 0.88rem;
  margin: 0 0 4px;
  color: rgba(249, 246, 240, 0.85);
}

.ecr-about__contact-card strong {
  color: var(--ecr-cream, #f9f6f0);
}

.ecr-about__contact-card a {
  color: var(--brand-gold, #b08d2e);
  text-decoration: none;
}

.ecr-about__bio-col h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  color: var(--ecr-forest, #2c3e2d);
  margin: 32px 0 12px;
}

.ecr-about__bio-col h2:first-child {
  margin-top: 0;
}

.ecr-about__bio-col p {
  font-size: 0.97rem;
  color: #333;
  line-height: 1.75;
  margin: 0 0 16px;
}

.ecr-about__list {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 16px;
}

.ecr-about__list li {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.7;
  margin-bottom: 4px;
}

.ecr-about__stats {
  display: flex;
  gap: 24px;
  margin: 0 0 24px;
  flex-wrap: wrap;
}

.ecr-about__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
  padding: 20px 28px;
  border-radius: 6px;
  text-align: center;
  flex: 1;
  min-width: 100px;
}

.ecr-about__stat-num {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--brand-gold, #b08d2e);
}

.ecr-about__stat-label {
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 4px;
}

.ecr-form__row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ecr-form__row label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.03em;
}

.ecr-form__row input,
.ecr-form__row select,
.ecr-form__row textarea {
  padding: 12px 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #222;
  background: #fff;
  transition: border-color 0.2s;
}

.ecr-form__row input:focus,
.ecr-form__row select:focus,
.ecr-form__row textarea:focus {
  outline: none;
  border-color: var(--ecr-forest, #2c3e2d);
}

.ecr-form__row textarea {
  resize: vertical;
}

.ecr-form__disclaimer {
  font-size: 0.75rem;
  color: #888;
  margin: 4px 0 0;
}

.ecr-form__disclaimer a {
  color: var(--ecr-forest, #2c3e2d);
}

.ecr-form-notice {
  border-radius: 8px;
  font-size: 0.92rem;
  margin: 0 0 16px;
  padding: 12px 14px;
}

.ecr-form-notice--success {
  background: rgba(50, 105, 80, 0.12);
  color: var(--ecr-forest, #2c3e2d);
}

.ecr-form-notice--error {
  background: rgba(130, 43, 43, 0.12);
  color: #812b2b;
}

/* --------------------------------------------------------------------------
   Market data - 2026 table row
   -------------------------------------------------------------------------- */

.ecr-data-table__row--2026 {
  background: rgba(100, 120, 160, 0.07);
  border-left: 3px solid #3a4a6a;
}

/* --------------------------------------------------------------------------
   Market data - stat tile alert variant
   -------------------------------------------------------------------------- */

.ecr-stat-tile--alert {
  border: 2px solid rgba(155, 44, 44, 0.4);
}

.ecr-stat-tile--alert .ecr-stat-tile__num {
  color: #c0392b;
}

/* --------------------------------------------------------------------------
   Market data - 2026 monthly breakdown
   -------------------------------------------------------------------------- */

.ecr-2026-monthly {
  margin-top: 28px;
  padding: 24px;
  background: rgba(58, 74, 106, 0.05);
  border: 1px solid rgba(58, 74, 106, 0.15);
  border-radius: 6px;
}

.ecr-2026-monthly h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--ecr-forest, #2c3e2d);
  margin: 0 0 16px;
}

.ecr-2026-monthly__grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 4px;
  overflow: hidden;
}

.ecr-2026-monthly__row {
  display: grid;
  grid-template-columns: 1.5fr 0.5fr 1.2fr 1fr 1fr;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
  font-size: 0.87rem;
  background: #fff;
}

.ecr-2026-monthly__row:last-child {
  border-bottom: none;
}

.ecr-2026-monthly__row--header {
  background: var(--ecr-forest, #2c3e2d);
  color: var(--ecr-cream, #f9f6f0);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Market data - year-by-year narrative blocks
   -------------------------------------------------------------------------- */

.ecr-narrative-block {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.ecr-narrative-block__year {
  display: grid;
  grid-template-columns: 100px 1fr;
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.ecr-narrative-block__year:last-child {
  border-bottom: none;
}

.ecr-narrative-block__year-label {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px 32px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  writing-mode: horizontal-tb;
  text-align: center;
  padding-top: 40px;
}

.ecr-narrative-block__year-label--neutral {
  background: var(--ecr-forest, #2c3e2d);
}

.ecr-narrative-block__year-label--hot {
  background: #8a6200;
}

.ecr-narrative-block__year-label--peak {
  background: #6d4e00;
}

.ecr-narrative-block__year-label--cool {
  background: #3a4a6a;
}

.ecr-narrative-block__content {
  padding: 32px 36px;
}

.ecr-narrative-block__content h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.15rem;
  color: var(--ecr-forest, #2c3e2d);
  margin: 0 0 14px;
}

.ecr-narrative-block__content p {
  font-size: 0.93rem;
  color: #333;
  line-height: 1.78;
  margin: 0 0 12px;
}

.ecr-narrative-block__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.ecr-narrative-block__metrics span {
  font-size: 0.78rem;
  color: #666;
}

.ecr-narrative-block__metrics strong {
  color: #333;
}

/* --------------------------------------------------------------------------
   Market data - price change indicators
   -------------------------------------------------------------------------- */

.ecr-change {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
}

.ecr-change--up {
  color: #2a6e3a;
  background: rgba(42, 110, 58, 0.1);
}

.ecr-change--down {
  color: #9b2c2c;
  background: rgba(155, 44, 44, 0.1);
}

.ecr-change--base {
  color: #555;
  background: rgba(0, 0, 0, 0.06);
}

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

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

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

  .ecr-month-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 769px) {
  .ecr-page-hero { padding: 96px 72px 80px; }
  .ecr-content-section { padding: 88px 72px; }
}

@media (max-width: 768px) {
  .ecr-page-hero {
    padding: 56px 20px 48px;
  }

  .ecr-schools-hero {
    padding: 30px 20px 28px;
  }

  .ecr-content-section {
    padding: 48px 20px;
  }

  .ecr-content-section.ecr-schools-map-section {
    padding-top: 28px;
  }

  .ecr-content-section__body--two-col {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .ecr-card-grid--2,
  .ecr-card-grid--3 {
    grid-template-columns: 1fr;
  }

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

  .ecr-stat-grid--4,
  .ecr-stat-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecr-about .ecr-content-section__body--two-col {
    grid-template-columns: 1fr;
  }

  .ecr-about__photo-col {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .ecr-about__photo-placeholder {
    max-height: 220px;
    flex: 1;
    min-width: 160px;
  }

  .ecr-about__contact-card {
    flex: 1;
    min-width: 200px;
  }

  .ecr-info-card--horizontal {
    flex-direction: column;
    gap: 10px;
  }

  .ecr-narrative-block__year {
    grid-template-columns: 64px 1fr;
  }

  .ecr-narrative-block__year-label {
    font-size: 0.9rem;
    padding: 24px 8px;
  }

  .ecr-narrative-block__content {
    padding: 24px 20px;
  }

  .ecr-narrative-block__metrics {
    flex-direction: column;
    gap: 6px;
  }

  .ecr-deep-grid,
  .ecr-street-grid,
  .ecr-pressure-grid,
  .ecr-chart-insights,
  .ecr-ytd-overview {
    grid-template-columns: 1fr;
  }

  .ecr-month-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ecr-future-field-grid,
  .ecr-bedroom-logic-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ecr-chart-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecr-deep-card__head {
    flex-direction: column;
    gap: 10px;
  }

  .ecr-ytd-overview {
    padding: 22px;
  }
}

@media (max-width: 560px) {
  .ecr-listings-shell {
    padding: 18px 14px 52px;
  }

  .ecr-listings-hero {
    padding-left: 18px;
    padding-right: 18px;
  }

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

  .ecr-neighbourhood-map {
    min-height: 420px;
  }

  .ecr-neighbourhood-map-section {
    padding-bottom: 28px;
  }

  .ecr-neighbourhood-map-section .ecr-section-header {
    top: 14px;
    padding: 13px 14px;
  }

  .ecr-neighbourhood-map-legend {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

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

  .ecr-listing-card__carousel {
    aspect-ratio: 5 / 4;
  }

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

  .ecr-listings-summary,
  .ecr-listings-results__head,
  .ecr-listing-card__top {
    align-items: stretch;
    flex-direction: column;
  }

  .ecr-listing-card__top strong {
    white-space: normal;
  }

  .ecr-stat-grid--4,
  .ecr-stat-grid--3 {
    grid-template-columns: 1fr;
  }

  .ecr-cta-block__actions {
    flex-direction: column;
    align-items: center;
  }

  .ecr-about__stats {
    flex-direction: column;
  }

  .ecr-data-table {
    font-size: 0.78rem;
  }

  .ecr-data-table th,
  .ecr-data-table td {
    padding: 10px 10px;
  }

  .ecr-band-chart span,
  .ecr-mini-bars span,
  .ecr-donut-list span,
  .ecr-street-list span {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .ecr-band-chart span::before,
  .ecr-mini-bars span::before,
  .ecr-donut-list span::before,
  .ecr-band-chart span::after,
  .ecr-mini-bars span::after,
  .ecr-donut-list span::after {
    grid-column: 1;
  }

  .ecr-band-chart em,
  .ecr-donut-list em,
  .ecr-street-list em {
    text-align: left;
  }

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

  .ecr-future-field-grid,
  .ecr-bedroom-logic-grid {
    grid-template-columns: 1fr;
  }

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

  .ecr-bar-chart div {
    grid-template-columns: 52px 1fr 58px;
    gap: 9px;
  }
}

/* Page hero with an original photo behind it */
.ecr-page-hero--photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.ecr-page-hero.ecr-page-hero--photo { padding-top: clamp(120px, 16vw, 200px); padding-bottom: clamp(64px, 9vw, 110px); }
.ecr-page-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.ecr-page-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ecr-page-hero__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(20, 31, 22, 0.86) 0%, rgba(20, 31, 22, 0.6) 50%, rgba(20, 31, 22, 0.35) 100%);
}
.ecr-page-hero--photo p { opacity: 0.94; }
.ecr-school-hero.ecr-page-hero--photo { padding-top: clamp(110px, 14vw, 180px); }

/* Card-wide link: the heading link covers the whole card. */
.ecr-info-card--linked { position: relative; }
.ecr-info-card--linked .ecr-info-card__link { color: inherit; text-decoration: none; }
.ecr-info-card--linked .ecr-info-card__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ecr-info-card--linked:hover .ecr-info-card__link,
.ecr-info-card--linked .ecr-info-card__link:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
.ecr-info-card--linked:focus-within { outline: 2px solid var(--ecr-forest, #2c3e2d); outline-offset: 2px; }
.ecr-info-card--linked .ecr-info-card__link:focus-visible { outline: none; }
.ecr-info-card__more { margin-top: auto; font-weight: 700; color: var(--ecr-forest, #2c3e2d); }

/* Neighbourhood guide, phones: the intro sits above the map instead of
   covering it, so the whole map stays visible and tappable. */
@media (max-width: 640px) {
  .ecr-neighbourhood-map-section .ecr-section-header {
    position: static;
    max-width: none;
    margin: 0;
    padding: 20px 16px 18px;
    border: 0;
    border-radius: 0;
    background: #f9f6f0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .ecr-neighbourhood-map {
    min-height: 440px;
  }

  .ecr-neighbourhood-map-legend {
    left: 12px;
    bottom: 12px;
    gap: 10px;
    padding: 9px 12px;
  }
}

/* Market data YTD tiles: three columns overflowed the card on phones. */
.ecr-ytd-overview > * { min-width: 0; }
.ecr-ytd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) {
  .ecr-ytd-overview { padding: 18px; }
  .ecr-ytd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .ecr-ytd-card { padding: 14px; }
  .ecr-ytd-card strong { font-size: 1.3rem; overflow-wrap: anywhere; }
}

/* Long button labels wrap inside the button instead of spilling out. */
.ecr-btn {
  max-width: 100%;
  text-align: center;
  white-space: normal;
}

/* Shopping: coming-soon Costco block */
.ecr-shopping-coming .ecr-take { margin: 0; padding: 18px 22px; border-left: 3px solid #b08d2e; background: #f7f2ea; border-radius: 0 8px 8px 0; }
.ecr-shopping-coming .ecr-take p { margin: 0 0 8px; font-family: 'Literata', Georgia, serif; font-size: 1.05rem; line-height: 1.6; color: #2c3e2d; }
.ecr-shopping-coming .ecr-take cite { font-style: normal; font-size: 0.82rem; font-weight: 700; color: #7f6418; }
.ecr-shopping-coming__source { font-size: 0.82rem; color: #555; }
.ecr-shopping-coming__source a { color: #7f6418; }
