/* Facade floor navigator — dark minimalist shell, same language as the tours. */

body.facade-navigator-page {
	margin: 0;
	background-color: var(--kh-navy-950);
	color: #fff;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

.kh-facade {
	position: relative;
	width: 100%;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 150px 24px 60px;
	box-sizing: border-box;
	background: linear-gradient(155deg, var(--kh-navy-950) 0%, var(--kh-navy-900) 55%, var(--kh-navy-800) 100%);
}

/* Same faint grid + glow atmosphere as the homepage hero, so this page
   reads as part of the same visual family. The --embedded variant used on
   the homepage defines its own ::before/::after (a divider seam + corner
   glow) which simply wins when both classes are present — this pair only
   shows on the standalone /fasada/ page. */
.kh-facade::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background-image:
		linear-gradient(rgba(212, 168, 86, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(212, 168, 86, 0.05) 1px, transparent 1px);
	background-size: 64px 64px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 0%, transparent 75%);
	pointer-events: none;
}

.kh-facade::before {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 0;
	background:
		radial-gradient(ellipse 55% 50% at 50% 20%, rgba(212, 168, 86, 0.1) 0%, transparent 70%),
		radial-gradient(ellipse 45% 40% at 90% 95%, rgba(34, 61, 104, 0.5) 0%, transparent 70%);
	pointer-events: none;
}

.kh-facade__heading,
.kh-facade__frame {
	position: relative;
	z-index: 1;
}

/* The site-nav bar (fixed, every page) already carries the logo + Početna
   link, so this is just the page-specific "back to lokacija" link,
   positioned to sit just below the nav rather than a second fixed bar. */
.kh-facade__back {
	position: fixed;
	top: 148px;
	left: 28px;
	z-index: 5;
	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;
	transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.kh-facade__heading {
	text-align: center;
	max-width: 560px;
	margin: 0 0 40px;
}

.kh-facade__eyebrow {
	display: block;
	font-size: 12px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--kh-gold);
	margin-bottom: 14px;
}

.kh-facade__title {
	font-size: clamp(24px, 3.4vw, 34px);
	font-weight: 400;
	margin: 0 0 12px;
	text-wrap: balance;
}

.kh-facade__hint {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.55);
	margin: 0;
}

.kh-facade__heading .kh-availability {
	margin-top: 18px;
}

.kh-facade__frame {
	position: relative;
	width: min(1100px, 100%);
	aspect-ratio: var(--kh-facade-ratio, 1.5);
}

.kh-facade__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 4px;
	user-select: none;
	-webkit-user-drag: none;
}

.kh-facade__band {
	position: absolute;
	left: 0;
	width: 100%;
	background-color: rgba(212, 168, 86, 0);
	border-top: 1px solid transparent;
	border-bottom: 1px solid transparent;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.kh-facade__band.is-hovered {
	background-color: rgba(212, 168, 86, 0.24);
	border-top-color: rgba(212, 168, 86, 0.7);
	border-bottom-color: rgba(212, 168, 86, 0.7);
}

.kh-facade__tooltip {
	position: absolute;
	left: 50%;
	transform: translate(-50%, -50%) scale(0.96);
	z-index: 4;
	background: rgba(4, 16, 42, 0.92);
	border: 1px solid rgba(212, 168, 86, 0.4);
	border-radius: 6px;
	padding: 14px 22px;
	text-align: center;
	white-space: nowrap;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.2s ease, transform 0.2s ease;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kh-facade__tooltip.is-visible {
	opacity: 1;
	transform: translate(-50%, -50%) scale(1);
}

.kh-facade__tooltip strong {
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.kh-facade__tooltip span {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.65);
}

.kh-facade__tooltip-cta {
	color: var(--kh-gold-light) !important;
	letter-spacing: 0.04em;
	margin-top: 2px;
}

/* The shorthand reads as a spec line, the plain-language gloss under it as a
   caption — buyers mostly know "tri sprata", not "Po+3+Ps". */
.kh-facade__floor-structure strong {
	font-weight: 500;
}

.kh-facade__floor-structure span {
	display: block;
	margin-top: 2px;
	font-size: 0.85em;
	opacity: 0.7;
}

.kh-facade__filter {
	position: relative;
	z-index: 1;
	width: min(820px, 100%);
	margin: 0 0 32px;
	padding: 18px 24px;
	background: rgba(4, 16, 42, 0.55);
	border: 1px solid rgba(212, 168, 86, 0.25);
	border-radius: 8px;
	backdrop-filter: blur(6px);
}

.kh-facade__filter-title {
	margin: 0 0 16px;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--kh-gold-light);
}

.kh-facade__filter-row {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 28px;
}

.kh-facade__filter-row + .kh-facade__filter-row {
	margin-top: 18px;
}

.kh-facade__filter-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	flex: 1 1 130px;
}

.kh-facade__filter-row--actions {
	align-items: center;
}

/* --- Dual-handle range slider (price + kvadratura) -----------------
   Two native <input type=range> stacked on the same visual track: each
   one's own track/background is made transparent via appearance:none and
   pointer-events:none, leaving only its thumb clickable (pointer-events:
   auto on the thumb pseudo-element), so both handles stay independently
   draggable even though they occupy the same strip. */
.kh-facade__filter-field--range {
	flex: 1 1 260px;
	gap: 10px;
}

.kh-facade__filter-field-top {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
}

.kh-range__values {
	color: #fff;
	font-size: 13px;
}

.kh-range__values b {
	font-weight: 500;
	color: var(--kh-gold-light);
}

.kh-range {
	position: relative;
	height: 28px;
}

.kh-range__track {
	position: absolute;
	top: 50%;
	left: 8px;
	right: 8px;
	height: 4px;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.18);
	border-radius: 2px;
}

.kh-range__fill {
	position: absolute;
	top: 0;
	height: 100%;
	background: var(--kh-gold);
	border-radius: 2px;
}

.kh-range input[type="range"] {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 28px;
	margin: 0;
	background: transparent;
	appearance: none;
	-webkit-appearance: none;
	pointer-events: none;
}

.kh-range input[type="range"]::-webkit-slider-runnable-track {
	background: transparent;
	height: 4px;
}

.kh-range input[type="range"]::-moz-range-track {
	background: transparent;
	height: 4px;
	border: none;
}

.kh-range input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	pointer-events: auto;
	width: 16px;
	height: 16px;
	margin-top: -6px;
	border-radius: 50%;
	background: var(--kh-gold);
	border: 2px solid #fff;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.kh-range input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--kh-gold);
	border: 2px solid #fff;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.kh-range input[type="range"]:focus-visible::-webkit-slider-thumb {
	outline: 2px solid #fff;
	outline-offset: 1px;
}

.kh-facade__filter-submit {
	background-color: var(--kh-gold);
	border: 1px solid var(--kh-gold);
	border-radius: 999px;
	color: var(--kh-navy-950);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 10px 24px;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kh-facade__filter-submit:hover {
	background-color: var(--kh-gold-light);
	border-color: var(--kh-gold-light);
}

.kh-facade__filter-reset {
	margin-left: auto;
	background: none;
	border: none;
	color: var(--kh-gold-light);
	font-size: 12px;
	text-decoration: underline;
	cursor: pointer;
	padding: 0;
}

.kh-facade__filter-result {
	margin: 14px 0 0;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.6);
	min-height: 1em;
}

.kh-facade__filter-results {
	margin-top: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.kh-facade__filter-results-empty {
	margin: 0;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}

.kh-facade__filter-results-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px 16px;
	padding: 12px 16px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	color: #fff;
	text-decoration: none;
	font-size: 13px;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.kh-facade__filter-results-row:hover,
.kh-facade__filter-results-row:focus-visible {
	border-color: rgba(212, 168, 86, 0.6);
	background: rgba(255, 255, 255, 0.08);
}

.kh-facade__filter-results-row span:first-child {
	font-weight: 500;
}

.kh-facade__filter-results-cta {
	color: var(--kh-gold-light);
	margin-left: auto;
}

/* Hovering a floor that no longer has a match under the active filter
   still shows a tooltip (saying so) — pointer-events stay on so that
   hover keeps working — but the band reads as inert: dimmed, a plain
   cursor, and its click is cancelled in JS rather than navigating. */
.kh-facade__band--empty {
	opacity: 0.35;
	cursor: default;
}

.kh-facade__band--empty.is-hovered {
	background-color: rgba(255, 255, 255, 0.06);
	border-top-color: rgba(255, 255, 255, 0.25);
	border-bottom-color: rgba(255, 255, 255, 0.25);
}

.kh-facade__tooltip-cta--empty {
	color: rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 640px) {
	.kh-facade__filter {
		padding: 14px 16px;
	}

	.kh-facade__filter-reset {
		margin-left: 0;
		width: 100%;
		text-align: left;
	}
}

.kh-facade__floor-structure {
	position: relative;
	z-index: 1;
	text-align: center;
	margin-top: 16px;
	font-size: 12px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.45);
}

@media (max-width: 640px) {
	.kh-facade {
		padding-top: 84px;
	}
}

/* Embedded variant — dropped into the homepage's normal content flow
   instead of owning the whole viewport (no fixed topbar there). */
.kh-facade--embedded {
	position: relative;
	min-height: auto;
	padding: 110px 24px;
	background: linear-gradient(165deg, var(--kh-navy-950) 0%, var(--kh-navy-900) 100%);
	color: #fff;
	font-weight: 300;
	overflow: hidden;
}

.kh-facade--embedded::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--kh-navy-900) 0%, var(--kh-gold) 50%, var(--kh-navy-900) 100%);
	opacity: 0.7;
}

.kh-facade--embedded::after {
	content: '';
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 50% 45% at 10% 100%, rgba(212, 168, 86, 0.08) 0%, transparent 70%),
		radial-gradient(ellipse 45% 40% at 95% 0%, rgba(34, 61, 104, 0.55) 0%, transparent 70%);
	pointer-events: none;
}

.kh-facade--embedded .kh-facade__heading,
.kh-facade--embedded .kh-facade__frame {
	position: relative;
	z-index: 1;
}
