@charset "UTF-8";

#cover {
	position: fixed;
	inset: 0;
	background: transparent;
	pointer-events: none;
	z-index: 9999;
}

::root {
	--color_1: #0080EC /* rgb(0 128 236) */;
	--color_2: #2655D4 /* rgb(38 85 212) */;
	--color_3: #5917B0 /* rgb(89 23 176) */;
	--color_4: #6D00A3 /* rgb(109 0 163) */;
	--color_5: #9B3ECC /* rgb(155 62 204) */;
}

body {
	margin: 0;
	overflow: hidden;
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

/* Navigation Controls */
#controls {
	position: fixed;
	right: 20px;
	bottom: 20px;
	display: grid;
	width: 180px;
}

.controls-inner {
	position: relative;
	display: grid;
	aspect-ratio: 1;
	padding: 12%;
	/* grid-template-areas:
		".     ZOOM-IN  .  "
		"PAN-L RELOAD   PAN-R"
		"SOUND ZOOM-OUT MAP"
	; */
	grid-template-areas: ".     ZOOM-IN ZOOM-IN ZOOM-OUT ZOOM-OUT . "
		"PAN-L PAN-L   RELOAD  RELOAD   PAN-R    PAN-R "
		".     SOUND   SOUND   MAP      MAP      . ";
	grid-template-columns: repeat(6, 1fr);
	grid-template-rows: repeat(3, 1fr);
	gap: 5.26%;
	border: 1px solid rgb(255 255 255 / .25);
	border-radius: 100%;
	outline: 1px solid rgb(0 0 0 / .25);
	outline-offset: -4px;
	box-shadow: 0 0 1px rgb(0 0 0 / 0.5);
	background: rgb(255 255 255 / .4);
	transition: 200ms ease-out;
}
.controls-inner button {
	font-size : 0;
	display: grid;
	width: 100%;
	aspect-ratio: 1;
	padding: 0;
	border: none;
	border-radius: 30%;
	background: rgb(0 0 0 / .4);
	cursor: pointer;
	transition: 200ms ease;
	place-items: center;
}
.controls-inner button svg {
	width: 80%;
	fill: white;
}
.controls-inner button img {
	width: 80%;
}
.controls-inner button:where(#floorBtn)  { grid-area: MAP; }
.controls-inner button:where(#rotateBtn) { grid-area: RELOAD; }
.controls-inner button:where(#rotLeft)   { grid-area: PAN-L; }
.controls-inner button:where(#rotRight)  { grid-area: PAN-R; }
.controls-inner button:where(#soundBtn)  { grid-area: SOUND; }
.controls-inner button:where(#zoomIn)    { grid-area: ZOOM-IN; }
.controls-inner button:where(#zoomOut)   { grid-area: ZOOM-OUT; }

.controls-inner:is(:hover, :focus) {
	background: rgb(255 255 255 / .5);
	transition-timing-function: ease-in;
}
.controls-inner:is(:hover, :focus) button {
	background-color: rgba(0, 0, 0, .7);
}
.controls-inner:is(:hover, :focus) button:is(:hover, :focus) {
	background: rgb(0 128 236 / .7);
}

#hoverLabel {
	font-family: sans-serif;
	font-size: 14px;
	position: fixed;
	padding: 6px 10px;
	border-radius: 6px;
	background: rgb(0 0 0 / 0.7);
	opacity: 0;
	color: white;
	pointer-events: none;
	transition: opacity 0.15s;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

#spinner {
	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	pointer-events: none;
	z-index: 10000;
}
#spinner::after {
	content: "";
	width: 48px;
	height: 48px;
	border: 4px solid rgb(255 255 255 / 0.2);
	border-top-color: white;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

#picOverlay {
	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	/* shading */
	background: rgb(0 0 0 / 0.65);
	opacity: 0;
	pointer-events: none;
	z-index: 9999;
	transition: opacity 0.25s ease;
	backdrop-filter: blur(6px);
}
#picOverlay.show {
	opacity: 1;
	pointer-events: auto;
}
#picOverlay img {
	max-width: 90%;
	max-width: min(900px, 85vw);
	max-height: 90%;
	max-height: 80vh;
	border-radius: 8px;
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
	cursor: pointer;
	transform: scale(0.9);
	transition: transform 0.25s ease;
	object-fit: contain;
}
#picOverlay.show img {
	transform: scale(1);
}


#infoPopup {
	font-family: sans-serif;
	font-size: 16px;
	position: fixed;
	bottom: 40px;
	left: 50%;
	max-width: 80vw;
	padding: 14px 18px;
	border-radius: 20px;
	background: rgb(0 0 0 / 0.85);
	opacity: 0;
	color: white;
	text-align: center;
	pointer-events: none;
	z-index: 10001;
	transform: translateX(-50%) scale(0.9);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

#infoPopup.show {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(-50%) scale(1);
}

#floorplanOverlay {
	position: fixed;
	inset: 0;
	display: flex;
	justify-content: center;
	align-items: center;
	background: rgb(0 0 0 / 0.65);
	opacity: 0;
	pointer-events: none;
	z-index: 9999;
	transition: opacity 0.25s ease;
	backdrop-filter: blur(6px);
}

#floorplanOverlay.show {
	opacity: 1;
	pointer-events: auto;
}

#floorplanWrap {
	position: relative;
	max-width: 90vw;
	max-height: 85vh;
}

#floorplanImg {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 30px 80px rgb(0 0 0 / 0.6);
}

/* clickable map spots */
.floorSpot {
	position: absolute;
	border-radius: 50%;
	background: rgb(255 255 255 / 0.25);
	cursor: pointer;
	transition: transform 0.15s;
}

.floorSpot:hover {
	transform: scale(1.2);
}

.floorSpot.current {
	box-shadow: 0 0 14px rgb(0 255 120 / 0.9);
	background: rgb(0 255 120 / 0.45);
}

#rotateBtn.active {
	box-shadow: 0 0 12px rgb(0 128 236 / 0.8);
	background: rgb(0 128 236 / 0.7);
}

#hotspotLayer {
	position: fixed;
	inset: 0;
	pointer-events: none;
}

.hotspot {
	position: absolute;
	width: 32px;
	height: 32px;
	pointer-events: auto;
	transform: translate(-50%, -50%);
}

svg.hotspot .icon-background {
	fill: rgb(0 0 0 / 0.5);
	stroke: rgb(255 255 255 / 0.65);
}

svg.hotspot:where(:hover, :focus) {
	filter: drop-shadow(0 0 10px);
}

svg.hotspot:where(:hover, :focus) .icon-background {
	filter: drop-shadow(0 0 10px);
	fill: rgb(109, 0, 163);
	stroke: #fff;
}

#brandingoverlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	pointer-events: none;
	z-index: 70;
}

#tvWatermark {
	position: absolute;
	bottom: 20px;
	left: 20px;
	display: block;
	width: 320px;
	height: 44px;
	pointer-events: auto;
}
#tvWatermark svg {
	display: block;
	width: 100%;
	height: 100%;
}
@media (max-width: 800px){
	#tvWatermark {
		inset: auto auto 8px 8px;
		width: 44px;
		overflow: clip;
		border-radius: 8px;
		background: rgb(0 0 0 / .7);
	}
	#tvWatermark svg {
		width: 320px;
	}
	#tvWatermark svg rect {
		display: none;
	}
	#tvWatermark svg image {
		filter: contrast(0) grayscale(1) brightness(100);
	}
	#tvWatermark:where(:hover, :focus, :focus-visible) {
		background: rgb(0 128 236 / 1);
	}
}

#popupModal {
	position: fixed;
	inset: 0;
	display: none;
	width: 100vw;
	height: 100vh;
	justify-content: center;
	align-items: center;
	background: rgb(0 0 0 / 0.65);
	z-index: 999999999;
}

#popupModal.active {
	display: flex;
}

.modalContent {
	position: relative;
	width: min(900px, 90vw);
	max-height: 90vh;
	padding: 30px;
	overflow-y: auto;
	border-radius: 12px;
	box-shadow: 0 0 40px rgb(0 0 0 / 0.5);
	background: white;
	z-index: 1000000000;
}

.closeBtn {
	font-size: 28px;
	position: absolute;
	top: 12px;
	right: 14px;
	border: none;
	background: none;
	cursor: pointer;
}