/* ==== Blok Virtual Tour 360 (page builder, update/34) ====
   Markup: renderBlock() case 'tour360' (page-builder.js). Perilaku:
   public/js/components/tour360.js. Warna aksen (bingkai foto aktif, tag info)
   = --tour-accent, di-set JS dari pengaturan blok. Tag (.bk-tour-hs*) juga
   dipakai modal "Atur Tag" di editor builder. */
.bk-tour { --tour-accent: #a3e635; }

.bk-tour-stage {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: #111;
    max-height: 85vh;
}
.bk-tour-viewer { position: absolute; inset: 0; }
.bk-tour-viewer .pnlm-load-box { border-radius: 10px; }
/* Kotak judul bawaan Pannellum (kiri bawah) menumpuk dengan tombol layar
   penuh; judul foto sudah tampil di strip, jadi disembunyikan. */
.bk-tour-viewer .pnlm-panorama-info { display: none !important; }

/* Tombol layar penuh dihapus (update/34). HTML yang sudah tersimpan
   sebelumnya masih memuat .bk-tour-fs, jadi disembunyikan di sini. */
.bk-tour-fs { display: none !important; }

/* Strip daftar foto di bawah tengah */
.bk-tour-nav {
    position: absolute;
    left: 50%;
    bottom: 12px;
    z-index: 2;
    transform: translateX(-50%);
    width: min(880px, calc(100% - 140px));
    transition: transform .3s ease;
}
.bk-tour-toggle {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translate(-50%, -8px);
    width: 56px;
    height: 30px;
    border: 0;
    border-radius: 15px;
    background: rgba(20, 20, 20, .78);
    color: #fff;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.bk-tour-toggle i { transition: transform .3s ease; }
.bk-tour-strip {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(20, 20, 20, .78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.3) transparent;
}
.bk-tour-scene {
    flex: 0 0 auto;
    width: 110px;
    padding: 4px;
    border: 2px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: rgba(255,255,255,.7);
    text-align: left;
    cursor: pointer;
    transition: border-color .15s ease, color .15s ease;
}
.bk-tour-scene:hover { color: #fff; }
.bk-tour-scene.active { border-color: var(--tour-accent); color: #fff; }
.bk-tour-thumb {
    display: block;
    width: 100%;
    height: 62px;
    object-fit: cover;
    border-radius: 8px;
    background: #333;
}
.bk-tour-scene-title {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Strip disembunyikan: turun keluar layar, tombol panah tetap terlihat */
.bk-tour-collapsed .bk-tour-nav { transform: translate(-50%, calc(100% + 12px)); }
.bk-tour-collapsed .bk-tour-toggle i { transform: rotate(180deg); }

@media (max-width: 575.98px) {
    .bk-tour-stage { border-radius: 12px; }
    .bk-tour-nav { width: calc(100% - 16px); bottom: 8px; }
    .bk-tour-scene { width: 88px; }
    .bk-tour-thumb { height: 50px; }
}

/* ── Tag di panorama (Pannellum hotspot, isi dari BkTour.hsDom) ──
   Pannellum memusatkan div tag di titiknya berdasarkan ukuran div, jadi div =
   ukuran ikon; label/tooltip diposisikan absolute di luar ukuran itu. */
.bk-tour-hs { cursor: pointer; }
.bk-tour-hs-scene { width: 44px; height: 44px; }
.bk-tour-hs-info  { width: 30px; height: 30px; }

.bk-tour-hs-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    transition: transform .15s ease, background .15s ease;
}
.bk-tour-hs-scene .bk-tour-hs-icon {
    border: 2px solid #fff;
    background: rgba(255,255,255,.18);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 2px 10px rgba(0,0,0,.35);
}
.bk-tour-hs-scene:hover .bk-tour-hs-icon { transform: scale(1.1); background: rgba(255,255,255,.32); }
.bk-tour-hs-info .bk-tour-hs-icon {
    background: var(--tour-accent, #a3e635);
    color: #1a1a1a;
    font: 700 15px/1 Georgia, serif;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.bk-tour-hs-info:hover .bk-tour-hs-icon { transform: scale(1.12); }

.bk-tour-hs-label {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,.7);
    pointer-events: none;
}
.bk-tour-hs-tip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    transform: translateX(-50%);
    width: max-content;
    max-width: 240px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(20,20,20,.9);
    color: #fff;
    font-size: 12.5px;
    line-height: 1.4;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity .15s ease;
    pointer-events: none;
}
.bk-tour-hs-info:hover .bk-tour-hs-tip,
.bk-tour-hs-tip.is-open { opacity: 1; visibility: visible; }

/* Editor builder: tag yang sedang dipilih */
.bk-tour-hs.is-active .bk-tour-hs-icon { outline: 3px solid #0d6efd; outline-offset: 3px; }
