/* ==========================================================================
   CSS CHO TOUR PANORAMA 360 - CẤU HÌNH CƠ BẢN (BASE STYLES)
   ========================================================================== */

/* 1. THIẾT LẬP TOÀN CỤC - TỐI ƯU HÓA PHẦN CỨNG CHO IPHONE SAFARI */
html, body {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden; /* Vô hiệu hóa thanh cuộn và thanh giật của iOS */
	background: #000000;
	color: #ffffff;
	-webkit-tap-highlight-color: transparent;
	-webkit-touch-callout: none;
	-webkit-user-select: none;
	user-select: none;
	touch-action: manipulation;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 2. KHUNG CHỨA TOÀN CẢNH (CONTAINER) - TĂNG TỐC ĐỒ HỌA GPU */
#container {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: #000000;
	display: block;
	touch-action: none;
}

/* 3. TÙY CHỈNH THANH CUỘN */
::-webkit-scrollbar {
	background-color: rgba(0, 0, 0, 0.5);
	width: 0.75em;
	height: 0.75em;
}

::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.5);
}

/* 4. PHẦN TỬ NOSCRIPT VÀ MULTIMEDIA */
noscript {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	background: rgba(0, 0, 0, 0.85);
	color: #ffffff;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 14px;
	z-index: 99999;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 5. TỐI ƯU HÓA GPU COMPOSITOR DÀNH RIÊNG CHO IPHONE & MOBILE SAFARI */
@media screen and (max-width: 768px) {
	/* Giảm tải GPU cho các lớp phủ kính mờ đè lên WebGL Canvas, ngăn tràn bộ nhớ compositor */
	.top-center-logo,
	.menu-phai-container,
	.menu-trai-container,
	.bancovan-card,
	.hotspot-node3-modal-content,
	.hotspot-node4-modal-content {
		-webkit-backdrop-filter: blur(6px) !important;
		backdrop-filter: blur(6px) !important;
	}

	/* Đảm bảo Canvas WebGL luôn giới hạn trong khung hình di động */
	#container canvas {
		max-width: 100% !important;
		max-height: 100% !important;
		touch-action: none;
	}
}
