/* ===================================================================
   VERONA VENUE — Interactive Venue Experience (Virtual Tour)
   Builds on styles.css (tokens, nav, footer, buttons). This file styles
   the intro, the 360 viewer chrome, Decorate mode, scene selector,
   hotspots and the post-tour upgrade section.
   =================================================================== */

.vt-main {
  padding-top: var(--header-height);
}

/* Visually-hidden (screen-reader only) utility for this page */
.vt-page .vh {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Prevent horizontal overflow from any full-bleed viewer maths */
html.vt-page,
.vt-page body {
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ */
/*  HERO / INTRO                                                       */
/* ------------------------------------------------------------------ */
.vt-intro {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 6vh, 64px) var(--container-pad) clamp(18px, 3vh, 30px);
  text-align: center;
}
.vt-intro__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 16px;
}
.vt-intro__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  line-height: 1.04;
  margin: 0 0 16px;
  color: var(--color-text);
}
.vt-intro__copy {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.6;
  color: var(--color-text-soft);
  max-width: 560px;
  margin: 0 auto;
}

/* ------------------------------------------------------------------ */
/*  VIEWER STAGE                                                       */
/* ------------------------------------------------------------------ */
.vt-stage {
  padding: 6px var(--container-pad) clamp(30px, 5vh, 56px);
}
.vt-viewer {
  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  height: min(72vh, 700px);
  height: min(72svh, 700px);
  min-height: 400px;
  border-radius: 18px;
  overflow: hidden;
  background: #171614;                 /* charcoal — no white flash */
  box-shadow: 0 30px 70px -40px rgba(31, 31, 31, 0.6);
  /* Dragging the panorama must never select page text */
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.vt-pano {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Pannellum internals — keep dark ground, hide its default UI/watermark */
.vt-viewer .pnlm-container { background: #171614; cursor: grab; }
.vt-viewer .pnlm-grab { cursor: grab; }
.vt-viewer .pnlm-grabbing { cursor: grabbing; }
.vt-viewer .pnlm-load-box,
.vt-viewer .pnlm-about-msg,
.vt-viewer .pnlm-orientation-button { display: none !important; }

/* Loading overlay */
.vt-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-direction: column;
  background: #171614;
  color: #F7F2E8;
  opacity: 1;
  transition: opacity 400ms var(--ease);
}
.vt-loading.is-hidden { opacity: 0; pointer-events: none; }
.vt-loading__spinner {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(247, 242, 232, 0.25);
  border-top-color: var(--color-gold);
  animation: vt-spin 0.9s linear infinite;
}
.vt-loading__text {
  font-family: var(--font-sans);
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  color: rgba(247, 242, 232, 0.8);
}
@keyframes vt-spin { to { transform: rotate(360deg); } }

/* Subtle loading tint shown while a scene/decor swap is fetching */
.vt-viewer.is-busy::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(23, 22, 20, 0.28);
  z-index: 5;
  pointer-events: none;
  animation: vt-fade-in 200ms ease both;
}
@keyframes vt-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ------------------------------------------------------------------ */
/*  OVERLAY CHROME — shared chip look                                  */
/* ------------------------------------------------------------------ */
.vt-scenelabel {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 7;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #F7F2E8;
  max-width: calc(100% - 32px);
}
.vt-scenelabel__name {
  font-family: var(--font-serif);
  font-size: 1.02rem;
  line-height: 1.1;
  white-space: nowrap;
}
.vt-scenelabel__decor {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  white-space: nowrap;
}
.vt-scenelabel__decor::before { content: "· "; color: rgba(247,242,232,0.5); }

/* Viewer controls (zoom / fullscreen) */
.vt-controls {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 7;
  display: flex;
  gap: 8px;
}
.vt-ctrl {
  width: 42px; height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  border: none;
  background: rgba(23, 22, 20, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #F7F2E8;
  cursor: pointer;
  transition: background-color 200ms ease, transform 200ms var(--ease);
}
.vt-ctrl svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .vt-ctrl:hover { background: rgba(23, 22, 20, 0.78); transform: translateY(-1px); }
}
.vt-ctrl:active { transform: translateY(0); }

/* ------------------------------------------------------------------ */
/*  SCENE SELECTOR (physical locations)                                */
/* ------------------------------------------------------------------ */
.vt-scenes {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 7;
  display: flex;
  gap: 6px;
  padding: 6px;
  max-width: calc(100% - 24px);
  border-radius: 999px;
  background: rgba(23, 22, 20, 0.5);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.vt-scenes::-webkit-scrollbar { display: none; }
.vt-scene {
  flex: 0 0 auto;
  scroll-snap-align: center;
  border: none;
  background: transparent;
  color: rgba(247, 242, 232, 0.82);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 10px 16px;
  min-height: 40px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .vt-scene:hover { color: #fff; background: rgba(247, 242, 232, 0.12); }
}
.vt-scene[aria-pressed="true"] {
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 600;
}

/* ------------------------------------------------------------------ */
/*  DECORATE CONTROL                                                   */
/* ------------------------------------------------------------------ */
.vt-decorate {
  position: absolute;
  right: 14px;
  bottom: 72px;                 /* clears the scene selector */
  z-index: 8;
}
.vt-decorate__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: none;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.6);
  transition: transform 200ms var(--ease), box-shadow 200ms ease;
}
.vt-decorate__icon { width: 17px; height: 17px; color: var(--color-gold); }
@media (hover: hover) and (pointer: fine) {
  .vt-decorate__toggle:hover { transform: translateY(-2px); }
}
.vt-decorate__menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 244px;
  padding: 10px;
  border-radius: 16px;
  background: var(--color-bg);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  display: none;
  flex-direction: column;
  gap: 4px;
}
.vt-decorate.is-open .vt-decorate__menu { display: flex; animation: vt-pop 200ms var(--ease) both; }
@keyframes vt-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.vt-decorate__title {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  margin: 4px 8px 6px;
}
.vt-decorate__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  min-height: 46px;
  transition: background-color 180ms ease, border-color 180ms ease;
}
.vt-decorate__opt-name { pointer-events: none; }
.vt-decorate__opt[aria-checked="true"] {
  border-color: var(--color-gold);
  background: rgba(184, 138, 68, 0.12);
  font-weight: 600;
}
.vt-decorate__opt[aria-checked="true"]::after {
  content: "";
  width: 16px; height: 16px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%23B88A44' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.vt-decorate__opt[data-pending="true"] .vt-decorate__opt-name::after {
  content: "Capture needed";
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
  margin-top: 2px;
}
@media (hover: hover) and (pointer: fine) {
  .vt-decorate__opt:hover { background: rgba(31, 31, 31, 0.06); }
}
.vt-decorate__opt--reset {
  margin-top: 4px;
  border-top: 1px solid rgba(31, 31, 31, 0.1);
  border-radius: 0 0 11px 11px;
  color: var(--color-text-soft);
}
.vt-decorate__note {
  margin: 6px 8px 4px;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--color-text-soft);
}

/* ------------------------------------------------------------------ */
/*  HOTSPOTS  (refined, minimal — no generic map pins)                 */
/* ------------------------------------------------------------------ */
.vt-hotspot {
  width: 30px; height: 30px;
  margin-left: -15px; margin-top: -15px;
  border-radius: 50%;
  background: rgba(247, 242, 232, 0.16);
  border: 1.5px solid rgba(247, 242, 232, 0.9);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 220ms var(--ease), background-color 220ms ease, border-color 220ms ease;
}
.vt-hotspot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #F7F2E8;
  box-shadow: 0 0 0 0 rgba(247, 242, 232, 0.55);
  animation: vt-pulse 2.6s ease-out infinite;
}
@keyframes vt-pulse {
  0% { box-shadow: 0 0 0 0 rgba(247, 242, 232, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(247, 242, 232, 0); }
  100% { box-shadow: 0 0 0 0 rgba(247, 242, 232, 0); }
}
.vt-hotspot:hover,
.vt-hotspot:focus-visible {
  transform: scale(1.12);
  background: var(--color-gold);
  border-color: var(--color-gold);
  outline: none;
}
.vt-hotspot__label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  padding: 7px 12px;
  border-radius: 8px;
  background: rgba(23, 22, 20, 0.9);
  color: #F7F2E8;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms var(--ease);
}
.vt-hotspot:hover .vt-hotspot__label,
.vt-hotspot:focus-visible .vt-hotspot__label,
.vt-hotspot.is-label-visible .vt-hotspot__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ------------------------------------------------------------------ */
/*  VIEWER HINT                                                        */
/* ------------------------------------------------------------------ */
.vt-hint {
  max-width: 1320px;
  margin: 14px auto 0;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--color-text-soft);
}
.vt-noscript {
  max-width: 640px;
  margin: 24px auto 0;
  text-align: center;
  color: var(--color-text-soft);
}

/* ------------------------------------------------------------------ */
/*  POST-TOUR SALES                                                    */
/* ------------------------------------------------------------------ */
.vt-sales {
  background: var(--color-stone-warm);
  padding: clamp(52px, 9vh, 104px) var(--container-pad);
}
.vt-sales__inner { max-width: 720px; margin: 0 auto; text-align: center; }
.vt-sales__eyebrow {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin: 0 0 16px;
}
.vt-sales__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.08;
  margin: 0 0 18px;
}
.vt-sales__copy {
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.65;
  color: var(--color-text-soft);
  margin: 0 auto 28px;
  max-width: 600px;
}
.vt-sales__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 28px;
  text-align: left;
  max-width: 560px;
  margin: 0 auto 34px;
}
.vt-sales__list li {
  position: relative;
  padding-left: 30px;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--color-text);
}
.vt-sales__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 20px; height: 20px;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4 4 10-10' fill='none' stroke='%23B88A44' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.vt-sales__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.vt-sales__note {
  margin: 30px auto 0;
  max-width: 600px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

/* ------------------------------------------------------------------ */
/*  RESPONSIVE                                                         */
/* ------------------------------------------------------------------ */
@media (max-width: 760px) {
  .vt-viewer {
    height: min(70vh, 560px);
    height: min(70svh, 560px);
    border-radius: 14px;
  }
  .vt-scenelabel { top: 12px; left: 12px; padding: 7px 12px; }
  .vt-scenelabel__name { font-size: 0.9rem; }
  .vt-controls { top: 12px; right: 12px; }
  .vt-ctrl { width: 40px; height: 40px; }
  .vt-scenes { bottom: 12px; }

  /* Decorate becomes a bottom sheet */
  .vt-decorate { right: 12px; bottom: 64px; }
  .vt-decorate__menu {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    width: auto;
    border-radius: 20px 20px 0 0;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, 0.6);
  }
  .vt-decorate.is-open .vt-decorate__menu { animation: vt-sheet 240ms var(--ease) both; }
  @keyframes vt-sheet { from { transform: translateY(100%); } to { transform: none; } }
  .vt-decorate__opt { min-height: 52px; font-size: 1rem; }
}

@media (max-width: 420px) {
  .vt-sales__list { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ */
/*  REDUCED MOTION                                                     */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  .vt-loading, .vt-decorate__menu, .vt-hotspot, .vt-ctrl,
  .vt-decorate__toggle, .vt-scene { transition: none !important; }
  .vt-loading__spinner { animation-duration: 1.6s; }
  .vt-hotspot::before { animation: none; }
  .vt-hotspot__label { transition: opacity 120ms ease; }
  .vt-decorate.is-open .vt-decorate__menu { animation: none; }
  .vt-viewer.is-busy::after { animation: none; }
}

/* Visible keyboard focus everywhere in the viewer chrome */
.vt-ctrl:focus-visible,
.vt-scene:focus-visible,
.vt-decorate__toggle:focus-visible,
.vt-decorate__opt:focus-visible,
.vt-hotspot:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}
