.cities-map-shell {
  position: relative;
  isolation: isolate;
  min-width: 0;
  min-height: 420px;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: #d9dddb;
}

.cities-map, .cities-island-map {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: #d9dddb;
}

.cities-map .leaflet-control-zoom, .cities-map-islands {
  border: 0;
  border-radius: 12px;
  box-shadow: 0 3px 14px #1a211f25;
}

.cities-map .leaflet-control-zoom a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--paper);
  color: var(--ink);
}

.cities-map .leaflet-control-zoom a.leaflet-disabled { color: #707775; }

.cities-map-link {
  display: inline-flex;
  align-items: center;
  gap: .43rem;
  min-height: 30px;
  padding: .32rem .58rem;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2px 8px #1a211f25;
  font: 760 .78rem / 1 var(--body);
  text-decoration: none;
  white-space: nowrap;
}

.cities-map-marker .cities-map-link {
  transform: translate(-.9rem, -50%);
  pointer-events: auto;
  color: var(--ink);
}

.cities-map-link::before {
  content: "";
  flex: none;
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px #127365;
}

.cities-map-link:focus-visible,
.cities-map .leaflet-control-zoom a:focus-visible,
.cities-map-credit a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (hover: hover) {
  .cities-map-link:hover,
  .cities-map .leaflet-control-zoom a:hover:not(.leaflet-disabled) { background: var(--accent); }
  .cities-map-link:hover::before { background: var(--ink); }
}

.cities-geo-label {
  color: #52605a;
  font: 800 .65rem / 1 var(--body);
  letter-spacing: .095em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px #ffffffe8;
}

.cities-map-islands {
  position: absolute;
  z-index: 1;
  inset: auto auto 16px 14px;
  width: clamp(86px, 23%, 132px);
  aspect-ratio: 1.46;
  overflow: hidden;
  pointer-events: none;
}

.cities-map-islands > span {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  padding: .25rem .22rem;
  background: #ffffffe5;
  color: var(--ink);
  font-size: .75rem;
  font-weight: 740;
  line-height: 1.1;
  text-align: center;
}

.cities-map-credit {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: .3rem .48rem;
  max-width: 100%;
  padding: .2rem .45rem;
  border-radius: 7px 0 0;
  background: #ffffffe8;
  color: #313936;
  font-size: .75rem;
}

.cities-map-credit a { text-underline-offset: 2px; }

.cities-map-fallback {
  display: flex;
  min-height: 100%;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: .6rem;
  margin: 0;
  padding: 1.5rem;
  list-style: none;
}

@media (max-width: 700px) {
  .cities-map-shell { min-height: clamp(330px, 92vw, 420px); border-radius: 18px; }
}

@media (max-width: 360px) {
  .cities-map-marker .cities-map-link { min-height: 26px; padding-block: .27rem; }
}
