/* One continuous walnut welcome board; the brass controls remain real buttons. */
.neighbourhood {
  --board-ink: #fff3dc;
  --board-muted: #deccb0;
  position: relative;
  isolation: isolate;
  padding: 23px 28px 20px;
  border: 1px solid #77634b;
  border-radius: 20px;
  color: var(--board-ink);
  background: linear-gradient(115deg, #2b261d70, #211c188a), url('/assets/village-walnut.webp') center / cover, #3d3025;
  box-shadow: inset 0 1px 0 #ead8b54a, inset 0 0 0 5px #201a161c, inset 0 -4px 3px #120f1259, 0 5px 0 #30251d, 0 18px 30px -17px #201a195e;
  scroll-margin-top: 24px;
  transition: border-color 1.8s ease, box-shadow 1.8s ease;
}
.neighbourhood::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: #081713;
  opacity: 0;
  transition: opacity 1.8s ease;
}
body[data-time='evening'] .neighbourhood::after { opacity: .64; }
body[data-time='evening'] .neighbourhood {
  border-color: #4b5140;
  box-shadow: inset 0 1px 0 #c7cbaa26, inset 0 0 0 5px #09161133, inset 0 -4px 3px #050d0b80, 0 5px 0 #101c16, 0 18px 30px -17px #030c0a99;
}
.neighbourhood::before {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid #e6ce9d1f;
  border-radius: 13px;
  pointer-events: none;
}
.neighbourhood .neighbourhood-heading {
  gap: 16px;
  padding: 0 4px 14px;
  margin: 0;
  border-bottom: 1px solid #e6ce9d33;
}
.neighbourhood .neighbourhood-heading > div { gap: 16px; }
.neighbourhood .neighbourhood-heading .eyebrow { color: var(--board-ink); font-size: 11px; letter-spacing: .1em; }
.neighbourhood .visit-count { color: var(--board-muted); font-size: 12px; white-space: nowrap; }
.neighbourhood .quiet-controls { gap: 18px !important; }
.neighbourhood .quiet-controls button { color: var(--board-muted); min-height: 44px; font-size: 12px; }
.neighbourhood .quiet-controls button:hover { color: var(--board-ink); }
.neighbourhood .house-directory {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
  scroll-snap-type: none;
  gap: 0 14px;
  padding: 12px 0 0;
}
.neighbourhood .door-knocker {
  position: relative;
  min-width: 0;
  min-height: 132px;
  padding: 15px 8px;
  gap: 13px;
  border: 0;
  border-radius: 9px;
  color: var(--board-ink);
  background: transparent;
  transition: background-color 240ms ease, color 240ms ease;
  -webkit-tap-highlight-color: transparent;
}
.neighbourhood .door-knocker:nth-child(n+5) { border-top: 1px solid #e6ce9d24; border-top-left-radius: 0; border-top-right-radius: 0; }
.neighbourhood .door-knocker .door-name {
  color: var(--board-ink);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.35;
  text-decoration: none;
  max-width: none;
  text-shadow: 0 1px 1px #160f17b3;
}
.neighbourhood .door-craft { color: var(--board-muted); font-size: 13px; line-height: 1.55; }
.neighbourhood .door-caption { gap: 7px; }
.neighbourhood .knocker-hardware { flex: 0 0 55px; width: 55px; height: 76px; transform: none; margin: 0; filter: drop-shadow(0 3px 2px #160f1745); }
.neighbourhood .door-knocker.active { background: transparent; }
.neighbourhood .door-knocker.active .door-name { color: #ffdfa0; }
.neighbourhood .door-visit-mark { left: 33px; bottom: 15px; background: #e3c287; opacity: 0; }
.neighbourhood .door-knocker.visited .door-visit-mark { opacity: .65; }
.neighbourhood .door-knocker.active .door-visit-mark { opacity: 0; }
.neighbourhood .door-location {
  display: block;
  min-height: 24px;
  margin-top: 1px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  color: #edcb8d;
  text-shadow: 0 1px 0 #21180e;
  opacity: 0;
  visibility: hidden;
  transform: translateY(3px) rotate(-2deg);
  transform-origin: left center;
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
}
.neighbourhood .door-knocker.active .door-location { opacity: 1; visibility: visible; transform: translateY(0) rotate(-2deg); }
.neighbourhood button:focus-visible { outline: 2px solid #ffe8b7; outline-offset: 3px; background-color: transparent; }
@media (hover: hover) {
  .neighbourhood .door-knocker:hover { background-color: transparent; }
  .neighbourhood .door-knocker:hover .door-name { color: #ffdfa0; }
}
@media (max-width: 1050px) {
  .neighbourhood { padding: 20px; }
  .neighbourhood .neighbourhood-heading { flex-wrap: wrap; gap: 0 24px; }
  .neighbourhood .door-knocker { flex-direction: column; justify-content: flex-start; text-align: center; padding: 18px 6px; gap: 10px; }
  .neighbourhood .door-visit-mark, .neighbourhood .door-knocker.active .door-visit-mark { left: 50%; bottom: 8px; transform: translateX(-50%); }
  .neighbourhood .door-location { transform-origin: center; }
}
@media (max-width: 700px) {
  .neighbourhood { margin: 28px 16px 0; padding: 18px 17px 16px; border-radius: 17px; }
  .neighbourhood::before { inset: 6px; border-radius: 11px; }
  .neighbourhood .neighbourhood-heading { padding: 0 2px 10px; gap: 5px; }
  .neighbourhood .neighbourhood-heading > div:first-child { flex-wrap: wrap; justify-content: flex-start; gap: 2px 12px; }
  .neighbourhood .neighbourhood-heading .eyebrow { font-size: 10px; }
  .neighbourhood .visit-count { font-size: 11px; }
  .neighbourhood .quiet-controls { justify-content: space-between; gap: 10px !important; }
  .neighbourhood .quiet-controls button { font-size: 11px; gap: 6px; }
  .neighbourhood .house-directory { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; padding-top: 4px; }
  .neighbourhood .door-knocker { min-height: 198px; padding: 16px 0 21px; gap: 7px; }
  .neighbourhood .door-knocker:nth-child(n+3) { border-top: 1px solid #e6ce9d24; border-top-left-radius: 0; border-top-right-radius: 0; }
  .neighbourhood .door-knocker .door-name { font-size: 18px; line-height: 1.35; overflow-wrap: normal; }
  .neighbourhood .door-caption { gap: 5px; }
  .neighbourhood .door-craft { font-size: 12px; }
}
@media (max-width: 360px) {
  .neighbourhood { padding-inline: 13px; margin-inline: 12px; }
  .neighbourhood .house-directory { column-gap: 10px; }
  .neighbourhood .door-knocker .door-name { font-size: 17px; }
  .neighbourhood .door-craft { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .neighbourhood, .neighbourhood::after { transition: none; }
  .neighbourhood .door-knocker, .neighbourhood .door-location { transition: none; }
}
[data-motion='off'] .neighbourhood, [data-motion='off'] .neighbourhood::after { transition: none; }
[data-motion='off'] .neighbourhood .door-knocker, [data-motion='off'] .neighbourhood .door-location { transition: none; }
