/**
 * 360 tour overlay.
 *
 * Only the overlay chrome lives here. The panorama canvas itself is styled by
 * Pannellum, which is loaded on demand the first time a tour is opened.
 */

.arcelon-pano {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	background: #0d1a1c;
	opacity: 0;
	transition: opacity .25s ease;
}

.arcelon-pano.is-open {
	opacity: 1;
}

.arcelon-pano__stage {
	position: relative;
	flex: 1 1 auto;
	min-height: 0;
}

/* Pannellum paints its own controls; keep ours above them. */
.arcelon-pano__close {
	position: absolute;
	top: 16px;
	right: 16px;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	color: #202020;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, transform .2s ease;
}

.arcelon-pano__close:hover {
	background: #fff;
	transform: scale(1.05);
}

.arcelon-pano__close:focus-visible {
	outline: 2px solid #c7ad82;
	outline-offset: 3px;
}

.arcelon-pano__scenes {
	position: absolute;
	left: 50%;
	bottom: 24px;
	z-index: 10;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	max-width: calc(100% - 32px);
	transform: translateX(-50%);
}

.arcelon-pano__scene {
	padding: 8px 16px;
	border: 1px solid rgba(255, 255, 255, .35);
	border-radius: 999px;
	background: rgba(13, 26, 28, .72);
	backdrop-filter: blur(6px);
	color: #fff;
	font-family: inherit;
	font-size: 13px;
	line-height: 18px;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease;
}

.arcelon-pano__scene:hover {
	background: rgba(13, 26, 28, .92);
	border-color: rgba(255, 255, 255, .6);
}

.arcelon-pano__scene[aria-pressed="true"] {
	background: #fff;
	border-color: #fff;
	color: #202020;
}

.arcelon-pano__scene:focus-visible {
	outline: 2px solid #c7ad82;
	outline-offset: 3px;
}

/* Shown while Pannellum and the panorama itself are downloading. */
.arcelon-pano__status {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	color: rgba(255, 255, 255, .8);
	font-size: 14px;
	text-align: center;
}

.arcelon-pano-lock {
	overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
	.arcelon-pano,
	.arcelon-pano__close,
	.arcelon-pano__scene {
		transition: none;
	}

	.arcelon-pano__close:hover {
		transform: none;
	}
}

@media (max-width: 478px) {
	.arcelon-pano__close {
		top: 12px;
		right: 12px;
	}

	.arcelon-pano__scenes {
		bottom: 16px;
	}
}
