/* PanoView viewer styles - scoped under .pv-root */
.pv-root {
  position: relative;
  overflow: hidden;
  background: #111;
  border-radius: 12px;           /* rounded corners (override per-embed if undesired) */
  touch-action: none;            /* we handle all gestures */
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.pv-root.pv-grabbing { cursor: grabbing; }

.pv-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.pv-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;          /* children re-enable */
}

.pv-controls {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: auto;
}

.pv-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: rgba(20, 20, 22, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: background 0.15s ease, transform 0.05s ease;
}
.pv-btn:hover { background: rgba(40, 40, 44, 0.75); }
.pv-btn:active { transform: scale(0.94); }
.pv-btn:focus-visible { outline: 2px solid #4ea1ff; outline-offset: 2px; }
/* keep the icon sized even if the host page has global svg rules */
.pv-btn svg { width: 20px; height: 20px; flex: 0 0 auto; display: block; fill: currentColor; }

.pv-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border: 4px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pv-spin 0.9s linear infinite;
  display: none;
  pointer-events: none;
}
@keyframes pv-spin { to { transform: rotate(360deg); } }

.pv-root.pv-error::after {
  content: attr(data-pv-error);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  color: #ffb4b4;
  background: #1a1213;
  font: 14px/1.4 system-ui, sans-serif;
  text-align: center;
}

/* larger tap targets on coarse pointers (touch) */
@media (pointer: coarse) {
  .pv-btn { width: 48px; height: 48px; font-size: 26px; }
  .pv-controls { right: 10px; bottom: 10px; gap: 10px; }
}

/* the container takes the full viewport when in browser fullscreen (square corners) */
.pv-root:fullscreen { width: 100vw; height: 100vh; border-radius: 0; }
.pv-root:-webkit-full-screen { width: 100vw; height: 100vh; border-radius: 0; }

/* ---- hotspots ------------------------------------------------------ */
.pv-hotspots {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;          /* only the markers are interactive */
}
.pv-hotspot {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  cursor: pointer;
  outline: none;
  text-decoration: none;
  will-change: transform;
}
.pv-hotspot-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2px solid rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 1px 3px rgba(0, 0, 0, 0.6);
  color: rgba(0, 0, 0, 0.72);
  font: italic 700 12px/1 Georgia, "Times New Roman", serif;
  transition: transform 0.12s ease, background 0.12s ease;
}
/* the "i" mark on informational hotspots */
.pv-hotspot-info .pv-hotspot-dot::after { content: "i"; }
.pv-hotspot:hover .pv-hotspot-dot,
.pv-hotspot:focus .pv-hotspot-dot,
.pv-hotspot-open .pv-hotspot-dot {
  transform: scale(1.25);
  background: #fff;
}
.pv-hotspot-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  white-space: nowrap;
  max-width: 60vw;
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(15, 15, 18, 0.9);
  color: #fff;
  font: 13px/1.25 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.12s ease;
  pointer-events: none;
  z-index: 1;
}
.pv-hotspot-tip::after {           /* little downward arrow */
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: rgba(15, 15, 18, 0.9);
}
.pv-hotspot:hover .pv-hotspot-tip,
.pv-hotspot:focus .pv-hotspot-tip,
.pv-hotspot-open .pv-hotspot-tip {
  opacity: 1;
  visibility: visible;
}
@media (pointer: coarse) {
  .pv-hotspot-dot { width: 20px; height: 20px; font-size: 13px; }
  .pv-hotspot-tip { font-size: 14px; padding: 6px 10px; }
}
