/* Virtual tour - viewer styles */

:root {
  --vt-accent: #220b0f;
  --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, 11, 15, 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);
}

/* property logo */
.vt-logo {
  display: block;
  line-height: 0;
  text-decoration: none;
}
.vt-logo img {
  display: block;
  width: 150px;
  height: auto;
  /* the mark is white, so lift it off bright ceilings without a hard shadow */
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}
.vt-logo:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 6px;
}

/* -------------------- bottom-right control stack -------------------- */

.vt-controls {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 5;
}

.vt-ctrl {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  /* circular, filled with the property accent - matches the reference */
  border-radius: 50%;
  background: var(--vt-accent);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}
.vt-ctrl:hover { background: #3a141a; transform: scale(1.06); }
.vt-ctrl:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.vt-ctrl svg { width: 22px; height: 22px; fill: currentColor; }
.vt-ctrl[disabled] { opacity: 0.4; cursor: not-allowed; }

.vt-ic-collapse { display: none; }
.vt-is-fullscreen .vt-ic-expand { display: none; }
.vt-is-fullscreen .vt-ic-collapse { display: block; }

/* --------------------- accessibility dialog ------------------------- */

.vt-sheet {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
}
.vt-sheet[hidden] { display: none; }

.vt-sheet__panel {
  width: min(420px, 100%);
  max-height: 100%;
  overflow-y: auto;
  padding: 22px;
  border-radius: 8px;
  background: var(--vt-accent);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
}

.vt-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.vt-sheet__head h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.vt-sheet__close {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.vt-sheet__close:hover { background: rgba(255, 255, 255, 0.2); }
.vt-sheet__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.vt-opt {
  display: flex;
  gap: 11px;
  padding: 11px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
}
.vt-opt:hover { background: rgba(255, 255, 255, 0.05); }
.vt-opt input { margin: 2px 0 0; width: 17px; height: 17px; flex: 0 0 auto; accent-color: #fff; cursor: pointer; }
.vt-opt input:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.vt-opt strong { display: block; font-size: 13px; font-weight: 600; }
.vt-opt em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.vt-keys { margin-top: 16px; }
.vt-keys h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.vt-keys dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 14px;
  margin: 0;
  font-size: 12px;
}
.vt-keys dt {
  padding: 1px 7px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 11px;
  white-space: nowrap;
  justify-self: start;
}
.vt-keys dd { margin: 0; color: rgba(255, 255, 255, 0.72); align-self: center; }

.vt-note {
  margin: 16px 0 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.48);
}


/* bottom scene strip */
.vt-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* keep clear of the control stack in the bottom-right corner */
  padding: 44px 82px 20px 22px;
  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-logo img { width: 108px; }
  .vt-bottom { padding: 40px 68px 14px 14px; }
  .vt-scene-chip { padding: 6px 10px; font-size: 10px; }
  .vt-hs-ring { width: 40px; height: 40px; }
  .vt-controls { right: 14px; bottom: 14px; gap: 8px; }
  .vt-ctrl { width: 40px; height: 40px; }
  .vt-ctrl svg { width: 20px; height: 20px; }
  .vt-sheet__panel { padding: 18px; }
}

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


/* =====================================================================
   Accessibility preferences

   These are visitor choices, so they are last in the sheet and marked
   important - they have to win over every component style above, not
   compete with it on specificity.
   ===================================================================== */

/* --- reduce motion --- */
.vt-a11y-motion .vt-hs-ring::before { animation: none !important; }
.vt-a11y-motion .vt-hotspot { animation: none !important; }
.vt-a11y-motion .vt-hint-dot { animation: none !important; }
.vt-a11y-motion .vt-loader span { animation-duration: 2s !important; }
.vt-a11y-motion * { transition-duration: 0.01ms !important; }

/* --- larger targets --- */
.vt-a11y-targets .vt-hs-ring { width: 64px !important; height: 64px !important; }
.vt-a11y-targets .vt-scene-chip { padding: 12px 18px !important; font-size: 14px !important; }
.vt-a11y-targets .vt-ctrl { width: 56px !important; height: 56px !important; border-radius: 50% !important; }
.vt-a11y-targets .vt-ctrl svg { width: 28px !important; height: 28px !important; }
.vt-a11y-targets .vt-hs-label { font-size: 14px !important; padding: 7px 14px !important; }

/* --- high contrast --- */
.vt-a11y-contrast .vt-scene-chip {
  background: #101114 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}
.vt-a11y-contrast .vt-ctrl {
  background: #101114 !important;
  border: 2px solid #fff !important;
  color: #fff !important;
}
.vt-a11y-contrast .vt-scene-chip { font-weight: 600 !important; }
.vt-a11y-contrast .vt-scene-chip:hover,
.vt-a11y-contrast .vt-ctrl:hover { background: #2a2c31 !important; }
.vt-a11y-contrast .vt-scene-chip.is-active {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff !important;
}
.vt-a11y-contrast .vt-hs-ring {
  border: 3px solid #fff !important;
  background: rgba(0, 0, 0, 0.6) !important;
  backdrop-filter: none !important;
}
.vt-a11y-contrast .vt-hs-label {
  background: #000 !important;
  border: 1px solid #fff !important;
  backdrop-filter: none !important;
}
.vt-a11y-contrast .vt-logo img { filter: drop-shadow(0 0 4px #000) !important; }
.vt-a11y-contrast .vt-bottom,
.vt-a11y-contrast .vt-topbar { background: rgba(0, 0, 0, 0.75) !important; }

/* --- always show labels --- */
.vt-a11y-labels .vt-hs-label {
  opacity: 1 !important;
  transform: none !important;
}

/* --------------------------- loading screen ------------------------- */

.vt-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: #000;
  transition: opacity 1800ms ease;
}
.vt-splash.is-gone { opacity: 0; pointer-events: none; }
.vt-splash img { width: min(260px, 52vw); height: auto; display: block; }
@media (max-width: 640px) { .vt-splash img { width: min(184px, 58vw); } }
