/* "Mapa Zuberca" — ported from the "Mapa zaujimavosti Zuberec" design
   reference (claude.ai/design). Own type pair (Newsreader + Work Sans)
   and palette, same scoping principle as the typical-page header: this
   section is its own visual component on the homepage, not the
   Alegreya/Source Sans 3 the rest of the page uses. */

/* Ambient looping animations on 5 of the 11 points (mill wheel, boat,
   waterfall flow, two ski/gondola lifts, hiker on a path) — applied via
   inline `style="animation:..."` directly on the SVG elements in
   functions.php, same as the design reference does, so these keyframes
   just need to exist once, globally. */
@keyframes gondolaRide {
	0%   { transform: translate(-26px, 7px); }
	50%  { transform: translate(26px, -7px); }
	100% { transform: translate(-26px, 7px); }
}
@keyframes waterFlow { to { stroke-dashoffset: -44; } }
@keyframes wheelSpin { to { transform: rotate(360deg); } }
@keyframes boatRock {
	0%   { transform: translate(0,0) rotate(-5deg); }
	50%  { transform: translate(7px,1.5px) rotate(5deg); }
	100% { transform: translate(0,0) rotate(-5deg); }
}
@keyframes ripple { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.7; } }

.zb-region-map-section {
	box-sizing: border-box;
	padding: 40px 32px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	font-family: 'Work Sans', -apple-system, sans-serif;
	color: #1f2420;
}

.zb-region-map-header {
	width: 100%;
	max-width: 1400px;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
}
.zb-region-map-eyebrow {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 8px;
}
.zb-region-map-eyebrow-rule {
	width: 24px;
	height: 1px;
	background: #d9a84e;
	display: inline-block;
}
.zb-region-map-eyebrow span:last-child {
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: #a89f92;
	font-weight: 600;
}
.zb-region-map-h2 {
	font-family: 'Newsreader', serif;
	font-weight: 400;
	font-size: clamp(26px, 3.6vw, 36px);
	line-height: 1.1;
	margin: 0;
	color: #1a1f1b;
	letter-spacing: -0.015em;
}
.zb-region-map-h2 em {
	font-style: italic;
	color: #a97a2e;
}
.zb-region-map-hint {
	font-size: 13px;
	color: #8b8378;
	padding-bottom: 6px;
}

.zb-region-map-viewport {
	position: relative;
	width: 100%;
	max-width: 1400px;
	aspect-ratio: 16 / 9;
	border-radius: 26px;
	overflow: hidden;
	background: #f2ecdf;
	border: 1px solid rgba(31, 36, 32, 0.12);
	box-shadow: 0 26px 64px rgba(26, 31, 27, 0.1);
}

.zb-region-map-art {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.zb-region-camera {
	transition: transform 0.9s cubic-bezier(0.22, 0.75, 0.2, 1);
}

/* Points of interest: ink by default, gold when selected, dimmed when a
   *different* point is selected — same three-state look the reference
   drives via inline stroke bindings, done here with two toggled classes
   instead. Label font-size shrinks once any point is picked, matching the
   reference's labelSize behaviour (17 -> 9). */
.zb-region-poi {
	stroke: #2c332c;
	cursor: pointer;
	transform-box: fill-box;
	transform-origin: center;
	transition: stroke 0.3s ease, transform 0.22s ease;
}
.zb-region-poi:hover {
	stroke: #a97a2e;
	transform: scale(1.05);
}
.zb-region-poi-halo {
	fill: #f5f1e9;
	fill-opacity: 0.4;
	stroke-width: 1.1;
	stroke-dasharray: 2 6;
	opacity: 0.55;
}
.zb-region-poi text {
	fill: #2c332c;
	font-size: 17px;
	transition: font-size 0.3s ease, fill 0.3s ease;
}
.zb-region-map-viewport.has-selection .zb-region-poi {
	stroke: rgba(44, 51, 44, 0.3);
}
.zb-region-map-viewport.has-selection .zb-region-poi text {
	fill: rgba(44, 51, 44, 0.3);
	font-size: 9px;
}
/* Higher specificity than the dimmed rule above, so hovering a
   not-currently-selected point still previews gold+scale even while
   another point is selected — matches the reference's per-point
   style-hover, which applies unconditionally. */
.zb-region-map-viewport.has-selection .zb-region-poi:hover {
	stroke: #a97a2e;
}
.zb-region-poi.is-selected {
	stroke: #a97a2e;
}
.zb-region-poi.is-selected text {
	fill: #a97a2e;
}

.zb-region-card {
	position: absolute;
	left: 26px;
	top: 26px;
	width: 320px;
	max-width: calc(100% - 52px);
	background: #fffdfa;
	border: 1px solid rgba(31, 36, 32, 0.1);
	border-radius: 22px;
	padding: 22px 24px;
	box-shadow: 0 22px 54px rgba(26, 31, 27, 0.16);
	z-index: 6;
	opacity: 0;
	transform: translateY(14px);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
}
.zb-region-card.is-open {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}
.zb-region-card-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: rgba(31, 36, 32, 0.05);
	border: none;
	font-size: 15px;
	color: #5b6058;
	cursor: pointer;
	line-height: 1;
}
.zb-region-card-kind {
	font-size: 10px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #a89f92;
	font-weight: 600;
	margin-bottom: 7px;
}
.zb-region-card-name {
	font-family: 'Newsreader', serif;
	font-size: 25px;
	line-height: 1.18;
	color: #1a1f1b;
	margin-bottom: 10px;
	padding-right: 26px;
}
.zb-region-card-text {
	margin: 0 0 16px;
	font-size: 14px;
	line-height: 1.65;
	color: #5b6058;
}
.zb-region-card-meta {
	display: flex;
	align-items: center;
	gap: 16px;
	padding-top: 14px;
	border-top: 1px solid rgba(31, 36, 32, 0.1);
	font-size: 12.5px;
	color: #8b8378;
}
.zb-region-card-meta-sep {
	width: 1px;
	height: 12px;
	background: rgba(31, 36, 32, 0.16);
}

.zb-region-reset {
	position: absolute;
	right: 26px;
	bottom: 26px;
	display: none;
	align-items: center;
	gap: 8px;
	background: rgba(255, 253, 250, 0.94);
	border: 1px solid rgba(31, 36, 32, 0.14);
	border-radius: 999px;
	padding: 10px 18px;
	font-family: inherit;
	font-size: 13px;
	color: #1a1f1b;
	cursor: pointer;
	z-index: 6;
}
.zb-region-reset:hover {
	background: #fffdfa;
}
.zb-region-map-viewport.has-selection .zb-region-reset {
	display: flex;
}

.zb-region-chips {
	width: 100%;
	max-width: 1400px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.zb-region-chip {
	font-family: inherit;
	font-size: 13px;
	padding: 9px 16px;
	border-radius: 999px;
	cursor: pointer;
	transition: all 0.16s ease;
	background: transparent;
	color: #5b6058;
	border: 1px solid rgba(31, 36, 32, 0.16);
	font-weight: 400;
}
.zb-region-chip.is-active {
	background: #1a1f1b;
	color: #faf8f4;
	border-color: #1a1f1b;
	font-weight: 500;
}

@media (max-width: 640px) {
	.zb-region-map-section {
		padding: 28px 16px;
	}
	.zb-region-card {
		left: 12px;
		top: auto;
		bottom: 12px;
		width: auto;
		right: 12px;
		max-width: none;
	}
	.zb-region-reset {
		right: 12px;
		bottom: auto;
		top: 12px;
	}
}
