/* White ring targets match the reference viewer; the invisible hit area remains touch friendly. */
/* A focused off-screen hotspot must never scroll the WebGL canvas inside its viewport. */
#panorama, #preview { overflow: clip; }
.pnlm-container .floor-hotspot {
  width: var(--marker-hit-size, 60px);
  height: var(--marker-hit-size, 60px);
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.floor-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--marker-size, 40px);
  height: var(--marker-size, 40px);
  box-sizing: border-box;
  border: var(--marker-border, 7px) solid rgba(255,255,255,.94);
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
  transition: background .18s, border-width .18s, transform .18s;
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.ring-direction { position: absolute; left: 50%; top: 50%; width: 17px; height: 17px; transform: translate(-50%, -50%); background: #7b20ff; mask: url('icons/chevron-up.svg') center/contain no-repeat; opacity: 0; pointer-events: none; }
.floor-hotspot:hover .floor-ring,
.floor-hotspot:focus-visible .floor-ring {
  background: rgba(255,255,255,.94);
  border-width: 4px;
  box-shadow: 0 0 0 9px rgba(255,255,255,.3), 0 1px 8px #0003;
  transform: translate(-50%, -50%) scale(1.05);
}
.floor-hotspot.is-cursor-target .floor-ring { box-shadow: 0 0 0 7px #ffffff40, 0 1px 8px #0003; }
.pnlm-container .floor-hotspot:focus-visible { outline: none; }
.floor-hotspot:focus-visible .floor-ring { box-shadow: 0 0 0 3px rgba(25,30,28,.8), 0 0 0 6px white; }
.floor-hotspot:hover .ring-direction, .floor-hotspot:focus-visible .ring-direction { opacity: 1; }
.floor-destination {
  position: absolute;
  left: 50%;
  bottom: calc(50% + var(--marker-size, 40px) / 2 + 14px);
  transform: translateX(-50%) translateY(4px);
  padding: 7px 11px;
  border-radius: 7px;
  background: rgba(24,30,26,.9);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font: 12px/1.4 Segoe UI,Arial,sans-serif;
  white-space: nowrap;
  box-shadow: 0 3px 12px #0002;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s, transform .15s;
  pointer-events: none;
}
.floor-hotspot:hover .floor-destination,
.floor-hotspot:focus-visible .floor-destination { opacity: 1; visibility: visible; transform: translateX(-50%); }
.floor-hotspot.is-walking .floor-ring { background: rgba(255,255,255,.75); transform: translate(-50%, -50%) scale(1.25); }
.walk-cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 20;
  width: 0;
  height: 0;
  pointer-events: none;
}
.walk-cursor::before {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  left: -16px;
  top: -16px;
  box-sizing: border-box;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #ffffff24;
  box-shadow: 0 1px 6px #0004;
  transition: background .14s, box-shadow .14s;
}
.walk-cursor.has-target::before { background: #ffffffe8; box-shadow: 0 0 0 6px #ffffff45, 0 1px 6px #0003; }
.walk-cursor-arrow {
  position: absolute;
  left: -9px;
  top: -9px;
  width: 18px;
  height: 18px;
  background: #7b20ff;
  mask: url('icons/chevron-up.svg') center/contain no-repeat;
  opacity: 0;
}
.walk-cursor.has-target .walk-cursor-arrow { opacity: 1; }
.walk-cursor.is-dragging::before { background: #ffffff12; box-shadow: 0 1px 6px #0004; }
.pnlm-container.has-walk-cursor, .pnlm-container.has-walk-cursor .pnlm-dragfix,
.pnlm-container.has-walk-cursor .floor-hotspot { cursor: none; }
.walk-cursor[hidden] { display: none; }
.surface-ring { position: absolute; left: 50%; top: 50%; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
.surface-ring path { fill: #ffffffe8; filter: drop-shadow(0 1px 2px #0003); }
.surface-hotspot.is-cursor-target .surface-ring path, .surface-hotspot:focus-visible .surface-ring path { fill: white; filter: drop-shadow(0 0 5px #fff9); }
.surface-hotspot .floor-destination { bottom: 48px; }
.surface-pointer { display: none; pointer-events: none; overflow: visible; }
.is-surface-cursor { width: 100%; height: 100%; }
.is-surface-cursor::before, .is-surface-cursor .walk-cursor-arrow { display: none; }
.is-surface-cursor .surface-pointer { display: block; }
.surface-pointer path { fill: #ffffffe8; filter: drop-shadow(0 1px 3px #0002); }
.navigation-hint {
  position: absolute;
  top: 103px;
  left: 24px;
  z-index: 3;
  margin: 0;
  padding: 8px 12px;
  color: #fff;
  background: rgba(24,30,26,.72);
  border: 1px solid #ffffff1a;
  border-radius: 8px;
  font: 12px/1.5 Segoe UI,Arial,sans-serif;
  pointer-events: none;
  transition: opacity .3s;
}
.embed-mode .navigation-hint { top: 77px; }
.navigation-hint.dismissed { opacity: 0; }
@media(max-width:600px) {
  .navigation-hint, .embed-mode .navigation-hint { left: 12px; top: 76px; max-width: calc(100vw - 24px); font-size: 11px; }
  .embed-mode .navigation-hint { top: 65px; }
}
@media(prefers-reduced-motion:reduce) {
  .floor-ring, .floor-destination, .navigation-hint { transition: none; }
}
