.eihhp {
  position: relative;
  width: 100%;
  --eihhp-pos-offset: 24px;
  --eihhp-loader-speed: 3s;
}

.eihhp__stage { position: relative; width: 100%; }
.eihhp__image { display: block; width: 100%; height: auto; }

.eihhp__hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.eihhp .eihhp__hotspot,
.eihhp .eihhp__hotspot:hover,
.eihhp .eihhp__hotspot:focus,
.eihhp .eihhp__hotspot:focus-visible,
.eihhp .eihhp__hotspot:active {
  position: absolute;
  pointer-events: auto;
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  font: inherit !important;
  color: inherit !important;
  text-align: inherit !important;
  text-decoration: none !important;
  cursor: pointer !important;
  filter: none !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
  overflow: visible !important;
}

.eihhp__hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(255,255,255,0.85);
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  opacity: .85;
  transition: opacity .18s ease, transform .18s ease;
}

.eihhp__hotspot:hover::before {
  opacity: 1;
  transform: scale(1.01);
}

.eihhp--hs-hidden .eihhp__hotspot::before { display: none !important; }
.eihhp--hs-hover .eihhp__hotspot::before { opacity: 0 !important; }
.eihhp--hs-hover .eihhp__hotspot:hover::before { opacity: 1 !important; }

.eihhp .eihhp__hotspot:focus-visible::before {
  opacity: 1 !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 6px rgba(0,0,0,0.25);
}

.eihhp__marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  z-index: 3;
  pointer-events: none;
}

.eihhp__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 38px;
  height: 38px;
  padding: 8px;
  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.25);
  z-index: 4;
  pointer-events: none;
  transition: transform .18s ease, opacity .18s ease;
  box-sizing: border-box;
}

.eihhp__pin i,
.eihhp__pin svg {
  display: block;
  width: 100%;
  height: 100%;
  font-size: inherit;
  line-height: 1;
}

.eihhp__pin svg,
.eihhp__pin svg path { fill: currentColor; }

.eihhp__pin img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.eihhp__hotspot:has(.eihhp__pin) .eihhp__marker {
  display: none !important;
}

/* Popup Media + Video Loader */
.eihhp__popup_media {
  position: relative;
  width: 100%;
  margin-bottom: 18px;
  overflow: hidden;
  border-radius: 12px;
}

.eihhp__popup_media img,
.eihhp__popup_media video {
  display: block;
  width: 100%;
  height: auto;
}

.eihhp__popup_media video {
  background: #000;
}

.eihhp__popup_media--youtube {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.eihhp__popup_media--youtube iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.eihhp__popup_media video,
.eihhp__popup_media iframe {
  position: relative;
  z-index: 1;
}

.eihhp__video_loader {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,0.22);
  overflow: hidden;
  z-index: 10;
  opacity: 1;
  transition: opacity .18s ease;
}

.eihhp__video_loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.eihhp__video_loader_bar {
  width: 0%;
  height: 100%;
  background: #fff;
  border-radius: inherit;
  transition: width .12s linear;
}

.eihhp__video_loader.is-indeterminate .eihhp__video_loader_bar {
  width: 35%;
  animation: eihhp-loader-slide var(--eihhp-loader-speed, 3s) ease-in-out infinite;
}

@keyframes eihhp-loader-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(320%); }
}

/* Modal */
.eihhp__modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity var(--eihhp-modal-duration, 220ms) var(--eihhp-modal-ease, ease),
    visibility 0ms linear var(--eihhp-modal-duration, 220ms);
}

.eihhp__modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity var(--eihhp-modal-duration, 220ms) var(--eihhp-modal-ease, ease),
    visibility 0ms linear 0ms;
}

.eihhp__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}

.eihhp__dialog {
  position: absolute;
  left: 50%;
  width: min(92vw, 520px);
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
  color: #111;
  transition:
    transform var(--eihhp-modal-duration, 220ms) var(--eihhp-modal-ease, ease),
    opacity var(--eihhp-modal-duration, 220ms) var(--eihhp-modal-ease, ease);
}

.eihhp--pos-center .eihhp__dialog {
  top: 50%;
  transform: translate(-50%, -50%);
}

.eihhp--pos-top .eihhp__dialog {
  top: var(--eihhp-pos-offset, 24px);
  transform: translate(-50%, 0);
}

.eihhp--pos-bottom .eihhp__dialog {
  top: auto;
  bottom: var(--eihhp-pos-offset, 24px);
  transform: translate(-50%, 0);
}

.eihhp--anim-none .eihhp__dialog,
.eihhp--anim-none .eihhp__modal {
  transition: none !important;
}

.eihhp--anim-fade .eihhp__dialog { opacity: 0; }
.eihhp--anim-fade .eihhp__modal.is-open .eihhp__dialog { opacity: 1; }

.eihhp--anim-scale.eihhp--pos-center .eihhp__dialog { transform: translate(-50%, -50%) scale(0.96); }
.eihhp--anim-scale.eihhp--pos-center .eihhp__modal.is-open .eihhp__dialog { transform: translate(-50%, -50%) scale(1); }

.eihhp--anim-scale.eihhp--pos-top .eihhp__dialog { transform: translate(-50%, 0) scale(0.96); }
.eihhp--anim-scale.eihhp--pos-top .eihhp__modal.is-open .eihhp__dialog { transform: translate(-50%, 0) scale(1); }

.eihhp--anim-scale.eihhp--pos-bottom .eihhp__dialog { transform: translate(-50%, 0) scale(0.96); }
.eihhp--anim-scale.eihhp--pos-bottom .eihhp__modal.is-open .eihhp__dialog { transform: translate(-50%, 0) scale(1); }

.eihhp--anim-fade_scale .eihhp__dialog { opacity: 0; }
.eihhp--anim-fade_scale.eihhp--pos-center .eihhp__dialog { transform: translate(-50%, -50%) scale(0.96); }
.eihhp--anim-fade_scale.eihhp--pos-top .eihhp__dialog { transform: translate(-50%, 0) scale(0.96); }
.eihhp--anim-fade_scale.eihhp--pos-bottom .eihhp__dialog { transform: translate(-50%, 0) scale(0.96); }

.eihhp--anim-fade_scale .eihhp__modal.is-open .eihhp__dialog { opacity: 1; }
.eihhp--anim-fade_scale.eihhp--pos-center .eihhp__modal.is-open .eihhp__dialog { transform: translate(-50%, -50%) scale(1); }
.eihhp--anim-fade_scale.eihhp--pos-top .eihhp__modal.is-open .eihhp__dialog { transform: translate(-50%, 0) scale(1); }
.eihhp--anim-fade_scale.eihhp--pos-bottom .eihhp__modal.is-open .eihhp__dialog { transform: translate(-50%, 0) scale(1); }

/* Close button */
.eihhp .eihhp__close,
.eihhp .eihhp__close:hover,
.eihhp .eihhp__close:focus,
.eihhp .eihhp__close:focus-visible,
.eihhp .eihhp__close:active {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  position: absolute;
  top: var(--eihhp-close-y, 8px);
  right: var(--eihhp-close-x, 8px);
  font-size: 26px;
  line-height: 1;
  color: #111;
  padding: 2px 6px;
  border-radius: 10px;
  background: transparent;
  border: 0;
  outline: none;
  box-shadow: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  z-index: 50;
}

.eihhp.eihhp--close-outside .eihhp__close {
  top: calc(var(--eihhp-close-y, 8px) * -1);
  right: calc(var(--eihhp-close-x, 8px) * -1);
}

.eihhp .eihhp__close:focus-visible {
  box-shadow: 0 0 0 2px rgba(255,255,255,0.9), 0 0 0 5px rgba(0,0,0,0.35);
}

.eihhp__modal_body > :first-child { margin-top: 0; }
.eihhp__modal_body > :last-child { margin-bottom: 0; }

/* Measure Mode */
.eihhp__measure {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: auto;
  cursor: crosshair;
  z-index: 50;
}

.eihhp.is-measure .eihhp__measure { display: block; }
.eihhp.is-measure .eihhp__hotspots { pointer-events: none; }

.eihhp__measure_hint {
  position: absolute;
  left: 10px;
  top: 10px;
  background: rgba(0,0,0,.60);
  color: #fff;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.2;
  pointer-events: none;
  z-index: 60;
}

.eihhp__measure_point {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: rgba(255, 0, 0, 0.95);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.95), 0 10px 30px rgba(0,0,0,0.35);
  z-index: 70;
}

.eihhp__measure_box {
  position: absolute;
  border: 2px solid rgba(255, 0, 0, 0.95);
  background: rgba(255, 0, 0, 0.15);
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.85), 0 18px 60px rgba(0,0,0,0.25);
  z-index: 65;
}

.eihhp__measure_panel {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(255,255,255,0.96);
  color: #111;
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0,0,0,.22);
  font-size: 13px;
  line-height: 1.25;
  min-width: 220px;
  z-index: 80;
}

.eihhp__measure_row {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0 0 6px 0;
}

.eihhp__measure_row strong { font-weight: 700; }

.eihhp__measure_actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.eihhp__btn {
  border: 1px solid rgba(0,0,0,.12);
  background: #fff;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
  touch-action: manipulation;
}

.eihhp__btn:hover { border-color: rgba(0,0,0,.22); }

.eihhp__measure_small {
  margin-top: 6px;
  font-size: 12px;
  opacity: .75;
  min-height: 14px;
}