.global-map-hotspots {
  position: relative;
  width: 100%;
  line-height: 1;
}

.global-map-hotspots__image-link {
  display: block;
  position: relative;
  z-index: 0;
  outline-offset: 6px;
}

.global-map-hotspots__image-link img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: contain;
  transition: filter .24s ease;
}

.global-map-hotspot {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.global-map-hotspot:is(:hover, :focus-within, .is-active) {
  z-index: 10;
}

.global-map-hotspot__connector {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.global-map-hotspot__connector polyline {
  fill: none;
  stroke: #f4cf2b;
  stroke-width: 1.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.global-map-hotspot:is(:hover, :focus-within, .is-active) .global-map-hotspot__connector {
  opacity: 1;
}

.global-map-hotspot__button {
  position: absolute;
  top: var(--hotspot-y);
  left: var(--hotspot-x);
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}

.global-map-hotspot__button:focus-visible {
  outline: 2px solid #11482b;
  outline-offset: 3px;
}

.global-map-hotspot__dot {
  display: block;
  width: 17px;
  height: 17px;
  background: #ffd32e;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 1px 1px rgba(80, 61, 0, .55));
  transition: transform .2s ease, filter .2s ease;
}

.global-map-hotspot--minor .global-map-hotspot__dot {
  width: 11px;
  height: 11px;
}

.global-map-hotspot__button::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 211, 46, .7);
  border-radius: 50%;
  opacity: 0;
  transform: scale(.55);
  transition: opacity .2s ease, transform .2s ease;
}

.global-map-hotspot:is(:hover, :focus-within, .is-active) .global-map-hotspot__dot {
  filter: drop-shadow(0 2px 3px rgba(80, 61, 0, .62));
  transform: scale(1.55);
}

.global-map-hotspot:is(:hover, :focus-within, .is-active) .global-map-hotspot__button::after {
  opacity: 1;
  transform: scale(1.15);
}

.global-map-hotspot__label {
  position: absolute;
  top: var(--hotspot-y);
  left: calc(var(--hotspot-x) + 19px);
  display: grid;
  gap: 0;
  min-width: max-content;
  padding: 5px 8px;
  color: #176b48;
  background: #fbfff9;
  box-shadow: 0 0 0 5px #fbfff9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-50%) translateX(-5px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.global-map-hotspot__label-line + .global-map-hotspot__label-line {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #f4cf2b;
}

.global-map-hotspot__label-line {
  display: block;
  color: inherit;
  text-decoration: none;
  outline-offset: 2px;
}

.global-map-hotspot__label::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 100%;
  width: 34px;
  height: 1px;
  background: #f4cf2b;
  transform: translateY(-50%);
}

.global-map-hotspot--left .global-map-hotspot__label {
  left: calc(var(--hotspot-x) - 19px);
  transform: translate(-100%, -50%) translateX(5px);
}

.global-map-hotspot--left .global-map-hotspot__label::before {
  right: auto;
  left: 100%;
}

.global-map-hotspot:is(:hover, :focus-within, .is-active) .global-map-hotspot__label {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(-50%) translateX(0);
}

.global-map-hotspot--fixed-label .global-map-hotspot__label {
  top: var(--label-y);
  left: var(--label-x);
  right: auto;
  transform: translateY(-50%) translateX(-5px);
}

.global-map-hotspot--fixed-label.global-map-hotspot--left .global-map-hotspot__label {
  transform: translateY(-50%) translateX(-5px);
}

.global-map-hotspot--fixed-label .global-map-hotspot__label::before {
  display: none;
}

.global-map-hotspot--fixed-label.global-map-hotspot--left .global-map-hotspot__label::before {
  display: none;
}

.global-map-hotspot--fixed-label:is(:hover, :focus-within, .is-active) .global-map-hotspot__label {
  transform: translateY(-50%) translateX(0);
}

.global-map-hotspot--fixed-label.global-map-hotspot--left:is(:hover, :focus-within, .is-active) .global-map-hotspot__label {
  transform: translateY(-50%) translateX(0);
}

.global-map-hotspot__label:hover,
.global-map-hotspot__label:focus-within {
  color: #11482b;
}

.global-map-hotspot__label-line:hover,
.global-map-hotspot__label-line:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.global-map-hotspot--inset .global-map-hotspot__label {
  font-size: 13px;
}

@media (max-width: 767px) {
  .global-map-hotspots__image-link {
    outline-offset: 3px;
  }

  .global-map-hotspot__button {
    width: 24px;
    height: 24px;
  }

  .global-map-hotspot__dot {
    width: 14px;
    height: 14px;
  }

  .global-map-hotspot--minor .global-map-hotspot__dot {
    width: 9px;
    height: 9px;
  }

  .global-map-hotspot__label {
    gap: 3px;
    width: 150px;
    max-width: 150px;
    min-width: 150px;
    padding: 4px 6px;
    font-size: 12px;
    white-space: normal;
  }

  .global-map-hotspot--inset .global-map-hotspot__label {
    width: 120px;
    min-width: 120px;
    font-size: 11px;
  }

  .global-map-hotspot--mobile-right .global-map-hotspot__label {
    right: auto;
    left: 17px;
    transform: translateY(-50%) translateX(-5px);
  }

  .global-map-hotspot--mobile-right .global-map-hotspot__label::before {
    right: 100%;
    left: auto;
  }

  .global-map-hotspot--mobile-left .global-map-hotspot__label {
    right: 17px;
    left: auto;
    transform: translateY(-50%) translateX(5px);
  }

  .global-map-hotspot--mobile-left .global-map-hotspot__label::before {
    right: auto;
    left: 100%;
  }

  .global-map-hotspot:is(:hover, :focus-within, .is-active) .global-map-hotspot__label {
    transform: translateY(-50%) translateX(0);
  }

  .global-map-hotspot--fixed-label.global-map-hotspot--mobile-right .global-map-hotspot__label {
    right: auto;
    left: var(--label-x);
    transform: translateY(-50%) translateX(-5px);
  }

  .global-map-hotspot--fixed-label.global-map-hotspot--mobile-left .global-map-hotspot__label {
    right: auto;
    left: var(--label-x);
    transform: translate(-100%, -50%) translateX(5px);
  }

  .global-map-hotspot--fixed-label.global-map-hotspot--mobile-right .global-map-hotspot__label::before {
    right: auto;
    left: 100%;
  }

  .global-map-hotspot--fixed-label.global-map-hotspot--mobile-left .global-map-hotspot__label::before {
    right: 100%;
    left: auto;
  }

  .global-map-hotspot--fixed-label.global-map-hotspot--mobile-right:is(:hover, :focus-within, .is-active) .global-map-hotspot__label {
    transform: translateY(-50%) translateX(0);
  }

  .global-map-hotspot--fixed-label.global-map-hotspot--mobile-left:is(:hover, :focus-within, .is-active) .global-map-hotspot__label {
    transform: translate(-100%, -50%) translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .global-map-hotspots__image-link img,
  .global-map-hotspot__connector,
  .global-map-hotspot__dot,
  .global-map-hotspot__button::after,
  .global-map-hotspot__label {
    transition: none;
  }
}
