.england-map {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 540px;
  overflow: hidden;
  background: #e9f0ed;
  color: #173f3b;
  font-family: Arial, Helvetica, sans-serif;
}
.england-map * {
  box-sizing: border-box;
}
.england-map a {
  color: inherit;
}
.map-canvas {
  height: 100%;
  width: 100%;
  display: block;
  touch-action: none;
  cursor: grab;
}
.map-canvas:active {
  cursor: grabbing;
}
.england-shape {
  fill: #fcfaf0;
  stroke: #9dbbb0;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.map-place {
  fill: #173f3b;
}
.map-tether {
  stroke: #597a6f;
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.badge-halo {
  fill: #fff;
  stroke: #65847a;
  stroke-width: 1;
}
.map-badge {
  cursor: pointer;
  outline: none;
}
.map-badge:hover .badge-halo,
.map-badge:focus .badge-halo {
  stroke: #aa6711;
  stroke-width: 4;
}
.map-label {
  visibility: hidden;
  pointer-events: none;
}
.map-label rect {
  fill: #173f3b;
  stroke: #fff;
  stroke-width: 1;
}
.map-label text {
  fill: #fff;
  font-size: 13px;
  font-weight: 700;
}
.map-badge:hover .map-label,
.map-badge:focus .map-label {
  visibility: visible;
}
.map-city:has(.map-badge:hover),
.map-city:has(.map-badge:focus) {
  isolation: isolate;
}
.map-controls {
  position: absolute;
  z-index: 2;
  left: 24px;
  top: 24px;
  width: 250px;
  pointer-events: none;
}
.map-title {
  padding: 14px 16px;
  background: #fcfaf0eb;
  border: 1px solid #c6d5ca;
  border-radius: 18px;
  box-shadow: 0 3px 15px #173f3b0a;
}
.map-title span {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.map-title h1 {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.1;
  margin: 7px 0 0;
}
.map-search {
  pointer-events: auto;
  background: #fff;
  border: 1px solid #bdcfc4;
  border-radius: 15px;
  margin-top: 12px;
  padding: 12px 14px;
  box-shadow: 0 3px 15px #173f3b0a;
}
.map-search summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  list-style: none;
}
.map-search summary span {
  float: right;
  font-size: 20px;
  line-height: 14px;
}
.map-search label {
  display: block;
  font-size: 12px;
  margin: 16px 0 5px;
}
.map-search input {
  width: 100%;
  padding: 11px;
  border: 1px solid #65847a;
  border-radius: 6px;
  font-size: 16px;
}
.map-search ul {
  list-style: none;
  margin: 10px -6px 0;
  padding: 0;
  max-height: 48svh;
  overflow: auto;
}
.map-search li {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #e3e8e1;
}
.map-search li[hidden] {
  display: none;
}
.map-search li a {
  padding: 12px 6px;
  flex: 1;
  font-size: 14px;
  text-decoration: none;
}
.map-search li a:hover {
  text-decoration: underline;
}
.map-search button {
  min-height: 42px;
  min-width: 42px;
  background: transparent;
  border: 0;
  font-size: 24px;
  color: #174f45;
  cursor: pointer;
}
.map-zoom {
  position: absolute;
  right: 22px;
  bottom: 62px;
  z-index: 2;
  display: grid;
  background: #fff;
  border: 1px solid #bdcfc4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 3px 15px #173f3b0a;
}
.map-zoom button {
  border: 0;
  background: #fff;
  color: #173f3b;
  font-size: 26px;
  width: 46px;
  height: 46px;
  cursor: pointer;
}
.map-zoom button + button {
  border-top: 1px solid #d5e0d8;
}
.map-zoom button:hover {
  background: #f1f5ed;
}
.map-hint {
  position: absolute;
  left: 24px;
  bottom: 18px;
  margin: 0;
  font-size: 12px;
  background: #fcfaf0e8;
  padding: 8px 12px;
  border-radius: 12px;
  pointer-events: none;
}
.map-attribution {
  position: absolute;
  right: 22px;
  bottom: 18px;
  font-size: 11px;
  max-width: 360px;
  z-index: 3;
  text-align: right;
}
.map-attribution[open] {
  background: #fff;
  border: 1px solid #bdcfc4;
  padding: 14px;
  border-radius: 12px;
  text-align: left;
  line-height: 1.5;
}
.map-attribution summary {
  cursor: pointer;
}
.map-skip {
  position: absolute;
  z-index: 4;
  top: -100px;
  left: 12px;
  background: #fff;
  padding: 12px;
}
.map-skip:focus {
  top: 12px;
}
.england-map :focus-visible {
  outline: 3px solid #c47816;
  outline-offset: 3px;
}
.map-canvas:focus-visible {
  outline-offset: -4px;
}
.map-empty {
  font-size: 13px;
}
@media (max-width: 650px) {
  .map-controls {
    left: 12px;
    top: 12px;
    width: 200px;
  }
  .map-title {
    padding: 10px 12px;
  }
  .map-title h1 {
    font-size: 21px;
  }
  .map-search {
    padding: 10px 12px;
    margin-top: 8px;
  }
  .map-zoom {
    right: 12px;
    bottom: 78px;
  }
  .map-hint {
    left: 12px;
    bottom: 43px;
    font-size: 11px;
  }
  .map-attribution {
    right: 12px;
    bottom: 14px;
    max-width: calc(100% - 24px);
  }
  .map-canvas {
    min-width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .england-map * {
    scroll-behavior: auto;
  }
}
