/* Virtual tour viewer — dark minimalist, thin white typography, matches the hero. */

body.virtual-tour-page {
	margin: 0;
	background-color: #fff;
	color: #fff;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

.kh-tour {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	/* White to match the axonometric render's own white canvas — the plan
	   image no longer sits on a dark field. Only matters on the hub screen:
	   once .is-in-room, .kh-tour__viewer covers the whole area opaquely. */
	background-color: #fff;
}

/* Logged in, WordPress pushes the page down by its admin bar, so a full
   100vh tour hangs that far below the fold and clips whatever sits along
   its bottom edge (the corner plan, the room label). Only editors ever see
   this, but it's editors who review the tours. */
body.admin-bar .kh-tour {
	height: calc(100vh - 32px);
	height: calc(100svh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .kh-tour {
		height: calc(100vh - 46px);
		height: calc(100svh - 46px);
	}
}

.kh-tour__viewer {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
	pointer-events: none;
}

.kh-tour.is-in-room .kh-tour__viewer {
	opacity: 1;
	pointer-events: auto;
}

/* Three.js viewer canvas (Stan 01 prototype — see assets/js/three-tour.js).
   Marzipano creates its own canvas with equivalent inline sizing, so this
   only matters for the Three.js path. */
.kh-tour__canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
}

/* 3DVista-powered units (see assets/js/tour-plan-hub.js) — the embedded
   export fills the same .kh-tour__viewer slot a Three.js canvas would,
   reusing its existing opacity/pointer-events fade-in on .is-in-room. */
.kh-tour__iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Fade-to-navy overlay for scene switches — same pattern as the city
   tour's .kh-city-tour__fade. Sits inside kh-tour-viewer, above the canvas
   (later in DOM order) but below the persistent topbar/roomnav/minimap. */
.kh-tour__fade {
	position: absolute;
	inset: 0;
	background-color: var(--kh-navy-950, #04102a);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.32s ease;
}

.kh-tour__fade.is-visible {
	opacity: 1;
}

/* No site-nav on these pages (see page-virtual-tour.php) — the axonometric
   plan hub fills the whole viewport with room-selection squares near the
   top, and the fixed nav bar covered them. */
.kh-tour__topbar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 28px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

/* On the hub (axonometric) screen the backdrop is flat white now, so the
   dark-to-transparent gradient above — needed in-room to keep white text
   legible over an unpredictable photo — would just look like a gray smudge.
   Drop it, and flip the back button / room-label to dark text instead. */
.kh-tour:not(.is-in-room) .kh-tour__topbar {
	background: none;
}

.kh-tour:not(.is-in-room) .kh-tour__back {
	color: var(--kh-navy-950, #04102a);
	border-color: rgba(4, 16, 42, 0.3);
}

.kh-tour:not(.is-in-room) .kh-tour__back:hover,
.kh-tour:not(.is-in-room) .kh-tour__back:focus-visible {
	border-color: var(--kh-navy-950, #04102a);
	background-color: rgba(4, 16, 42, 0.06);
}

/* JS pre-fills this with the entry room's name as soon as the tour config
   loads, before the visitor has clicked into anything — on the hub screen
   that reads as a stray, unexplained "Hodnik" label. Hide it there; it only
   makes sense once you're actually inside a room (.kh-tour__topbar sits
   above both .kh-plan and .kh-tour__viewer, so this is purely a visibility
   toggle, same pattern as .kh-roomnav / .kh-minimap / .kh-tour-info). */
.kh-tour:not(.is-in-room) .kh-tour__room-label {
	opacity: 0;
}

.kh-tour__nav-links {
	display: flex;
	gap: 10px;
}

.kh-tour__back {
	pointer-events: auto;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	letter-spacing: 0.04em;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 999px;
	padding: 8px 16px;
	background: none;
	cursor: pointer;
	transition: border-color 0.3s ease, background-color 0.3s ease;
	display: none;
}

.kh-tour__back.is-visible {
	display: inline-block;
}

.kh-tour__back:hover,
.kh-tour__back:focus-visible {
	border-color: #fff;
	background-color: rgba(255, 255, 255, 0.08);
}

.kh-tour-logo {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	height: 30px;
	width: auto;
	pointer-events: none;
	opacity: 0.9;
}

/* Kad je znak link ka početnoj, pozicioniranje preuzima link — sama slika
   ostaje statična unutra, inače bi link bio bez površine za klik. */
.kh-tour-logo-link {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	line-height: 0;
	z-index: 7;
}

.kh-tour-logo-link .kh-tour-logo {
	position: static;
	transform: none;
	pointer-events: auto;
}

.kh-tour-logo-link:hover .kh-tour-logo {
	opacity: 1;
}

.kh-tour__room-label {
	pointer-events: none;
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.75);
}

/* Room-to-room thumbnail nav — always available while inside a panorama. */
.kh-roomnav {
	position: absolute;
	top: 78px;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	padding: 0 20px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.4s ease;
}

.kh-tour.is-in-room .kh-roomnav {
	opacity: 1;
	pointer-events: auto;
}

.kh-roomnav__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	opacity: 0.72;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.kh-roomnav__item:hover,
.kh-roomnav__item:focus-visible {
	opacity: 1;
	transform: translateY(-2px);
}

.kh-roomnav__item.is-active {
	opacity: 1;
}

.kh-roomnav__thumb {
	width: 88px;
	height: 58px;
	object-fit: cover;
	display: block;
	border-radius: 4px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	transition: border-color 0.25s ease;
}

.kh-roomnav__item:hover .kh-roomnav__thumb,
.kh-roomnav__item:focus-visible .kh-roomnav__thumb,
.kh-roomnav__item.is-active .kh-roomnav__thumb {
	border-color: #fff;
}

.kh-roomnav__label {
	font-size: 11px;
	letter-spacing: 0.03em;
	color: #fff;
	white-space: nowrap;
}

/* Axonometric plan — entry hub */
.kh-plan {
	position: absolute;
	/* --kh-info-gutter reserves room on the right for .kh-tour-info (set in
	   the desktop media query below) so the plan frame never grows wide
	   enough to sit underneath the card — see .kh-tour-info comment. Zero
	   on mobile, where the card drops to a fixed bottom bar instead. */
	inset: 0 var(--kh-info-gutter, 0px) 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.kh-tour.is-in-room .kh-plan {
	opacity: 0;
	pointer-events: none;
}

@media (min-width: 901px) {
	.kh-tour {
		--kh-info-gutter: 300px;
	}
}

.kh-plan__frame {
	position: relative;
	/* Fills .kh-plan (not necessarily the full viewport — see
	   --kh-info-gutter above) while preserving the plan image's aspect
	   ratio — room polygons are positioned in percent, so they only line
	   up with the artwork if this box is exactly the image's rendered box. */
	width: min(100%, calc(100vh * var(--kh-plan-ratio, 1.4875)));
	height: min(100vh, calc(100% / var(--kh-plan-ratio, 1.4875)));
}

.kh-plan__image {
	display: block;
	width: 100%;
	height: 100%;
	user-select: none;
	-webkit-user-drag: none;
}

.kh-plan__room {
	position: absolute;
	inset: 0;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 0);
	transition: background-color 0.3s ease;
}

.kh-plan__room:hover,
.kh-plan__room:focus-visible {
	animation: kh-plan-room-pulse 1.8s ease-in-out infinite;
}

@keyframes kh-plan-room-pulse {
	0%, 100% {
		background-color: rgba(212, 168, 86, 0.38);
	}
	50% {
		background-color: rgba(212, 168, 86, 0.58);
	}
}

.kh-plan__room:focus-visible {
	outline: none;
}

/* A sibling of .kh-plan__room in the DOM, not a child — see the JS
   (renderPlanRoom in virtual-tour.js / three-tour.js / tour-plan-hub.js):
   the room's clip-path would otherwise crop this label's text to the room's
   polygon shape. Visibility is toggled by JS mouseenter/focus listeners on
   the room button instead of a CSS ":hover .kh-plan__room-label" descendant
   rule, since the two are no longer ancestor/descendant. */
.kh-plan__room-label {
	position: absolute;
	transform: translate(-50%, -50%);
	white-space: nowrap;
	font-size: 15px;
	letter-spacing: 0.04em;
	color: #0a0a0a;
	background: rgba(255, 255, 255, 0.95);
	padding: 6px 16px;
	border-radius: 3px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* Animated entrance marker — replaces the static black arrow that used to
   be baked into the plan artwork. Sits above the room hit-areas (which
   tile the whole frame via clip-path) so it stays clickable even when the
   entrance point falls inside a room's polygon. */
.kh-plan__entrance {
	position: absolute;
	z-index: 3;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	--kh-entrance-rotate: 0deg;
}

.kh-plan__entrance-ring {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(212, 168, 86, 0.45) 0%, rgba(212, 168, 86, 0) 72%);
	animation: kh-entrance-ring-pulse 1.8s ease-out infinite;
}

@keyframes kh-entrance-ring-pulse {
	0% {
		transform: scale(0.55);
		opacity: 0.9;
	}
	100% {
		transform: scale(1.6);
		opacity: 0;
	}
}

.kh-plan__entrance-arrow {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 22px;
	height: 22px;
	transform: translate(-50%, -50%) rotate(var(--kh-entrance-rotate));
	background-color: #d4a856;
	clip-path: polygon(50% 0%, 100% 60%, 68% 60%, 68% 100%, 32% 100%, 32% 60%, 0% 60%);
	box-shadow: 0 0 10px 2px rgba(212, 168, 86, 0.7);
	animation: kh-entrance-arrow-bob 1.4s ease-in-out infinite;
}

@keyframes kh-entrance-arrow-bob {
	0%, 100% {
		transform: translate(-50%, -50%) rotate(var(--kh-entrance-rotate)) translateY(0);
	}
	50% {
		transform: translate(-50%, -50%) rotate(var(--kh-entrance-rotate)) translateY(-5px);
	}
}

.kh-plan__entrance:hover .kh-plan__entrance-arrow,
.kh-plan__entrance:focus-visible .kh-plan__entrance-arrow {
	background-color: #f3ddb0;
}

.kh-plan__entrance:focus-visible {
	outline: none;
}

/* "Ulaz u stan" — same visual look as .kh-plan__room-label (own class since
   .kh-plan__entrance isn't a .kh-plan__room), sitting just below the bobbing
   arrow so it never covers it. Always visible, not hover-only: unlike room
   names (plenty, only useful once you're already pointing at one), there's
   exactly one entrance and visitors should recognize it without guessing to
   hover — matters most on touch, which has no hover at all. */
.kh-plan__entrance-label {
	position: absolute;
	left: 50%;
	top: 100%;
	margin-top: 6px;
	transform: translateX(-50%);
	white-space: nowrap;
	font-size: 12px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #0a0a0a;
	background: rgba(255, 255, 255, 0.92);
	padding: 4px 12px;
	border-radius: 3px;
	pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
	.kh-plan__entrance-ring,
	.kh-plan__entrance-arrow {
		animation: none;
	}
}

.kh-plan__caption {
	position: absolute;
	left: 50%;
	bottom: 4%;
	transform: translateX(-50%);
	font-size: 13px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(4, 16, 42, 0.45);
	white-space: nowrap;
	pointer-events: none;
}

.kh-plan__edit-btn {
	position: absolute;
	right: 4%;
	bottom: 4%;
	z-index: 3;
	color: #fff;
	font-size: 12px;
	letter-spacing: 0.04em;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	padding: 8px 16px;
	background: rgba(10, 10, 10, 0.5);
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

/* "Pozicija u stanu" minimap — small axonometric with a red dot over the
   current room, visible only while inside a room's panorama. Also directly
   clickable room-to-room (assets/js/virtual-tour.js builds one clip-path
   button per room, same technique as the full-size plan hub), with a
   tooltip above the map showing whichever room is under the cursor. */
.kh-minimap {
	position: absolute;
	right: 24px;
	bottom: 24px;
	z-index: 6;
	width: 190px;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	transform: scale(1);
	transform-origin: bottom right;
	transition: opacity 0.4s ease, transform 0.25s ease;
}

.kh-tour.is-in-room .kh-minimap {
	opacity: 1;
	pointer-events: auto;
}

/* Doubles in place (anchored to its own bottom-right corner, so it grows
   up and to the left and stays on screen) so each room is a much easier
   target to click — the room squares are small at the resting size. */
.kh-tour.is-in-room .kh-minimap:hover,
.kh-tour.is-in-room .kh-minimap:focus-within {
	transform: scale(2);
}

@media (prefers-reduced-motion: reduce) {
	.kh-minimap {
		transition: opacity 0.4s ease;
	}
}

.kh-minimap__tooltip {
	min-height: 16px;
	margin-bottom: 8px;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.kh-minimap__frame {
	position: relative;
	width: 100%;
	aspect-ratio: var(--kh-plan-ratio, 1.4875);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.25);
	background-color: rgba(0, 0, 0, 0.4);
	box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.7);
}

.kh-minimap__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	user-select: none;
	-webkit-user-drag: none;
}

.kh-minimap__room {
	position: absolute;
	inset: 0;
	padding: 0;
	border: none;
	cursor: pointer;
	background-color: rgba(255, 255, 255, 0);
	transition: background-color 0.25s ease;
}

.kh-minimap__room:hover,
.kh-minimap__room:focus-visible {
	background-color: rgba(212, 168, 86, 0.45);
}

.kh-minimap__room:focus-visible {
	outline: none;
}

.kh-minimap__dot {
	position: absolute;
	width: 11px;
	height: 11px;
	background-color: #e0483e;
	border: 2px solid #fff;
	border-radius: 50%;
	transform: translate(-50%, -50%);
	box-shadow: 0 0 0 4px rgba(224, 72, 62, 0.35);
	animation: kh-minimap-dot-pulse 2s ease-in-out infinite;
	pointer-events: none;
}

@keyframes kh-minimap-dot-pulse {
	0%, 100% {
		box-shadow: 0 0 0 4px rgba(224, 72, 62, 0.35);
	}
	50% {
		box-shadow: 0 0 0 7px rgba(224, 72, 62, 0.12);
	}
}

.kh-minimap__label {
	margin-top: 8px;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: reduce) {
	.kh-minimap__dot {
		animation: none;
	}
}

@media (max-width: 640px) {
	.kh-minimap {
		width: 148px;
		right: 14px;
		bottom: 14px;
	}

	.kh-minimap__tooltip {
		font-size: 11px;
	}
}

.kh-plan__edit-btn:hover,
.kh-plan__edit-btn:focus-visible {
	border-color: #fff;
	background-color: rgba(255, 255, 255, 0.1);
}

.kh-plan__frame.is-editing .kh-plan__room {
	pointer-events: none;
}

.kh-plan__frame.is-editing .kh-plan__edit-btn {
	display: none;
}

.kh-plan__frame.is-editing {
	cursor: crosshair;
}

/* Plan editor — user traces room corners by hand for precise polygons */
.kh-planedit {
	position: absolute;
	left: 50%;
	bottom: 4%;
	transform: translateX(-50%);
	z-index: 4;
	width: min(560px, 92vw);
	background: rgba(10, 10, 10, 0.88);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	padding: 16px 18px;
	backdrop-filter: blur(6px);
}

.kh-planedit__title {
	font-size: 13px;
	letter-spacing: 0.02em;
	color: #fff;
	margin-bottom: 4px;
}

.kh-planedit__title strong {
	font-weight: 500;
}

.kh-planedit__hint {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.55);
	margin-bottom: 12px;
}

.kh-planedit__row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.kh-planedit__btn {
	color: #fff;
	font-size: 11px;
	letter-spacing: 0.03em;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 999px;
	padding: 7px 14px;
	background: none;
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.kh-planedit__btn:hover,
.kh-planedit__btn:focus-visible {
	border-color: #fff;
	background-color: rgba(255, 255, 255, 0.1);
}

.kh-planedit__btn--exit {
	margin-left: auto;
	color: rgba(255, 255, 255, 0.5);
	border-color: rgba(255, 255, 255, 0.2);
}

.kh-planedit__output {
	width: 100%;
	box-sizing: border-box;
	background: #050505;
	color: #9fe0a0;
	font-family: 'SF Mono', Menlo, Consolas, monospace;
	font-size: 11px;
	line-height: 1.5;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 4px;
	padding: 10px;
	margin-bottom: 12px;
	resize: vertical;
}

.kh-planedit__markers {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.kh-planedit__dot {
	position: absolute;
	width: 22px;
	height: 22px;
	margin-left: -11px;
	margin-top: -11px;
	border-radius: 50%;
	background: #d4a856;
	color: #0a0a0a;
	font-size: 11px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.kh-planedit__preview {
	position: absolute;
	inset: 0;
	background-color: rgba(212, 168, 86, 0.42);
}

.kh-planedit__done {
	position: absolute;
	inset: 0;
	background-color: rgba(120, 220, 140, 0.3);
}

/* In-panorama walk hotspots — minimal, floor-anchored */
.kh-hotspot {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #fff;
	background: none;
	border: none;
	padding: 0;
}

.kh-hotspot__ring {
	position: absolute;
	inset: -12px;
	border: 1px solid rgba(212, 168, 86, 0.55);
	border-radius: 50%;
	animation: kh-hotspot-pulse 2.6s ease-out infinite;
}

@keyframes kh-hotspot-pulse {
	0% {
		transform: scale(0.8);
		opacity: 0.7;
	}
	70% {
		transform: scale(1.6);
		opacity: 0;
	}
	100% {
		opacity: 0;
	}
}

/* Gold glass pin — brand gold ring + a solid dark tinted backing so it
   reads as "premium overlay" against any panorama, light or dark, instead
   of a flat sticker. No backdrop-filter here on purpose: it's compositing
   a live-updating WebGL frame every render, and browsers can't keep that
   blur recalculated in real time during a drag — the hotspot visibly lags
   behind its true position while dragging, then snaps to the correct spot
   once the drag stops and rendering catches up. A plain tinted fill (no
   blur) has no such cost, so the position tracks the drag exactly. */
.kh-hotspot--nav {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1.5px solid rgba(212, 168, 86, 0.75);
	background-color: rgba(10, 16, 42, 0.55);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(212, 168, 86, 0.12);
	transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.kh-hotspot--nav::after {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--kh-gold-light, #e8c98a);
}

.kh-hotspot--nav:hover,
.kh-hotspot--nav:focus-visible {
	border-color: var(--kh-gold-light, #e8c98a);
	background-color: rgba(10, 16, 42, 0.55);
	transform: scale(1.12);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(212, 168, 86, 0.15);
}

.kh-hotspot--nav:focus-visible {
	outline: none;
}

.kh-hotspot__label {
	position: absolute;
	top: calc(100% + 12px);
	left: 50%;
	transform: translateX(-50%) translateY(4px);
	white-space: nowrap;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--kh-gold-light, #e8c98a);
	background: rgba(10, 16, 42, 0.9);
	border: 1px solid rgba(212, 168, 86, 0.35);
	padding: 3px 10px;
	border-radius: 3px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.kh-hotspot--nav:hover .kh-hotspot__label,
.kh-hotspot--nav:focus-visible .kh-hotspot__label {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.kh-hotspot--info {
	width: 30px;
	height: 30px;
	border: 1.5px solid rgba(212, 168, 86, 0.7);
	border-radius: 50%;
	background-color: rgba(10, 16, 42, 0.55);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	color: var(--kh-gold-light, #e8c98a);
	font-size: 15px;
	font-weight: 400;
	line-height: 1;
	transition: border-color 0.3s ease, background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.kh-hotspot--info:hover,
.kh-hotspot--info:focus-visible {
	border-color: var(--kh-gold-light, #e8c98a);
	background-color: rgba(10, 16, 42, 0.55);
	transform: scale(1.1);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 0 4px rgba(212, 168, 86, 0.15);
}

.kh-hotspot--info:focus-visible {
	outline: 1px solid var(--kh-gold-light, #e8c98a);
	outline-offset: 4px;
}

/* Right-side info panel — shown on the axonometric plan hub only (same
   facts that were on the card the visitor clicked to get here), hidden
   once inside a room panorama. Mirrors the minimap's opposite visibility
   so the two never compete for the same screen real estate. */
.kh-tour-info {
	/* Fixed to the viewport, not to .kh-plan__frame — it is still reparented
	   into the frame by virtual-tour.js/three-tour.js/tour-plan-hub.js, but
	   position:fixed escapes that ancestor (no transform on .kh-plan__frame)
	   and sits in the --kh-info-gutter reserved on the right of .kh-plan, so
	   it never overlaps the plan artwork regardless of the apartment's shape
	   or aspect ratio. */
	position: fixed;
	right: 40px;
	top: 6vh;
	z-index: 5;
	width: 210px;
	padding: 24px 20px 22px;
	background: #fff;
	border: 1px solid rgba(4, 16, 42, 0.1);
	border-radius: 8px;
	box-shadow: 0 18px 40px -24px rgba(4, 16, 42, 0.35);
	opacity: 1;
	transition: opacity 0.4s ease;
}

.kh-tour.is-in-room .kh-tour-info {
	opacity: 0;
	pointer-events: none;
}

.kh-tour-info__eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(4, 16, 42, 0.45);
	margin-bottom: 6px;
}

.kh-tour-info__title {
	margin: 0 0 16px;
	font-size: 19px;
	font-weight: 400;
	letter-spacing: 0.02em;
	color: var(--kh-navy-950, #04102a);
}

.kh-tour-info__stats {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.kh-tour-info__stats li {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: rgba(4, 16, 42, 0.8);
}

.kh-tour-info__stats svg {
	flex-shrink: 0;
	color: var(--kh-gold-light, #e8c98a);
}

/* Per-room breakdown — name/area pairs, distinct from .kh-tour-info__stats
   (icon + single value) above, so it gets its own list rather than being
   forced into that one's layout. Thin gold rule on top separates it from
   the aggregate stats; each row is a simple space-between pair to match the
   card's minimal gold/white-on-dark look. */
.kh-tour-info__rooms {
	list-style: none;
	margin: 0 0 16px;
	padding: 12px 0 0;
	border-top: 1px solid rgba(4, 16, 42, 0.12);
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.kh-tour-info__rooms li {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	font-size: 12px;
	line-height: 1.4;
}

.kh-tour-info__room-name {
	color: rgba(4, 16, 42, 0.6);
}

.kh-tour-info__room-area {
	color: rgba(4, 16, 42, 0.9);
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

.kh-tour-info__price {
	font-size: 22px;
	font-weight: 400;
	font-variant-numeric: tabular-nums;
	color: var(--kh-navy-950, #04102a);
	padding-top: 14px;
	border-top: 1px solid rgba(4, 16, 42, 0.12);
	margin-bottom: 16px;
}

.kh-tour-info__cta {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 14px;
	padding: 11px 16px;
	font: inherit;
	font-size: 13px;
	letter-spacing: 0.03em;
	color: var(--kh-navy-950, #04102a);
	background: linear-gradient(135deg, var(--kh-gold-light, #e8c98a) 0%, var(--kh-gold, #d4a856) 100%);
	border: none;
	border-radius: 999px;
	cursor: pointer;
	text-align: center;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.kh-tour-info__cta:hover,
.kh-tour-info__cta:focus-visible {
	box-shadow: 0 10px 22px -10px rgba(212, 168, 86, 0.65);
	transform: translateY(-1px);
}

.kh-tour-info__note {
	margin: 0;
	font-size: 11.5px;
	line-height: 1.6;
	font-style: italic;
	color: rgba(4, 16, 42, 0.5);
}

/* Na telefonu kartica ne može da stoji u uglu plana — plan je tada uzak i
   kartica bi ga prekrila. Seda na dno ekrana kao uska traka: cena levo,
   dugme desno. Prvi pokušaj je bio previsok (277px) i pokrio je donji deo
   plana, tačno tamo gde stoji strelica za ulaz u stan — zato je sada u jednom
   redu, a plan se podiže za visinu trake. */
@media (max-width: 900px) {
	.kh-tour-info {
		position: fixed;
		inset: auto 12px 12px;
		top: auto;
		width: auto;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		gap: 4px 14px;
		padding: 10px 12px 10px 14px;
		background: #fff;
		box-shadow: 0 -8px 24px -16px rgba(4, 16, 42, 0.35);
	}

	/* Ime stana i kvadratura u jednom redu, sitno. */
	.kh-tour-info__eyebrow {
		display: none;
	}

	.kh-tour-info__title {
		grid-column: 1;
		margin: 0;
		font-size: 14px;
	}

	.kh-tour-info__stats {
		grid-column: 1;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 2px 12px;
		margin: 2px 0 0;
	}

	.kh-tour-info__stats li {
		font-size: 11px;
	}

	/* Sprat i broj slobodnih stanova su na telefonu manje bitni od kvadrature. */
	.kh-tour-info__stats li:nth-child(n+3) {
		display: none;
	}

	/* Traka na dnu nema mesta za spisak soba — ostaje samo na desktopu. */
	.kh-tour-info__rooms {
		display: none;
	}

	.kh-tour-info__price {
		grid-column: 1;
		margin: 3px 0 0;
		font-size: 18px;
	}

	.kh-tour-info__cta {
		grid-column: 2;
		grid-row: 1 / 4;
		margin: 0;
		padding: 12px 16px;
		font-size: 13px;
		white-space: nowrap;
	}

	.kh-tour-info__note {
		grid-column: 1 / -1;
		margin: 6px 0 0;
		font-size: 9.5px;
		line-height: 1.45;
	}

	/* Plan se podiže tačno za visinu trake, da strelica za ulaz ostane vidljiva. */
	.kh-tour:not(.is-in-room) .kh-plan {
		padding-bottom: 128px;
	}
}

/* Telefon položen vodoravno: ostaje samo cena i dugme. */
@media (max-width: 900px) and (max-height: 520px) {
	.kh-tour-info__stats,
	.kh-tour-info__note,
	.kh-tour-info__title {
		display: none;
	}

	.kh-tour:not(.is-in-room) .kh-plan {
		padding-bottom: 76px;
	}
}

/* Popup */
.kh-tour__popup {
	position: fixed;
	inset: 0;
	z-index: 10;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.55);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
}

.kh-tour__popup.is-open {
	opacity: 1;
	pointer-events: auto;
}

.kh-tour__popup-card {
	position: relative;
	width: min(380px, calc(100vw - 48px));
	background: #121212;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	padding: 28px 26px;
	transform: translateY(8px);
	transition: transform 0.25s ease;
}

.kh-tour__popup.is-open .kh-tour__popup-card {
	transform: translateY(0);
}

.kh-tour__popup-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 26px;
	height: 26px;
	border: none;
	background: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.kh-tour__popup-close:hover {
	color: #fff;
}

.kh-tour__popup-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0.02em;
}

.kh-tour__popup-body {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.75);
	white-space: pre-line;
}

@media (prefers-reduced-motion: reduce) {
	.kh-hotspot__ring,
	.kh-plan__room:hover,
	.kh-plan__room:focus-visible {
		animation: none;
	}

	.kh-plan__room:hover,
	.kh-plan__room:focus-visible {
		background-color: rgba(212, 168, 86, 0.42);
	}
}

/* --- Hodnik sprata (page-hallway-tour.php) ------------------------------
   Floor switcher pinned bottom-centre, opposite the room-nav strip up top,
   so the two never collide. Same glass/gold language as the rest of the
   tour chrome. */
.kh-hallway__floors {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 6;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px;
	border-radius: 999px;
	background: rgba(4, 16, 42, 0.55);
	border: 1px solid rgba(232, 201, 138, 0.28);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	color: #fff;
}

.kh-hallway__floors-label {
	font-size: 11px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.kh-hallway__floor {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.85);
	text-decoration: none;
	font-size: 14px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.kh-hallway__floor:hover,
.kh-hallway__floor:focus-visible {
	background: rgba(232, 201, 138, 0.22);
	color: #fff;
}

.kh-hallway__floor.is-active {
	background: var(--kh-gold-light);
	color: var(--kh-navy-950);
}

.kh-hallway__floors-meta {
	margin-left: 4px;
	padding-left: 12px;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
	font-size: 12px;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.7);
	white-space: nowrap;
}

@media (max-width: 600px) {
	.kh-hallway__floors {
		bottom: 16px;
		gap: 6px;
		padding: 8px 14px;
	}

	.kh-hallway__floors-label,
	.kh-hallway__floors-meta {
		display: none;
	}
}

/* --- Hotspot editor (assets/js/tour-hotspot-editor.js) ------------------
   Editor-only chrome: never rendered for visitors, so it optimises for
   density and legibility over matching the tour's styling. */
.kh-hsedit-toggle {
	position: fixed;
	left: 18px;
	bottom: 18px;
	z-index: 90;
	padding: 9px 16px;
	border: 1px solid rgba(232, 201, 138, 0.5);
	border-radius: 999px;
	background: rgba(4, 16, 42, 0.86);
	color: var(--kh-gold-light);
	font-size: 13px;
	letter-spacing: 0.02em;
	cursor: pointer;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.kh-hsedit-toggle:hover {
	background: rgba(4, 16, 42, 0.96);
	color: #fff;
}

.kh-hsedit {
	position: fixed;
	left: 18px;
	bottom: 64px;
	z-index: 91;
	display: none;
	flex-direction: column;
	gap: 8px;
	width: 330px;
	max-height: 74vh;
	overflow-y: auto;
	padding: 14px;
	border: 1px solid rgba(232, 201, 138, 0.35);
	border-radius: 12px;
	background: rgba(4, 16, 42, 0.95);
	color: #fff;
	box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
}

.kh-hsedit.is-open {
	display: flex;
}

.kh-hsedit__title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.6);
}

.kh-hsedit__title strong {
	flex: 1;
	color: var(--kh-gold-light);
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: none;
	font-size: 13px;
}

.kh-hsedit__close {
	border: none;
	background: none;
	color: rgba(255, 255, 255, 0.6);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}

.kh-hsedit__close:hover {
	color: #fff;
}

.kh-hsedit__hint,
.kh-hsedit__empty {
	margin: 0;
	font-size: 12px;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.55);
}

.kh-hsedit__list {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kh-hsedit__row {
	display: flex;
	align-items: center;
	gap: 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
}

.kh-hsedit__row.is-selected {
	background: rgba(232, 201, 138, 0.22);
	outline: 1px solid var(--kh-gold-light);
}

.kh-hsedit__pick {
	flex: 1;
	padding: 7px 9px;
	border: none;
	background: none;
	color: #fff;
	font-size: 12.5px;
	text-align: left;
	cursor: pointer;
}

.kh-hsedit__del {
	padding: 0 9px;
	border: none;
	background: none;
	color: rgba(255, 120, 120, 0.85);
	font-size: 16px;
	cursor: pointer;
}

.kh-hsedit__add {
	display: flex;
	gap: 5px;
}

.kh-hsedit__add select {
	flex: 1;
	min-width: 0;
	padding: 6px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 12px;
}

.kh-hsedit__addbtn,
.kh-hsedit__copy {
	padding: 7px 12px;
	border: 1px solid rgba(232, 201, 138, 0.45);
	border-radius: 6px;
	background: rgba(232, 201, 138, 0.16);
	color: var(--kh-gold-light);
	font-size: 12px;
	white-space: nowrap;
	cursor: pointer;
}

.kh-hsedit__addbtn:hover,
.kh-hsedit__copy:hover {
	background: rgba(232, 201, 138, 0.3);
	color: #fff;
}

.kh-hsedit__status {
	margin: 0;
	min-height: 15px;
	font-size: 12px;
	color: var(--kh-gold-light);
}

.kh-hsedit__output {
	width: 100%;
	box-sizing: border-box;
	padding: 9px;
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.45);
	color: #d8e4f5;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	line-height: 1.45;
	resize: vertical;
}

/* Numbered floor-plan reference for the hotspot editor — top-right, opposite
   the editor panel so the two never fight for space. */
.kh-hsref {
	position: fixed;
	top: 66px;
	right: 18px;
	z-index: 92;
	width: 300px;
	border: 1px solid rgba(232, 201, 138, 0.35);
	border-radius: 10px;
	overflow: hidden;
	background: rgba(4, 16, 42, 0.95);
	box-shadow: 0 22px 44px -18px rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.kh-hsref__head {
	display: block;
	width: 100%;
	padding: 8px 10px;
	border: none;
	background: rgba(232, 201, 138, 0.14);
	color: var(--kh-gold-light);
	font-size: 11.5px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: left;
	cursor: pointer;
}

.kh-hsref__head:hover {
	background: rgba(232, 201, 138, 0.26);
	color: #fff;
}

.kh-hsref__img {
	display: none;
	width: 100%;
	height: auto;
	background: #fff;
	cursor: zoom-in;
}

.kh-hsref.is-open .kh-hsref__img {
	display: block;
}

@media (max-width: 900px) {
	.kh-hsref {
		width: 210px;
	}
}

/* ---- Lift ride between floors -------------------------------------------
   Pressing a plate on the lift doors moves the visitor to another floor's
   corridor, which is a separate page load. These two halves stitch the two
   pages into one gesture: the floor you're leaving slides away, and the one
   you arrive on slides in from the same side, so pressing "Sprat 4" reads as
   going up and "Sprat 1" / "Podrum" as going down.

   The transform is on the canvas rather than .kh-tour__viewer so the fixed
   UI around it (minimap, room strip, floor switcher) stays put. */
.kh-tour__viewer {
	overflow: hidden;
}

.kh-tour__canvas {
	transition: transform 0.5s cubic-bezier(0.33, 0, 0.2, 1);
}

/* Leaving: going down means the world rises past you, and vice versa. */
.kh-lift-out-down .kh-tour__canvas {
	transform: translateY(-9%);
}

.kh-lift-out-up .kh-tour__canvas {
	transform: translateY(9%);
}

/* Arriving: parked on the far side with no transition, then the class is
   removed once the panorama has loaded and it eases back to centre. */
.kh-lift-in-down .kh-tour__canvas {
	transform: translateY(9%);
	transition: none;
}

.kh-lift-in-up .kh-tour__canvas {
	transform: translateY(-9%);
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.kh-tour__canvas,
	.kh-lift-out-down .kh-tour__canvas,
	.kh-lift-out-up .kh-tour__canvas,
	.kh-lift-in-down .kh-tour__canvas,
	.kh-lift-in-up .kh-tour__canvas {
		transform: none;
		transition: none;
	}
}

/* ---- Numbered floor plan in the corridor tour ---------------------------
   Replaces the "you are here" minimap: while walking a hallway the question
   that actually comes up is which flat sits behind which door. Parked small
   in the corner so it doesn't fight the panorama, and grows on hover/focus
   to a size where the numbers are legible. */
/* Plan sprata preko celog ekrana, unutar same ture. Mora da bude ovde a ne
   link ka slici: na telefonu je goli .jpg u novom prozoru ostavljao čoveka
   bez povratka. */
.kh-unitsbox {
	position: fixed;
	inset: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 64px 16px 16px;
	background: rgba(4, 16, 42, 0.94);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease;
	box-sizing: border-box;
}

.kh-unitsbox.is-open {
	opacity: 1;
	pointer-events: auto;
}

.kh-unitsbox__img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 4px;
	box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.kh-unitsbox__close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.35);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	transition: border-color 0.25s ease, background-color 0.25s ease;
}

.kh-unitsbox__close:hover,
.kh-unitsbox__close:focus-visible {
	border-color: #fff;
	background-color: rgba(255, 255, 255, 0.14);
}

.kh-hallway__units {
	position: absolute;
	right: 20px;
	bottom: 20px;
	z-index: 6;
	display: block;
	width: 190px;
	padding: 8px;
	border-radius: 10px;
	background: rgba(4, 16, 42, 0.82);
	border: 1px solid rgba(232, 201, 138, 0.28);
	box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.7);
	text-decoration: none;
	/* Od <a> je postao <button> (otvara pregled u turi), pa mu treba i ono
	   što dugme dobija od pregledača: bez sopstvenog okvira i sa pokazivačem. */
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	backdrop-filter: blur(6px);
	transform-origin: 100% 100%;
	/* The image is the whole floor, so it needs real size before the flat
	   numbers become readable — hence the large hover step below. */
	transition: width 0.35s cubic-bezier(0.33, 0, 0.2, 1),
		border-color 0.35s ease, box-shadow 0.35s ease;
}

.kh-hallway__units:hover,
.kh-hallway__units:focus-visible {
	/* Big enough that the flat numbers read at a glance; capped against the
	   viewport so it can't grow past the panorama on a small laptop. */
	width: 660px;
	max-width: 62vw;
	border-color: rgba(232, 201, 138, 0.6);
	box-shadow: 0 26px 50px -20px rgba(0, 0, 0, 0.8);
}

.kh-hallway__units-label {
	display: block;
	margin-bottom: 6px;
	font-size: 9px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-align: center;
	color: rgba(232, 201, 138, 0.85);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: font-size 0.35s ease;
}

.kh-hallway__units:hover .kh-hallway__units-label,
.kh-hallway__units:focus-visible .kh-hallway__units-label {
	font-size: 11px;
}

.kh-hallway__units-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	background: #fff;
}

/* On a phone the expanded size would cover the whole panorama, so it stays
   at its parked size and the tap just opens the full-size image. */
@media (max-width: 780px) {
	.kh-hallway__units {
		right: 12px;
		bottom: 12px;
		width: 96px;
	}

	.kh-hallway__units:hover,
	.kh-hallway__units:focus-visible {
		width: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.kh-hallway__units,
	.kh-hallway__units-label {
		transition: none;
	}
}

/* "cela tura" — emit every room's block at once instead of copying them one
   room at a time. */
.kh-hsedit__scope {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 10px 0 4px;
	font-size: 11px;
	letter-spacing: 0.02em;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
}

.kh-hsedit__scope input {
	margin: 0;
	accent-color: var(--kh-gold, #d4a856);
}

/* "+ Sve" sits next to "+ Dodaj" — same shape, quieter, since it's the
   bulk-fill shortcut rather than the everyday action. */
.kh-hsedit__addall {
	flex: 0 0 auto;
	padding: 6px 10px;
	border: 1px solid rgba(232, 201, 138, 0.45);
	border-radius: 6px;
	background: transparent;
	color: var(--kh-gold-light, #e8c98a);
	font: inherit;
	font-size: 11px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kh-hsedit__addall:hover {
	background: rgba(232, 201, 138, 0.15);
	border-color: rgba(232, 201, 138, 0.8);
}

/* Entrance-arrow placement tool. Sits opposite the hotspot panel, and only
   matters on the plan-hub screen, so it hides itself once you walk in. */
.kh-hsent {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 70;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 260px;
	padding: 14px;
	border-radius: 10px;
	background: rgba(4, 16, 42, 0.94);
	border: 1px solid rgba(232, 201, 138, 0.3);
	box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 12px;
}

/* One screen, one tool: the entrance arrow only exists on the plan hub, the
   hotspot panel only inside a panorama. Keeping both up meant whichever one
   you weren't using sat on top of the thing you were trying to click. */
body.kh-in-room .kh-hsent {
	display: none;
}

body:not(.kh-in-room) .kh-hsedit,
body:not(.kh-in-room) .kh-hsedit-toggle,
body:not(.kh-in-room) .kh-hsref {
	display: none;
}

.kh-hsent__title {
	font-size: 11px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--kh-gold-light, #e8c98a);
}

.kh-hsent__place {
	padding: 8px 10px;
	border: 1px solid rgba(232, 201, 138, 0.45);
	border-radius: 6px;
	background: transparent;
	color: #fff;
	font: inherit;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.kh-hsent__place:hover {
	background: rgba(232, 201, 138, 0.15);
}

.kh-hsent__place.is-armed {
	background: var(--kh-gold-light, #e8c98a);
	border-color: var(--kh-gold-light, #e8c98a);
	color: var(--kh-navy-950, #04102a);
}

.kh-hsent__rot {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 11px;
	color: rgba(255, 255, 255, 0.7);
}

.kh-hsent__deg {
	color: var(--kh-gold-light, #e8c98a);
	font-variant-numeric: tabular-nums;
}

.kh-hsent__dir {
	font-style: normal;
	color: rgba(255, 255, 255, 0.45);
}

.kh-hsent__flip {
	padding: 6px 10px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: transparent;
	color: rgba(255, 255, 255, 0.8);
	font: inherit;
	font-size: 11px;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.kh-hsent__flip:hover {
	background: rgba(255, 255, 255, 0.12);
}

.kh-hsent__range {
	width: 100%;
	accent-color: var(--kh-gold, #d4a856);
}

.kh-hsent__out {
	width: 100%;
	box-sizing: border-box;
	padding: 8px;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.35);
	color: #cfe3ff;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 11px;
	resize: vertical;
}

.kh-hsent__copy {
	padding: 8px 10px;
	border: 0;
	border-radius: 6px;
	background: var(--kh-gold-light, #e8c98a);
	color: var(--kh-navy-950, #04102a);
	font: inherit;
	cursor: pointer;
}

/* The plan tool shows either the entrance controls or the room-size one,
   never both — they belong to different kinds of target. */
.kh-hsent__what {
	padding: 7px 8px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font: inherit;
	font-size: 12px;
}

.kh-hsent__only-entrance,
.kh-hsent__only-room {
	display: none;
}

.kh-hsent.is-entrance .kh-hsent__only-entrance,
.kh-hsent:not(.is-entrance) .kh-hsent__only-room {
	display: flex;
}

.kh-hsent.is-entrance button.kh-hsent__only-entrance {
	display: block;
}

.kh-hsent__sizeval {
	color: var(--kh-gold-light, #e8c98a);
	font-variant-numeric: tabular-nums;
}

