.neighborhood-page {
  background: #f7f9f5;
  color: #193e35;
  font-size: 18px;
  line-height: 1.7;
}
.neighborhood-page [hidden] {
  display: none !important;
}
.neighborhood-page .guide-main {
  max-width: 1256px;
  margin: auto;
  padding: 0 24px;
}
.neighborhood-page a:focus-visible,
.neighborhood-page button:focus-visible,
.neighborhood-page input:focus-visible {
  outline: 3px solid #4163be;
  outline-offset: 4px;
}
.neighborhood-page .guide-breadcrumbs {
  margin: 26px 0;
  font-size: 15px;
  flex-wrap: wrap;
}
.nb-hero {
  padding: 24px 0 28px;
  border-bottom: 1px solid #d8e2da;
  margin-bottom: 32px;
}
.nb-hero h1 {
  font-size: clamp(38px, 4.6vw, 64px);
  letter-spacing: -0.04em;
  max-width: 1000px;
  margin: 16px 0 20px;
}
.nb-hero h1 > span {
  display: block;
  font-size: 0.57em;
  letter-spacing: -0.025em;
  margin-top: 12px;
  color: #486b62;
}
.nb-hero .guide-lead {
  max-width: 880px;
  margin-bottom: 18px;
  font-size: 21px;
  line-height: 1.65;
}
.nb-tabs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.nb-tabs a {
  padding: 8px 15px;
  border: 1px solid #cbdccf;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
  background: #fff;
}
.nb-tabs a:hover {
  background: #e7efdc;
}
.nb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 48px;
  align-items: start;
}
.nb-layout > article {
  min-width: 0;
}
.nb-section {
  scroll-margin-top: 24px;
  margin: 0 0 46px;
}
.nb-section h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  margin: 10px 0 20px;
  letter-spacing: -0.025em;
}
.nb-section h3 {
  font-size: 24px;
  line-height: 1.3;
  margin: 28px 0 14px;
}
.nb-section p {
  margin-bottom: 18px;
}
.nb-price {
  padding: 26px 28px;
  border-radius: 20px;
  background: linear-gradient(120deg, #164f43, #347762 55%, #34588e);
  color: white;
  margin: 24px 0;
}
.nb-price > span {
  font-size: 15px;
  letter-spacing: 0.02em;
}
.nb-price > strong {
  display: block;
  font-size: clamp(36px, 4vw, 54px);
  font-family: Outfit, Arial, sans-serif;
  line-height: 1.3;
  margin: 8px 0;
}
.nb-price strong small {
  font-size: 22px;
  color: white;
}
.nb-price p {
  font-size: 15px;
  color: #f0f5e9;
  margin: 10px 0 0;
}
.nb-examples {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.nb-examples article {
  padding: 20px;
  border: 1px solid #d3dfd5;
  border-radius: 16px;
  background: #fff;
}
.nb-examples strong,
.nb-examples small {
  display: block;
}
.nb-examples strong {
  font-size: 27px;
  font-family: Outfit, Arial, sans-serif;
  color: #1e5949;
}
.nb-examples small {
  font-size: 14px;
  color: #506b61;
}
.nb-calculator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: end;
  padding: 22px;
  border-radius: 16px;
  background: #eaf0e2;
  margin: 24px 0;
}
.neighborhood-page label {
  display: block;
  font-weight: 600;
  font-size: 17px;
}
.neighborhood-page input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #adc6b6;
  border-radius: 12px;
  background: white;
  color: #193e35;
  font: inherit;
  font-size: 18px;
  margin-top: 7px;
  min-height: 52px;
}
.nb-calculator output {
  grid-column: 1/-1;
  font-size: 22px;
  font-weight: 600;
}
.nb-calculator output small {
  display: block;
  font-size: 15px;
  font-weight: 400;
}
.nb-note {
  font-size: 15px;
  color: #50685f;
  line-height: 1.7;
}
.nb-note h2 {
  font-size: 25px;
}
.nb-map {
  margin: 24px 0;
  border: 1px solid #cdded0;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.nb-map-static svg {
  display: block;
  width: 100%;
  height: auto;
}
.nb-map-live {
  height: 430px;
  background: #e8f0e7;
  z-index: 0;
}
.nb-map figcaption {
  font-size: 15px;
  line-height: 1.6;
  padding: 20px 22px;
  color: #50685f;
}
.nb-map > button {
  margin: 0 22px 20px;
  max-width: calc(100% - 44px);
}
.nb-map .nb-map-status {
  padding: 0 22px;
  font-size: 15px;
}
.nb-map .leaflet-popup-content {
  font-size: 15px;
  line-height: 1.6;
}
.nb-map .leaflet-popup-content a {
  color: #1d5e4c;
  font-weight: 700;
}
.nb-map .leaflet-control-attribution a {
  font-size: 11px;
}
.nb-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: #d4dfd6;
  border: 1px solid #d4dfd6;
  border-radius: 16px;
  overflow: hidden;
  margin: 24px 0;
}
.nb-facts > div {
  padding: 20px;
  background: #fff;
}
.nb-facts dt {
  font-size: 15px;
  color: #50685f;
}
.nb-facts dd {
  font:
    500 27px/1.3 Outfit,
    Arial,
    sans-serif;
  margin: 6px 0;
}
.nb-aside {
  position: sticky;
  top: 24px;
  padding: 24px;
  background: linear-gradient(145deg, #e7efdf, #eaf0f8);
  border: 1px solid #d4dfd6;
  border-radius: 18px;
}
.nb-aside h2 {
  font-size: 30px;
  margin: 16px 0;
  line-height: 1.2;
}
.nb-aside p {
  font-size: 17px;
}
.nb-aside small {
  display: block;
  margin: 12px 0 24px;
  font-size: 14px;
}
.nb-aside > a:not(.guide-button) {
  display: block;
  margin: 12px 0;
  font-size: 15px;
}
.nb-nearby {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.nb-neighbor,
.nb-city-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 22px;
  border: 1px solid #d3dfd5;
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
  min-width: 0;
  height: 100%;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.nb-neighbor:hover,
.nb-city-card:hover {
  background: #edf3e6;
  border-color: #477b64;
}
.nb-neighbor strong,
.nb-city-card strong {
  font:
    500 23px/1.3 Outfit,
    Arial,
    sans-serif;
  overflow-wrap: anywhere;
}
.nb-neighbor span,
.nb-city-card span {
  font-size: 15px;
  color: #50685f;
}
.nb-neighbor small {
  font-size: 14px;
  line-height: 1.6;
}
.nb-checks {
  display: grid;
  gap: 20px;
}
.nb-checks h3 {
  margin: 0 0 12px;
}
.nb-checks > div {
  border-left: 3px solid #ddc34b;
  padding-left: 22px;
}
.nb-checks p {
  margin: 0;
}
.nb-section details {
  border-bottom: 1px solid #d3dfd5;
  padding: 18px 0;
}
.nb-section summary {
  font-weight: 600;
  cursor: pointer;
  line-height: 1.5;
}
.nb-section details p {
  margin: 18px 0 0;
}
.nb-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 28px 0 0;
}
.nb-stats > span {
  display: flex;
  flex-direction: column;
  font-size: 15px;
  color: #50685f;
}
.nb-stats strong {
  font:
    500 38px/1.3 Outfit,
    Arial,
    sans-serif;
  color: #1e5949;
}
.nb-search {
  max-width: 720px;
  margin-bottom: 40px;
}
.nb-search [data-city-results] {
  display: grid;
  gap: 8px;
}
.nb-city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.nb-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.nb-state-card {
  border: 1px solid #cbdccf;
  background: #fff;
  padding: 18px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 18px;
}
.nb-state-card:hover {
  background: #edf3e6;
}
.nb-coverage {
  padding: 28px;
  background: linear-gradient(120deg, #eaf0df, #eef2f8);
  border-radius: 20px;
}
.nb-coverage .nb-checks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
}
.nb-ranking {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 34px;
  margin: 24px 0;
}
.nb-ranking a {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  text-decoration: none;
  font-size: 17px;
}
.nb-ranking i {
  grid-column: 1/-1;
  height: 8px;
  border-radius: 12px;
  background: linear-gradient(90deg, #397860, #3760a4) left/var(--bar) 100%
    no-repeat #e1e9e0;
}
[data-filter-list] > label {
  max-width: 560px;
}
[data-filter-count] {
  margin-top: 16px;
  font-size: 15px;
}
@media (max-width: 1000px) {
  .nb-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .nb-aside {
    position: static;
    margin-bottom: 36px;
  }
  .nb-city-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nb-coverage .nb-checks {
    grid-template-columns: 1fr;
  }
  .nb-ranking {
    grid-template-columns: 1fr;
  }
  .nb-hero .guide-lead {
    font-size: 19px;
  }
}
@media (max-width: 600px) {
  .neighborhood-page .guide-main {
    padding: 0 18px;
  }
  .nb-hero {
    padding-top: 8px;
    margin-bottom: 26px;
  }
  .nb-hero h1 {
    font-size: 40px;
  }
  .nb-tabs {
    gap: 8px;
  }
  .nb-tabs a {
    font-size: 15px;
  }
  .nb-stats {
    gap: 20px;
  }
  .nb-stats strong {
    font-size: 30px;
  }
  .nb-price {
    padding: 22px;
  }
  .nb-city-grid,
  .nb-state-grid,
  .nb-nearby {
    grid-template-columns: 1fr;
  }
  .nb-calculator {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .nb-examples article {
    padding: 15px;
  }
  .nb-examples strong {
    font-size: 24px;
  }
  .nb-facts dd {
    font-size: 23px;
  }
  .nb-map-live {
    height: 350px;
  }
  .nb-map figcaption {
    padding: 18px;
  }
  .nb-ranking a {
    grid-template-columns: 1fr;
  }
  .nb-coverage {
    padding: 22px;
  }
  .nb-section {
    margin-bottom: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nb-city-card,
  .nb-neighbor {
    transition: none;
  }
}
@media (max-width: 480px) {
  .nb-examples {
    grid-template-columns: 1fr;
  }
  .nb-examples article {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 3px 12px;
    align-items: center;
  }
  .nb-examples strong {
    font-size: 26px;
  }
  .nb-examples small {
    grid-column: 2;
    font-size: 13px;
  }
}
