.home-city-map {
  margin-block: clamp(2rem, 5vw, 4rem);
}
.home-city-heading p {
  max-width: 62ch;
  margin-block: .4rem 1rem;
  color: var(--muted);
}
.home-city-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas: "map results" "list list";
  align-items: start;
  gap: 1rem clamp(1rem, 3vw, 2.5rem);
}
.home-city-map:not([data-city-enhanced]) .home-city-layout {
  grid-template-areas: "map list" "results results";
}
.home-city-visual {
  grid-area: map;
  min-width: 0;
  padding: clamp(0px, 2vw, 20px);
  background: var(--paper);
  border-radius: 20px;
}
.home-city-art {
  position: relative;
}
.home-city-art img {
  width: 100%;
}
.home-city-pin {
  display: grid;
  place-items: center;
  position: absolute;
  top: var(--city-y);
  left: var(--city-x);
  width: clamp(27px, 3vw, 36px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border: 2px solid white;
  border-radius: 50%;
  background: var(--brand-strong);
  box-shadow: 0 2px 6px rgb(52 32 131 / 24%);
  color: white;
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 720;
  line-height: 1;
  text-decoration: none;
}
.home-city-pin:is(:hover, :focus-visible, [aria-current]) {
  z-index: 1;
  background: var(--accent);
  color: var(--ink);
}
.home-city-source {
  padding: .35rem .7rem;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 16px);
}
.home-city-results {
  grid-area: results;
  min-width: 0;
}
.home-city-prompt, .home-city-panel {
  padding: clamp(.85rem, 2.4vw, 1.45rem);
  background: var(--paper);
  border-radius: 20px;
}
.home-city-prompt p, .home-city-panel ul {
  margin-top: .55rem;
}
.home-city-panel + .home-city-panel {
  margin-top: .55rem;
}
[data-city-enhanced] .home-city-panel {
  margin-top: 0;
}
.home-city-panel h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.home-city-panel ul, .home-city-list ul {
  padding: 0;
  list-style: none;
}
.home-city-panel ul {
  margin-bottom: 0;
}
.home-city-panel li + li {
  margin-top: .25rem;
}
.home-city-panel a {
  display: grid;
  gap: .12rem;
  padding: .45rem .7rem;
  border-radius: 10px;
  line-height: 1.35;
  text-decoration: none;
}
.home-city-panel a span {
  color: var(--muted);
}
.home-city-panel li:first-child a {
  background: var(--brand-strong);
  color: white;
}
.home-city-panel li:first-child a span {
  color: white;
}
.home-city-panel li:not(:first-child) a:hover {
  background: var(--brand-light);
}
.home-city-panel li:first-child a:hover {
  background: var(--brand);
  box-shadow: var(--lift);
}
.home-city-panel a:hover strong {
  text-decoration: underline;
}
.home-city-list {
  grid-area: list;
}
.home-city-list ul {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: .1rem .35rem;
  margin: 0;
}
.home-city-map:not([data-city-enhanced]) .home-city-list ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.home-city-list a {
  display: flex;
  align-items: center;
  gap: .33rem;
  min-height: 44px;
  padding: .25rem .4rem;
  border-radius: var(--radius);
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
}
.home-city-list a:is(:hover, [aria-current]) {
  background: var(--brand-light);
  text-decoration: underline;
}
.home-city-list a span {
  display: grid;
  flex: 0 0 1.55rem;
  aspect-ratio: 1;
  place-items: center;
  color: var(--brand-strong);
  background: var(--brand-light);
  border-radius: 50%;
  font-size: clamp(14px, 1.5vw, 16px);
}
.home-city-list a[aria-current] span {
  background: var(--accent);
  color: var(--ink);
}
.home-city-directory {
  margin-top: .7rem;
}
@media (max-width: 960px) {
  .home-city-list ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .home-city-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "map" "results" "list";
  }
  .home-city-map:not([data-city-enhanced]) .home-city-layout {
    grid-template-areas: "map" "list" "results";
  }
  .home-city-pin {
    width: 27px;
  }
}
@media (max-width: 440px) {
  .home-city-visual {
    padding: 0;
  }
  .home-city-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .home-city-pin, .home-city-list a, .home-city-panel a {
    transition: background-color .18s ease, box-shadow .18s ease, scale .18s ease;
  }
  .home-city-pin:hover {
    scale: 1.12;
  }
}
@media print {
  .home-city-map {
    display: none;
  }
}
