/**
 * VW360 — Visite virtuelle.
 */

.vw360-tour {
	position: relative;
	width: 100%;
	height: var(--vw360-tour-height, 70vh);
	min-height: 380px;
	border-radius: 14px;
	overflow: hidden;
	background: #03101c;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.vw360-tour__viewer {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.vw360-tour__viewer.is-ready { opacity: 1; }

/* HUD façon ordinateur de plongée. */
.vw360-tour__hud {
	position: absolute;
	top: 1rem;
	left: 1rem;
	z-index: 40;
	display: flex;
	align-items: baseline;
	gap: 0.9rem;
	padding: 0.45rem 0.9rem;
	border-radius: 10px;
	background: rgba(3, 16, 28, 0.6);
	border: 1px solid rgba(63, 224, 208, 0.25);
	backdrop-filter: blur(10px);
	color: #dff6ff;
	pointer-events: none;
	font-variant-numeric: tabular-nums;
}

.vw360-tour__depth {
	font-size: 1.15rem;
	font-weight: 700;
	color: #3fe0d0;
	letter-spacing: 0.04em;
}

.vw360-tour__title {
	font-size: 0.82rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	opacity: 0.75;
}

/* Points d'intérêt. */
.vw360-hs {
	display: grid;
	place-items: center;
	width: 100%;
	height: 100%;
	border-radius: 50%;
	background: rgba(63, 224, 208, 0.16);
	border: 1.5px solid rgba(63, 224, 208, 0.75);
	color: #eafcff;
	font-size: 18px;
	box-shadow: 0 0 22px rgba(63, 224, 208, 0.35);
	animation: vw360-hs-pulse 2.8s ease-in-out infinite;
	backdrop-filter: blur(2px);
}

.vw360-hs i { font-style: normal; line-height: 1; }

.vw360-hs--danger { border-color: rgba(242, 181, 68, 0.9); background: rgba(242, 181, 68, 0.16); box-shadow: 0 0 22px rgba(242, 181, 68, 0.35); }
.vw360-hs--fauna { border-color: rgba(140, 220, 130, 0.9); background: rgba(140, 220, 130, 0.14); box-shadow: 0 0 22px rgba(140, 220, 130, 0.3); }
.vw360-hs--history { border-color: rgba(200, 180, 255, 0.9); background: rgba(190, 170, 255, 0.14); }

@keyframes vw360-hs-pulse {
	0%, 100% { transform: scale(1); opacity: 0.9; }
	50% { transform: scale(1.12); opacity: 1; }
}

/* Panneau de contenu. */
.vw360-hotspot {
	position: absolute;
	right: 1rem;
	bottom: 4.5rem;
	z-index: 45;
	width: min(340px, calc(100% - 2rem));
	max-height: 60%;
	overflow-y: auto;
	padding: 1.1rem 1.2rem;
	border-radius: 12px;
	background: rgba(4, 20, 33, 0.92);
	border: 1px solid rgba(63, 224, 208, 0.25);
	backdrop-filter: blur(14px);
	color: #dff6ff;
	transform: translateY(12px);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.vw360-hotspot.is-open { opacity: 1; visibility: visible; transform: none; }

.vw360-hotspot h4 { margin: 0 0 0.5rem; font-size: 1.05rem; color: #fff; }
.vw360-hotspot__content { font-size: 0.88rem; line-height: 1.55; opacity: 0.9; }
.vw360-hotspot__content p:last-child { margin-bottom: 0; }

.vw360-hotspot__img {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 0.8rem;
	display: block;
}

.vw360-hotspot__close {
	position: absolute;
	top: 0.5rem;
	right: 0.6rem;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid rgba(223, 246, 255, 0.2);
	background: rgba(3, 16, 28, 0.7);
	color: #dff6ff;
	cursor: pointer;
	line-height: 1;
	font-size: 1.1rem;
}

.vw360-tour-empty {
	padding: 2.5rem 1.5rem;
	text-align: center;
	border-radius: 12px;
	border: 1px dashed rgba(63, 224, 208, 0.35);
	background: rgba(4, 20, 33, 0.5);
	color: #9fc7d8;
}

/* Navbar PSV assortie. */
.vw360-tour .psv-navbar { background: rgba(3, 16, 28, 0.75); backdrop-filter: blur(10px); }
.vw360-tour .psv-caption-content { color: #dff6ff; }
