/* Virtual tour - viewer styles */

:root {
  --vt-accent: #220a0e;
  --vt-ink: #ffffff;
  --vt-panel: rgba(16, 17, 19, 0.72);
  --vt-panel-solid: #131416;
  --vt-radius: 999px;

  /* frosted glass: light tint, heavy blur. The saturate is what stops the
     blurred backdrop going flat and grey - it is how real frosted UI reads. */
  --vt-glass: rgba(0, 0, 0, 0.15);
  --vt-glass-hover: rgba(34, 10, 14, 0.6);
  --vt-glass-blur: blur(22px) saturate(160%);
  --vt-glass-edge: rgba(255, 255, 255, 0.22);
  --vt-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: #0d0e10;
  font-family: var(--vt-font);
  overscroll-behavior: none;
}

.vt-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0e10;
}

/* ----------------------------- canvas ------------------------------ */

.vt-root {
  position: absolute;
  inset: 0;
  outline: none;
  cursor: grab;
  touch-action: none;
}
.vt-root.is-dragging { cursor: grabbing; }

.vt-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

.vt-error {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font: 500 15px/1.5 var(--vt-font);
  opacity: 0.7;
}

/* ---------------------------- hotspots ----------------------------- */

.vt-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.vt-hotspots.vt-travelling { opacity: 0; transition: opacity 0.18s ease; }

.vt-hotspot {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
  animation: vt-pop 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes vt-pop {
  from { opacity: 0; }
  to { opacity: 1; }
}

.vt-hs-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.22s ease, border-color 0.22s ease;
}

/* the soft outward pulse that reads as "you can go here" */
.vt-hs-ring::before {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  animation: vt-pulse 2.6s ease-out infinite;
}

@keyframes vt-pulse {
  0%   { transform: scale(1);    opacity: 0.55; }
  70%  { transform: scale(1.75); opacity: 0; }
  100% { transform: scale(1.75); opacity: 0; }
}

/* Navigation hotspots are a plain ring. Info hotspots keep a centre dot so the
   two kinds stay tellable apart. */
.vt-hotspot.is-info .vt-hs-ring::after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

.vt-hs-label {
  padding: 5px 11px;
  border-radius: var(--vt-radius);
  background: var(--vt-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.vt-hotspot:hover .vt-hs-ring,
.vt-hotspot:focus-visible .vt-hs-ring {
  transform: scale(1.12);
  background: var(--vt-accent);
  /* the accent is very dark, so keep the white rim or the ring vanishes
     against the darker rooms */
  border-color: rgba(255, 255, 255, 0.9);
}
.vt-hotspot:active .vt-hs-ring {
  transform: scale(1.04);
  background: var(--vt-accent);
}
.vt-hotspot:hover .vt-hs-label,
.vt-hotspot:focus-visible .vt-hs-label {
  opacity: 1;
  transform: translateY(0);
}
.vt-hotspot:focus { outline: none; }
.vt-hotspot:focus-visible .vt-hs-ring { box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4); }

@media (hover: none) {
  .vt-hs-label { opacity: 1; transform: none; }
}

/* ----------------------------- loader ------------------------------ */

.vt-loader {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.vt-loader.is-on { opacity: 1; }
.vt-loader span {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  animation: vt-spin 0.8s linear infinite;
}
@keyframes vt-spin { to { transform: rotate(360deg); } }

/* ------------------------------- UI -------------------------------- */

.vt-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #fff;
}
.vt-ui > * { pointer-events: auto; }

.vt-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent);
}

.vt-title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}
.vt-subtitle {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.7;
  letter-spacing: 0.02em;
}

/* unit (floor plan) switch - two standalone boxes, not a segmented slider */
.vt-units {
  display: flex;
  gap: 8px;
}
.vt-unit {
  padding: 13px 26px;
  border: 1px solid var(--vt-glass-edge);
  border-radius: 0;
  background: var(--vt-glass);
  backdrop-filter: var(--vt-glass-blur);
  -webkit-backdrop-filter: var(--vt-glass-blur);
  color: #fff;
  font: 500 13.5px/1 var(--vt-font);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.vt-unit:hover {
  background: var(--vt-glass-hover);
  border-color: rgba(255, 255, 255, 0.5);
}
.vt-unit.is-active {
  background: var(--vt-accent);
  border-color: var(--vt-accent);
  color: #fff;
}

/* bottom scene strip */
.vt-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 22px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}
.vt-scenes {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.vt-scenes::-webkit-scrollbar { display: none; }

.vt-scene-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border-radius: 0;
  border: 1px solid var(--vt-glass-edge);
  background: var(--vt-glass);
  backdrop-filter: var(--vt-glass-blur);
  -webkit-backdrop-filter: var(--vt-glass-blur);
  color: #fff;
  font: 500 11px/1 var(--vt-font);
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.vt-scene-chip:hover {
  background: var(--vt-glass-hover);
  border-color: rgba(255, 255, 255, 0.5);
}
.vt-scene-chip.is-active {
  background: var(--vt-accent);
  border-color: var(--vt-accent);
  color: #fff;
}

/* first-visit drag hint */
.vt-hint {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--vt-radius);
  background: var(--vt-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  letter-spacing: 0.03em;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.vt-hint.is-on { opacity: 0.9; }

.vt-hint-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--vt-accent);
  animation: vt-sway 1.8s ease-in-out infinite;
}
@keyframes vt-sway {
  0%, 100% { transform: translateX(-4px); }
  50% { transform: translateX(4px); }
}

@media (max-width: 640px) {
  .vt-topbar { padding: 14px 14px; }
  .vt-bottom { padding: 40px 14px 14px; }
  .vt-title { font-size: 11px; }
  .vt-unit { padding: 10px 18px; font-size: 12.5px; }
  .vt-scene-chip { padding: 6px 10px; font-size: 10px; }
  .vt-hs-ring { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .vt-hs-ring::before { animation: none; }
  .vt-hint-dot { animation: none; }
}
