/* ━━━━━━━━━━━━━━ 360 TOUR ━━━━━━━━━━━━━━ */
#tour { padding: 0; }
.tour-header { padding: 80px 52px 52px; }
.tour-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 14px;
  gap: 40px;
}
.tour-hint {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 300px;
  text-align: right;
}

.pano-embed-wrap {
  padding: 0 52px 72px;
}

.pano-embed {
  display: block;
  width: 100%;
  height: min(82vh, 820px);
  min-height: 560px;
  border: 0;
  background: #080806;
  box-shadow: 0 24px 80px rgba(25,24,15,0.14);
}

.pano-embed:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* ━━━━━━━━━━━━━━ PHASE 1: KEN BURNS VIDEO ━━━━━━━━━━━━━━ */
@keyframes kenBurns {
  0%   { transform: scale(1.08) translate(0%,     0%);    }
  30%  { transform: scale(1.13) translate(-1.2%, -0.5%); }
  65%  { transform: scale(1.10) translate( 1.0%,  0.4%); }
  100% { transform: scale(1.08) translate(0%,     0%);    }
}

/* ━━━━━━━━━━━━━━ PHASE 2: SCROLL-SNAP VIEWPORT ━━━━━━━━━━━━━━ */
.pano-viewport {
  position: relative;
  height: 88vh;
  min-height: 520px;
  overflow: hidden;
}

.pano-wrap {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  background: #000;
}
.pano-wrap::-webkit-scrollbar { display: none; }

.pano-scene {
  height: 100%;
  scroll-snap-align: start;
  position: relative;
  overflow: hidden;
}

.pano-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 20s ease-in-out infinite;
}

/* Bottom-heavy vignette */
.pano-scene::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.60) 0%,
    rgba(0,0,0,0.10) 35%,
    rgba(0,0,0,0.00) 55%,
    rgba(0,0,0,0.18) 100%
  );
  z-index: 2;
  pointer-events: none;
}

/* ── Non-scrolling overlay (stays fixed over video) ── */
.pano-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

/* Room label — bottom left */
.pano-info {
  position: absolute;
  bottom: 40px;
  left: 52px;
  pointer-events: none;
}
.pano-info-lbl {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240,235,227,0.52);
  margin-bottom: 6px;
}
.pano-info-name {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  color: rgba(240,235,227,0.96);
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,0.3);
}

/* Room activity chip — top right */
.room-activity {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.30);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240,235,227,0.12);
  border-radius: 20px;
  padding: 6px 14px;
  pointer-events: none;
}
.room-activity-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #5DC26A;
  flex-shrink: 0;
}
.room-activity-text {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: rgba(240,235,227,0.68);
}

/* Scroll cue — center bottom */
.pano-scroll-cue {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
  animation: floatCue 2.4s ease-in-out infinite;
  opacity: 0.7;
}
.pano-scroll-cue.gone { opacity: 0; transition: opacity 0.5s; }
@keyframes floatCue {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
.pano-scroll-cue span {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240,235,227,0.5);
}
.pano-scroll-line {
  width: 1px;
  height: 28px;
  background: linear-gradient(to bottom, rgba(240,235,227,0.5), transparent);
}

/* ━━━━━━━━━━━━━━ PHASE 2: FLOATING HOTSPOT BUTTONS ━━━━━━━━━━━━━━ */
.tour-hotspots {
  position: absolute;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 7px;
  pointer-events: auto;
  z-index: 20;
}

.hotspot-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8,8,6,0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(240,235,227,0.22);
  color: rgba(240,235,227,0.62);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s, border-color 0.22s, color 0.22s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  text-align: center;
  padding: 0;
}
.hotspot-btn:hover {
  background: rgba(240,235,227,0.18);
  border-color: rgba(184,146,74,0.55);
  color: rgba(240,235,227,0.95);
  transform: scale(1.10);
}
.hotspot-btn.active {
  background: rgba(184,146,74,0.22);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.06);
}

/* ━━━━━━━━━━━━━━ PHASE 3: SVG FLOOR PLAN ━━━━━━━━━━━━━━ */
.floor-plan-section {
  padding: 44px 52px 64px;
  background: #F3F0E9;
  border-top: 1px solid rgba(25,24,15,0.07);
}
.floor-plan-label {
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.floor-plan-svg {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
  overflow: visible;
}
.fp-level-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 8.5px;
  fill: var(--text-dim, #6D6660);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-anchor: middle;
}
.fp-divider {
  stroke: rgba(25,24,15,0.10);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}
.fp-room {
  fill: rgba(25,24,15,0.03);
  stroke: rgba(25,24,15,0.16);
  stroke-width: 1;
  cursor: pointer;
  transition: fill 0.35s ease, stroke 0.35s ease, stroke-width 0.35s ease;
  stroke-dasharray: 2000;
  stroke-dashoffset: 0;
}
.fp-room:hover {
  fill: rgba(184,146,74,0.07);
  stroke: rgba(184,146,74,0.5);
}
.fp-room.active {
  fill: rgba(184,146,74,0.11);
  stroke: var(--accent, #B8924A);
  stroke-width: 1.5;
}
.fp-room.drawing {
  animation: drawRoom 0.72s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes drawRoom {
  from { stroke-dashoffset: var(--fp-len, 1200); }
  to   { stroke-dashoffset: 0; }
}
.fp-room-lbl {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  fill: rgba(25,24,15,0.4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-anchor: middle;
  dominant-baseline: middle;
  pointer-events: none;
  transition: fill 0.3s;
}
.fp-room-lbl.active {
  fill: var(--accent, #B8924A);
}

/* Override footer.css light-mode chip styles — chip lives on dark video now */
.pano-overlay .room-activity {
  background: rgba(0,0,0,0.30) !important;
  border-color: rgba(240,235,227,0.12) !important;
  transform-origin: right center;
  transition: transform 0.2s ease;
}
.pano-overlay .room-activity-text { color: rgba(240,235,227,0.68) !important; }
.pano-overlay .room-activity-count { color: rgba(240,235,227,0.95) !important; }

/* hide unused nav elements */
.pano-progress { display: none; }
.tour-nav-wrap { display: none; }
