html:has(body.bp-passport-map-page),
body.bp-passport-map-page {
	overflow-x: hidden;
}

body.bp-passport-map-page {
	background: #f4f7f2;
}

/* Zerowanie kontenerów motywu (classic + block themes + page buildery). */
.bp-passport-map-page .site-content,
.bp-passport-map-page .content-area,
.bp-passport-map-page .site-main,
.bp-passport-map-page #content,
.bp-passport-map-page #main,
.bp-passport-map-page #primary,
.bp-passport-map-page .site,
.bp-passport-map-page .site-inner,
.bp-passport-map-page .wrap,
.bp-passport-map-page .container,
.bp-passport-map-page .content,
.bp-passport-map-page .entry-content,
.bp-passport-map-page .page-content,
.bp-passport-map-page .wp-site-blocks,
.bp-passport-map-page .is-layout-constrained,
.bp-passport-map-page .elementor-section-boxed > .elementor-container {
	float: none;
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	padding-left: 0;
	padding-right: 0;
	width: 100%;
}

.bp-passport-map-page .site-content > .bpm-app,
.bp-passport-map-page .entry-content > .bpm-app {
	max-width: none;
}

.bpm-app,
.bpm-app * {
	box-sizing: border-box;
}

.bpm-app .screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.bpm-app {
	--bpm-green: #2e7d32;
	--bpm-green-dark: #205f25;
	--bpm-green-mid: #43a047;
	--bpm-green-soft: #e8f5e9;
	--bpm-ink: #1a2310;
	--bpm-text: #3d4e38;
	--bpm-muted: #6b7c64;
	--bpm-border: #d6e4d4;
	--bpm-paper: #f4f7f2;
	--bpm-white: #ffffff;
	--bpm-blue: #176b87;
	background: var(--bpm-paper);
	display: grid;
	font-family: inherit;
	grid-template-columns: minmax(350px, 410px) minmax(0, 1fr);
	height: calc(100vh - 82px);
	min-height: 620px;
	overflow: hidden;
	position: relative;
	/* Full-bleed: wyjście poza wyśrodkowany kontener motywu. */
	left: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	max-width: 100vw;
	right: 50%;
	width: 100vw;
}

.bpm-panel {
	background: var(--bpm-white);
	border-right: 1px solid var(--bpm-border);
	display: flex;
	flex-direction: column;
	min-height: 0;
	position: relative;
	z-index: 1001;
}

.bpm-panel__header {
	background:
		linear-gradient(135deg, rgba(46, 125, 50, .97), rgba(32, 95, 37, .98)),
		repeating-linear-gradient(45deg, transparent, transparent 16px, rgba(255, 255, 255, .04) 16px, rgba(255, 255, 255, .04) 17px);
	color: #fff;
	padding: 26px 25px 22px;
	position: relative;
}

.bpm-eyebrow {
	align-items: center;
	color: rgba(255, 255, 255, .72);
	display: flex;
	font-size: 10px;
	font-weight: 800;
	gap: 5px;
	letter-spacing: .12em;
	margin: 0 0 8px;
	text-transform: uppercase;
}

.bpm-eyebrow span {
	color: #fff;
}

.bpm-panel__header h2 {
	color: #fff;
	font-size: clamp(24px, 2vw, 30px);
	font-weight: 750;
	letter-spacing: -.035em;
	line-height: 1.08;
	margin: 0;
}

.bpm-panel__header p:last-child {
	color: rgba(255, 255, 255, .78);
	font-size: 13px;
	line-height: 1.55;
	margin: 12px 0 0;
}

.bpm-search {
	align-items: center;
	border-bottom: 1px solid var(--bpm-border);
	display: grid;
	grid-template-columns: 20px minmax(0, 1fr) 30px;
	padding: 10px 20px;
}

.bpm-search svg {
	fill: none;
	height: 18px;
	stroke: var(--bpm-muted);
	stroke-linecap: round;
	stroke-width: 1.8;
	width: 18px;
}

.bpm-search input {
	background: transparent;
	border: 0;
	box-shadow: none;
	color: var(--bpm-ink);
	font: inherit;
	font-size: 14px;
	height: 42px;
	min-width: 0;
	outline: 0;
	padding: 0 10px;
}

.bpm-search:focus-within {
	box-shadow: inset 4px 0 0 var(--bpm-green-mid);
}

.bpm-search input::placeholder {
	color: #899486;
}

.bpm-search__clear {
	background: transparent;
	border: 0;
	color: var(--bpm-muted);
	cursor: pointer;
	font-size: 22px;
	height: 30px;
	line-height: 1;
	padding: 0;
	width: 30px;
}

.bpm-controls {
	align-items: end;
	border-bottom: 1px solid var(--bpm-border);
	display: grid;
	gap: 9px;
	grid-template-columns: minmax(0, 1fr) auto;
	padding: 12px 20px;
}

.bpm-field {
	display: grid;
	gap: 5px;
}

.bpm-field label {
	color: var(--bpm-muted);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.bpm-field select {
	background-color: #fff;
	border: 1px solid var(--bpm-border);
	border-radius: 7px;
	color: var(--bpm-ink);
	font: inherit;
	font-size: 12px;
	height: 38px;
	min-width: 0;
	padding: 0 30px 0 10px;
	width: 100%;
}

.bpm-nearest {
	align-items: center;
	background: var(--bpm-green-soft);
	border: 1px solid #b9d9bb;
	border-radius: 7px;
	color: var(--bpm-green-dark);
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-size: 11px;
	font-weight: 750;
	gap: 6px;
	height: 38px;
	padding: 0 11px;
	white-space: nowrap;
}

.bpm-nearest:hover,
.bpm-nearest:focus-visible,
.bpm-nearest.is-active {
	background: var(--bpm-green);
	border-color: var(--bpm-green);
	color: #fff;
}

.bpm-nearest:disabled {
	cursor: wait;
	opacity: .68;
}

.bpm-nearest svg {
	fill: none;
	height: 16px;
	stroke: currentColor;
	stroke-width: 1.8;
	width: 16px;
}

.bpm-nearest.is-loading svg {
	animation: bpm-pulse 1s ease-in-out infinite;
}

.bpm-results-heading {
	align-items: center;
	border-bottom: 1px solid var(--bpm-border);
	display: flex;
	justify-content: space-between;
	padding: 12px 20px;
}

.bpm-results-heading div {
	align-items: baseline;
	display: flex;
	gap: 6px;
}

.bpm-results-heading strong {
	color: var(--bpm-ink);
	font-size: 18px;
	font-weight: 800;
}

.bpm-results-heading span {
	color: var(--bpm-muted);
	font-size: 10px;
}

.bpm-reset {
	background: transparent;
	border: 0;
	color: var(--bpm-green);
	cursor: pointer;
	font: inherit;
	font-size: 10px;
	font-weight: 750;
	padding: 6px 0 6px 8px;
}

.bpm-results {
	min-height: 0;
	overflow-y: auto;
	scrollbar-color: #bdcbbb transparent;
	scrollbar-width: thin;
}

.bpm-results__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bpm-result {
	border-bottom: 1px solid var(--bpm-border);
	margin: 0;
}

.bpm-result__button {
	background: #fff;
	border: 0;
	color: var(--bpm-ink);
	cursor: pointer;
	display: flex;
	flex-direction: column;
	font: inherit;
	gap: 5px;
	padding: 14px 20px 15px;
	text-align: left;
	transition: background-color .16s ease, box-shadow .16s ease;
	width: 100%;
}

.bpm-result__button:hover,
.bpm-result__button:focus-visible,
.bpm-result.is-active .bpm-result__button {
	background: var(--bpm-green-soft);
	box-shadow: inset 4px 0 0 var(--bpm-green);
	outline: 0;
}

.bpm-result.is-nearest .bpm-result__button {
	box-shadow: inset 4px 0 0 var(--bpm-blue);
}

.bpm-result__heading {
	align-items: flex-start;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	width: 100%;
}

.bpm-result__heading strong {
	font-size: 13px;
	font-weight: 750;
	line-height: 1.32;
}

.bpm-result__region {
	color: var(--bpm-green);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.bpm-result small {
	display: block;
	font-size: 10px;
	line-height: 1.42;
}

.bpm-result__address {
	color: var(--bpm-muted);
}

.bpm-result__phone {
	color: var(--bpm-text);
	font-weight: 650;
}

.bpm-distance {
	background: #edf4f7;
	border-radius: 999px;
	color: var(--bpm-blue);
	flex: 0 0 auto;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	padding: 5px 7px;
	white-space: nowrap;
}

.bpm-results__empty {
	color: var(--bpm-muted);
	font-size: 13px;
	line-height: 1.55;
	margin: 0;
	padding: 34px 24px;
	text-align: center;
}

.bpm-stage,
.bpm-map {
	height: 100%;
	min-height: 0;
	width: 100%;
}

.bpm-stage {
	background: #dfe9de;
	position: relative;
}

.bpm-map {
	z-index: 1;
}

.bpm-map .leaflet-tile-pane {
	filter: saturate(.76) contrast(.96) brightness(1.035);
}

.bpm-map .leaflet-control-zoom a {
	color: var(--bpm-ink);
}

.bpm-map .leaflet-popup-content-wrapper,
.bpm-map .leaflet-popup-tip {
	border-radius: 8px;
}

.bpm-map .leaflet-popup-content {
	margin: 16px;
}

.bpm-office-div-icon {
	background: transparent;
	border: 0;
}

.bpm-office-marker {
	align-items: center;
	background: var(--bpm-green);
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 8px;
	box-shadow: 0 3px 10px rgba(26, 35, 16, .26);
	color: #fff;
	display: flex;
	height: 32px;
	justify-content: center;
	transform: rotate(-45deg);
	width: 32px;
}

.bpm-office-marker svg {
	fill: none;
	height: 17px;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-width: 1.7;
	transform: rotate(45deg);
	width: 17px;
}

.bpm-cluster-icon {
	background: transparent;
	border: 0;
}

.bpm-cluster-icon > span:first-child {
	align-items: center;
	background: rgba(32, 95, 37, .94);
	border: 4px solid rgba(255, 255, 255, .92);
	border-radius: 50%;
	box-shadow: 0 3px 12px rgba(26, 35, 16, .28);
	color: #fff;
	display: flex;
	font-size: 12px;
	font-weight: 800;
	height: 100%;
	justify-content: center;
	width: 100%;
}

.bpm-popup {
	color: var(--bpm-ink);
	font-family: inherit;
}

.bpm-popup__meta {
	align-items: center;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	margin-bottom: 9px;
}

.bpm-region-badge {
	color: var(--bpm-green);
	font-size: 9px;
	font-weight: 800;
	letter-spacing: .07em;
	text-transform: uppercase;
}

.bpm-popup__title {
	display: block;
	font-size: 15px;
	line-height: 1.3;
	margin-bottom: 9px;
}

.bpm-popup__address {
	border-bottom: 1px solid var(--bpm-border);
	color: var(--bpm-text);
	font-size: 11px;
	line-height: 1.6;
	margin: 0 0 10px;
	padding: 0 0 10px;
}

.bpm-popup__phone {
	color: var(--bpm-green-dark);
	display: inline-block;
	font-size: 12px;
	font-weight: 750;
	margin: 0 0 11px;
	text-decoration: none;
}

.bpm-popup__phone--plain {
	color: var(--bpm-muted);
}

.bpm-popup__actions {
	display: grid;
	gap: 7px;
	grid-template-columns: 1fr 1fr;
}

.bpm-popup__actions a {
	align-items: center;
	border: 1px solid var(--bpm-border);
	border-radius: 5px;
	color: var(--bpm-ink);
	display: flex;
	font-size: 10px;
	font-weight: 750;
	justify-content: center;
	min-height: 38px;
	padding: 6px;
	text-align: center;
	text-decoration: none;
}

.bpm-popup__actions .bpm-popup__primary {
	background: var(--bpm-green);
	border-color: var(--bpm-green);
	color: #fff;
}

.bpm-error,
.bpm-location-status,
.bpm-noscript {
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(46, 125, 50, .18);
	border-radius: 8px;
	box-shadow: 0 10px 26px rgba(26, 35, 16, .13);
	color: var(--bpm-ink);
	font-size: 12px;
	left: 50%;
	margin: 0;
	padding: 11px 15px;
	position: absolute;
	top: 18px;
	transform: translateX(-50%);
	z-index: 1000;
}

.bpm-error[hidden],
.bpm-location-status[hidden] {
	display: none;
}

.bpm-location-status.is-error,
.bpm-error {
	border-color: rgba(169, 54, 47, .28);
	color: #8b2f2a;
}

.bpm-map-actions {
	display: grid;
	gap: 8px;
	position: absolute;
	right: 12px;
	top: 92px;
	z-index: 999;
}

.bpm-map-actions button {
	align-items: center;
	background: #fff;
	border: 1px solid rgba(26, 35, 16, .15);
	border-radius: 6px;
	box-shadow: 0 2px 8px rgba(26, 35, 16, .13);
	color: var(--bpm-green-dark);
	cursor: pointer;
	display: flex;
	height: 38px;
	justify-content: center;
	padding: 0;
	width: 38px;
}

.bpm-map-actions button:hover,
.bpm-map-actions button:focus-visible {
	background: var(--bpm-green);
	color: #fff;
}

.bpm-map-actions svg {
	fill: none;
	height: 18px;
	stroke: currentColor;
	stroke-width: 1.8;
	width: 18px;
}

.bpm-legend {
	align-items: center;
	background: rgba(255, 255, 255, .95);
	border: 1px solid rgba(26, 35, 16, .14);
	border-radius: 7px;
	bottom: 15px;
	display: flex;
	font-size: 10px;
	gap: 14px;
	left: 15px;
	padding: 9px 11px;
	position: absolute;
	z-index: 999;
}

.bpm-legend span {
	align-items: center;
	color: var(--bpm-text);
	display: inline-flex;
	gap: 7px;
}

.bpm-legend__office {
	background: var(--bpm-green);
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 3px;
	box-shadow: 0 0 0 1px rgba(26, 35, 16, .2);
	height: 13px;
	transform: rotate(-45deg);
	width: 13px;
}

.bpm-legend__cluster {
	align-items: center;
	background: var(--bpm-green-dark);
	border: 2px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(26, 35, 16, .2);
	color: #fff;
	display: inline-flex;
	font-size: 7px;
	font-style: normal;
	font-weight: 800;
	height: 18px;
	justify-content: center;
	width: 18px;
}

.bpm-mobile-toggle {
	display: none;
}

@keyframes bpm-pulse {
	50% { opacity: .35; transform: scale(.8); }
}

@media (max-width: 800px) {
	.bpm-app {
		display: block;
		height: calc(100svh - 58px);
		min-height: 540px;
	}

	.bpm-stage {
		inset: 0;
		position: absolute;
	}

	.bpm-panel {
		border: 1px solid var(--bpm-border);
		border-radius: 12px;
		bottom: 72px;
		box-shadow: 0 18px 50px rgba(26, 35, 16, .22);
		left: 10px;
		max-height: calc(100% - 92px);
		overflow: hidden;
		position: absolute;
		right: 10px;
		transform: translateY(calc(100% + 90px));
		transition: transform .25s ease;
		z-index: 1200;
	}

	.bpm-app.is-panel-open .bpm-panel {
		transform: translateY(0);
	}

	.bpm-panel__header {
		padding: 19px 18px 15px;
	}

	.bpm-panel__header h2 {
		font-size: 22px;
	}

	.bpm-panel__header p:last-child {
		display: none;
	}

	.bpm-search,
	.bpm-controls,
	.bpm-results-heading {
		padding-left: 16px;
		padding-right: 16px;
	}

	.bpm-controls {
		grid-template-columns: minmax(0, 1fr) auto;
	}

	.bpm-mobile-toggle {
		background: var(--bpm-green-dark);
		border: 0;
		border-radius: 999px;
		bottom: 18px;
		box-shadow: 0 5px 18px rgba(26, 35, 16, .28);
		color: #fff;
		display: block;
		font: inherit;
		font-size: 12px;
		font-weight: 800;
		left: 50%;
		min-height: 44px;
		padding: 0 20px;
		position: absolute;
		transform: translateX(-50%);
		white-space: nowrap;
		z-index: 1300;
	}

	.bpm-map-actions {
		top: 90px;
	}

	.bpm-legend {
		bottom: 72px;
		flex-direction: column;
		gap: 7px;
		left: 10px;
		align-items: flex-start;
	}

	.bpm-location-status,
	.bpm-error {
		max-width: calc(100% - 110px);
		text-align: center;
	}
}

@media (max-width: 440px) {
	.bpm-controls {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	.bpm-nearest {
		justify-content: center;
	}

	.bpm-popup__actions {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bpm-panel,
	.bpm-result__button,
	.bpm-nearest svg {
		animation: none;
		transition: none;
	}
}
