.rpl-poland-map {
	--rpl-map-pin: #e2759f;
}

.rpl-poland-map--with-list {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.8fr);
	gap: 24px;
	align-items: stretch;
}

.rpl-poland-map__canvas {
	width: 100%;
	min-height: 280px;
	overflow: hidden;
	background: #f3efe9;
	z-index: 0;
}

.rpl-poland-map--style-grey .rpl-poland-map__canvas {
	background: #eceae7;
}

.rpl-poland-map--style-color .rpl-poland-map__canvas {
	background: #eef2f0;
}

.rpl-poland-map--style-warm .leaflet-tile-pane {
	filter: grayscale(1) sepia(0.32) saturate(0.55) brightness(1.06) contrast(0.92);
}

.rpl-poland-map--style-grey .leaflet-tile-pane {
	filter: grayscale(1) brightness(1.04) contrast(0.96);
}

.rpl-poland-map .leaflet-control-zoom a {
	background: #fff;
	color: #2b2623;
	border-bottom-color: rgba(43, 38, 35, 0.12);
}

.rpl-poland-map .leaflet-control-zoom a:hover {
	background: #f8f3f5;
	color: #e2759f;
}

.rpl-poland-map .leaflet-control-attribution {
	background: rgba(247, 242, 236, 0.88);
	color: #6d6a66;
	font-size: 10px;
}

.rpl-poland-map__canvas .leaflet-marker-pane,
.rpl-poland-map__canvas .leaflet-marker-icon {
	z-index: 600;
}

.rpl-map-pin-icon {
	background: transparent !important;
	border: 0 !important;
}

.rpl-poland-map__sidebar {
	display: flex;
	flex-direction: column;
	min-height: 0;
	height: var(--rpl-map-height, 480px);
	max-height: var(--rpl-map-height, 480px);
	overflow: hidden;
}

.rpl-poland-map__search {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
	margin-bottom: 10px;
	padding: 0 12px 0 14px;
	border: 1px solid rgba(43, 38, 35, 0.14);
	border-radius: 12px;
	background: #fff;
}

.rpl-poland-map__search-icon {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	color: #e2759f;
	pointer-events: none;
}

.rpl-poland-map__search-input,
.rpl-poland-map input.rpl-poland-map__search-input[type="search"] {
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 4px 12px 0 !important;
	border: 0 !important;
	border-radius: 0;
	background: transparent;
	box-shadow: none !important;
	color: #2b2623;
	font: inherit;
	font-size: 0.95rem;
	-webkit-appearance: none;
	appearance: none;
}

.rpl-poland-map__search-input::-webkit-search-decoration,
.rpl-poland-map__search-input::-webkit-search-cancel-button {
	-webkit-appearance: none;
	appearance: none;
}

.rpl-poland-map__search-input::placeholder {
	color: #8a8580;
}

.rpl-poland-map__search-input:focus {
	outline: none;
}

.rpl-poland-map__search:focus-within {
	border-color: var(--rpl-map-pin, #e2759f);
	box-shadow: 0 0 0 3px rgba(226, 117, 159, 0.16);
}

.rpl-poland-map__list > li[hidden] {
	display: none !important;
}

.rpl-poland-map__empty {
	margin: 0 0 8px;
	color: #6d6a66;
	font-size: 0.9rem;
}

.rpl-poland-map__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1 1 auto;
	min-height: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.rpl-poland-map__list-btn {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	width: 100%;
	padding: 12px 14px 12px 16px;
	border: 1px solid rgba(43, 38, 35, 0.12);
	border-radius: 12px;
	background: #fff;
	color: #2b2623 !important;
	text-align: left;
	cursor: pointer;
	font: inherit;
	box-shadow: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.rpl-poland-map__list-btn:hover,
.rpl-poland-map__list-btn:focus-visible,
.rpl-poland-map__list-btn:active {
	border-color: var(--rpl-map-pin, #e2759f);
	background: #fff;
	color: #2b2623 !important;
	outline: none;
}

.rpl-poland-map__list-btn.is-active,
.rpl-poland-map__list-btn.is-active:hover,
.rpl-poland-map__list-btn.is-active:active {
	background: #f7f2ec;
	border-color: var(--rpl-map-pin, #e2759f);
	border-left-width: 4px;
	padding-left: 13px;
	box-shadow: 0 6px 16px rgba(43, 38, 35, 0.08);
	color: #2b2623 !important;
}

.rpl-poland-map__list-title {
	display: block;
	font-weight: 600;
	font-size: 0.98rem;
	line-height: 1.35;
	color: #2b2623 !important;
}

.rpl-poland-map__list-meta {
	color: #6d6a66 !important;
	font-size: 0.85rem;
	line-height: 1.4;
}

.rpl-map-pin {
	position: relative;
	display: block;
	width: 22px;
	height: 22px;
	margin: 0 auto;
	border-radius: 50% 50% 50% 0;
	background: var(--rpl-map-pin, #e2759f);
	transform: rotate(-45deg);
	box-shadow: 0 4px 10px rgba(43, 38, 35, 0.28);
}

.rpl-map-pin__dot {
	position: absolute;
	top: 6px;
	left: 6px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
}

.rpl-map-popup {
	min-width: 160px;
	max-width: 240px;
}

.rpl-map-popup__title {
	display: block;
	margin: 0 0 4px;
	color: #2b2623;
	font-size: 1rem;
}

.rpl-map-popup__address,
.rpl-map-popup__text {
	margin: 0 0 8px;
	color: #4f4b47;
	font-size: 0.88rem;
	line-height: 1.45;
}

.rpl-map-popup__link {
	color: #e2759f;
	font-weight: 600;
	font-size: 0.88rem;
	text-decoration: none;
}

.rpl-map-popup__link:hover {
	text-decoration: underline;
}

.leaflet-popup-content-wrapper {
	border-radius: 12px;
	box-shadow: 0 10px 28px rgba(43, 38, 35, 0.16);
}

.leaflet-container a {
	color: #e2759f;
}

@media (max-width: 782px) {
	.rpl-poland-map--with-list {
		grid-template-columns: minmax(0, 1fr);
	}

	.rpl-poland-map__sidebar {
		height: auto;
		max-height: min(70vh, var(--rpl-map-height, 480px));
	}
}
