.zone-map-section {
  max-width: 900px;
  margin: 1.2rem auto 0;
  text-align: center;
}

.zone-map-thumb {
  display: block;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 0;
  border: 1px solid #d6d6d6;
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}

.zone-map-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.zone-map-thumb:hover,
.zone-map-thumb:focus-visible {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .22);
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

.zone-list-link-wrap {
  margin: 1rem 0 0;
  text-align: center;
}

.zone-list-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #00f;
  font: inherit;
  font-weight: 700;
  font-size: 1.5em;
  text-decoration: underline;
  cursor: pointer;
}

.zone-list-link:hover,
.zone-list-link:focus-visible {
  color: #004499;
}

.hero-zone-map-link {
  display: inline;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .12em;
  cursor: zoom-in;
}

.hero-zone-map-link:hover,
.hero-zone-map-link:focus-visible {
  color: #00f;
}

.zone-place-list {
  width: 100%;
  margin-top: 1rem;
  padding: 1.2rem;
  background: #fff;
  color: #333;
  border: 1px solid #c8c8c8;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  text-align: left;
}

.zone-place-list[hidden],
.zone-map-overlay[hidden] {
  display: none !important;
}

.zone-place-list p {
  margin: .75rem 0;
  font-size: 1.05rem;
}

.zone-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(255, 255, 255, .18);
  cursor: zoom-out;
}

.zone-map-overlay picture {
  display: flex;
  align-items: center;
  justify-content: center;
}

.zone-map-popup-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
  object-fit: contain;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .36);
}

html.zone-layer-open,
body.zone-layer-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .zone-map-section {
    margin-top: 1rem;
  }

  .zone-place-list {
    width: calc(100vw - 1rem);
    padding: 1rem;
  }

  .zone-place-list p {
    font-size: 1rem;
  }

  .zone-map-overlay {
    padding: .5rem;
  }

  .zone-map-popup-image {
    max-width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
  }
}

@media (prefers-color-scheme: dark) {
  .zone-map-thumb {
    background: #222;
    border-color: #555;
  }

  .zone-place-list {
    background: #111;
    color: #eee;
    border-color: #555;
  }

  .zone-map-overlay {
    background: rgba(0, 0, 0, .22);
  }

  .zone-map-popup-image {
    background: #111;
  }

  .zone-list-link {
    color: #7ab0ff;
  }

  .zone-list-link:hover,
  .zone-list-link:focus-visible {
    color: #a9cbff;
  }

  .hero-zone-map-link:hover,
  .hero-zone-map-link:focus-visible {
    color: #7ab0ff;
  }
}

.zone-map-close {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: inherit;
}

.zone-map-close:focus-visible,
.zone-list-link:focus-visible,
.hero-zone-map-link:focus-visible {
  outline: 3px solid #005fcc;
  outline-offset: 3px;
}

.no-js .zone-place-list:target[hidden] {
  display: block !important;
}

@supports (height: 100dvh) {
  .zone-map-popup-image {
    max-height: calc(100dvh - 2rem);
  }

  @media (max-width: 768px) {
    .zone-map-popup-image {
      max-height: calc(100dvh - 1rem);
    }
  }
}
