.tuig-interactief {
  --tuig-accent: #c39762;
  --tuig-tekst: #172b40;

  position: relative;
  width: 100%;
  isolation: isolate;
}

.tuig-interactief,
.tuig-interactief * {
  box-sizing: border-box;
}

.tuig-interactief__afbeelding {
  display: block;
  width: 100%;
  height: auto;
}

.tuig-interactief .tuig-hotspot {
  position: absolute;
  left: var(--left);
  top: var(--top);
  transform: translate(-50%, -50%);
  z-index: 1;
  display: block;
  width: 44px;
  height: 44px;
  color: var(--tuig-tekst);
  text-decoration: none;
}

.tuig-interactief .tuig-hotspot:hover,
.tuig-interactief .tuig-hotspot:focus-visible {
  z-index: 10;
}

.tuig-hotspot__bol {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--tuig-accent);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  box-shadow: 0 3px 12px rgb(0 0 0 / 18%);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.tuig-hotspot:hover .tuig-hotspot__bol {
  background: #134321;
  box-shadow: 0 4px 18px rgb(0 0 0 / 25%);
}

.tuig-interactief .tuig-hotspot:focus-visible {
  outline: 3px solid var(--tuig-accent);
  outline-offset: 4px;
  border-radius: 50%;
}

.tuig-hotspot__info {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  display: block;
  width: 260px;
  padding: 20px;
  border: 1px solid #e5eaf0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 30px rgb(0 0 0 / 12%);
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(6px, -50%);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.tuig-hotspot__info::before {
  content: "";
  position: absolute;
  top: 0;
  right: 100%;
  width: 16px;
  height: 100%;
}

.tuig-hotspot__info::after {
  content: "";
  position: absolute;
  left: -6px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid #e5eaf0;
  border-bottom: 1px solid #e5eaf0;
  transform: rotate(45deg);
}

.tuig-hotspot__titel {
  display: block;
  margin-bottom: 7px;
  color: var(--tuig-tekst);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.tuig-hotspot__tekst {
  display: block;
  color: #526170;
  font-size: 14px;
  line-height: 1.6;
}

.tuig-hotspot__link {
  display: block;
  margin-top: 12px;
  color: var(--tuig-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tuig-hotspot--links .tuig-hotspot__info {
  left: auto;
  right: calc(100% + 14px);
  transform: translate(-6px, -50%);
}

.tuig-hotspot--links .tuig-hotspot__info::before {
  right: auto;
  left: 100%;
}

.tuig-hotspot--links .tuig-hotspot__info::after {
  left: auto;
  right: -6px;
  border: 0;
  border-right: 1px solid #e5eaf0;
  border-top: 1px solid #e5eaf0;
}

@media (hover: hover) {
  .tuig-hotspot:hover .tuig-hotspot__info {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(0, -50%);
  }
}

.tuig-hotspot:focus-visible .tuig-hotspot__info {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, -50%);
}

@media (max-width: 767px) {
  .tuig-interactief .tuig-hotspot {
    width: 32px;
    height: 32px;
  }

  .tuig-hotspot__bol {
    font-size: 22px;
  }

  .tuig-hotspot__info {
    width: min(210px, 55vw);
    padding: 14px;
  }

  .tuig-hotspot__titel {
    font-size: 16px;
  }

  .tuig-hotspot__tekst,
  .tuig-hotspot__link {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tuig-hotspot__bol,
  .tuig-hotspot__info {
    transition: none;
  }
}
