/* Estilos b8j: giroscopio, tour guiado, paneo, compartir y contadores. Todo
   lo nuevo vive aqui; no se redefine ninguna clase de app.css. */

.tour-hotspot-tip {
	position: absolute;
	bottom: calc(100% + var(--s-2));
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	background: var(--vr-glass);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	border: 1px solid var(--vr-glass-line);
	border-radius: var(--r-sm);
	color: var(--vr-ink);
	font-size: var(--fs-xs);
	padding: var(--s-1) var(--s-2);
	opacity: 0;
	pointer-events: none;
	transition: opacity var(--dur-1) var(--ease);
}

.tour-hotspot:hover .tour-hotspot-tip,
.tour-hotspot:focus-visible .tour-hotspot-tip {
	opacity: 1;
}

.tour-pan {
	position: fixed;
	bottom: calc(var(--s-4) + 5rem);
	left: 50%;
	transform: translateX(-50%);
	display: grid;
	grid-template-columns: repeat(3, 2.25rem);
	grid-template-rows: repeat(2, 2.25rem);
	gap: var(--s-1);
	z-index: var(--z-hud);
}

.tour-pan-btn {
	grid-row: 1;
	background: var(--vr-glass);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	color: var(--vr-ink);
	border: 1px solid var(--vr-glass-line);
	border-radius: var(--r-full);
}

.tour-pan-btn[data-dir="left"] {
	grid-column: 1;
}

.tour-pan-btn[data-dir="up"] {
	grid-column: 2;
}

.tour-pan-btn[data-dir="right"] {
	grid-column: 3;
}

.tour-pan-btn[data-dir="down"] {
	grid-row: 2;
	grid-column: 2;
}

.tour-gyro-toggle.tour-gyro-on {
	background: var(--accent);
	color: var(--accent-ink);
	border-color: var(--accent);
}

.tour-guide {
	position: fixed;
	top: var(--s-4);
	right: var(--s-4);
	display: flex;
	align-items: center;
	gap: var(--s-2);
	padding: var(--s-2);
	z-index: var(--z-hud);
}

.tour-guide-btn.tour-guide-btn-active {
	background: var(--accent);
	color: var(--accent-ink);
	border-color: var(--accent);
}

.tour-guide-caption {
	position: fixed;
	top: var(--s-4);
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	text-align: center;
	padding: var(--s-2) var(--s-4);
	z-index: var(--z-hud);
}

.tour-share-modal {
	border: 1px solid var(--vr-glass-line);
	border-radius: var(--r-lg);
	background: var(--surface);
	color: var(--ink);
	box-shadow: var(--shadow-2);
	padding: var(--s-5);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--s-3);
}

.tour-share-modal::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.tour-share-qr {
	width: 200px;
	height: 200px;
}

.tour-like:disabled {
	opacity: 0.7;
}

/* Modo embebido (/t/{guid}?embed=1, el iframe de la ficha): el visor cabe en
   un hueco de 16/10, asi que el HUD se pega al borde y sus controles bajan a
   tamano compacto. */
.tour-page-embed .tour-hud-bottom {
	bottom: var(--s-2);
	left: var(--s-2);
	right: var(--s-2);
	gap: var(--s-2);
	padding: var(--s-2);
}

.tour-page-embed .tour-actions button,
.tour-page-embed .tour-stats button,
.tour-page-embed .tour-guide button {
	padding: var(--s-1) var(--s-2);
	font-size: var(--fs-xs);
}

.tour-page-embed .tour-stats {
	font-size: var(--fs-xs);
}

.tour-page-embed .tour-scene-thumb {
	width: 56px;
	height: 40px;
}

.tour-page-embed .tour-pan {
	bottom: calc(var(--s-2) + 3rem);
	grid-template-columns: repeat(3, 1.75rem);
	grid-template-rows: repeat(2, 1.75rem);
}

.tour-page-embed .tour-guide {
	top: var(--s-2);
	right: var(--s-2);
	padding: var(--s-1);
}

.tour-password {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100dvh;
}

.tour-password form {
	display: flex;
	flex-direction: column;
	gap: var(--s-3);
	width: 90%;
	max-width: 320px;
}

.tour-password-error {
	color: var(--danger);
}
