/**
 * V??no??n?? trhy ??? mapa st??nk??
 * Frontend styles. All rules are scoped under .vtm.
 */

.vtm {
	--vtm-accent: #0f3d2e;
	--vtm-gold: #c8a24a;
	--vtm-ink: #1b211d;
	--vtm-muted: #66665e;
	--vtm-paper: #fbf8f0;
	--vtm-card: #fffdf8;
	--vtm-line: #e6decc;
	--vtm-radius: 20px;
	--vtm-zoom: 1;
	--vtm-shadow: 0 18px 40px -28px rgba(18, 32, 24, 0.55);

	box-sizing: border-box;
	width: 100%;
	margin: 0 auto;
	color: var(--vtm-ink);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

.vtm *,
.vtm *::before,
.vtm *::after {
	box-sizing: border-box;
}

.vtm [hidden] {
	display: none !important;
}

.vtm svg {
	display: block;
}

/* -------------------------------------------------- head */

.vtm__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px 28px;
	margin: 0 0 20px;
	text-align:center;
}

.vtm__head-text {
	text-transform: uppercase;

}

.vtm__heading {
	margin: 0;
	color: var(--vtm-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.55rem, 2.6vw, 2.15rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
}

.vtm__sub {
	margin: 8px 0 0;
	color: var(--vtm-muted);
	font-size: 0.98rem;
}

.vtm__views {
	display: inline-flex;
	flex: 0 0 auto;
	gap: 3px;
	padding: 4px;
	background: color-mix(in srgb, var(--vtm-accent) 7%, #fff);
	border: 1px solid var(--vtm-line);
	border-radius: 999px;
}

.vtm__view-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 6px 18px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: var(--vtm-muted);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 650;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.vtm__view-btn:hover {
	/*color: var(--vtm-accent);*/
}

.vtm__view-btn.is-active {
	background: var(--vtm-card);
	color: var(--vtm-accent);
	box-shadow: 0 2px 8px rgba(20, 32, 24, 0.12);
}

/* -------------------------------------------------- layout */

.vtm__layout {
	display: block;
	min-width: 0;
}

.vtm__main {
	min-width: 0;
}

/* -------------------------------------------------- map */

/
.vtm__map-card {
	padding: 10px;
/*	background: var(--vtm-card);
	border: 1px solid var(--vtm-line);
	border-radius: var(--vtm-radius);
	box-shadow: var(--vtm-shadow);*/
}

.vtm__map-viewport {
	position: relative;
	overflow: auto;
	width: 100%;
	max-width: 100%;
	aspect-ratio: 1200 / 815;
	background: #eee8d9;
	border-radius: calc(var(--vtm-radius) - 8px);
	overscroll-behavior: contain;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--vtm-accent) 35%, #fff) transparent;
	-webkit-overflow-scrolling: touch;
}

.vtm__map-viewport::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

.vtm__map-viewport::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--vtm-accent) 28%, #fff);
	border: 3px solid var(--vtm-card);
	border-radius: 999px;
}

.vtm__map-inner {
	position: relative;
	width: calc(100% * var(--vtm-zoom));
	aspect-ratio: 1200 / 815;
}

.vtm__map-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: fill;
	pointer-events: none;
	user-select: none;
	-webkit-user-drag: none;
}

/* Rectangle marking a stand. The number badge stays in the middle so the
   marking is readable even when the drawn rectangle is small. */

.vtm__marker {
	position: absolute;
	z-index: 2;
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 2px solid var(--vtm-gold);
	border-radius: 8px;
	background: rgba(15, 61, 46, 0.28);
	background: color-mix(in srgb, var(--vtm-accent) 30%, transparent);
	color: #fff8e7;
	font: inherit;
	cursor: pointer;
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	box-shadow:
		0 0 0 1px rgba(255, 253, 246, 0.35),
		0 4px 14px rgba(10, 22, 16, 0.22);
	transition: background-color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

/* Guarantee a comfortable touch target even when the drawn rectangle is
   narrow: the hit area never gets smaller than 44 x 44 px. */
.vtm__marker::after {
/*	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: max(100%, 44px);
	height: max(100%, 44px);
	transform: translate(-50%, -50%);*/
}

.vtm__marker-num {
	display: grid;
	place-items: center;
	min-width: clamp(22px, 2.4vw, 28px);
	min-height: clamp(22px, 2.4vw, 28px);
	padding: 0 4px;
	border: 2px solid var(--vtm-gold);
	border-radius: 999px;
	background: var(--vtm-accent);
	color: #fff8e7;
	font-size: clamp(11px, 1.15vw, 15px);
	font-weight: 800;
	line-height: 1;
	box-shadow: 0 2px 6px rgba(10, 22, 16, 0.35);
	pointer-events: none;
}

.vtm__marker:hover {
	z-index: 3;
	border-color: #fffdf6;
	background: color-mix(in srgb, var(--vtm-gold) 34%, transparent);
	box-shadow:
		0 0 0 3px color-mix(in srgb, var(--vtm-gold) 35%, transparent),
		0 6px 18px rgba(10, 22, 16, 0.35);
	border:1px solid #BE9968 !important;
}

.vtm__marker:focus-visible {
	z-index: 3;
}

.vtm__marker.is-active {
	z-index: 4;
	border-color: #fffdf6;
	background: color-mix(in srgb, var(--vtm-gold) 48%, transparent);
	box-shadow:
		0 0 0 4px color-mix(in srgb, var(--vtm-gold) 45%, transparent),
		0 8px 22px rgba(10, 22, 16, 0.4);
}

.vtm__marker.is-active .vtm__marker-num {
	background: var(--vtm-gold);
	border-color: #fffdf6;
	color: #1d2a22;
}

/* Numbers printed in the map image: transparent, clickable rectangles.
   The printed number stays visible, only a frame appears on hover/focus. */

.vtm--cisla .vtm__marker {
	border-color: transparent;
	background: none;
	box-shadow: none;
	color: transparent;
}

.vtm--cisla .vtm__marker-num {
	display: none;
}

.vtm--cisla .vtm__marker::before {
/*	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid transparent;
	border-radius: 8px;
	transition: border-color 0.16s ease, box-shadow 0.16s ease;*/
}

.vtm--cisla .vtm__marker:hover,
.vtm--cisla .vtm__marker:focus-visible,
.vtm--cisla .vtm__marker.is-active {
	border-color: transparent;
	background: none;
	box-shadow: none;
}

.vtm--cisla .vtm__marker:hover::before,
.vtm--cisla .vtm__marker:focus-visible::before {
	border-color: var(--vtm-gold);
	box-shadow: 0 0 0 3px rgba(255, 253, 246, 0.85);
}

.vtm--cisla .vtm__marker.is-active {
	z-index: 4;
}

.vtm--cisla .vtm__marker.is-active::before {
	border-color: var(--vtm-gold);
	box-shadow:
		0 0 0 3px rgba(255, 253, 246, 0.9),
		0 0 16px 5px color-mix(in srgb, var(--vtm-gold) 55%, transparent);
}

/* -------------------------------------------------- toolbar */

.vtm__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	flex-wrap: wrap;
	padding: 14px 4px 0;
}

@media (min-width: 899px) {
	.vtm__toolbar {
		display:none !important;
	}
}

.vtm__hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	color: var(--vtm-muted);
	font-size: 0.85rem;
	line-height: 1.4;
}

.vtm__hint svg {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	color: var(--vtm-gold);
}

.vtm__zoom {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	padding: 4px;
	background: var(--vtm-card);
	border: 1px solid var(--vtm-line);
	border-radius: 999px;
}

.vtm__zoom-btn {
	appearance: none;
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--vtm-accent);
	font: inherit;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.vtm__zoom-btn:hover:not(:disabled) {
	background: color-mix(in srgb, var(--vtm-accent) 9%, #fff);
}

.vtm__zoom-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.vtm__zoom-value {
	min-width: 52px;
	color: var(--vtm-ink);
	font-size: 0.78rem;
	font-weight: 650;
	font-variant-numeric: tabular-nums;
	text-align: center;
}

.vtm__zoom-reset {
	appearance: none;
	min-height: 34px;
	padding: 0 12px;
	border: 0;
	border-left: 1px solid var(--vtm-line);
	border-radius: 0 999px 999px 0;
	background: transparent;
	color: var(--vtm-muted);
	font: inherit;
	font-size: 0.78rem;
	font-weight: 600;
	cursor: pointer;
}

.vtm__zoom-reset:hover:not(:disabled) {
	color: var(--vtm-accent);
}

.vtm__zoom-reset:disabled {
	opacity: 0.4;
	cursor: default;
}

/* -------------------------------------------------- list */

.vtm__list {
	display: grid;
	gap: 10px;
}

.vtm__card {
	appearance: none;
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	min-height: 64px;
	margin: 0;
	padding: 12px 16px;
	border: 1px solid var(--vtm-line);
	border-radius: 16px;
	background: var(--vtm-card);
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	box-shadow: 0 8px 24px -22px rgba(18, 32, 24, 0.6);
	transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.vtm__card:hover,
.vtm__card:focus-visible {
	border-color: color-mix(in srgb, var(--vtm-gold) 65%, #fff);
	transform: translateY(-1px);
	box-shadow: 0 14px 30px -22px rgba(18, 32, 24, 0.5);
	background-color:transparent;
	color: #14336A !important;
}

.vtm__card.is-active {
	border-color: var(--vtm-gold);
	background: color-mix(in srgb, var(--vtm-gold) 7%, var(--vtm-card));
}

.vtm__card-num {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--vtm-accent);
	color: #fff8e7;
	font-size: 0.95rem;
	font-weight: 800;
	line-height: 1;
}

.vtm__card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.vtm__card-name {
	font-weight: 700;
	line-height: 1.3;
}

.vtm__card-cat {
	color: var(--vtm-muted);
	font-size: 0.8rem;
	line-height: 1.3;
}

.vtm__card-arrow {
	flex: 0 0 auto;
	color: var(--vtm-gold);
	font-size: 1.5rem;
	line-height: 1;
}

.vtm__none {
	margin: 0;
	padding: 24px;
	color: var(--vtm-muted);
	text-align: center;
}

/* -------------------------------------------------- panel */

.vtm__panel {
	position: fixed;
	z-index: 99999;
	top: 50%;
	left: 50%;
	display: flex;
	flex-direction: column;
	width: min(560px, calc(100vw - 32px));
	max-height: min(82vh, 720px);
	max-height: min(82dvh, 720px);
	padding: 26px 24px;
	overflow: hidden;
	background: var(--vtm-card);
	border: 1px solid var(--vtm-line);
	border-radius: var(--vtm-radius);
	box-shadow:
		0 32px 70px -18px rgba(9, 20, 15, 0.55),
		0 0 0 1px rgba(9, 20, 15, 0.04);
	opacity: 0;
	visibility: hidden;
	transform: translate(-50%, -50%) translateY(14px) scale(0.985);
	transition: opacity 0.2s ease, transform 0.22s ease, visibility 0s linear 0.22s;
	overscroll-behavior: contain;
}

.vtm.is-open .vtm__panel {
	opacity: 1;
	visibility: visible;
	transform: translate(50%, -50%);
	transition: opacity 0.2s ease, transform 0.26s cubic-bezier(0.22, 0.7, 0.25, 1), visibility 0s;
}

.vtm__panel-scroll {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding-right: 2px;
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--vtm-accent) 30%, #fff) transparent;
}

.vtm__sheet-handle {
	display: none;
}

.vtm__close {
	appearance: none;
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 4;
	display: grid;
	place-items: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 1px solid var(--vtm-line);
	border-radius: 50%;
	background: var(--vtm-card);
	color: var(--vtm-muted);
	cursor: pointer;
	transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.vtm__close svg {
	width: 18px;
	height: 18px;
}

.vtm__close:hover,
.vtm__close:focus-visible {
	color: var(--vtm-accent);
	border-color: var(--vtm-gold);
	background: color-mix(in srgb, var(--vtm-gold) 9%, #fff);
}

/* detail */

.vtm__detail {
	padding: 2px 2px 6px;
	animation: vtm-fade-in 0.22s ease both;
}

.vtm__detail-head {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding-right: 38px;
}

.vtm__num {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border: 2px solid var(--vtm-gold);
	border-radius: 50%;
	background: var(--vtm-accent);
	color: #fff8e7;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.3rem;
	font-weight: 700;
	line-height: 1;
}

.vtm__detail-headline {
	min-width: 0;
}

.vtm__kicker {
	margin: 0 0 2px;
	color: var(--vtm-gold);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.09em;
	line-height: 1.3;
	text-transform: uppercase;
}

.vtm__title {
	margin: 0;
	color: var(--vtm-accent);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1.42rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.15;
	text-transform: uppercase;
}

.vtm__title:focus-visible {
	outline: 3px solid var(--vtm-gold);
	outline-offset: 4px;
	border-radius: 3px;
}

.vtm__chip {
	display: inline-block;
	margin: 16px 0 0;
	padding: 4px 11px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--vtm-accent) 8%, #fff);
	color: var(--vtm-accent);
	font-size: 0.76rem;
	font-weight: 650;
	letter-spacing: 0.02em;
	line-height: 1.4;
}

.vtm__desc {
	margin: 14px 0 0;
	color: #3d423a;
	font-size: 0.94rem;
}

.vtm__desc p {
	margin: 0 0 0.75em;
}

.vtm__desc p:last-child {
	margin-bottom: 0;
}

.vtm__groups {
	margin: 20px 0 0;
}

.vtm__group + .vtm__group {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px dashed var(--vtm-line);
}

.vtm__group h4 {
	margin: 0 0 8px;
	color: var(--vtm-ink);
	font-size: 0.8rem;
	font-weight: 750;
	letter-spacing: 0.06em;
	line-height: 1.3;
	text-transform: uppercase;
}

.vtm__group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vtm__group li {
	position: relative;
	margin: 0;
	padding: 3px 0 3px 18px;
	font-size: 0.92rem;
	line-height: 1.45;
}

.vtm__group li::before {
	content: "";
	position: absolute;
	top: 0.85em;
	left: 2px;
	width: 5px;
	height: 5px;
	margin-top: -2.5px;
	border-radius: 50%;
	background: var(--vtm-gold);
}

.vtm__note {
	margin: 18px 0 0;
	padding: 10px 12px;
	border-left: 3px solid var(--vtm-gold);
	border-radius: 0 8px 8px 0;
	background: color-mix(in srgb, var(--vtm-gold) 8%, #fff);
	color: #4a4836;
	font-size: 0.84rem;
}

/* -------------------------------------------------- backdrop / nojs */

.vtm__backdrop {
	position: fixed;
	inset: 0;
	z-index: 99998;
	display: block;
	background: rgba(9, 20, 15, 0.55);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.vtm.is-open .vtm__backdrop {
	opacity: 1;
	visibility: visible;
	transition: opacity 0.2s ease, visibility 0s;
}

.vtm__noscript {
	margin-top: 22px;
	padding: 18px 20px;
	border: 1px solid var(--vtm-line);
	border-radius: 16px;
	background: var(--vtm-paper);
}

.vtm__noscript h3 {
	margin: 0 0 10px;
	font-size: 1.1rem;
}

.vtm__noscript details {
	padding: 8px 0;
	border-top: 1px solid var(--vtm-line);
}

.vtm__noscript summary {
	cursor: pointer;
	font-weight: 650;
}

/* -------------------------------------------------- focus */

.vtm :is(button, a, summary):focus-visible {
	outline: 3px solid var(--vtm-gold);
	outline-offset: 2px;
}

/* -------------------------------------------------- desktop */

@media (min-width: 900px) {
	.vtm__panel-scroll {
		padding-right: 4px;
	}
}

/* -------------------------------------------------- tablet */

@media (max-width: 899px) {
	.vtm__head {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
	}

	.vtm__views {
		align-self: stretch;
		display: flex;
	}

	.vtm__view-btn {
		flex: 1 1 0;
		min-height: 42px;
	}

	.vtm__layout {
		display: block;
	}

	.vtm__map-card {
		padding: 7px;
		border-radius: 16px;
	}

	.vtm__map-viewport {
		border-radius: 11px;
	}

	.vtm__marker {
		border-radius: 6px;
	}

	.vtm__marker-num {
		min-width: 27px;
		min-height: 27px;
		padding: 0 5px;
		font-size: 14px;
	}

	.vtm--cisla .vtm__marker::before {
		border-radius: 6px;
	}

	.vtm__toolbar {
		padding-top: 12px;
	}

	.vtm__hint {
		order: 2;
		flex-basis: 100%;
		font-size: 0.8rem;
	}

	.vtm__zoom {
		margin-left: auto;
	}

	/* bottom sheet */
	.vtm__panel {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: 88vh;
		max-height: 88dvh;
		padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
		border-width: 1px 0 0;
		border-radius: 22px 22px 0 0;
		box-shadow: 0 -18px 50px -20px rgba(9, 20, 15, 0.55);
		transform: translateY(104%);
		transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 0.7, 0.25, 1), visibility 0s linear 0.28s;
	}

	.vtm.is-open .vtm__panel {
		transform: translateY(0);
		transition: opacity 0.2s ease, transform 0.3s cubic-bezier(0.22, 0.7, 0.25, 1), visibility 0s;
	}

	.vtm__sheet-handle {
		display: block;
		flex: 0 0 auto;
		width: 48px;
		height: 5px;
		margin: 0 auto 12px;
		border-radius: 999px;
		background: color-mix(in srgb, var(--vtm-accent) 22%, #fff);
	}

	.vtm__panel-scroll {
		overflow-y: auto;
		padding-right: 0;
		-webkit-overflow-scrolling: touch;
	}

	.vtm__close {
		top: 18px;
		right: 14px;
		width: 44px;
		height: 44px;
	}

	.vtm__detail-head {
		padding-right: 46px;
	}

	.vtm__num {
		width: 46px;
		height: 46px;
		font-size: 1.15rem;
	}

	.vtm__title {
		font-size: 1.3rem;
	}

	.vtm__card {
		min-height: 62px;
	}

	.vtm__card-num {
		width: 38px;
		height: 38px;
	}
}


html.vtm-lock body {
	overflow: hidden;
}

@media (max-width: 480px) {
	.vtm__heading {
		font-size: 1.42rem;
	}

	.vtm__sub {
		font-size: 0.92rem;
	}

	.vtm__map-viewport {
		aspect-ratio: 1200 / 815;
	}

	.vtm__map-card {
		padding: 6px;
	}

	.vtm__zoom-value {
		min-width: 46px;
	}

	.vtm__zoom-reset {
		padding: 0 9px;
		font-size: 0.72rem;
	}

	.vtm__panel {
		max-height: 90vh;
		max-height: 90dvh;
	}
}

/* -------------------------------------------------- legacy fallbacks */

/* Older browsers without color-mix() get equivalent static tints. */

@supports not (background: color-mix(in srgb, #000 10%, #fff)) {
	.vtm__views {
		background: #f0f4f2;
	}

	.vtm__map-viewport {
		scrollbar-color: #aabeb6 transparent;
	}

	.vtm__map-viewport::-webkit-scrollbar-thumb {
		background: #bdccc5;
	}

	.vtm__zoom-btn:hover:not(:disabled) {
		background: #eef2f0;
	}

	.vtm__card:hover,
	.vtm__card:focus-visible {
		border-color: #e0cd94;
	}

	.vtm__card.is-active {
		background: #fbf7ec;
	}

	.vtm__panel-scroll {
		scrollbar-color: #b5c6be transparent;
	}

	.vtm__close:hover,
	.vtm__close:focus-visible {
		background: #faf5ea;
	}

	.vtm__chip {
		background: #f0f4f2;
	}

	.vtm__note {
		background: #f9f4e8;
	}

	.vtm__sheet-handle {
		background: #c9d5cf;
	}
}

/* -------------------------------------------------- motion / contrast */

@keyframes vtm-fade-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vtm *,
	.vtm *::before,
	.vtm *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

@media (forced-colors: active) {
	.vtm__marker,
	.vtm__card,
	.vtm__panel,
	.vtm__close {
		border: 2px solid CanvasText;
	}
}

.vtm__views button:hover,.vtm__list button:active{
	background-color: #BF9A69 !important;
}
.vtm__card-name:hover{
	color: #14336A !important;
}
