.neighborhood-map {
  --flow-area-fill: #f4e3a9;
  --association-area-fill: #c5c9cd;
  max-width: 1200px;
  margin-inline: auto;
}
.neighborhood-map-frame {
  display: block;
  width: 100%;
  background: #fffcf7;
  border: 1px solid #b8c6cb;
  border-radius: 12px;
}
.neighborhood-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
  margin: .75rem 0;
  font-size: .9rem;
}
.neighborhood-legend i {
  display: inline-block;
  width: 1.15rem;
  margin-right: .15rem;
  vertical-align: middle;
}
.legend-flow { height: .65rem; border: 1px dashed #244764; background: var(--flow-area-fill); }
.legend-city { height: .65rem; border: 1px solid #687480; background: var(--association-area-fill); }
.legend-pin { border: 2px solid #315c85; border-radius: 50%; height: .8rem; background: #fff; }
.legend-pin-city { background: #315c85; }
.neighborhood-map-controls { margin-top: 1rem; }
.neighborhood-map-controls label { display: block; font-weight: 700; }
.neighborhood-map-controls select {
  width: min(100%, 440px);
  margin: .25rem 0 .65rem;
  padding: .55rem;
  font: inherit;
  color: #244764;
}
.neighborhood-map-detail {
  padding: .85rem 1rem;
  margin: 0;
  border-radius: .4rem;
  background: #e5f0f7;
}
.neighborhood-map-frame .flow-area-fill { fill: var(--flow-area-fill); }
.neighborhood-map-frame .registered-area {
  fill: var(--association-area-fill);
  stroke: #5c6874;
  stroke-width: 1;
  cursor: pointer;
}
.neighborhood-map-frame .subdivision-area {
  fill: transparent;
  stroke: #6a7c89;
  stroke-width: .65;
  stroke-opacity: .5;
  cursor: pointer;
}
.neighborhood-map-frame .area.selected { fill: #eeb84c; fill-opacity: .63; stroke: #805722; stroke-width: 2; }
.neighborhood-map-frame .pin { cursor: pointer; }
.neighborhood-map-frame .pin circle { fill: #315c85; stroke: #fffcf7; stroke-width: 2; }
.neighborhood-map-frame .pin.white-pin circle { stroke: #315c85; fill: #fff; }
.neighborhood-map-frame .pin.selected circle,
.neighborhood-map-frame .pin:focus-visible circle { fill: #8c4c25; stroke: #fff2c9; stroke-width: 3; }
.neighborhood-map-frame .pin text { fill: white; text-anchor: middle; dominant-baseline: central; font-weight: 700; font-size: 12px; pointer-events: none; }
.neighborhood-map-frame .pin.white-pin text { fill: #244764; }
.neighborhood-map-frame .pin.selected text,
.neighborhood-map-frame .pin:focus-visible text { fill: white; }
.neighborhood-map-frame .road-label, .neighborhood-map-frame .park-label { fill: #415e70; stroke: #fffcf7; stroke-width: 3px; paint-order: stroke; text-anchor: middle; font-size: 11px; pointer-events: none; }
.neighborhood-list article { scroll-margin-top: 7rem; }
.neighborhood-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-right: .2rem;
  border-radius: 50%;
  background: #315c85;
  color: white;
  font-size: .88rem;
  vertical-align: .13em;
}

.neighborhood-map-frame .park-label { fill: #326450; }
.neighborhood-map-controls .neighborhood-map-toggle {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin: 0 0 .75rem;
  font-weight: 500;
}
.neighborhood-number-white {
  background: white;
  border: 1px solid #315c85;
  color: #244764;
}
.subdivision-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 0 1.25rem;
  padding: 0;
  list-style: none;
}
.subdivision-list li {
  border-top: 1px solid #d8dfe0;
  padding: .65rem 0;
  scroll-margin-top: 7rem;
}
.subdivision-list li:target {
  background: #f5e7b4;
}
.subdivision-list p { margin: .35rem 0 0; }
@media (max-width: 500px) {
  .neighborhood-map-frame .pin text { font-size: 10px; }
}
