:root {
  --accent: #C6A56A;
  --bg: #0B0B0C;
  --bg-elev: rgba(18, 18, 20, 0.85);
  --text: #EFEAE2;
  --text-dim: #9A958D;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #tour {
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.hidden { display: none !important; }

.start-screen {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  background: linear-gradient(135deg, #0B0B0C, #1a1a1d 70%, #0B0B0C);
}
.start-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.45; filter: blur(2px) saturate(0.85);
}
.start-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  padding: 56px 48px;
  text-align: center;
  max-width: 520px;
  border-radius: 24px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.06);
}
.start-logo { max-width: 120px; max-height: 120px; object-fit: contain; border-radius: 16px; }
.start-title { font-size: clamp(26px, 5vw, 44px); font-weight: 600; letter-spacing: 0.02em; }
.start-subtitle { color: var(--text-dim); letter-spacing: 0.18em; text-transform: uppercase; font-size: 12px; }
.start-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }

.btn {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 14px 28px;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--text);
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border .2s ease;
  min-width: 200px;
}
.btn:hover, .btn:active { transform: translateY(-1px); }
.btn-primary {
  background: var(--accent);
  color: #1a130a;
  border-color: transparent;
  font-weight: 600;
}
.btn-ghost:hover { background: rgba(255,255,255,0.04); }

.pano { position: absolute; inset: 0; }

.hud {
  position: absolute; right: 16px; bottom: 16px;
  display: flex; flex-direction: row; gap: 10px; z-index: 5;
}
.hud-volume { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; }
.hud-volume.hidden { display: none; }
.hud-volume input { width: 90px; accent-color: var(--accent); }
.hud-btn {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.hud-btn:hover { background: rgba(255,255,255,0.08); }
.hud a.hud-btn { text-decoration: none; }

.hotspot-dot {
  position: absolute;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: rgba(0,0,0,0.45);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(198,165,106,0.18), 0 4px 18px rgba(0,0,0,0.45);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  backdrop-filter: blur(6px);
}
.hotspot-dot svg { width: 16px; height: 16px; }
.hotspot-dot.nav::after { content: ""; display: none; }
.hotspot-dot.nav::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C6A56A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  background-size: 60%; background-position: center; background-repeat: no-repeat; pointer-events: none;
}
.hotspot-dot.info::after { content: "i"; font-style: italic; font-family: Georgia, serif; font-size: 18px; }
.hotspot-dot:hover { transform: scale(1.18); background: rgba(198,165,106,0.85); color: #1a130a; }
.hotspot-dot:hover::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a130a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}
.hotspot-dot:hover.info::after { color: #1a130a; }
.hotspot-dot .label {
  position: absolute; left: 50%; transform: translate(-50%, 100%);
  top: calc(100% + 6px);
  white-space: nowrap;
  padding: 6px 10px;
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  font-size: 12px;
  opacity: 0; transition: opacity .2s ease;
  pointer-events: none;
}
.hotspot-dot:hover .label { opacity: 1; }

.hotspot-info {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  max-width: 480px; margin: 0 auto;
  padding: 18px 22px;
  background: var(--bg-elev);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  backdrop-filter: blur(12px);
  color: var(--text);
  z-index: 6;
}
.hotspot-info h3 { font-size: 16px; margin-bottom: 6px; }
.hotspot-info p { font-size: 13px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.45; }
.hotspot-info img, .hotspot-info video {
  max-width: 100%; max-height: 200px; border-radius: 10px; margin-bottom: 10px;
}
.hotspot-info a.btn-link {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent);
  color: #1a130a;
  border-radius: 999px;
  font-size: 12px;
  text-decoration: none;
  font-weight: 600;
  margin-right: 6px;
}
.hotspot-info .close { position: absolute; top: 10px; right: 12px; background: none; border: none; color: var(--text-dim); font-size: 20px; cursor: pointer; }

.loading { position: absolute; inset: 0; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 8; }
.spinner { width: 44px; height: 44px; border: 3px solid rgba(255,255,255,0.12); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.start-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: -1;
}

.floorplan-overlay {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
}
.floorplan-overlay svg { max-width: 90vw; max-height: 85vh; }
.floorplan-overlay .close { position: absolute; top: 16px; right: 20px; }

.stereo-pane {
  position: absolute; top: 0; width: 50%; height: 100%;
}
#stereo-left { left: 0; border-right: 1px solid rgba(0,0,0,0.8); }
#stereo-right { right: 0; }
.stereo-active .hotspot-dot { display: none; }

@media (max-width: 640px) {
  .hud-btn { padding: 8px 12px; font-size: 12px; }
  .btn { min-width: 0; flex: 1 1 160px; }
  .start-card { padding: 36px 24px; }
  .hotspot-dot { width: 32px; height: 32px; margin: -16px 0 0 -16px; }
  .hotspot-info { left: 12px; right: 12px; bottom: 12px; }
}
