/* ============================================================
   Virtual Tour 360°: tombol "Jelajahi" + tampilan layar penuh
   (menu NAVIGASI, label lokasi, tombol Beranda). Dipakai js/tour360.js.
   ============================================================ */

/* ---- tombol "Jelajahi" di halaman Fasilitas ---- */
.tour360-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 26px 10px 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffa03a, #ff6b00);
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 107, 0, .38);
  transition: transform .18s ease, box-shadow .18s ease;
  -webkit-tap-highlight-color: transparent;
}
.tour360-start[hidden] { display: none; }
.tour360-start:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255, 107, 0, .45); }
.tour360-start:active { transform: scale(.97); }
.tour360-start-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .22);
  border: 1.5px solid rgba(255, 255, 255, .6);
  font-size: 1.1rem;
}
.tour360-empty-msg { color: var(--text-muted); font-size: .95rem; }
.tour360-empty-msg[hidden] { display: none; }

/* ---- layar penuh ---- */
html.tour360-lock, html.tour360-lock body { overflow: hidden !important; }

.tour360-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #05070d;
  overflow: hidden;
  font-family: inherit;
}
.tour360-overlay[hidden] { display: none; }
.tour360-overlay #tour360Viewer { position: absolute; inset: 0; width: 100%; height: 100%; }
.tour360-overlay canvas { pointer-events: auto; }

.tour360-overlay .tour360-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  text-align: center;
  color: #f4e7d3;
  font-size: .95rem;
  background: radial-gradient(circle at center, rgba(60, 30, 10, .55), rgba(5, 7, 13, .94));
  pointer-events: none;
}
.tour360-overlay .tour360-loading.hidden { display: none; }

/* tombol menu (kiri atas) */
.tour360-menu-btn {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 8;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  background: rgba(30, 20, 14, .78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.tour360-menu-btn > span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ffa03a, #ff6b00);
  transition: transform .2s ease;
}
.tour360-menu-btn[aria-expanded="true"] > span { transform: rotate(180deg); }

/* label lokasi (tengah atas) */
.tour360-label {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  max-width: calc(100% - 170px);
  padding: 12px 24px;
  border-radius: 14px;
  border: 1px solid rgba(255, 190, 110, .55);
  background: linear-gradient(180deg, rgba(120, 66, 20, .88), rgba(62, 32, 10, .9));
  color: #fbe9cc;
  font-size: 1.08rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.tour360-label:empty { display: none; }

/* daftar NAVIGASI */
.tour360-panel {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 9;
  width: min(330px, calc(100% - 32px));
  max-height: calc(100% - 130px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  padding: 16px 16px 14px;
  border-radius: 26px;
  background: rgba(46, 26, 14, .86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 190, 110, .14);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
}
.tour360-panel[hidden] { display: none; }
.tour360-panel-title {
  flex: none;
  padding: 2px 6px 12px;
  color: #ffa03a;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
}
.tour360-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}
.tour360-list button {
  flex: none;
  text-align: left;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, .06);
  color: #f1e3cf;
  font: inherit;
  font-size: 1.05rem;
  cursor: pointer;
  transition: background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.tour360-list button:hover { background: rgba(255, 255, 255, .12); }
.tour360-list button.active {
  background: linear-gradient(135deg, #ff9a1f, #ff7a00);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(255, 122, 0, .4);
}

/* tombol Beranda (kanan bawah) */
.tour360-back {
  position: absolute;
  right: 16px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 32px 14px 16px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffa03a, #ff6b00);
  color: #fff;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
  -webkit-tap-highlight-color: transparent;
}
.tour360-back:active { transform: scale(.96); }
.tour360-back-ico {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .15);
}

@media (min-width: 900px) {
  .tour360-label { font-size: 1.15rem; }
}
