.city-directory-section {
  padding: clamp(80px, 8.3vw, 120px) 0;
  color: #000;
  overflow: hidden;
}

.city-directory-container {
  width: calc(100% - (var(--layout-gutter) * 2));
  max-width: var(--layout-max);
  margin-inline: auto;
}

.city-directory-heading {
  margin-bottom: clamp(48px, 5vw, 72px);
}

.city-directory-eyebrow {
  margin: 0 0 12px;
  color: #787878;
  font-size: 16px;
  line-height: 1.3;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.city-directory-heading h2 {
  margin: 0;
  font-family: 'Urbanist', 'Neue Montreal Regular', sans-serif;
  font-size: clamp(34px, 3.35vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
}

.city-directory-heading h2 span {
  display: block;
}

.city-directory-heading h2 span:last-child {
  color: #6d6d6d;
}

.city-ledger-shell {
  position: relative;
  max-height: 396px;
  overflow: hidden;
  transition: max-height .55s cubic-bezier(.22, 1, .36, 1);
}

.city-ledger-shell.is-expanded {
  max-height: 2600px;
}

.city-ledger {
  column-count: 4;
  column-gap: clamp(24px, 2.25vw, 32px);
}

.city-row {
  break-inside: avoid;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 33px;
  padding: 5px 0;
  box-sizing: border-box;
  border-bottom: 1px solid #efeded;
  color: #000;
  text-decoration: none;
  transition: color .18s ease;
}

.city-marker {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  color: #8eea77;
}

.city-marker img {
  position: absolute;
  inset: 0;
  display: block;
  width: 16px;
  height: 16px;
  filter: invert(85%) sepia(29%) saturate(1023%) hue-rotate(60deg) brightness(95%) contrast(91%);
  transition: opacity .15s ease, transform .15s ease;
}

.city-marker-filled {
  opacity: 0;
  transform: scale(.8);
}

.city-name {
  min-width: 0;
  flex: 1;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
}

.city-state {
  margin-left: 10px;
}

.city-coord {
  flex: none;
  color: #8e8e8e;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
  letter-spacing: .01em;
  white-space: nowrap;
}

.city-row:hover,
.city-row:focus-visible {
  color: #000;
}

.city-row:hover .city-marker-outline,
.city-row:focus-visible .city-marker-outline {
  opacity: 0;
}

.city-row:hover .city-marker-filled,
.city-row:focus-visible .city-marker-filled {
  opacity: 1;
  transform: scale(1);
}

.city-row:focus-visible {
  border-radius: 2px;
}

.city-ledger-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 202px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 1%, rgba(255,255,255,.5) 44%, #fff 100%);
  pointer-events: none;
  transition: opacity .25s ease;
}

.city-ledger-shell.is-expanded .city-ledger-fade {
  opacity: 0;
}

.city-ledger-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 185px;
  min-height: 44px;
  margin: 24px auto 0;
  padding: 12px 32px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font: 400 16px/1 'Urbanist', 'Neue Montreal Regular', sans-serif;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.city-ledger-toggle:hover {
  background: #fff;
  color: #000;
}

@media (max-width: 1439px) {
  .city-state { margin-left: 5px; }
  .city-row { gap: 6px; }
  .city-name { font-size: 11px; }
}
@media (max-width: 1100px) {
  .city-ledger { column-count: 3; }
}

@media (max-width: 900px) {
  .city-ledger { column-count: 2; }
  .city-coord { font-size: 10px; }
}

@media (max-width: 680px) {
  .city-directory-section { padding-block: 72px; }
  .city-ledger { column-count: 1; }
  .city-ledger-shell { max-height: 360px; }
  .city-ledger-shell.is-expanded { max-height: 5200px; }
  .city-directory-heading h2 span { display: inline; }
  .city-directory-heading h2 span + span::before { content: ' '; }
}

@media (max-width: 420px) {
  .city-row { gap: 9px; }
  .city-state { margin-left: 6px; }
  .city-coord { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .city-ledger-shell,
  .city-marker img,
  .city-ledger-toggle { transition: none; }
}
