/* Custom Virtual Tour — frontend. Semua selektor diawali .cvt- dan di-scope di bawah .cvt-root. */

@keyframes cvt-probe { from { opacity: 1; } to { opacity: 1; } }
@keyframes cvt-pulse {
	0%   { transform: scale(.5); opacity: .85; }
	70%  { transform: scale(1.35); opacity: 0; }
	100% { transform: scale(1.35); opacity: 0; }
}
@keyframes cvt-swap { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.cvt-root {
	/* Token desain: mewarisi Global Colors/Fonts Elementor; nilai setelah koma hanyalah cadangan. */
	--vt-primary: var(--e-global-color-primary, #1f4e5f);
	--vt-secondary: var(--e-global-color-secondary, #54595f);
	--vt-text: var(--e-global-color-text, #1d2327);
	--vt-surface: #ffffff;
	--vt-font: var(--e-global-typography-text-font-family, inherit);
	--vt-font-heading: var(--e-global-typography-primary-font-family, var(--vt-font));
	--vt-border-radius: 16px;
	--vt-control-radius: 999px;
	--vt-border: rgba(255, 255, 255, .85);
	/* Turunan (cadangan untuk peramban tanpa color-mix; versi dinamis ada di blok @supports di bawah). */
	--vt-ink: #1d2327;
	--vt-muted: #50575e;
	--vt-glass: rgba(18, 28, 26, .64);
	--vt-popup: rgba(18, 28, 26, .88);
	--vt-hl: #eaf1ef;
	--vt-on-glass: #fff;
	--vt-ease: cubic-bezier(.2, .7, .2, 1);

	position: relative;
	display: block;
	width: 100%;
	height: var(--cvt-height, 75vh);
	min-height: 320px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	border-radius: var(--vt-border-radius);
	background: #0f1412;
	color: var(--vt-on-glass);
	font-family: var(--vt-font);
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}
.cvt-root *, .cvt-root *::before, .cvt-root *::after { box-sizing: border-box; }
.cvt-root [hidden] { display: none !important; }

/* Reset tombol agar tidak terkena gaya tema/Elementor */
.cvt-root button {
	margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
	font: inherit; color: inherit; letter-spacing: normal; text-transform: none; text-shadow: none;
	text-decoration: none; line-height: inherit; min-height: 0; min-width: 0; width: auto;
	appearance: none; -webkit-appearance: none; cursor: pointer;
}
.cvt-root p { margin: 0; padding: 0; }
.cvt-root :focus { outline: none; }
.cvt-root :focus-visible {
	outline: 3px solid #fff; outline-offset: 2px;
	box-shadow: 0 0 0 6px rgba(0, 0, 0, .7);
}

.cvt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.cvt-probe { position: absolute; width: 0; height: 0; overflow: hidden; animation: cvt-probe 1s linear infinite; pointer-events: none; }
.cvt-notice { padding: 12px 16px; background: #fff7e0; border-left: 4px solid #dba617; color: #1d2327; font: 14px/1.5 sans-serif; }
.cvt-root .cvt-noscript { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; }

/* Token turunan dari warna situs. Warna utama digelapkan agar teks putih tetap terbaca di atas panorama terang. */
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.cvt-root {
		--vt-ink: color-mix(in srgb, var(--vt-text) 35%, #0b0b0b);
		--vt-muted: color-mix(in srgb, var(--vt-ink) 70%, #fff);
		--vt-glass: color-mix(in srgb, color-mix(in srgb, var(--vt-primary) 55%, #000) 68%, transparent);
		--vt-popup: color-mix(in srgb, color-mix(in srgb, var(--vt-primary) 55%, #000) 86%, transparent);
		--vt-hl: color-mix(in srgb, var(--vt-primary) 14%, #fff);
	}
}

/* ---------- Panggung panorama ---------- */
.cvt-stage { position: absolute; inset: 0; touch-action: auto; }
/* Layar sentuh: geser vertikal tetap menggulir halaman; ketuk sekali (kelas .cvt-active) atau layar penuh = kendali penuh. */
@media (pointer: coarse) {
	.cvt-stage { touch-action: pan-y; }
	.cvt-active .cvt-stage, .cvt-is-fs .cvt-stage, .cvt-pseudo-fs .cvt-stage { touch-action: none; }
}
.cvt-root .pnlm-container { background: #0f1412; background-image: none; font-family: inherit; }
.cvt-root .pnlm-container:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.cvt-root .pnlm-load-box,
.cvt-root .pnlm-load-button { display: none !important; } /* pemuat milik kita menggantikannya */
.cvt-root .pnlm-error-msg { font-family: inherit; border-radius: 12px; }

/* ---------- Pil & kapsul kontrol ---------- */
.cvt-topbar, .cvt-controls {
	position: absolute; z-index: 20; display: flex; gap: 6px; padding: 6px;
	border: 1px solid var(--vt-border); border-radius: var(--vt-control-radius);
	background: var(--vt-glass);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	transition: opacity .3s var(--vt-ease), transform .3s var(--vt-ease);
}
.cvt-topbar { top: max(16px, env(safe-area-inset-top)); right: 16px; align-items: center; }
.cvt-controls { left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); flex-direction: column; align-items: center; border-radius: 999px; }

.cvt-root .cvt-pill {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 38px; padding: 0 16px;
	border-radius: var(--vt-control-radius); background: var(--vt-surface); color: var(--vt-ink);
	font-size: 14px; font-weight: 500; white-space: nowrap;
	transition: background-color .2s, transform .2s var(--vt-ease), box-shadow .2s;
}
.cvt-root .cvt-pill:hover { background: var(--vt-hl); }
.cvt-root .cvt-pill:active { transform: scale(.97); }
.cvt-pill__label { overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.cvt-icon { display: inline-flex; flex: none; }
.cvt-chevron { transition: transform .25s var(--vt-ease); }
.cvt-select-btn[aria-expanded="true"] .cvt-chevron { transform: rotate(180deg); }

.cvt-root .cvt-ctrl {
	display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
	border-radius: 50%; background: var(--vt-surface); color: var(--vt-ink);
	transition: background-color .2s, transform .2s var(--vt-ease);
}
.cvt-root .cvt-ctrl:hover { background: var(--vt-hl); }
.cvt-root .cvt-ctrl:active { transform: scale(.94); }

/* ---------- Pemilih scene ---------- */
.cvt-selector { position: relative; }
.cvt-selpanel {
	position: absolute; top: calc(100% + 12px); left: 0; z-index: 30; display: flex; flex-direction: column;
	width: 320px; max-width: calc(100vw - 32px); background: var(--vt-surface); color: var(--vt-ink);
	border-radius: 20px; box-shadow: 0 18px 48px rgba(0, 0, 0, .35); overflow: hidden;
	opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: top left;
	transition: opacity .2s var(--vt-ease), transform .2s var(--vt-ease), visibility 0s linear .2s;
}
.cvt-selpanel.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cvt-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; color: var(--vt-ink); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.cvt-root .cvt-search__input {
	flex: 1; width: 100%; height: 36px; margin: 0; padding: 0 12px; border: 1px solid rgba(0, 0, 0, .18);
	border-radius: 999px; background: #fff; color: var(--vt-ink); font: inherit; font-size: 14px; box-shadow: none;
	-webkit-appearance: none; appearance: none;
}
.cvt-list { overflow-y: auto; overscroll-behavior: contain; padding: 6px; -webkit-overflow-scrolling: touch; }
.cvt-group + .cvt-group { margin-top: 4px; }
.cvt-group__title { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--vt-muted); }
.cvt-opt {
	display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border-radius: 12px;
	color: var(--vt-ink); cursor: pointer; font-size: 14px; transition: background-color .15s;
}
.cvt-opt:hover, .cvt-opt:focus { background: var(--vt-hl); }
.cvt-opt.is-current { background: var(--vt-hl); font-weight: 600; box-shadow: inset 3px 0 0 var(--vt-primary); }
.cvt-opt__thumb { flex: none; width: 44px; height: 30px; border-radius: 6px; object-fit: cover; background: #ddd; }
.cvt-opt__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cvt-noresults { padding: 16px 12px; text-align: center; color: var(--vt-muted); }

/* ---------- Panel informasi ---------- */
.cvt-panel {
	position: absolute; z-index: 15; top: max(16px, env(safe-area-inset-top)); left: 16px;
	width: min(380px, calc(100% - 32px)); padding: 16px 20px 18px;
	border: 1px solid var(--vt-border); border-radius: calc(var(--vt-border-radius) + 2px);
	background: var(--vt-glass); color: var(--vt-on-glass);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	transition: opacity .3s var(--vt-ease), transform .3s var(--vt-ease), visibility 0s linear 0s;
}
.cvt-panel.is-off { display: none; }
.cvt-panel.is-swap { animation: cvt-swap .4s var(--vt-ease); }
.cvt-panel__title { font-family: var(--vt-font-heading); font-size: 24px; font-weight: 500; line-height: 1.2; overflow-wrap: anywhere; }
.cvt-panel__desc { margin-top: 8px; font-size: 14px; line-height: 1.55; opacity: .95; white-space: pre-line; overflow-wrap: anywhere; }
.cvt-root .cvt-panel__more { display: none; margin-top: 6px; padding: 4px 0; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hotspot ---------- */
.cvt-root .cvt-hotspot { width: 44px; height: 44px; }
.cvt-root .cvt-hs {
	position: relative; display: block; width: 44px; height: 44px; border-radius: 50%; background: transparent;
	-webkit-tap-highlight-color: transparent; transition: opacity .3s var(--vt-ease), visibility .3s;
}
.cvt-hs__dot {
	position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center;
	width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; color: var(--vt-ink);
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .32), 0 2px 10px rgba(0, 0, 0, .5);
	transition: transform .25s var(--vt-ease), box-shadow .25s;
}
.cvt-hs__ring {
	position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px;
	border: 1px solid rgba(255, 255, 255, .95); border-radius: 50%; pointer-events: none;
	animation: cvt-pulse 2.6s ease-out infinite;
}
.cvt-hs--info .cvt-hs__dot {
	width: 22px; height: 22px; margin: -11px 0 0 -11px; font: italic 700 14px/1 Georgia, 'Times New Roman', serif;
}
.cvt-hs--info .cvt-hs__ring { animation-delay: .9s; }
.cvt-hs:hover .cvt-hs__dot, .cvt-hs:focus-visible .cvt-hs__dot { transform: scale(1.3); box-shadow: 0 0 0 6px rgba(255, 255, 255, .4), 0 2px 12px rgba(0, 0, 0, .55); }
.cvt-hs__label {
	position: absolute; left: 50%; bottom: calc(100% - 6px); max-width: 220px; padding: 5px 12px; overflow: hidden;
	border-radius: 999px; background: var(--vt-glass); color: #fff; font-size: 12.5px; line-height: 1.3;
	text-overflow: ellipsis; white-space: nowrap; pointer-events: none;
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	opacity: 0; transform: translate(-50%, 4px); transition: opacity .2s, transform .2s var(--vt-ease);
}
.cvt-hs:hover .cvt-hs__label, .cvt-hs:focus-visible .cvt-hs__label { opacity: 1; transform: translate(-50%, 0); }
.cvt-no-pulse .cvt-hs__ring { display: none; }

/* ---------- Popup informasi ---------- */
.cvt-popup {
	position: absolute; z-index: 30; left: 50%; bottom: 16px; width: min(420px, calc(100% - 32px)); max-height: calc(100% - 120px);
	display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--vt-border); border-radius: calc(var(--vt-border-radius) + 2px);
	background: var(--vt-popup);
	-webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: var(--vt-on-glass);
	opacity: 0; visibility: hidden; transform: translate(-50%, 12px);
	transition: opacity .25s var(--vt-ease), transform .25s var(--vt-ease), visibility 0s linear .25s;
}
.cvt-popup.is-open { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.cvt-root .cvt-popup__close {
	position: absolute; z-index: 2; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff;
}
.cvt-popup__media { flex: none; max-height: 190px; overflow: hidden; background: rgba(0, 0, 0, .25); }
.cvt-popup__img { display: block; width: 100%; height: 100%; max-height: 190px; object-fit: cover; }
.cvt-popup__body { padding: 16px 20px 20px; overflow-y: auto; overscroll-behavior: contain; }
.cvt-popup__title { padding-right: 36px; font-family: var(--vt-font-heading); font-size: 19px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cvt-popup__text, .cvt-popup__extra { margin-top: 8px; font-size: 14px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.cvt-popup__extra { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 13px; opacity: .92; }
.cvt-popup__link {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 8px 16px; border-radius: 999px;
	background: #fff; color: var(--vt-ink); font-weight: 600; font-size: 13.5px; text-decoration: none;
}
.cvt-popup__link:hover { background: var(--vt-hl); color: var(--vt-ink); }

/* ---------- Pemuat, galat, petunjuk ---------- */
.cvt-loader {
	position: absolute; inset: 0; z-index: 25; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
	background: rgba(10, 14, 12, .45); opacity: 0; visibility: hidden; pointer-events: none;
	transition: opacity .25s, visibility 0s linear .25s;
}
.cvt-loading .cvt-loader { opacity: 1; visibility: visible; transition-delay: 0s; }
.cvt-loader__box {
	display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 170px; padding: 18px 26px 16px;
	border: 1px solid var(--vt-border); border-radius: 16px; background: var(--vt-glass);
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.cvt-loader__pct { font-family: var(--vt-font-heading); font-size: 24px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.cvt-loader__bar { position: relative; display: block; width: 150px; height: 4px; overflow: hidden; border-radius: 4px; background: rgba(255, 255, 255, .28); }
.cvt-loader__fill { position: absolute; inset: 0; display: block; background: #fff; transform: scaleX(0); transform-origin: left center; transition: transform .15s linear; }
.cvt-loader__bar.is-indeterminate .cvt-loader__fill { right: auto; width: 40%; transform: none; animation: cvt-indet 1.2s ease-in-out infinite; }
@keyframes cvt-indet { from { left: -40%; } to { left: 100%; } }
.cvt-loader__text { font-size: 12px; letter-spacing: .02em; }
.cvt-error {
	position: absolute; z-index: 40; left: 50%; top: 50%; display: none; flex-direction: column; align-items: center; gap: 12px;
	width: min(320px, calc(100% - 32px)); padding: 20px; border: 1px solid var(--vt-border); border-radius: 18px;
	background: var(--vt-glass); text-align: center; transform: translate(-50%, -50%);
	-webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cvt-error.is-visible { display: flex; }
.cvt-hint {
	position: absolute; z-index: 12; left: 50%; bottom: 20px; padding: 7px 14px; border-radius: 999px; background: var(--vt-glass);
	font-size: 12.5px; opacity: 0; pointer-events: none; transform: translateX(-50%); transition: opacity .25s; white-space: nowrap;
}
.cvt-hint.is-visible { opacity: 1; }

/* ---------- Mode Sembunyikan UI ---------- */
.cvt-ui-hidden .cvt-panel,
.cvt-ui-hidden .cvt-controls,
.cvt-ui-hidden .cvt-selector,
.cvt-ui-hidden .cvt-popup { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s var(--vt-ease), visibility 0s linear .3s; }
.cvt-ui-hidden .cvt-selector { display: none; }
.cvt-ui-hidden .cvt-hs { opacity: 0; visibility: hidden; pointer-events: none; }
.cvt-ui-hidden .cvt-topbar { background: transparent; border-color: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.cvt-ui-hidden .cvt-toggle { background: var(--vt-glass); color: #fff; border: 1px solid var(--vt-border); }
.cvt-ui-hidden .cvt-toggle:hover { background: var(--vt-glass); }

/* ---------- Layar penuh ---------- */
.cvt-root:fullscreen, .cvt-root:-webkit-full-screen { width: 100%; height: 100%; max-height: none; border-radius: 0; }
.cvt-root.cvt-pseudo-fs {
	position: fixed; inset: 0; z-index: 2147483000; width: 100vw; height: 100vh; height: 100dvh; max-height: none; border-radius: 0;
}
.cvt-is-fs { border-radius: 0; }
html.cvt-no-scroll, html.cvt-no-scroll body { overflow: hidden !important; }

/* ---------- Tata letak ringkas (lebar kontainer ≤ 640px) ---------- */
.cvt-compact .cvt-topbar { top: max(10px, env(safe-area-inset-top)); right: 10px; left: 10px; justify-content: space-between; }
.cvt-compact .cvt-selector { flex: 1 1 auto; min-width: 0; }
.cvt-compact .cvt-select-btn { width: 100%; justify-content: space-between; }
.cvt-compact .cvt-pill { height: 42px; padding: 0 14px; }
.cvt-compact .cvt-pill__label { max-width: none; }
.cvt-compact .cvt-selpanel { width: 100%; max-width: none !important; }
.cvt-compact .cvt-ui-hidden .cvt-topbar,
.cvt-compact.cvt-ui-hidden .cvt-topbar { justify-content: flex-end; }
.cvt-compact .cvt-toggle .cvt-pill__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } /* hanya ikon; label tetap untuk pembaca layar */
.cvt-compact .cvt-toggle { width: 42px; padding: 0; }
.cvt-compact.cvt-ui-hidden .cvt-toggle { width: 42px; }
.cvt-compact .cvt-controls { left: 10px; right: auto; bottom: max(10px, env(safe-area-inset-bottom)); flex-direction: row; }
.cvt-compact .cvt-ctrl { width: 44px; height: 44px; }
.cvt-compact.cvt-no-mobile-zoom .cvt-ctrl--zoom { display: none; }
.cvt-compact .cvt-panel {
	top: auto; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 66px); left: 10px; right: 10px; width: auto; padding: 12px 16px 12px;
}
.cvt-compact .cvt-panel__title { font-size: 18px; }
.cvt-compact .cvt-panel__desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 13px; }
.cvt-compact .cvt-panel.is-expanded .cvt-panel__desc { -webkit-line-clamp: unset; line-clamp: unset; display: block; max-height: 36vh; overflow-y: auto; }
.cvt-compact .cvt-panel__more { display: inline-block; }
.cvt-compact .cvt-popup { left: 10px; right: 10px; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 66px); width: auto; max-height: 62%; transform: translateY(12px); }
.cvt-compact .cvt-popup.is-open { transform: none; }
.cvt-compact .cvt-hint { display: none; }
.cvt-compact.cvt-popup-open .cvt-panel { opacity: 0; visibility: hidden; }
.cvt-narrow .cvt-panel__title { font-size: 16px; }

@media (pointer: coarse) {
	.cvt-root .cvt-hs__dot { box-shadow: 0 0 0 5px rgba(255, 255, 255, .34), 0 2px 10px rgba(0, 0, 0, .55); }
}

/* ---------- Aksesibilitas ---------- */
@media (prefers-reduced-motion: reduce) {
	.cvt-root *, .cvt-root *::before, .cvt-root *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
	.cvt-hs__ring { display: none; }
}
.cvt-reduce-motion *, .cvt-reduce-motion *::before, .cvt-reduce-motion *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
.cvt-reduce-motion .cvt-hs__ring { display: none; }

@media (forced-colors: active) {
	.cvt-root .cvt-pill, .cvt-root .cvt-ctrl, .cvt-popup, .cvt-panel, .cvt-topbar, .cvt-controls, .cvt-selpanel { border: 1px solid CanvasText; }
	.cvt-hs__dot { forced-color-adjust: none; background: Canvas; color: CanvasText; border: 2px solid CanvasText; }
}
