/* City entry tour — same dark minimalist language as the apartment tours. */

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

.kh-city-tour {
	position: relative;
	width: 100%;
	height: 100vh;
	height: 100svh;
	overflow: hidden;
	background-color: #0a0a0a;
}

.kh-city-tour__viewer {
	position: absolute;
	inset: 0;
}

.kh-city-tour__canvas {
	display: block;
	width: 100%;
	height: 100%;
	cursor: grab;
	transition: opacity 0.2s ease;
}

.kh-city-tour__canvas:active {
	cursor: grabbing;
}

.kh-city-tour__fade {
	position: absolute;
	inset: 0;
	z-index: 4;
	background-color: var(--kh-navy-950);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

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

.kh-city-tour__canvas.is-transitioning {
	opacity: 0;
}

/* Starts below the fixed site-nav bar (every page now) rather than at the
   very top, so the two don't overlap. */
.kh-city-tour__topbar {
	position: absolute;
	top: 148px;
	left: 0;
	right: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 28px;
	pointer-events: none;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

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

.kh-city-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-city-tour__back.is-visible {
	display: inline-block;
}

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

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

.kh-city-tour__hint {
	position: absolute;
	bottom: 26px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 5;
	padding: 8px 18px;
	border-radius: 999px;
	background: rgba(10, 16, 42, 0.72);
	border: 1px solid rgba(212, 168, 86, 0.3);
	font-size: 14px;
	letter-spacing: 0.04em;
	color: rgba(255, 255, 255, 0.92);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
	pointer-events: none;
	white-space: nowrap;
}

/* Pin variant of the shared hotspot — bigger, always shows its label so it
   reads clearly against a photo instead of only appearing on hover. */
.kh-hotspot--pin {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background-color: var(--kh-gold);
	border: none;
}

.kh-hotspot--pin .kh-hotspot__ring {
	border-color: rgba(212, 168, 86, 0.75);
}

.kh-hotspot--pin .kh-hotspot__label {
	opacity: 1;
	top: calc(100% + 14px);
	background: rgba(10, 16, 42, 0.9);
	border: 1px solid rgba(212, 168, 86, 0.35);
	font-size: 15px;
	padding: 8px 18px;
}

.kh-hotspot--pin:hover,
.kh-hotspot--pin:focus-visible {
	transform: scale(1.15);
}

/* ---- Direction signpost -------------------------------------------------
   Points off toward a landmark that isn't in the frame — the school one way,
   the town centre the other — so the plot's position in Kosovska reads at a
   glance. Not a control: nothing to click, it only tells you which way. */
.kh-citydir {
	/* Length is a base times the viewer's zoom scale, so the arrow keeps its
	   proportion to the photo instead of to the screen. */
	--kh-dir-base: 190px;
	--kh-dir-len: calc(var(--kh-dir-base) * var(--kh-dir-scale, 1));
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}

.kh-citydir__arrow {
	position: relative;
	display: block;
	width: var(--kh-dir-len, 190px);
	height: 3px;
	border-radius: 2px;
	background: linear-gradient(
		90deg,
		rgba(212, 168, 86, 0) 0%,
		rgba(212, 168, 86, 0.9) 35%,
		var(--kh-gold-light, #e8c98a) 100%
	);
	/* 0deg points right; the bearing is set per hotspot. */
	transform: rotate(var(--kh-dir-rotate, 0deg));
	transform-origin: 50% 50%;
	filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.55));
}

.kh-citydir__arrow::after {
	content: '';
	position: absolute;
	right: -2px;
	top: 50%;
	width: 18px;
	height: 18px;
	border-top: 3px solid var(--kh-gold-light, #e8c98a);
	border-right: 3px solid var(--kh-gold-light, #e8c98a);
	border-radius: 2px;
	transform: translate(0, -50%) rotate(45deg);
}

/* Its own element, positioned independently of the arrow — see the signpost
   comment in cylindrical-tour.js. */
.kh-citydir__label {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(10, 16, 42, 0.82);
	border: 1px solid rgba(212, 168, 86, 0.28);
	color: rgba(255, 255, 255, 0.88);
	font-size: 11px;
	letter-spacing: 0.03em;
	white-space: nowrap;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

@media (max-width: 700px) {
	.kh-citydir {
		--kh-dir-base: 120px;
	}

	.kh-citydir__label {
		font-size: 10px;
		padding: 3px 8px;
	}
}

/* Signpost placement panel — editors only, see page-virtual-tour-grad.php. */
/* The panel's own display rules (flex on the rows, block on the rest) outrank
   the hidden attribute, so say it once here — same trap as the offer sheet. */
.kh-citytool [hidden] {
	display: none;
}

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

.kh-citytool {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 80;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 270px;
	padding: 14px;
	border-radius: 10px;
	background: rgba(10, 16, 42, 0.95);
	border: 1px solid rgba(212, 168, 86, 0.3);
	box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.8);
	color: #fff;
	font-size: 12px;
}

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

.kh-citytool__what,
.kh-citytool__place,
.kh-citytool__copy {
	padding: 8px 10px;
	border-radius: 6px;
	font: inherit;
	cursor: pointer;
}

.kh-citytool__what {
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
}

.kh-citytool__place {
	border: 1px solid rgba(212, 168, 86, 0.45);
	background: transparent;
	color: #fff;
	transition: background-color 0.2s ease;
}

.kh-citytool__place:hover {
	background: rgba(212, 168, 86, 0.15);
}

.kh-citytool__place.is-armed {
	background: var(--kh-gold-light, #e8c98a);
	border-color: var(--kh-gold-light, #e8c98a);
	color: #0a102a;
}

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

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

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

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

.kh-citytool__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: 10px;
	resize: vertical;
}

.kh-citytool__copy {
	border: 0;
	background: var(--kh-gold-light, #e8c98a);
	color: #0a102a;
}
