/* Vectelia 360 Visit — visitor viewer. No external resource. */

.v360-tour,
.v360-dialog {
	--v360-ink: #111;
	--v360-paper: #fff;
	--v360-veil: rgba(17, 17, 17, 0.72);
}
.v360-tour {
	margin: 0;
}

/* Preview + button */
.v360-tour--preview {
	position: relative;
	overflow: hidden;
	background: var(--v360-ink);
}
.v360-tour--preview .v360-preview {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.v360-tour--preview.v360-tour--noimage {
	aspect-ratio: 16 / 9;
}
.v360-open {
	position: absolute;
	left: 50%;
	bottom: 8%;
	transform: translateX(-50%);
	min-height: 48px;
	padding: 0 28px;
	border: 0;
	border-radius: 999px;
	background: var(--v360-paper);
	color: var(--v360-ink);
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
	white-space: nowrap;
}
.v360-tour--noimage .v360-open {
	top: 50%;
	bottom: auto;
	transform: translate(-50%, -50%);
}
.v360-open:hover {
	background: #f0f0f0;
}
.v360-open:focus-visible,
.v360-room:focus-visible,
.v360-close:focus-visible,
.v360-gyro:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
	box-shadow: 0 0 0 5px var(--v360-ink);
}

/* Embedded */
.v360-tour--embedded {
	position: relative;
	width: 100%;
	height: min(80vh, 720px);
	background: var(--v360-ink);
	overflow: hidden;
}

/* Full-screen dialog */
.v360-dialog {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	max-width: none;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: var(--v360-ink);
	overflow: hidden;
}
.v360-dialog::backdrop {
	background: var(--v360-ink);
}
.v360-stage {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.v360-lock {
	overflow: hidden;
}

/* Controls (inside the Pannellum container) */
.v360-rooms {
	position: absolute;
	z-index: 10;
	left: 50%;
	bottom: max(14px, env(safe-area-inset-bottom));
	transform: translateX(-50%);
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	max-width: calc(100% - 24px);
}
.v360-room {
	min-height: 44px;
	padding: 0 16px;
	border: 0;
	border-radius: 999px;
	background: var(--v360-veil);
	color: var(--v360-paper);
	font: inherit;
	font-size: 0.9375rem;
	line-height: 1;
	cursor: pointer;
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}
.v360-room:hover {
	background: rgba(17, 17, 17, 0.88);
}
.v360-room[aria-current="true"] {
	background: var(--v360-paper);
	color: var(--v360-ink);
}
.v360-close,
.v360-gyro {
	position: absolute;
	z-index: 10;
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--v360-veil);
	color: var(--v360-paper);
	cursor: pointer;
}
.v360-close {
	top: max(12px, env(safe-area-inset-top));
	right: 12px;
}
.v360-gyro {
	top: max(12px, env(safe-area-inset-top));
	right: 64px;
}
.v360-tour--embedded .v360-gyro {
	right: 12px;
}
.v360-gyro[hidden] {
	display: none;
}
.v360-gyro[aria-pressed="true"] {
	background: var(--v360-paper);
	color: var(--v360-ink);
}
/* Our button replaces Pannellum's own orientation control. */
.v360-tour .pnlm-orientation-button,
.v360-dialog .pnlm-orientation-button {
	display: none !important;
}

.v360-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 600px) {
	/* One scrollable row instead of a wall of buttons over the picture. */
	.v360-rooms {
		flex-wrap: nowrap;
		justify-content: flex-start;
		overflow-x: auto;
		width: calc(100% - 24px);
		padding-bottom: 2px;
		scrollbar-width: none;
	}
	.v360-rooms::-webkit-scrollbar {
		display: none;
	}
	.v360-room {
		flex: 0 0 auto;
	}
}

.v360-notice {
	padding: 12px 16px;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
	color: #50575e;
}

@media (prefers-reduced-motion: reduce) {
	.v360-tour *,
	.v360-dialog * {
		transition: none !important;
	}
}

/* The room menu already names the current room (and it is announced to screen readers). */
.v360-tour .pnlm-panorama-info,
.v360-dialog .pnlm-panorama-info {
	display: none !important; /* Pannellum sets display:inline on this node after each scene load. */
}
