/* ============================================
   TOUR COMPONENTS — Compass, panels, cards, tooltips, thumbs, hint
   ============================================ */

/* ── COMPASS ── */
.tour-compass {
  position: fixed;
  top: calc(var(--header-h) + 1rem);
  right: 1.5rem;
  z-index: var(--z-compass);
  width: 50px; height: 50px;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.tour-compass:hover { opacity: 1; }
.compass-svg { width: 100%; height: 100%; }
.compass-needle { transform-origin: center; transition: transform 0.1s ease-out; }

/* ── SCENE INFO PANEL ── */
.tour-info-panel {
  position: fixed;
  top: var(--header-h);
  right: 0;
  z-index: var(--z-side-panel);
  width: 320px;
  max-height: calc(100vh - var(--header-h) - var(--toolbar-h) - var(--thumb-h) - 2rem);
  background: var(--c-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-left: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}
.tour-info-panel.open { transform: translateX(0); }

.info-panel-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-dim); transition: color 0.3s;
}
.info-panel-close:hover { color: var(--c-accent); }
.info-panel-close svg { width: 16px; height: 16px; }

.info-panel-title {
  font-family: var(--font-heading);
  font-size: 1.6rem; font-weight: 300;
  color: var(--c-text-strong);
  margin-bottom: 0.5rem;
}
.info-panel-meta {
  font-size: 0.7rem; color: var(--c-accent);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.info-panel-desc { font-size: 0.85rem; line-height: 1.7; color: var(--c-text-dim); }

/* ── HOTSPOT CARD POPUP ── */
.hotspot-card {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: var(--z-panel);
  width: 360px; max-width: 90vw;
  background: var(--c-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 0;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow: hidden;
}
.hotspot-card.open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.hotspot-card-close {
  position: absolute; top: 0.75rem; right: 0.75rem;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-text-dim); z-index: var(--z-local);
  background: var(--c-glass);
  border-radius: 50%; transition: color 0.3s;
}
.hotspot-card-close:hover { color: var(--c-accent); }
.hotspot-card-close svg { width: 14px; height: 14px; }

.hotspot-card-image {
  width: 100%; height: 180px;
  background-size: cover; background-position: center;
  display: none;
}
.hotspot-card-image.has-image { display: block; }

.hotspot-card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem; font-weight: 400;
  color: var(--c-text-strong);
  padding: 1.25rem 1.25rem 0.5rem;
}
.hotspot-card-text {
  font-size: 0.85rem; line-height: 1.7;
  color: var(--c-text-dim);
  padding: 0 1.25rem 1.25rem;
}

/* ── HOTSPOT TOOLTIP ── */
.hotspot-tooltip {
  position: fixed; z-index: var(--z-tooltip);
  padding: 0.4rem 0.85rem;
  background: var(--c-surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--c-line);
  border-radius: 6px;
  font-size: 0.7rem; color: var(--c-accent);
  letter-spacing: 0.05em;
  pointer-events: none;
  opacity: 0; transform: translateY(5px);
  transition: opacity 0.2s, transform 0.2s;
  white-space: nowrap;
}
.hotspot-tooltip.visible { opacity: 1; transform: translateY(0); }

/* ── THUMBNAIL BAR ── */
.tour-thumbnails {
  position: fixed;
  bottom: var(--toolbar-h);
  left: 0; right: 0;
  z-index: var(--z-header);
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--c-surface-glass);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--c-line);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tour-thumbnails::-webkit-scrollbar { display: none; }

.thumb-item {
  flex-shrink: 0; cursor: pointer;
  text-align: center; transition: all 0.3s;
  padding: 0.3rem; border-radius: 8px;
}
.thumb-item:hover { background: rgba(200, 149, 108, 0.08); }
.thumb-item.active { background: rgba(200, 149, 108, 0.12); }

.thumb-image {
  width: 72px; height: 42px;
  border-radius: 4px; object-fit: cover;
  border: 2px solid transparent;
  transition: border-color 0.3s;
  display: block; background: var(--c-surface);
}
.thumb-item.active .thumb-image { border-color: var(--c-accent); }

.thumb-label {
  font-size: 0.55rem; color: var(--c-text-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 0.25rem; transition: color 0.3s;
}
.thumb-item.active .thumb-label { color: var(--c-accent); }

/* ── HINT ── */
.tour-hint {
  position: fixed;
  bottom: calc(var(--toolbar-h) + var(--thumb-h) + 1.5rem);
  left: 50%; transform: translateX(-50%);
  z-index: var(--z-compass);
  display: flex; gap: 1.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--c-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--c-line);
  border-radius: 50px;
  opacity: 0;
  animation: hintIn 0.5s ease 1s forwards;
}
.tour-hint.dismissed { animation: hintOut 0.5s ease forwards; }

.hint-item {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.65rem; color: var(--c-text-dim);
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.hint-item svg { width: 14px; height: 14px; color: var(--c-accent); stroke-width: 1.5; }

@keyframes hintIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
  to   { opacity: 0.9; transform: translateX(-50%) translateY(0); }
}
@keyframes hintOut {
  to { opacity: 0; transform: translateX(-50%) translateY(10px); }
}
