html, body { margin: 0; height: 100%; background: #111; overflow: hidden; }
#viewer { position: fixed; inset: 0; }
.noscript { color: #eee; font: 16px/1.4 system-ui, sans-serif; padding: 24px; }

/* The old 2D hotspot elements are replaced by 3D floor rings (rings.js); links stay for preloading. */
.psv-virtual-tour-arrows { display: none !important; }
.stair-pill {
  display: inline-block; padding: 3px 9px; border-radius: 999px; white-space: nowrap; cursor: pointer;
  background: rgba(20, 20, 20, 0.4); color: #fff;
  font: 600 11px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.02em;
}
.stair-pill:hover { background: rgba(20, 20, 20, 0.65); }

/* Navigation hotspots: a disc lying on the floor where the next photo was taken. */
.hs {
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; background: none; cursor: pointer; color: #fff;
}
.hs-disc {
  /* Matterport-style floor marker: one wide, soft, semi-transparent ring painted on the floor */
  width: 100%; height: 100%; box-sizing: border-box; border-radius: 50%; border: 0; box-shadow: none;
  /* crisp ring: ~1px anti-aliased edges, no blur */
  background: radial-gradient(closest-side, transparent 0 58%, rgba(255, 255, 255, 0.28) 60.5%,
    rgba(255, 255, 255, 0.28) 81.5%, transparent 84%);
  transform: scale(var(--hs-scale, 1));
  transition: background 0.15s ease, transform 0.15s ease;
}
.hs-occluded .hs-disc { opacity: 0.5; }
.hs:hover .hs-disc, .hs:focus-visible .hs-disc {
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08) 0 58%, rgba(255, 255, 255, 0.6) 60.5%,
    rgba(255, 255, 255, 0.6) 81.5%, transparent 84%);
  transform: scale(calc(var(--hs-scale, 1) * 1.06));
}
.hs:focus-visible { outline: none; }
.hs-label {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px) scale(var(--hs-scale, 1));
  transform-origin: 50% 100%;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
  padding: 3px 8px 3px 5px; border-radius: 999px;
  background: rgba(20, 20, 20, 0.35); border: 0;
  font: 600 11px/1 system-ui, -apple-system, sans-serif; letter-spacing: 0.02em;
}
.hs-label svg { width: 14px; height: 14px; }

/* Bottom bar: floating rounded controls instead of a full-width strip */
.psv-navbar {
  box-sizing: border-box !important; width: 100%;
  background: none; height: 44px; padding: 0 14px;
  bottom: -80px; align-items: center; pointer-events: none;
  font: 500 14px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.psv-navbar--open { bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
.psv-navbar > * { pointer-events: auto; }
.psv-navbar .psv-button {
  width: 20px; height: 20px; padding: 12px; margin-left: 8px;
  border-radius: 999px; color: #fff;
  background: rgba(16, 16, 16, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  transition: background 0.15s ease;
}
.psv-navbar .psv-button:hover { background: rgba(16, 16, 16, 0.75); }
.psv-navbar .psv-button--active { background: rgba(255, 255, 255, 0.92); color: #111; }
.psv-navbar .psv-caption {
  background: none !important; box-shadow: none !important; margin: 0 !important; padding: 0 8px !important;
  -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  height: 44px !important; display: flex; align-items: center; justify-content: center; overflow: visible;
}
.psv-caption-content {
  padding: 12px 18px; border-radius: 999px; color: #fff;
  background: rgba(16, 16, 16, 0.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
  font: 500 14px/20px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: 0.01em;
}
.psv-caption-content:empty { display: none; }

/* Level switcher: one segmented pill */
.psv-navbar .lvl-btn {
  width: auto; padding: 12px 14px; margin-left: 0; border-radius: 0;
  font: 600 13px/20px system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: rgba(255, 255, 255, 0.78);
}
.psv-navbar .lvl-btn.lvl-first { border-radius: 999px 0 0 999px; padding-left: 18px; }
.psv-navbar .lvl-btn.lvl-last { border-radius: 0 999px 999px 0; padding-right: 18px; }
.psv-navbar .lvl-btn.is-active { color: #111; background: rgba(255, 255, 255, 0.92); }
@media (max-width: 520px) {
  .psv-navbar { padding: 0 8px; height: 40px; }
  .psv-caption { height: 40px !important; }
  .psv-navbar .psv-button { width: 18px; height: 18px; padding: 11px; margin-left: 5px; }
  .psv-navbar .lvl-btn { width: auto; padding: 11px 8px; margin-left: 0; font-size: 12px; line-height: 18px; }
  .psv-navbar .lvl-btn.lvl-first { padding-left: 12px; }
  .psv-navbar .lvl-btn.lvl-last { padding-right: 12px; }
}

/* 3D walk canvas (sits above the panorama, below the navbar) */
.walk-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 60; pointer-events: none; opacity: 1; transition: opacity 200ms ease;
}
.walk-canvas.is-leaving { opacity: 0; }
