* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

html, body {
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  background-color: #0f0f0f;
  color: #fff;
}

#pano {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ==========================================================================
   1. SEMBUNYIKAN SEMUA UI BIRU BAWAAN MARZIPANO
   ========================================================================== */
#titleBar,
#sceneListToggle,
#sceneList,
#autorotateToggle,
#fullscreenToggle,
.viewControlButton,
.info-hotspot {
  display: none !important;
}

/* ==========================================================================
   2. HOTSPOT PERSIS SCREENSHOT KANAN (ANTI-TERBANG)
   ========================================================================== */
/* Jangan ubah transform di .link-hotspot karena dipakai Marzipano buat posisi 3D! */
.link-hotspot {
  width: 44px !important;
  height: 44px !important;
  margin-left: -22px !important;
  margin-top: -22px !important;
  opacity: 1 !important;
  cursor: pointer !important;
}

/* Sembunyikan gambar PNG panah raksasa bawaan Marzipano, ganti jadi lingkaran kaca */
.link-hotspot-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background-color: rgba(15, 18, 22, 0.78) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45) !important;
  /* Trik menyembunyikan gambar PNG asli tanpa menghilangkan kotak tombolnya: */
  object-position: -9999px -9999px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: 20px 20px !important;
  /* Matikan rotasi paksa dari JS Marzipano dan pakai transisi warna saja agar tidak terbang */
  transform: none !important;
  transition: background-color 0.25s ease, box-shadow 0.25s ease !important;
}

.no-touch .link-hotspot:hover .link-hotspot-icon {
  background-color: rgba(255, 255, 255, 0.95) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") !important;
}

/* Kapsul Tulisan Nama Ruangan di Bawah Lingkaran (Persis Screenshot Kanan) */
.link-hotspot-tooltip {
  position: absolute !important;
  top: 52px !important;
  left: 50% !important;
  margin-left: 0 !important;
  transform: translateX(-50%) !important;
  padding: 5px 14px !important;
  border-radius: 999px !important;
  background: rgba(15, 18, 22, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  color: #ffffff !important;
  font-family: sans-serif !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  max-width: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35) !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: background-color 0.25s ease, color 0.25s ease !important;
}

.no-touch .link-hotspot:hover .link-hotspot-tooltip {
  transform: translateX(-50%) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #111111 !important;
}