.ghe-hotspots {
  position: relative;
  display: block;
  max-width: 100%;
  margin-inline: auto;
  overflow: visible;
  line-height: 1.45;
}

.ghe-hotspots__image {
  display: block;
  width: 100%;
  height: auto;
}

.ghe-hotspot {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
}

.ghe-hotspot:focus-within,
.ghe-hotspot.is-open {
  z-index: 20;
}

.ghe-hotspot__button {
  --ghe-marker-size: 38px;
  --ghe-halo: rgba(255, 255, 255, 0.8);
  display: grid;
  width: var(--ghe-marker-size);
  height: var(--ghe-marker-size);
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #08bceb;
  box-shadow: 0 0 0 10px var(--ghe-halo);
  color: #08273b;
  cursor: pointer;
  font: 700 calc(var(--ghe-marker-size) * .67)/1 Arial, sans-serif;
  appearance: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ghe-hotspot__button:hover,
.ghe-hotspot__button:focus-visible,
.ghe-hotspot.is-open .ghe-hotspot__button {
  transform: scale(1.08);
  box-shadow: 0 0 0 11px var(--ghe-halo), 0 5px 18px rgba(0, 0, 0, .18);
}

.ghe-hotspot__button:focus-visible {
  outline: 3px solid #08273b;
  outline-offset: 4px;
}

.ghe-hotspot__tooltip {
  position: absolute;
  z-index: 3;
  width: max-content;
  max-width: min(230px, 75vw);
  padding: 12px 16px;
  border-radius: 8px;
  background: #08bceb;
  color: #fff;
  text-align: center;
  font-size: 17px;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .12));
  transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}

.ghe-hotspot__tooltip p { margin: 0; }
.ghe-hotspot__tooltip p + p { margin-top: .65em; }

.ghe-hotspot__tooltip::after {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #08bceb;
  content: "";
  transform: rotate(45deg);
}

.ghe-hotspot[data-resolved-position="top"] .ghe-hotspot__tooltip {
  bottom: calc(100% + 15px);
  left: 50%;
  transform: translate(-50%, 7px);
}
.ghe-hotspot[data-resolved-position="top"] .ghe-hotspot__tooltip::after {
  bottom: -6px; left: calc(50% - 7px);
}
.ghe-hotspot[data-resolved-position="bottom"] .ghe-hotspot__tooltip {
  top: calc(100% + 15px);
  left: 50%;
  transform: translate(-50%, -7px);
}
.ghe-hotspot[data-resolved-position="bottom"] .ghe-hotspot__tooltip::after {
  top: -6px; left: calc(50% - 7px);
}
.ghe-hotspot[data-resolved-position="left"] .ghe-hotspot__tooltip {
  right: calc(100% + 15px);
  top: 50%;
  transform: translate(7px, -50%);
}
.ghe-hotspot[data-resolved-position="left"] .ghe-hotspot__tooltip::after {
  right: -6px; top: calc(50% - 7px);
}
.ghe-hotspot[data-resolved-position="right"] .ghe-hotspot__tooltip {
  left: calc(100% + 15px);
  top: 50%;
  transform: translate(-7px, -50%);
}
.ghe-hotspot[data-resolved-position="right"] .ghe-hotspot__tooltip::after {
  left: -6px; top: calc(50% - 7px);
}

.ghe-hotspot.is-open .ghe-hotspot__tooltip {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.ghe-hotspot[data-resolved-position="top"].is-open .ghe-hotspot__tooltip,
.ghe-hotspot[data-resolved-position="bottom"].is-open .ghe-hotspot__tooltip {
  transform: translate(-50%, 0);
}
.ghe-hotspot[data-resolved-position="left"].is-open .ghe-hotspot__tooltip,
.ghe-hotspot[data-resolved-position="right"].is-open .ghe-hotspot__tooltip {
  transform: translate(0, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .ghe-hotspot__button,
  .ghe-hotspot__tooltip { transition: none; }
}

