/* Garaža — modern schematic parking-space grid (14 columns, matching the
   architect's real "OSNOVA PODRUMA" layout), not an image. */

body.garaza-page {
	margin: 0;
	background-color: var(--kh-cream);
	color: var(--kh-navy-900);
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

.kh-garage {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px 100px;
}

.kh-garage__plan {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	margin-bottom: 48px;
}

.kh-garage__plan-title {
	font-size: 20px;
	font-weight: 500;
	margin: 0;
}

.kh-garage__plan-trigger {
	position: relative;
	display: block;
	width: 100%;
	max-width: 520px;
	padding: 0;
	border: 1px solid rgba(10, 30, 61, 0.12);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	cursor: pointer;
	box-shadow: 0 16px 32px -20px rgba(10, 30, 61, 0.35);
	transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.kh-garage__plan-trigger:hover,
.kh-garage__plan-trigger:focus-visible {
	border-color: rgba(212, 168, 86, 0.5);
	box-shadow: 0 20px 36px -18px rgba(10, 30, 61, 0.45);
}

.kh-garage__plan-trigger img {
	display: block;
	width: 100%;
	height: auto;
}

.kh-garage__plan-zoom {
	position: absolute;
	right: 10px;
	bottom: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: rgba(10, 30, 61, 0.85);
	color: #fff;
}

.kh-garage__plan-hint {
	margin: 0;
	font-size: 13px;
	color: rgba(10, 30, 61, 0.55);
}

.kh-garage__legend {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 24px;
	margin-bottom: 40px;
}

.kh-garage__legend-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	letter-spacing: 0.02em;
	color: rgba(10, 30, 61, 0.7);
}

.kh-garage__dot {
	width: 11px;
	height: 11px;
	border-radius: 50%;
	display: inline-block;
}

.kh-garage__dot--dostupan {
	background-color: #2e9e5b;
}

.kh-garage__dot--rezervisan {
	background-color: var(--kh-yellow);
}

.kh-garage__dot--prodat {
	background-color: #c83c32;
}

.kh-garage__scroll {
	overflow-x: auto;
	padding-bottom: 8px;
}

.kh-garage__grid {
	position: relative;
	box-sizing: border-box;
	display: grid;
	/* Column/row ratios AND the overall box shape are the real building
	   dimensions measured off the architect's "OSNOVA PODRUMA" PDF (point
	   units, used directly as fr ratios / aspect-ratio) — the grid's outer
	   rectangle is literally the same proportions as the real plan, not
	   just the cells within it. */
	grid-template-columns: 66.95fr 84.05fr 69.95fr 70.15fr 70.15fr 70.2fr 70.15fr 70.15fr 70.2fr 70.15fr 70.15fr 70.2fr 70.15fr 106.5fr;
	grid-template-rows: 147.1fr 153.1fr 136fr 136.1fr 153.1fr 148.6fr;
	aspect-ratio: 1029.1 / 874;
	gap: 3px;
	/* Whole map at 50% footprint — spaces themselves fill their tracks at
	   full size (no per-space cap), only the overall plan is shrunk. */
	width: 100%;
	max-width: 500px;
	min-width: 340px;
	margin: 0 auto;
	padding: 10px;
	background: linear-gradient(165deg, var(--kh-navy-900) 0%, var(--kh-navy-950) 100%);
	border-radius: 12px;
}

.kh-garage__space {
	/* Grid tracks keep the real (unequal) column widths measured off the
	   plan, so each space fills its true track at full size — the whole
	   plan is shrunk uniformly via .kh-garage__grid's max-width instead of
	   capping individual spaces, so proportions stay true to the plan. */
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	font-family: inherit;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0;
	white-space: nowrap;
	color: #fff;
	cursor: default;
	padding: 0;
	margin: 0;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kh-garage__space:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.5);
}

.kh-garage__space--dostupan {
	background-color: rgba(46, 158, 91, 0.15);
	border: 1px solid rgba(46, 158, 91, 0.6);
	color: rgba(255, 255, 255, 0.85);
}

.kh-garage__space--rezervisan {
	background-color: var(--kh-yellow);
	color: #2a2205;
}

.kh-garage__space--prodat {
	background-color: rgba(200, 60, 50, 0.75);
}

.kh-garage__space--interactive {
	border: 1px solid rgba(46, 158, 91, 0.6);
	cursor: pointer;
	flex-direction: column;
	gap: 2px;
	z-index: 1;
}

.kh-garage__space--interactive .kh-garage__space-detail {
	display: none;
}

.kh-garage__space--interactive.is-expanded {
	position: relative;
	z-index: 5;
	width: auto;
	min-width: 110px;
	max-width: none;
	padding: 10px 12px;
	border-radius: 8px;
	background: var(--kh-navy-800);
	border-color: var(--kh-gold-light);
	box-shadow: 0 16px 32px -10px rgba(0, 0, 0, 0.65);
	transform: scale(1.05);
}

.kh-garage__space--interactive.is-expanded .kh-garage__space-number {
	font-size: 13px;
	letter-spacing: 0.02em;
}

.kh-garage__space--interactive.is-expanded .kh-garage__space-detail {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.kh-garage__space-price {
	font-size: 12px;
	color: var(--kh-gold-light);
}

.kh-garage__space-reserve {
	display: inline-block;
	padding: 5px 12px;
	font-size: 11px;
	letter-spacing: 0.03em;
	color: var(--kh-navy-950);
	background: var(--kh-gold-light);
	border-radius: 999px;
	transition: background-color 0.2s ease;
}

.kh-garage__space-reserve:hover {
	background: #fff;
}

.kh-garage__space--interactive.is-selected {
	background-color: var(--kh-yellow);
	border-color: var(--kh-yellow);
	color: #2a2205;
	pointer-events: none;
}

.kh-garage__stairs {
	grid-column: 7 / 9;
	grid-row: 3 / 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.06);
	border: 1px dashed rgba(255, 255, 255, 0.25);
	color: rgba(255, 255, 255, 0.5);
	font-size: 11px;
	letter-spacing: 0.03em;
	text-align: center;
}

.kh-garage__aisle {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 10px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.25);
	border-top: 1px dashed rgba(255, 255, 255, 0.12);
	border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.kh-garage__aisle--1 {
	grid-column: 1 / 15;
	grid-row: 2;
}

.kh-garage__aisle--2 {
	grid-column: 1 / 15;
	grid-row: 5;
}

.kh-garage__entrance {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 16px;
	padding: 0 4px;
	color: var(--kh-gold-light);
}

.kh-garage__entrance svg {
	flex: 0 0 auto;
	animation: kh-garage-entrance-bounce 1.8s ease-in-out infinite;
}

.kh-garage__entrance span {
	font-size: 12px;
	letter-spacing: 0.03em;
	white-space: nowrap;
}

@keyframes kh-garage-entrance-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-4px); }
}

.kh-garage__toast {
	position: fixed;
	left: 50%;
	bottom: 100px;
	z-index: 60;
	transform: translate(-50%, 12px);
	padding: 12px 22px;
	background: var(--kh-navy-950);
	color: #fff;
	border: 1px solid rgba(212, 168, 86, 0.4);
	border-radius: 999px;
	font-size: 13px;
	letter-spacing: 0.02em;
	box-shadow: 0 16px 32px -12px rgba(0, 0, 0, 0.5);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
}

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

@media (max-width: 640px) {
	.kh-garage__legend {
		gap: 16px;
	}

	/* Cela garaža je na telefonu stajala u 342px: mesto široko 19px, broj od
	   9px — ni pročitati ni pogoditi prstom. Sada plan zadržava čitljivu
	   veličinu i kliza se levo-desno unutar svog okvira; stranica se i dalje
	   ne pomera postrance. */
	.kh-garage__grid {
		min-width: 620px;
		max-width: none;
	}

	.kh-garage__scroll {
		-webkit-overflow-scrolling: touch;
	}

	.kh-garage__space-number {
		font-size: 11px;
	}

	.kh-garage__space-price,
	.kh-garage__space-reserve {
		font-size: 10px;
	}
}

/* Way back up into the building tour — the garage is a landing point from
   the lift's "Podrum" plate, not a dead end. */
.kh-garage__back-to-tour {
	display: flex;
	justify-content: center;
	margin: 34px 0 4px;
}

.kh-garage__back-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	color: #fff;
	background: linear-gradient(135deg, var(--kh-navy-800) 0%, var(--kh-navy-950) 100%);
	text-decoration: none;
	font-size: 14px;
	letter-spacing: 0.03em;
	box-shadow: 0 10px 24px -12px rgba(10, 30, 61, 0.45);
	transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.kh-garage__back-link svg {
	stroke: currentColor;
	flex: 0 0 auto;
}

.kh-garage__back-link span {
	transition: transform 0.3s ease;
}

.kh-garage__back-link:hover,
.kh-garage__back-link:focus-visible {
	background: linear-gradient(135deg, var(--kh-gold-deep) 0%, var(--kh-gold) 100%);
	box-shadow: 0 12px 28px -12px rgba(212, 168, 86, 0.55);
	transform: translateY(-2px);
}

.kh-garage__back-link:hover span {
	transform: translateX(3px);
}
