/* KM Image Map — frontend v2.5.0 */

/* KRYTYCZNE: atrybut [hidden] musi wygrywać z display:flex/block klas
   (i z ewentualnymi stylami motywu) — inaczej lightbox/artboardy
   renderują się mimo ukrycia. */
.km-imap [hidden],
.km-imap-lb[hidden],
.km-imap-board[hidden],
.km-imap-tooltip[hidden] {
	display: none !important;
}

.km-imap {
	margin: 0 auto;
}

/* Fullwidth — wyłamanie z kontenera motywu */
.km-imap-fullwidth {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Magazyn serwerowo wyrenderowanych tooltipów — poza ekranem,
   ale z realnymi wymiarami, żeby skrypty (flipbooki itd.) mogły się zainicjalizować. */
.km-imap-tts {
	position: absolute;
	left: -99999px;
	top: 0;
	width: 480px;
	overflow: hidden;
}

.km-imap-boards {
	position: relative;
}

.km-imap-boards .km-imap-inner,
.km-imap-boards .km-imap-embed-holder {
	transition: filter 0.35s ease;
}

.km-imap-boards.km-dim .km-imap-inner,
.km-imap-boards.km-dim .km-imap-embed-holder {
	filter: brightness(0.5) saturate(0.85);
}

@media (prefers-reduced-motion: reduce) {
	.km-imap-boards .km-imap-inner,
	.km-imap-boards .km-imap-embed-holder {
		transition: none !important;
	}
}

/* --- artboard typu osadzenie HTML (gigapixele, panoramy) --- */

.km-imap-board-embed {
	overflow: hidden;
	line-height: normal;
}

.km-imap-embed-holder {
	position: relative;
	width: 100%;
	background: #101215;
}

.km-imap-embed-holder > iframe {
	position: absolute !important;
	inset: 0 !important;
	width: 100% !important;
	height: 100% !important;
	border: 0 !important;
}

.km-imap-embed-holder > div,
.km-imap-embed-holder > embed,
.km-imap-embed-holder > object {
	width: 100%;
	height: 100%;
}

.km-imap-board {
	position: relative;
	display: block;
	line-height: 0;
	overflow: hidden;
}

.km-imap-inner {
	position: relative;
	transform-origin: 0 0;
	will-change: transform;
}

.km-imap-board.km-zoomed { cursor: grab; }
.km-imap-board.km-zoomed:active { cursor: grabbing; }

.km-imap-img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-select: none;
}

.km-imap-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.km-imap-shape {
	transition: fill-opacity 0.15s ease, fill 0.15s ease, opacity 0.15s ease;
}

.km-imap-interactive {
	cursor: pointer;
	outline: none;
}

.km-imap-interactive:focus-visible {
	stroke: #ffd000;
	stroke-width: 3;
}

.km-imap-text {
	paint-order: stroke fill;
	stroke: rgba(255, 255, 255, 0.65);
	stroke-width: 3;
}

/* --- stała etykieta pod obiektem --- */

.km-imap-label {
	pointer-events: none;
	fill: #1d2327;
	paint-order: stroke fill;
	stroke: rgba(255, 255, 255, 0.9);
	stroke-width: 4;
	stroke-linejoin: round;
}

/* --- pinezka z ikoną --- */

.km-imap-icon {
	transform-box: fill-box;
	transform-origin: center;
	transition: transform 0.15s ease;
}

.km-imap-icon.km-icon-hover {
	transform: scale(1.18);
}

/* --- podświetlenie z deep-linku --- */

.km-imap-flash {
	animation: km-imap-flash 1s ease-in-out 3;
}

@keyframes km-imap-flash {
	0%, 100% { filter: none; }
	50% { filter: drop-shadow(0 0 10px #ffd000) drop-shadow(0 0 4px #ffd000); }
}

/* --- kontrolki zoom --- */

.km-imap-zoomctl {
	position: absolute;
	right: 10px;
	bottom: 10px;
	z-index: 25;
	display: flex;
	flex-direction: column;
	gap: 4px;
	line-height: normal;
}

.km-imap-zoomctl button {
	appearance: none;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 6px;
	background: rgba(29, 35, 39, 0.85);
	color: #fff;
	font-size: 15px;
	cursor: pointer;
}

.km-imap-zoomctl button:hover {
	background: rgba(29, 35, 39, 1);
}

/* --- lightbox --- */

.km-imap-lb {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	line-height: normal;
}

.km-imap-lb-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(10, 12, 14, 0.82);
}

.km-imap-lb-panel {
	position: relative;
	background: #fff;
	color: #1d2327;
	border-radius: 10px;
	max-width: min(900px, 94vw);
	width: 100%;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
	overflow: hidden;
}

.km-imap-lb-close {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	appearance: none;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(29, 35, 39, 0.08);
	color: #1d2327;
	font-size: 20px;
	cursor: pointer;
}

.km-imap-lb-close:hover {
	background: rgba(29, 35, 39, 0.18);
}

.km-imap-lb-title {
	font-size: 18px;
	font-weight: 600;
	padding: 14px 52px 10px 18px;
}

.km-imap-lb-body {
	padding: 0 18px 18px;
	overflow: auto;
}

.km-imap-lb-title:empty + .km-imap-lb-body,
.km-imap-lb-title[style*="none"] + .km-imap-lb-body {
	padding-top: 46px;
}

.km-imap-lb-body img,
.km-imap-lb-body video {
	max-width: 100%;
	height: auto;
}

.km-imap-lb-body iframe {
	max-width: 100%;
	border: 0;
}

.km-imap-lb-body iframe:not([width]) {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

html.km-imap-lb-open,
html.km-imap-lb-open body {
	overflow: hidden;
}

/* --- pulsująca pinezka --- */

.km-imap-pulse {
	pointer-events: none;
	transform-box: fill-box;
	transform-origin: center;
	animation: km-imap-pulse 1.8s ease-out infinite;
}

@keyframes km-imap-pulse {
	0% { transform: scale(1); opacity: 0.6; }
	80% { transform: scale(2.4); opacity: 0; }
	100% { transform: scale(2.4); opacity: 0; }
}

/* --- animacje wejścia --- */

.km-anim-fade,
.km-anim-grow {
	transform-box: fill-box;
	transform-origin: center;
	animation-fill-mode: backwards;
}

.km-anim-fade {
	animation-name: km-imap-fadein;
	animation-duration: 0.5s;
}

.km-anim-grow {
	animation-name: km-imap-growin;
	animation-duration: 0.45s;
	animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes km-imap-fadein {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes km-imap-growin {
	from { opacity: 0; transform: scale(0.3); }
	to { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
	.km-imap-pulse,
	.km-anim-fade,
	.km-anim-grow {
		animation: none !important;
	}
}

/* --- przełącznik artboardów --- */

.km-imap-switch {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding: 8px 0;
	justify-content: center;
	line-height: normal;
}

/* Układ boczny: lista pionowa obok mapy */
.km-imap-pos-left,
.km-imap-pos-right {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

.km-imap-pos-left .km-imap-boards,
.km-imap-pos-right .km-imap-boards {
	flex: 1;
	min-width: 0;
}

.km-imap-switch-v {
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;
	padding: 0;
	flex-shrink: 0;
	max-width: 220px;
}

.km-imap-switch-v button {
	text-align: left;
	border-radius: 6px;
	width: 100%;
}

@media (max-width: 700px) {
	.km-imap-pos-left,
	.km-imap-pos-right {
		flex-direction: column;
		align-items: stretch;
	}

	.km-imap-pos-right {
		flex-direction: column-reverse;
	}

	.km-imap-switch-v {
		flex-direction: row;
		flex-wrap: wrap;
		max-width: none;
	}

	.km-imap-switch-v button {
		width: auto;
	}
}

.km-imap-switch button {
	all: unset;
	box-sizing: border-box !important;
	display: inline-block !important;
	padding: 9px 18px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 999px !important;
	background: rgba(17, 20, 24, 0.6) !important;
	background-image: none !important;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: rgba(255, 255, 255, 0.88) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	font-family: inherit !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14) !important;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.km-imap-switch button:hover {
	background: rgba(17, 20, 24, 0.8) !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.km-imap-switch button:focus-visible {
	box-shadow: 0 0 0 3px rgba(240, 164, 55, 0.6);
}

.km-imap-switch button.km-active {
	background: #f0a437 !important;
	color: #16181c !important;
	font-weight: 600 !important;
	box-shadow: 0 4px 14px rgba(240, 164, 55, 0.35) !important;
}

@media (prefers-reduced-motion: reduce) {
	.km-imap-switch button { transition: none !important; transform: none !important; }
}

/* ===== Menu specjalne (showcase) — ciemny sidebar + mapa ===== */

.km-imap-showcase {
	--km-sc-accent: #00d4ff;
	display: flex;
	align-items: stretch;
	background: #050505;
	border-radius: 12px;
	overflow: hidden;
}

.km-imap-sc-side {
	width: 300px;
	flex-shrink: 0;
	background: #0a0a0a;
	border-right: 1px solid rgba(255, 255, 255, 0.05);
	padding: 32px 24px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.km-imap-sc-list {
	display: flex;
	flex-direction: column;
}

.km-imap-sc-item {
	all: unset;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	width: 100% !important;
	padding: 16px 0 !important;
	margin: 0 !important;
	border: none !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
	background: transparent !important;
	background-image: none !important;
	color: #7a7a7a !important;
	font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
	font-size: 17px !important;
	font-weight: 600 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.2px !important;
	text-transform: none !important;
	text-align: left !important;
	position: relative;
	cursor: pointer;
	transition: color 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding-left 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.km-imap-sc-item::before {
	content: '';
	position: absolute;
	left: -24px;
	top: 50%;
	transform: translateY(-50%);
	width: 3px;
	height: 0;
	background: var(--km-sc-accent);
	box-shadow: 0 0 10px var(--km-sc-accent);
	transition: height 0.4s ease;
}

.km-imap-sc-item:hover {
	color: #ababab !important;
	padding-left: 14px !important;
}

.km-imap-sc-item.km-active {
	color: #ffffff !important;
	padding-left: 14px !important;
}

.km-imap-sc-item.km-active::before {
	height: 60%;
}

.km-imap-sc-arrow {
	font-size: 14px;
	color: var(--km-sc-accent);
	opacity: 0;
	transform: translateX(-10px);
	transition: opacity 0.3s ease, transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 10px;
}

.km-imap-sc-item.km-active .km-imap-sc-arrow {
	opacity: 1;
	transform: translateX(0);
}

.km-imap-sc-main {
	flex: 1;
	min-width: 0;
	position: relative;
	padding: 28px;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 50px 50px;
}

.km-imap-sc-main::before {
	content: '';
	position: absolute;
	top: -10%;
	right: -5%;
	width: 340px;
	height: 340px;
	border-radius: 50%;
	background: var(--km-sc-accent);
	filter: blur(110px);
	opacity: 0.13;
	pointer-events: none;
}

.km-imap-sc-info {
	position: relative;
	max-width: 560px;
	margin-bottom: 20px;
	line-height: normal;
}

.km-imap-sc-info.km-in {
	animation: km-sc-in 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes km-sc-in {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: translateY(0); }
}

.km-imap-sc-tag {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 2px;
	color: var(--km-sc-accent);
	font-weight: 600;
	margin-bottom: 8px;
	font-family: 'Inter', system-ui, sans-serif;
}

.km-imap-sc-title {
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif !important;
	font-size: clamp(24px, 3.2vw, 40px) !important;
	font-weight: 700 !important;
	line-height: 1.1 !important;
	background: linear-gradient(to right, #fff, #999);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: #fff;
}

.km-imap-sc-desc {
	font-size: 15px;
	line-height: 1.6;
	color: #888;
	font-family: 'Inter', system-ui, sans-serif;
}

.km-imap-showcase .km-imap-boards {
	position: relative;
	z-index: 1;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
	.km-imap-showcase {
		flex-direction: column;
	}

	.km-imap-sc-side {
		width: 100%;
		padding: 18px 20px;
		border-right: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	}

	.km-imap-sc-item {
		padding: 12px 0 !important;
		font-size: 15px !important;
	}

	.km-imap-sc-item::before {
		left: -20px;
	}

	.km-imap-sc-main {
		padding: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.km-imap-sc-item,
	.km-imap-sc-arrow,
	.km-imap-sc-item::before {
		transition: none !important;
	}

	.km-imap-sc-info.km-in {
		animation: none !important;
	}
}

/* ===== Przełącznik w rogu mapy (overlay) ===== */

.km-imap-dd.km-imap-corner {
	position: absolute;
	top: 12px;
	padding: 0;
	z-index: 45;
	justify-content: flex-start;
}

.km-imap-dd.km-imap-corner-left { left: 12px; }
.km-imap-dd.km-imap-corner-right { right: 12px; }

.km-imap-dd.km-imap-corner .km-imap-dd-list {
	left: 0;
	transform: translateY(-8px) scale(0.96);
	transform-origin: top left;
}

.km-imap-dd.km-imap-corner-right .km-imap-dd-list {
	left: auto;
	right: 0;
	transform-origin: top right;
}

.km-imap-dd.km-imap-corner.km-open .km-imap-dd-list {
	transform: translateY(0) scale(1);
}

.km-imap-switch.km-imap-corner {
	position: absolute;
	top: 12px;
	z-index: 45;
	flex-direction: column;
	flex-wrap: nowrap;
	gap: 6px;
	padding: 0;
	max-width: 46%;
}

.km-imap-switch.km-imap-corner-left { left: 12px; align-items: flex-start; }
.km-imap-switch.km-imap-corner-right { right: 12px; align-items: flex-end; }

@media (max-width: 700px) {
	.km-imap-switch.km-imap-corner {
		max-width: 60%;
	}
}

/* ===== Nowoczesny przełącznik-dropdown (styl „select") ===== */

.km-imap-dd {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 10px 0;
	line-height: normal;
	z-index: 40;
}

.km-imap-pos-left .km-imap-dd,
.km-imap-pos-right .km-imap-dd {
	justify-content: flex-start;
	padding: 0;
	flex-shrink: 0;
}

.km-imap-dd-btn {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 10px !important;
	padding: 10px 18px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 999px !important;
	background: rgba(17, 20, 24, 0.82) !important;
	background-image: none !important;
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	font-family: inherit !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	min-width: 0 !important;
	min-height: 0 !important;
	width: auto !important;
	height: auto !important;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
	max-width: 92vw;
	overflow: hidden;
}

.km-imap-dd-btn:hover {
	transform: translateY(-1px);
	background: rgba(17, 20, 24, 0.92) !important;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

.km-imap-dd-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(240, 164, 55, 0.6) !important;
}

.km-imap-dd-label {
	overflow: hidden;
	text-overflow: ellipsis;
}

.km-imap-dd-chev {
	width: 15px;
	height: 15px;
	flex-shrink: 0;
	transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.km-imap-dd.km-open .km-imap-dd-chev {
	transform: rotate(180deg);
}

.km-imap-dd-list {
	position: absolute;
	top: calc(100% + 2px);
	left: 50%;
	transform: translateX(-50%) translateY(-8px) scale(0.96);
	transform-origin: top center;
	opacity: 0;
	pointer-events: none;
	visibility: hidden;
	min-width: 210px;
	max-width: min(320px, 92vw);
	max-height: min(340px, 60vh);
	overflow: auto;
	background: rgba(17, 20, 24, 0.92) !important;
	background-image: none !important;
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-radius: 14px;
	padding: 6px;
	box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
	transition: opacity 0.22s ease, transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.22s;
	z-index: 60;
}

.km-imap-dd.km-open .km-imap-dd-list {
	opacity: 1;
	visibility: visible;
	transform: translateX(-50%) translateY(0) scale(1);
	pointer-events: auto;
}

.km-imap-pos-bottom .km-imap-dd-list {
	top: auto;
	bottom: calc(100% + 2px);
	transform-origin: bottom center;
	transform: translateX(-50%) translateY(8px) scale(0.96);
}

.km-imap-pos-bottom .km-imap-dd.km-open .km-imap-dd-list {
	transform: translateX(-50%) translateY(0) scale(1);
}

.km-imap-pos-left .km-imap-dd-list,
.km-imap-pos-right .km-imap-dd-list {
	left: 0;
	transform: translateY(-8px) scale(0.96);
	transform-origin: top left;
}

.km-imap-pos-left .km-imap-dd.km-open .km-imap-dd-list,
.km-imap-pos-right .km-imap-dd.km-open .km-imap-dd-list {
	transform: translateY(0) scale(1);
}

.km-imap-dd-item {
	all: unset;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	width: 100% !important;
	padding: 10px 12px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 9px !important;
	background: transparent !important;
	background-image: none !important;
	color: rgba(255, 255, 255, 0.82) !important;
	font-size: 14px !important;
	font-weight: 400 !important;
	font-family: inherit !important;
	line-height: 1.3 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	min-height: 0 !important;
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.km-imap-dd-item:hover,
.km-imap-dd-item:focus-visible,
.km-imap-dd-item.km-active:hover {
	background: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
	padding-left: 15px !important;
}

.km-imap-dd-item.km-active {
	background: rgba(255, 255, 255, 0.07) !important;
	color: #fff !important;
	font-weight: 600 !important;
}

.km-imap-dd-item.km-active::after {
	content: '';
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #f0a437;
	box-shadow: 0 0 8px rgba(240, 164, 55, 0.85);
	flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
	.km-imap-dd-btn,
	.km-imap-dd-chev,
	.km-imap-dd-list,
	.km-imap-dd-item {
		transition: none !important;
	}
}

/* --- tooltip --- */

.km-imap-tooltip {
	position: absolute;
	z-index: 58;
	max-width: min(420px, 92vw);
	background: #1d2327;
	color: #fff;
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.45;
	box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
	pointer-events: auto;
}

.km-imap-tooltip-title {
	font-weight: 600;
	margin-bottom: 4px;
}

.km-imap-tooltip.km-tt-rich .km-imap-tooltip-title,
.km-imap-tooltip.km-tt-rich .km-imap-tooltip-inner {
	-webkit-user-select: none;
	user-select: none;
}

.km-imap-tooltip.km-tt-rich .km-imap-tooltip-title {
	cursor: move;
	touch-action: none; /* drag palcem po tytule zamiast scrolla strony */
}

.km-imap-tooltip.km-tt-dragging {
	cursor: grabbing;
	opacity: 0.92;
}

.km-imap-tooltip-body {
	font-weight: 400;
	max-height: 60vh;
	overflow: auto;
}

.km-imap-tooltip-body p {
	margin: 0 0 0.5em;
}

.km-imap-tooltip-body p:last-child {
	margin-bottom: 0;
}

.km-imap-tooltip-body img,
.km-imap-tooltip-body video {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.km-imap-tooltip-body iframe {
	max-width: 100%;
	border: 0;
	border-radius: 4px;
}

/* Iframe bez sztywnych wymiarów (np. z [embed]) — pełna szerokość 16:9 */
.km-imap-tooltip-body iframe:not([width]) {
	width: 100%;
	aspect-ratio: 16 / 9;
	height: auto;
}

.km-imap-tooltip-link {
	display: inline-block;
	margin-top: 6px;
	color: #7cc4ff;
	text-decoration: none;
	font-weight: 700;
}

.km-imap-tooltip-link:hover {
	text-decoration: underline;
}

/* --- krzyżyk zamykający (tylko dymki z treścią) --- */

.km-imap-tt-close {
	all: unset;
	box-sizing: border-box !important;
	background-image: none !important;
	display: none;
	position: absolute !important;
	top: -12px !important;
	right: -12px !important;
	width: 30px !important;
	height: 30px !important;
	border-radius: 8px !important;
	background: #16181c !important;
	color: #ffffff !important;
	font-size: 18px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	text-align: center !important;
	cursor: pointer;
	align-items: center;
	justify-content: center;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.45) !important;
	transition: background 0.15s ease, transform 0.15s ease;
	z-index: 3;
}

.km-imap-tooltip.km-tt-rich .km-imap-tt-close {
	display: inline-flex;
}

.km-imap-tt-close:hover {
	background: #d63638 !important;
	transform: scale(1.08);
}



/* --- uchwyt zmiany rozmiaru (desktop/tablet z myszą) --- */

.km-imap-tt-grip {
	display: none;
	position: absolute;
	right: 2px;
	bottom: 2px;
	width: 18px;
	height: 18px;
	cursor: nwse-resize;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	background:
		linear-gradient(135deg, transparent 0 55%, rgba(255, 255, 255, 0.55) 55% 62%, transparent 62% 72%, rgba(255, 255, 255, 0.55) 72% 79%, transparent 79% 89%, rgba(255, 255, 255, 0.55) 89% 96%, transparent 96%);
	border-bottom-right-radius: 8px;
	z-index: 2;
}

.km-imap-tooltip.km-tt-rich .km-imap-tt-grip {
	display: block;
}

@media (hover: none) {
	.km-imap-tt-grip {
		width: 26px;
		height: 26px;
	}
}

/* Utwardzenie przycisków wtyczki na globalne style motywów/builderów */
.km-imap-lb-close,
.km-imap-zoomctl button {
	box-shadow: none !important;
	text-shadow: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	font-family: inherit !important;
	line-height: 1 !important;
}

.km-imap-lb-close {
	background: #16181c !important;
	background-image: none !important;
	color: #ffffff !important;
	border: none !important;
	width: 32px !important;
	height: 32px !important;
	padding: 0 !important;
	border-radius: 8px !important;
	font-size: 18px !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
	transition: background 0.15s ease, transform 0.15s ease;
}

.km-imap-lb-close:hover {
	background: #d63638 !important;
	transform: scale(1.08);
}

.km-imap-zoomctl button {
	background: rgba(29, 35, 39, 0.85) !important;
	color: #fff !important;
	border: none !important;
	width: 34px !important;
	height: 34px !important;
	padding: 0 !important;
	border-radius: 6px !important;
}

/* --- fullscreen --- */

.km-imap-fsbtn {
	appearance: none;
	width: 34px;
	height: 34px;
	border: none !important;
	border-radius: 6px !important;
	background: rgba(29, 35, 39, 0.85) !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 16px !important;
	cursor: pointer;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0 !important;
	line-height: 1 !important;
}

.km-imap-fsbtn:hover {
	background: rgba(29, 35, 39, 1) !important;
}

.km-imap:fullscreen,
.km-imap-pseudofs {
	background: #0b0d10;
	overflow: auto;
	overflow-x: hidden;
}

/* Uklad blokowy (bez wlasnego flexa): wysrodkuj mape w kolumnie */
.km-imap:fullscreen:not(.km-imap-showcase):not(.km-imap-pos-left):not(.km-imap-pos-right),
.km-imap-pseudofs:not(.km-imap-showcase):not(.km-imap-pos-left):not(.km-imap-pos-right) {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 2vh 2vw;
}

/* Showcase: zachowaj wlasny uklad wiersza na pelna wysokosc,
   mape wysrodkuj w kolumnie glownej */
.km-imap-showcase:fullscreen,
.km-imap-showcase.km-imap-pseudofs {
	height: 100%;
	border-radius: 0;
	padding: 0;
}

.km-imap-showcase:fullscreen .km-imap-sc-main,
.km-imap-showcase.km-imap-pseudofs .km-imap-sc-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	justify-content: safe center; /* nie ucina gory, gdy tresc wyzsza niz ekran */
	overflow: auto;
	overflow-x: hidden;
}

/* Dyskretne paski przewijania w pelnym ekranie (zamiast systemowych bialych) */
.km-imap:fullscreen,
.km-imap-pseudofs,
.km-imap:fullscreen .km-imap-sc-main,
.km-imap-pseudofs .km-imap-sc-main {
	scrollbar-width: thin;
	scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.km-imap:fullscreen::-webkit-scrollbar,
.km-imap-pseudofs::-webkit-scrollbar,
.km-imap:fullscreen .km-imap-sc-main::-webkit-scrollbar,
.km-imap-pseudofs .km-imap-sc-main::-webkit-scrollbar {
	width: 9px;
	height: 0; /* poziomy pasek nigdy */
	background: transparent;
}

.km-imap:fullscreen::-webkit-scrollbar-thumb,
.km-imap-pseudofs::-webkit-scrollbar-thumb,
.km-imap:fullscreen .km-imap-sc-main::-webkit-scrollbar-thumb,
.km-imap-pseudofs .km-imap-sc-main::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.22);
	border-radius: 999px;
}

.km-imap:fullscreen::-webkit-scrollbar-track,
.km-imap-pseudofs::-webkit-scrollbar-track,
.km-imap:fullscreen .km-imap-sc-main::-webkit-scrollbar-track,
.km-imap-pseudofs .km-imap-sc-main::-webkit-scrollbar-track {
	background: transparent;
}

@media (max-width: 900px) {
	.km-imap-showcase:fullscreen,
	.km-imap-showcase.km-imap-pseudofs {
		justify-content: flex-start;
	}
}

/* Lista boczna (pos-left/right): zachowaj wiersz, wysrodkuj pionowo */
.km-imap-pos-left:fullscreen,
.km-imap-pos-right:fullscreen,
.km-imap-pos-left.km-imap-pseudofs,
.km-imap-pos-right.km-imap-pseudofs {
	align-items: center;
	padding: 2vh 2vw;
}

.km-imap-pseudofs {
	position: fixed !important;
	inset: 0 !important;
	z-index: 99998 !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
}

.km-imap:fullscreen .km-imap-board:not(.km-imap-board-embed),
.km-imap-pseudofs .km-imap-board:not(.km-imap-board-embed) {
	width: fit-content;
	max-width: 100%;
	margin: 0 auto;
}

/* Artboard embed w pelnym ekranie: pelna szerokosc + wysokosc ekranu
   (iframe jest absolutny, wiec fit-content zapadlby sie do 0) */
.km-imap:fullscreen .km-imap-board-embed,
.km-imap-pseudofs .km-imap-board-embed {
	width: 100%;
}

.km-imap:fullscreen .km-imap-img,
.km-imap-pseudofs .km-imap-img {
	width: auto;
	max-width: 100%;
	max-height: 86vh;
}

.km-imap:fullscreen .km-imap-embed-holder,
.km-imap-pseudofs .km-imap-embed-holder {
	height: 86vh !important;
	aspect-ratio: auto !important;
	max-height: none;
}

.km-imap-showcase:fullscreen .km-imap-embed-holder,
.km-imap-showcase.km-imap-pseudofs .km-imap-embed-holder {
	height: calc(100vh - 56px) !important;
}

/* --- przycisk i panel informacyjny artboardu --- */

.km-imap-infobtn {
	all: unset;
	box-sizing: border-box !important;
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 26;
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	background: rgba(17, 20, 24, 0.82) !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	font-style: italic;
	font-family: Georgia, serif !important;
	text-align: center !important;
	line-height: 32px !important;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 3px 10px rgba(0, 0, 0, 0.3) !important;
	transition: background 0.15s ease;
}

.km-imap-infobtn:hover,
.km-imap-infobtn.km-on {
	background: rgba(17, 20, 24, 1) !important;
}

.km-imap-infopanel {
	position: absolute;
	top: 52px;
	left: 12px;
	z-index: 27;
	max-width: min(340px, calc(100% - 24px));
	background: rgba(17, 20, 24, 0.94);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	color: #e8e8ea;
	border-radius: 12px;
	padding: 14px 16px;
	font-size: 14px;
	line-height: 1.55;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	white-space: pre-line;
}

.km-imap-infopanel-title {
	font-weight: 600;
	margin-bottom: 6px;
	color: #fff;
}

.km-imap-infopanel-body {
	color: rgba(255, 255, 255, 0.82);
}

/* --- uchwyt przeciągania okienka --- */

.km-imap-tt-draghandle {
	display: none;
	position: absolute;
	top: -12px;
	left: -12px;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: #16181c;
	color: rgba(255, 255, 255, 0.85);
	font-size: 11px;
	letter-spacing: 1px;
	text-align: center;
	line-height: 30px;
	cursor: grab;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28), 0 4px 12px rgba(0, 0, 0, 0.45);
	z-index: 3;
	transition: background 0.15s ease;
}

.km-imap-tooltip.km-tt-rich .km-imap-tt-draghandle {
	display: block;
}

.km-imap-tt-draghandle:hover {
	background: #24272d;
}

.km-imap-tooltip.km-tt-dragging .km-imap-tt-draghandle {
	cursor: grabbing;
}

.km-imap-error {
	color: #b32d2e;
	border: 1px dashed #b32d2e;
	padding: 8px 12px;
	font-size: 13px;
}

/* ===== Filtr kategorii ===== */

.km-imap-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
	line-height: normal;
}

.km-imap-cat {
	all: unset;
	box-sizing: border-box !important;
	display: inline-block !important;
	padding: 7px 14px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 999px !important;
	background: rgba(17, 20, 24, 0.35) !important;
	background-image: none !important;
	color: rgba(255, 255, 255, 0.55) !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.km-imap-cat:hover {
	color: rgba(255, 255, 255, 0.85) !important;
	background: rgba(17, 20, 24, 0.55) !important;
}

.km-imap-cat.km-on {
	background: rgba(17, 20, 24, 0.85) !important;
	color: #fff !important;
	box-shadow: inset 0 0 0 1px rgba(240, 164, 55, 0.65) !important;
}

.km-imap-cat-all.km-on {
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35) !important;
}

/* jasne motywy: chipy i tak sa ciemne — czytelne wszedzie */

.km-imap-showcase .km-imap-cats {
	position: relative;
	z-index: 1;
	margin-bottom: 14px;
}

/* ===== Audio w dymku ===== */

.km-imap-tt-audio {
	margin: 2px 0 8px;
}

.km-imap-tt-audio audio {
	width: 100%;
	height: 36px;
	display: block;
	outline: none;
}

/* ===== Galeria w dymku ===== */

.km-imap-gal {
	position: relative;
	margin: 2px 0 8px;
	border-radius: 8px;
	overflow: hidden;
	background: #101215;
	line-height: 0;
}

.km-imap-gal-img {
	width: 100%;
	height: auto;
	display: block;
}

.km-imap-gal-nav {
	all: unset;
	box-sizing: border-box !important;
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%);
	width: 32px !important;
	height: 44px !important;
	background: rgba(17, 20, 24, 0.55) !important;
	background-image: none !important;
	color: #fff !important;
	font-size: 22px !important;
	line-height: 44px !important;
	text-align: center !important;
	cursor: pointer;
	transition: background 0.15s ease;
	z-index: 2;
}

.km-imap-gal-nav.km-prev {
	left: 0 !important;
	border-radius: 0 8px 8px 0 !important;
}

.km-imap-gal-nav.km-next {
	right: 0 !important;
	border-radius: 8px 0 0 8px !important;
}

.km-imap-gal-nav:hover {
	background: rgba(17, 20, 24, 0.85) !important;
}

.km-imap-gal-count {
	position: absolute;
	right: 8px;
	bottom: 8px;
	background: rgba(17, 20, 24, 0.75);
	color: #fff;
	font-size: 11px;
	line-height: 1;
	padding: 5px 9px;
	border-radius: 999px;
	z-index: 2;
}

/* ===== Paginacja w grupach artboardow ===== */

.km-imap-group-nav {
	z-index: 26;
}

.km-imap-group-count {
	left: 50% !important;
	right: auto !important;
	transform: translateX(-50%);
	bottom: 10px;
	z-index: 26;
}

/* ===== Styl przełącznika: taby z podkreśleniem ===== */

.km-imap-switch.km-imap-sw-tabs {
	gap: 4px;
	border-bottom: 1px solid rgba(128, 128, 128, 0.22);
}

.km-imap-switch.km-imap-sw-tabs button {
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 10px 14px 12px !important;
	color: rgba(128, 128, 128, 0.95) !important;
	position: relative;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.km-imap-switch.km-imap-sw-tabs button::after {
	content: '';
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: -1px;
	height: 2.5px;
	border-radius: 999px;
	background: #f0a437;
	transform: scaleX(0);
	transform-origin: center;
	transition: transform 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.km-imap-switch.km-imap-sw-tabs button:hover {
	background: rgba(128, 128, 128, 0.08) !important;
	color: inherit !important;
	transform: none;
}

.km-imap-switch.km-imap-sw-tabs button.km-active {
	background: transparent !important;
	color: inherit !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

.km-imap-switch.km-imap-sw-tabs button.km-active::after {
	transform: scaleX(1);
}

/* ===== Styl przełącznika: segmented control ===== */

.km-imap-switch.km-imap-sw-segment {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 0;
	position: relative;
	padding: 4px;
	border-radius: 999px;
	background: rgba(17, 20, 24, 0.62);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
}

.km-imap-switch.km-imap-sw-segment::-webkit-scrollbar {
	display: none;
}

.km-imap-seg-thumb {
	position: absolute;
	top: 4px;
	bottom: 4px;
	left: 0;
	width: 0;
	border-radius: 999px;
	background: #f0a437;
	box-shadow: 0 3px 12px rgba(240, 164, 55, 0.4);
	transition: left 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94), width 0.32s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.2s ease;
	opacity: 0;
	pointer-events: none;
}

.km-imap-switch.km-imap-sw-segment button {
	background: transparent !important;
	box-shadow: none !important;
	position: relative;
	z-index: 1;
	white-space: nowrap;
	transform: none !important;
}

.km-imap-switch.km-imap-sw-segment button:hover {
	background: rgba(255, 255, 255, 0.07) !important;
	color: #fff !important;
}

.km-imap-switch.km-imap-sw-segment button.km-active {
	background: transparent !important;
	color: #16181c !important;
	font-weight: 600 !important;
	box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
	.km-imap-seg-thumb,
	.km-imap-switch.km-imap-sw-tabs button::after {
		transition: none !important;
	}
}

/* ===== Styl przełącznika: miniatury artboardów ===== */

.km-imap-switch.km-imap-sw-thumbs {
	gap: 10px;
}

.km-imap-switch.km-imap-sw-thumbs button {
	display: inline-flex !important;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 7px !important;
	border-radius: 12px !important;
	background: rgba(17, 20, 24, 0.6) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12) !important;
	width: 104px;
	max-width: 104px;
}

.km-imap-th-img {
	width: 90px !important;
	height: 58px !important;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	background: #101215;
	pointer-events: none;
}

.km-imap-th-ph {
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	color: rgba(255, 255, 255, 0.5);
}

.km-imap-th-label {
	font-size: 12px;
	line-height: 1.25;
	color: rgba(255, 255, 255, 0.82);
	max-width: 90px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none;
}

.km-imap-switch.km-imap-sw-thumbs button:hover {
	transform: translateY(-2px);
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.km-imap-switch.km-imap-sw-thumbs button.km-active {
	background: rgba(17, 20, 24, 0.9) !important;
	box-shadow: inset 0 0 0 2px #f0a437, 0 6px 18px rgba(240, 164, 55, 0.25) !important;
}

.km-imap-switch.km-imap-sw-thumbs button.km-active .km-imap-th-label {
	color: #fff;
	font-weight: 600;
}

/* ===== Styl przełącznika: Liquid Glass (iOS) ===== */

.km-imap-switch.km-imap-sw-glass {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 0;
	position: relative;
	padding: 5px;
	border-radius: 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.1));
	-webkit-backdrop-filter: blur(22px) saturate(180%);
	backdrop-filter: blur(22px) saturate(180%);
	box-shadow:
		inset 0 0 0 1px rgba(255, 255, 255, 0.42),
		inset 0 -8px 16px rgba(255, 255, 255, 0.08),
		0 10px 34px rgba(0, 0, 0, 0.28);
	max-width: 100%;
	overflow-x: auto;
	scrollbar-width: none;
	isolation: isolate;
}

.km-imap-switch.km-imap-sw-glass::-webkit-scrollbar {
	display: none;
}

/* połysk: poświata w górnej połowie kapsuły */
.km-imap-switch.km-imap-sw-glass::before {
	content: '';
	position: absolute;
	inset: 1px 1px 50% 1px;
	border-radius: 999px 999px 999px 999px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
	pointer-events: none;
	z-index: 0;
}

.km-imap-switch.km-imap-sw-glass .km-imap-seg-thumb {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.8));
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 1),
		inset 0 -6px 12px rgba(0, 0, 0, 0.06),
		0 4px 14px rgba(0, 0, 0, 0.22);
	top: 5px;
	bottom: 5px;
}

.km-imap-switch.km-imap-sw-glass button {
	background: transparent !important;
	box-shadow: none !important;
	position: relative;
	z-index: 1;
	white-space: nowrap;
	transform: none !important;
	color: rgba(255, 255, 255, 0.92) !important;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
}

.km-imap-switch.km-imap-sw-glass button:hover {
	background: rgba(255, 255, 255, 0.14) !important;
	color: #fff !important;
}

.km-imap-switch.km-imap-sw-glass button.km-active {
	background: transparent !important;
	color: #101215 !important;
	font-weight: 600 !important;
	text-shadow: none;
	box-shadow: none !important;
}

/* ==================== 2.24: artboard typu mapa OSM (Leaflet) ==================== */

.km-imap-osm-holder {
	position: relative;
	overflow: hidden;
	border-radius: inherit;
}

.km-imap-osm-map {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.km-imap-board-osm .km-imap-fsbtn,
.km-imap-board-osm .km-imap-infobtn {
	z-index: 1001;
}

/* okno OSM o wlasnej szerokosci: w pelnym ekranie zawsze 100% */
.km-imap:fullscreen .km-imap-osm-holder,
.km-imap-pseudofs .km-imap-osm-holder {
	width: 100% !important;
}


/* ==================== wersja deweloperska: lokale ==================== */

/* ===== Wersja deweloperska: pasek lokali + karta lokalu ===== */

.km-imap-units {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 12px;
	line-height: normal;
}

.km-imap-ust {
	all: unset;
	box-sizing: border-box !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 7px !important;
	padding: 7px 13px !important;
	margin: 0 !important;
	border: none !important;
	border-radius: 999px !important;
	background: rgba(17, 20, 24, 0.35) !important;
	background-image: none !important;
	color: rgba(255, 255, 255, 0.55) !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	font-family: inherit !important;
	line-height: 1.2 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
	transition: background 0.18s ease, color 0.18s ease;
}

.km-imap-ust.km-on {
	background: rgba(17, 20, 24, 0.85) !important;
	color: #fff !important;
}

.km-imap-ust:not(.km-on) {
	text-decoration: line-through;
	opacity: 0.65;
}

.km-imap-ust-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
	box-shadow: 0 0 6px currentColor;
}

.km-imap-uroom {
	min-width: 34px;
	justify-content: center !important;
}

.km-imap-urange {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 170px;
}

.km-imap-urange-label {
	font-size: 11.5px;
	color: rgba(128, 128, 128, 0.95);
	white-space: nowrap;
}

.km-imap-urange input[type="range"] {
	width: 100%;
	height: 18px;
	margin: 0;
	accent-color: #f0a437;
}

.km-imap-urooms {
	display: flex;
	align-items: center;
	gap: 6px;
}

.km-imap-ucount {
	font-size: 12.5px;
	font-weight: 600;
	color: rgba(128, 128, 128, 1);
	margin-left: auto;
	white-space: nowrap;
}

/* karta lokalu */

.km-imap-unit-card {
	margin: 2px 0 10px;
	line-height: normal;
}

.km-imap-unit-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.km-imap-unit-num {
	font-weight: 700;
	font-size: 15px;
}

.km-imap-unit-badge {
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #fff;
	white-space: nowrap;
}

.km-imap-unit-badge.km-unit-available { background: #00ba37; }

.km-imap-unit-badge.km-unit-reserved { background: #f0a437; color: #16181c; }

.km-imap-unit-badge.km-unit-sold { background: #d63638; }

.km-imap-unit-rows {
	display: flex;
	flex-direction: column;
	border-top: 1px solid rgba(128, 128, 128, 0.25);
}

.km-imap-unit-row {
	display: flex;
	justify-content: space-between;
	gap: 14px;
	padding: 6px 0;
	border-bottom: 1px solid rgba(128, 128, 128, 0.25);
	font-size: 13.5px;
}

.km-imap-unit-k {
	opacity: 0.72;
}

.km-imap-unit-v {
	font-weight: 600;
	white-space: nowrap;
}

.km-imap-unit-extras {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}

.km-imap-unit-extra {
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(128, 128, 128, 0.16);
	font-size: 11.5px;
}

.km-imap-unit-cta {
	display: block;
	margin-top: 10px;
	padding: 10px 14px;
	border-radius: 9px;
	background: #f0a437;
	color: #16181c !important;
	font-weight: 700;
	font-size: 13.5px;
	text-align: center;
	text-decoration: none !important;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.km-imap-unit-cta:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(240, 164, 55, 0.4);
	color: #16181c !important;
}

/* pinezka-emoji na mapie OSM */
.km-imap-osm-emoji {
	background: none;
	border: none;
	text-align: center;
	line-height: 1;
	font-size: 28px;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* miniaturka-wizytowka nad pinezka */
.km-imap-thumbg {
	filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.km-imap-osm-thumb {
	background: #ffffff;
	padding: 4px;
	border-radius: 9px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
	cursor: pointer;
}

.km-imap-osm-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 5px;
}

/* ==================== styl przelacznika: overlay (ciemny panel na mapie) ==================== */

.km-imap-switch.km-imap-sw-overlay {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	z-index: 900;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: stretch;
	gap: 4px;
	margin: 0;
	padding: 30px 54px 30px 26px;
	border: none;
	border-radius: 0;
	background: linear-gradient(100deg, rgba(7, 10, 16, 0.86) 0%, rgba(7, 10, 16, 0.6) 55%, rgba(7, 10, 16, 0) 100%);
	-webkit-backdrop-filter: blur(7px);
	backdrop-filter: blur(7px);
	max-width: min(46%, 440px);
	overflow: auto;
	scrollbar-width: none;
}

.km-imap-switch.km-imap-sw-overlay::-webkit-scrollbar {
	display: none;
}

.km-imap-switch.km-imap-sw-overlay button {
	appearance: none;
	background: none;
	border: none;
	border-left: 3px solid transparent;
	border-radius: 0;
	color: #ffffff;
	opacity: 0.66;
	font-size: clamp(18px, 2.4vw, 29px);
	font-weight: 800;
	letter-spacing: 0.4px;
	line-height: 1.25;
	text-align: left;
	padding: 7px 14px;
	cursor: pointer;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: opacity 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.km-imap-switch.km-imap-sw-overlay button:hover,
.km-imap-switch.km-imap-sw-overlay button:focus-visible {
	opacity: 1;
	transform: translateX(7px);
	outline: none;
}

.km-imap-switch.km-imap-sw-overlay button.km-on,
.km-imap-switch.km-imap-sw-overlay button[aria-selected="true"] {
	opacity: 1;
	border-left-color: var(--km-sc-accent, #00d4ff);
	transform: translateX(7px);
	text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* waskie ekrany: panel przechodzi na dol, poziomo przewijany */
@media (max-width: 700px) {
	.km-imap-switch.km-imap-sw-overlay {
		top: auto;
		right: 0;
		bottom: 0;
		max-width: none;
		flex-direction: row;
		justify-content: flex-start;
		padding: 26px 14px 12px;
		background: linear-gradient(to top, rgba(7, 10, 16, 0.85) 0%, rgba(7, 10, 16, 0.55) 60%, rgba(7, 10, 16, 0) 100%);
		overflow-x: auto;
	}

	.km-imap-switch.km-imap-sw-overlay button {
		font-size: 16px;
		border-left: none;
		border-bottom: 3px solid transparent;
		padding: 6px 10px;
	}

	.km-imap-switch.km-imap-sw-overlay button.km-on,
	.km-imap-switch.km-imap-sw-overlay button[aria-selected="true"] {
		border-bottom-color: var(--km-sc-accent, #00d4ff);
		transform: none;
	}
}

/* ==================== panorama 360 (equirectangular) ==================== */

.km-imap-pano-holder {
	position: relative;
	overflow: hidden;
	border-radius: inherit;
	cursor: grab;
	touch-action: none;
	background: #101418;
}

.km-imap-pano-holder:active {
	cursor: grabbing;
}

.km-imap-pano-canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.km-imap-pano-svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.km-imap-pano-obj {
	pointer-events: auto;
	transition: fill-opacity 0.15s ease;
}

.km-imap-pano-int {
	cursor: pointer;
}

.km-imap-pano-flat {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.km-imap:fullscreen .km-imap-pano-holder,
.km-imap-pseudofs .km-imap-pano-holder {
	width: 100% !important;
}

/* preloader panoramy */
.km-imap-pano-loader {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	background: #101418;
	color: #dfe4ea;
	transition: opacity 0.3s ease;
}

.km-imap-pano-loader.km-done {
	opacity: 0;
	pointer-events: none;
}

.km-imap-pano-spin {
	width: 34px;
	height: 34px;
	border: 3px solid rgba(255, 255, 255, 0.18);
	border-top-color: #ffffff;
	border-radius: 50%;
	animation: km-pano-spin 0.9s linear infinite;
}

@keyframes km-pano-spin {
	to { transform: rotate(360deg); }
}

.km-imap-pano-bar {
	width: min(46%, 260px);
	height: 5px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.14);
	overflow: hidden;
}

.km-imap-pano-barfill {
	width: 0;
	height: 100%;
	border-radius: 999px;
	background: linear-gradient(90deg, #4da3ff, #7ef0c9);
	transition: width 0.15s ease;
}

.km-imap-pano-pct {
	font-size: 13px;
	letter-spacing: 0.3px;
	opacity: 0.85;
}

/* preloader tla artboardow obrazkowych: identyczny jak w panoramie
   (pelne ciemne tlo, widoczny od razu) */

/* ==================== styl przelacznika: minimal (jasny motyw, biale tlo) ==================== */

/* Motyw jasny calej mapy — pod grafiki na bialym tle (rysunki izometryczne,
   rzuty, schematy). Klasa km-imap-light nadawana automatycznie przy stylu
   przelacznika "minimal". */

.km-imap-light {
	background: #ffffff;
}

.km-imap-light .km-imap-board,
.km-imap-light .km-imap-embed-holder {
	background: #ffffff;
}

.km-imap-light:fullscreen,
.km-imap-light.km-imap-pseudofs {
	background: #ffffff !important;
}

.km-imap-light:fullscreen::backdrop {
	background: #ffffff;
}

/* --- przelacznik: nowoczesne miekkie pigulki --- */

.km-imap-switch.km-imap-sw-minimal {
	gap: 14px 18px;
	padding: 18px 0 20px;
}

.km-imap-switch.km-imap-sw-minimal button {
	background: #f5f6f8 !important;
	-webkit-backdrop-filter: none;
	backdrop-filter: none;
	box-shadow: inset 0 0 0 1px rgba(22, 24, 28, 0.06) !important;
	border-radius: 14px !important;
	padding: 11px 22px !important;
	color: #4b515a !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	letter-spacing: 0.1px !important;
	text-transform: none !important;
	border-bottom: none !important;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.km-imap-switch.km-imap-sw-minimal button:hover {
	background: #ebedf0 !important;
	color: #16181c !important;
	transform: translateY(-1px);
}

.km-imap-switch.km-imap-sw-minimal button:focus-visible {
	box-shadow: 0 0 0 3px rgba(22, 24, 28, 0.22) !important;
	outline: none;
}

.km-imap-switch.km-imap-sw-minimal button.km-active {
	background: var(--km-sc-accent, #16181c) !important;
	color: #ffffff !important;
	font-weight: 600 !important;
	border-bottom: none !important;
	box-shadow: 0 6px 18px rgba(16, 20, 24, 0.22) !important;
	transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
	.km-imap-switch.km-imap-sw-minimal button { transform: none !important; }
}

/* --- chipy kategorii w wersji jasnej --- */

.km-imap-light .km-imap-cat {
	background: #f2f4f6 !important;
	color: #5b626b !important;
	box-shadow: inset 0 0 0 1px rgba(22, 24, 28, 0.08) !important;
}

.km-imap-light .km-imap-cat:hover {
	background: #e8ebee !important;
	color: #16181c !important;
}

.km-imap-light .km-imap-cat.km-on {
	background: #16181c !important;
	color: #ffffff !important;
	box-shadow: inset 0 0 0 1px var(--km-sc-accent, #16181c) !important;
}

/* --- kontrolki na jasnym tle: zoom, pelny ekran, strzalki grup --- */

.km-imap-light .km-imap-zoomctl button {
	background: rgba(255, 255, 255, 0.92);
	color: #16181c;
	box-shadow: 0 1px 4px rgba(16, 20, 24, 0.18), inset 0 0 0 1px rgba(22, 24, 28, 0.1);
}

.km-imap-light .km-imap-zoomctl button:hover {
	background: #ffffff;
}

.km-imap-light .km-imap-fsbtn {
	background: rgba(255, 255, 255, 0.92) !important;
	color: #16181c !important;
	box-shadow: 0 1px 4px rgba(16, 20, 24, 0.18), inset 0 0 0 1px rgba(22, 24, 28, 0.1) !important;
}

.km-imap-light .km-imap-fsbtn:hover {
	background: #ffffff !important;
}

.km-imap-light .km-imap-gal-nav {
	background: rgba(255, 255, 255, 0.82) !important;
	color: #16181c !important;
	box-shadow: 0 1px 4px rgba(16, 20, 24, 0.16) !important;
}

.km-imap-light .km-imap-gal-nav:hover {
	background: #ffffff !important;
}

.km-imap-light .km-imap-gal-count {
	background: rgba(255, 255, 255, 0.88);
	color: #16181c;
	box-shadow: inset 0 0 0 1px rgba(22, 24, 28, 0.12);
}

/* --- preloadery (panorama i duze tla) w wersji jasnej --- */

.km-imap-light .km-imap-pano-loader {
	background: #ffffff;
	color: #5b626b;
}

.km-imap-light .km-imap-pano-spin {
	border-color: rgba(22, 24, 28, 0.12);
	border-top-color: #16181c;
}

.km-imap-light .km-imap-pano-bar {
	background: rgba(22, 24, 28, 0.08);
}

.km-imap-light .km-imap-pano-barfill {
	background: var(--km-sc-accent, #16181c);
}

/* --- minimal w ukladzie pionowym (pozycja lewo/prawo) --- */

.km-imap-switch-v.km-imap-sw-minimal {
	gap: 10px;
	padding: 4px 0;
}

.km-imap-switch-v.km-imap-sw-minimal button {
	width: 100%;
	text-align: center;
	padding: 12px 18px !important;
}

/* --- motyw jasny: tlo bez zmian przy otwartym dymku --- */

.km-imap-light .km-imap-boards.km-dim .km-imap-inner,
.km-imap-light .km-imap-boards.km-dim .km-imap-embed-holder {
	filter: none;
}

.km-imap-light .km-imap-lb-backdrop {
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* ==================== styl przelacznika: studio (ciemny glass) ==================== */

/* Motyw ciemny "studio": glebokie tlo, panele glass z blurem, akcent z poswiata.
   Klasa km-imap-dark nadawana automatycznie przy stylu przelacznika "studio". */

.km-imap-dark {
	background: #0e0e11;
}

.km-imap-dark .km-imap-board,
.km-imap-dark .km-imap-embed-holder {
	background: #0e0e11;
}

.km-imap-dark:fullscreen,
.km-imap-dark.km-imap-pseudofs {
	background: #0e0e11 !important;
}

.km-imap-dark:fullscreen::backdrop {
	background: #0e0e11;
}

/* --- przelacznik: panel glass --- */

.km-imap-switch.km-imap-sw-studio {
	gap: 2px;
	padding: 6px;
	border-radius: 14px;
	background: rgba(22, 22, 26, 0.65);
	-webkit-backdrop-filter: blur(24px) saturate(1.4);
	backdrop-filter: blur(24px) saturate(1.4);
	border: 1px solid rgba(255, 255, 255, 0.06);
	width: max-content;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
}

.km-imap-switch.km-imap-sw-studio button {
	display: flex !important;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px !important;
	background: none !important;
	box-shadow: none !important;
	border: 1px solid transparent !important;
	border-radius: 8px !important;
	padding: 8px 14px !important;
	color: #6b6b76 !important;
	font-size: 12.5px !important;
	font-weight: 500 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
	text-align: left;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.km-imap-switch.km-imap-sw-studio button:hover {
	background: rgba(255, 255, 255, 0.03) !important;
	color: #e8e6e3 !important;
	transform: none;
}

.km-imap-switch.km-imap-sw-studio button:focus-visible {
	box-shadow: 0 0 0 2px var(--km-sc-accent, #e8944a) !important;
	outline: none;
}

.km-imap-switch.km-imap-sw-studio button.km-active {
	background: color-mix(in srgb, var(--km-sc-accent, #e8944a) 9%, transparent) !important;
	border-color: color-mix(in srgb, var(--km-sc-accent, #e8944a) 22%, transparent) !important;
	color: #e8e6e3 !important;
	box-shadow: 0 0 14px color-mix(in srgb, var(--km-sc-accent, #e8944a) 22%, transparent) !important;
}

.km-imap-sw-studio .km-imap-st-name {
	display: block;
	line-height: 1.25;
}

.km-imap-sw-studio .km-imap-st-meta {
	display: block;
	font-family: ui-monospace, 'JetBrains Mono', 'Cascadia Mono', Consolas, monospace;
	font-size: 10px;
	font-weight: 400;
	color: #6b6b76;
	line-height: 1.2;
}

.km-imap-sw-studio button.km-active .km-imap-st-meta {
	color: color-mix(in srgb, var(--km-sc-accent, #e8944a) 70%, #e8e6e3);
}

/* --- pionowa kolumna (pozycja lewo/prawo) --- */

.km-imap-switch-v.km-imap-sw-studio {
	margin-left: 0;
	margin-right: 0;
}

.km-imap-switch-v.km-imap-sw-studio button {
	width: 100%;
}

/* --- kontrolki glass na ciemnym tle --- */

.km-imap-dark .km-imap-zoomctl button,
.km-imap-dark .km-imap-fsbtn {
	background: rgba(22, 22, 26, 0.65) !important;
	-webkit-backdrop-filter: blur(20px);
	backdrop-filter: blur(20px);
	color: #e8e6e3 !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.km-imap-dark .km-imap-zoomctl button:hover,
.km-imap-dark .km-imap-fsbtn:hover {
	background: rgba(34, 34, 40, 0.85) !important;
}

.km-imap-dark .km-imap-cat {
	background: rgba(255, 255, 255, 0.04) !important;
	color: #9a9aa4 !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
}

.km-imap-dark .km-imap-cat:hover {
	color: #e8e6e3 !important;
}

.km-imap-dark .km-imap-cat.km-on {
	background: color-mix(in srgb, var(--km-sc-accent, #e8944a) 14%, transparent) !important;
	color: #e8e6e3 !important;
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--km-sc-accent, #e8944a) 35%, transparent) !important;
}

/* ==================== styl przelacznika: neon (gradientowe obrysy) ==================== */

/* Czarne tlo (motyw km-imap-dark) + przyciski z gradientowa ramka.
   Kazda pozycja dostaje inny gradient z cyklu 6 palet. */

.km-imap-switch.km-imap-sw-neon {
	gap: 14px 18px;
	padding: 16px 0 18px;
}

.km-imap-switch.km-imap-sw-neon button {
	--km-neon-grad: linear-gradient(90deg, #f5d020, #f53844);
	background:
		linear-gradient(#0e0e11, #0e0e11) padding-box,
		var(--km-neon-grad) border-box !important;
	border: 2px solid transparent !important;
	border-radius: 3px !important;
	box-shadow: none !important;
	padding: 12px 26px !important;
	color: #ffffff !important;
	font-size: 12.5px !important;
	font-weight: 600 !important;
	letter-spacing: 2.4px !important;
	text-transform: uppercase !important;
	transition: box-shadow 0.2s ease, color 0.2s ease;
}

/* cykl 6 gradientow po kolejnosci pozycji */
.km-imap-sw-neon button:nth-child(6n+1) { --km-neon-grad: linear-gradient(90deg, #f5d020, #f53844); }
.km-imap-sw-neon button:nth-child(6n+2) { --km-neon-grad: linear-gradient(90deg, #b224ef, #fb2e8e); }
.km-imap-sw-neon button:nth-child(6n+3) { --km-neon-grad: linear-gradient(90deg, #21e6c1, #278ea5, #7b2ff7); }
.km-imap-sw-neon button:nth-child(6n+4) { --km-neon-grad: linear-gradient(90deg, #f12711, #f5af19); }
.km-imap-sw-neon button:nth-child(6n+5) { --km-neon-grad: linear-gradient(90deg, #2323ff, #b224ef, #ff2eb3); }
.km-imap-sw-neon button:nth-child(6n+6) { --km-neon-grad: linear-gradient(90deg, #24f53a, #21e6c1, #23e5ff); }

.km-imap-switch.km-imap-sw-neon button:hover {
	box-shadow: 0 0 16px rgba(255, 255, 255, 0.14) !important;
	transform: none;
}

.km-imap-switch.km-imap-sw-neon button:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35) !important;
	outline: none;
}

.km-imap-switch.km-imap-sw-neon button.km-active {
	background: var(--km-neon-grad) border-box !important;
	color: #0e0e11 !important;
	box-shadow: 0 0 22px rgba(255, 255, 255, 0.22) !important;
}

/* ==================== styl przelacznika: vivid (plaskie, soczyste) ==================== */

/* Pelne nasycone przyciski, naprzemiennie cyjan / magenta; hover przyciemnia,
   aktywny "wcisniety". Dziala na dowolnym tle motywu. */

.km-imap-switch.km-imap-sw-vivid {
	gap: 10px 12px;
	padding: 12px 0 14px;
}

.km-imap-switch.km-imap-sw-vivid button {
	--km-vivid: #00b8f0;
	--km-vivid-deep: #0077b0;
	background: var(--km-vivid) !important;
	border: none !important;
	border-radius: 6px !important;
	box-shadow: 0 2px 0 var(--km-vivid-deep) !important;
	padding: 11px 24px !important;
	color: #ffffff !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.2px !important;
	text-transform: none !important;
	transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.km-imap-sw-vivid button:nth-child(2n) {
	--km-vivid: #f00a8c;
	--km-vivid-deep: #a30563;
}

.km-imap-switch.km-imap-sw-vivid button:hover {
	filter: brightness(0.86);
	transform: none;
}

.km-imap-switch.km-imap-sw-vivid button:focus-visible {
	box-shadow: 0 2px 0 var(--km-vivid-deep), 0 0 0 3px rgba(255, 255, 255, 0.55) !important;
	outline: none;
}

.km-imap-switch.km-imap-sw-vivid button.km-active {
	background: var(--km-vivid-deep) !important;
	box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35) !important;
	transform: translateY(1px);
}

/* --- pion dla obu stylow --- */

.km-imap-switch-v.km-imap-sw-neon button,
.km-imap-switch-v.km-imap-sw-vivid button {
	width: 100%;
	text-align: center;
}

@media (prefers-reduced-motion: reduce) {
	.km-imap-sw-neon button, .km-imap-sw-vivid button { transition: none !important; transform: none !important; }
}

/* --- pinezka SVG na mapach OSM --- */
.km-imap-osm-svgpin { background: none !important; border: none !important; }
.km-imap-svgpin {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.km-imap-svgpin svg { width: 58%; height: 58%; display: block; }

/* --- strzalki galerii/grup jako inline SVG (odporne na style motywow) --- */
.km-imap-gal-nav {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.km-imap-gal-nav .km-imap-chev {
	width: 18px !important;
	height: 18px !important;
	display: block !important;
	color: inherit;
}

/* --- pseudo-fullscreen na iOS: realna wysokosc viewportu, safe-area, blokada przebicia scrolla --- */

.km-imap-pseudofs {
	height: 100vh !important;
	height: 100dvh !important;
	min-height: -webkit-fill-available;
	padding-top: max(2vh, env(safe-area-inset-top)) !important;
	padding-bottom: max(2vh, env(safe-area-inset-bottom)) !important;
	padding-left: max(2vw, env(safe-area-inset-left)) !important;
	padding-right: max(2vw, env(safe-area-inset-right)) !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}

html.km-imap-lb-open,
html.km-imap-lb-open body {
	overscroll-behavior: none;
	touch-action: none;
}

html.km-imap-lb-open .km-imap-pseudofs {
	touch-action: auto;
}

/* --- pseudofs: pelne pokrycie viewportu ponad trescia strony --- */
.km-imap-pseudofs {
	width: 100vw !important;
	z-index: 2147483000 !important;
}

/* ==================== artboard: porownanie przed/po ==================== */

.km-imap-cmp {
	position: relative;
	width: 100%;
	overflow: hidden;
	user-select: none;
	touch-action: none;
	cursor: ew-resize;
	line-height: 0;
}

.km-imap-cmp-a,
.km-imap-cmp-clip {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.km-imap-cmp-a,
.km-imap-cmp-b {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	pointer-events: none;
}

.km-imap-cmp-b {
	position: absolute;
	inset: 0;
}

.km-imap-cmp-divider {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 2px;
	margin-left: -1px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 8px rgba(0, 0, 0, 0.45);
	z-index: 2;
}

.km-imap-cmp-handle {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	color: #16181c;
	cursor: ew-resize;
}

.km-imap-cmp-handle:focus-visible {
	outline: none;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4), 0 0 0 3px var(--km-sc-accent, #0069ff);
}

.km-imap-cmp-handle .km-imap-chev {
	width: 14px;
	height: 14px;
	display: block;
}

.km-imap-cmp-label {
	position: absolute;
	top: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(17, 20, 24, 0.72);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.3px;
	line-height: 1.3;
	z-index: 3;
	pointer-events: none;
}

.km-imap-cmp-label-a { left: 12px; }
.km-imap-cmp-label-b { right: 12px; }

.km-imap-light .km-imap-cmp-label {
	background: rgba(255, 255, 255, 0.9);
	color: #16181c;
	box-shadow: 0 1px 4px rgba(16, 20, 24, 0.18);
}

/* --- plansza porownania w pelnym ekranie ---
   Boardy nie-embed dostaja tam width:fit-content, a .km-imap-cmp ma wylacznie
   dzieci absolutne (intrinsic width = 0) — bez tej reguly zapada sie do zera. */

.km-imap:fullscreen .km-imap-board-compare,
.km-imap-pseudofs .km-imap-board-compare {
	width: 100%;
}

.km-imap:fullscreen .km-imap-board-compare .km-imap-cmp,
.km-imap-pseudofs .km-imap-board-compare .km-imap-cmp {
	width: auto;
	height: 86vh;
	max-width: 100%;
	margin: 0 auto;
}

/* clip-b: wrapper takze usztywniony */
.km-imap-cmp-clip {
	z-index: 1;
}

/* --- obiekt przycisku na mapie --- */
.km-imap-btnobj { cursor: pointer; }
.km-imap-btnobj text { pointer-events: none; user-select: none; }
.km-imap-btnobj.km-btn-hover rect { filter: brightness(1.12); }
.km-imap-btnobj:focus-visible { outline: none; }
.km-imap-btnobj:focus-visible rect { stroke: #ffffff; stroke-width: 3; }
