/* ============================================================
   VIRTUAL TOUR 360° — Pannellum integration styles
   Append this to public/css/style.css
   ============================================================ */

/* ── Spot selector header ──────────────────────────── */
.vt-spots-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.vt-spots-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  color: var(--purple-dark);
  margin: 0;
}

/* ── Spots grid ────────────────────────────────────── */
.vt-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.vt-spot-btn {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: 14px;
  padding: 18px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
}
.vt-spot-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-mid, #4c1d95) 100%);
  opacity: 0;
  transition: opacity .25s;
}
.vt-spot-btn:hover {
  border-color: var(--purple);
  box-shadow: 0 8px 28px rgba(91,33,182,.18);
  transform: translateY(-3px);
}
.vt-spot-btn:hover::before { opacity: .05; }
.vt-spot-btn.active {
  border-color: var(--purple);
  background: linear-gradient(135deg, var(--purple) 0%, #4c1d95 100%);
  box-shadow: 0 8px 28px rgba(91,33,182,.35);
  transform: translateY(-3px);
}
.vt-spot-btn.active::before { opacity: 0; }

.vt-spot-icon {
  font-size: 2.2rem;
  line-height: 1;
  transition: transform .25s;
}
.vt-spot-btn:hover .vt-spot-icon,
.vt-spot-btn.active .vt-spot-icon { transform: scale(1.15); }

.vt-spot-thumb {
  width: 100%;
  height: 70px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  margin-bottom: 2px;
}
.vt-spot-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.vt-spot-btn:hover .vt-spot-thumb img { transform: scale(1.06); }

.vt-spot-name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-800);
  line-height: 1.3;
  transition: color .2s;
}
.vt-spot-btn.active .vt-spot-name { color: var(--white); }
.vt-spot-btn:hover .vt-spot-name { color: var(--purple); }
.vt-spot-btn.active:hover .vt-spot-name { color: var(--white); }

.vt-spot-badge {
  font-size: .67rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--purple-light);
  color: var(--purple);
  transition: all .2s;
}
.vt-spot-btn.active .vt-spot-badge {
  background: rgba(255,255,255,.25);
  color: var(--white);
}

/* ── Active info bar ───────────────────────────────── */
.vt-viewer-wrap {
  margin: 0; /* sudah di luar .container */
  border-top: 3px solid var(--purple);
}
.vt-active-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--purple-dark, #3b0764) 0%, #1e0540 100%);
  color: var(--white);
  gap: 16px;
}
.vt-active-info {
  display: flex;
  align-items: center;
  gap: 14px;
}
.vt-active-icon { font-size: 1.8rem; }
.vt-active-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 700;
}
.vt-active-desc { font-size: .82rem; color: rgba(255,255,255,.7); }
.vt-close-btn {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: var(--white);
  padding: 7px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: .82rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  transition: all .2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.vt-close-btn:hover { background: rgba(255,255,255,.2); }

/* ── Hints bar ─────────────────────────────────────── */
.vt-hint-bar {
  background: #0f0e17;
  color: rgba(255,255,255,.5);
  text-align: center;
  font-size: .77rem;
  padding: 10px 16px;
  letter-spacing: .02em;
}

/* ── Empty / loading states ────────────────────────── */
.vt-spots-loading { grid-column: 1/-1; }
.vt-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-400);
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
  .vt-spots-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .vt-spot-btn { padding: 12px 8px; }
  .vt-spot-icon { font-size: 1.6rem; }
  .vt-spot-name { font-size: .74rem; }
  #pannellumViewer { height: 320px; }
  .vt-active-bar { padding: 10px 16px; }
}
@media (max-width: 400px) {
  .vt-spots-grid { grid-template-columns: repeat(2, 1fr); }
  #pannellumViewer { height: 260px; }
}
