.neighbourhood {
  border-block: 1px solid #c8cebd;
  background: #e4e9de;
  scroll-margin-top: 12px;
}
.neighbourhood-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
  grid-template-areas: "chart copy";
  align-items: center;
  gap: clamp(42px, 6.5vw, 98px);
  padding-block: clamp(37px, 4.2vw, 66px);
}
.neighbourhood-copy { grid-area: copy; min-width: 0; }
.neighbourhood-copy .section-kicker { color: #3d5946; }
.neighbourhood-copy .section-kicker svg { width: 19px; height: 19px; }
.neighbourhood-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(55px, 5.5vw, 83px);
  letter-spacing: -.042em;
  line-height: .98;
  text-wrap: balance;
}
.neighbourhood-copy h2 em { color: var(--clay); white-space: nowrap; }
.neighbourhood-description { max-width: 435px; font-size: 16px; line-height: 1.55; color: var(--mute); }
.neighbourhood-search { max-width: 445px; margin-top: 24px; }
.neighbourhood-search label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; }
.neighbourhood-controls { display: flex; gap: 7px; }
.neighbourhood-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
  padding: 0 15px;
  background: #faf8ef;
  border: 1px solid #8b9485;
  border-radius: 50px;
}
.neighbourhood-field:focus-within { outline: 3px solid #9a653e; outline-offset: 1px; }
.neighbourhood-field svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--clay); stroke-width: 1.55; }
.neighbourhood-field input[type=text] {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 400 16px var(--sans);
}
.neighbourhood-field input::placeholder { color: #586255; opacity: 1; }
.neighbourhood-controls .pill { color: #fff8e8; background: #2d4939; min-height: 46px; padding-inline: 18px; gap: 9px; font-size: 14px; }
.neighbourhood-controls .pill:hover { background: #1d352a; }
.neighbourhood-controls .pill:disabled { opacity: .55; }
.neighbourhood-controls .pill svg { width: 17px; height: 17px; }
.neighbourhood-presets { display: flex; align-items: baseline; gap: 8px; font-size: 12px; color: #4f6153; margin-top: 10px; }
.neighbourhood-presets a, .neighbourhood-chart details a { text-decoration: underline; text-underline-offset: 3px; }
.neighbourhood-presets a { font-weight: 700; color: #304b37; }
.neighbourhood-error:empty { display: none; }
.neighbourhood-error { font-size: 13px; color: #823a21; margin-top: 7px; }
.neighbourhood-chart { grid-area: chart; min-width: 0; }
.neighbourhood-chart-link {
  display: block;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #f1e7d2;
  border: 1px solid #a2ac95;
  border-radius: 4px;
  aspect-ratio: 1.95;
}
.neighbourhood-chart-link img { width: 100%; height: 100%; display: block; object-fit: cover; }
.neighbourhood-chart-link:hover .neighbourhood-open { background: var(--ink); color: #fff8ea; }
.neighbourhood-compass { position: absolute; right: 18px; top: 12px; display: grid; justify-items: center; color: #304d40; font-size: 11px; font-weight: 700; }
.neighbourhood-compass svg { width: 15px; height: 20px; }
.neighbourhood-key {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #3e493c;
  background: #faf6e9f5;
  border: 1px solid #d8cdb7;
  padding: 6px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}
.neighbourhood-key i { width: 9px; height: 9px; border: 1px solid #a24029; border-radius: 50%; background: #eacfb0; }
.neighbourhood-open { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); background: #fbf6e9; border: 1px solid #a3ac98; }
.neighbourhood-open svg { width: 16px; height: 16px; }
.neighbourhood-chart figcaption { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 13px; margin-top: 8px; color: #49564a; font-size: 12px; }
.neighbourhood-chart figcaption > span { font-weight: 700; }
.neighbourhood-chart details { display: contents; }
.neighbourhood-chart details summary { cursor: pointer; font-size: 11px; text-underline-offset: 2px; }
.neighbourhood-chart details summary:hover { text-decoration: underline; }
.neighbourhood-chart details p { grid-column: 1/-1; font-size: 12px; line-height: 1.45; }
@media (max-width: 1000px) {
  .neighbourhood-layout { gap: 30px; grid-template-columns: 1.03fr 1fr; }
  .neighbourhood-copy h2 { font-size: clamp(46px, 6.4vw, 64px); }
  .neighbourhood-chart-link { aspect-ratio: 1.42; }
}
@media (max-width: 760px) {
  .neighbourhood-layout { grid-template-columns: 1fr; grid-template-areas: "copy" "chart"; gap: 24px; padding-block: 29px 28px; }
  .neighbourhood-copy h2 { font-size: clamp(46px, 9vw, 66px); margin: 12px 0 10px; }
  .neighbourhood-description { font-size: 15px; line-height: 1.5; }
  .neighbourhood-search { margin-top: 17px; }
  .neighbourhood-search label { font-size: 12px; }
  .neighbourhood-controls .pill { font-size: 13px; gap: 6px; padding-inline: 13px; }
  .neighbourhood-field { padding-inline: 12px; }
  .neighbourhood-chart-link { aspect-ratio: 1.65; }
  .neighbourhood-compass { top: 6px; right: 11px; font-size: 9px; }
  .neighbourhood-compass svg { width: 12px; height: 16px; }
  .neighbourhood-key { font-size: 9px; left: 7px; bottom: 7px; padding: 5px 7px; }
  .neighbourhood-open { width: 27px; height: 27px; bottom: 7px; right: 7px; }
  .neighbourhood-chart figcaption { margin-top: 6px; }
}
