/* Mapa Punktów – frontend */
.mapa-punktow {
	--mp-color: #d71920;
	width: 100%;
}

.mapa-punktow,
.mapa-punktow * {
	box-sizing: border-box;
}

.mapa-punktow__map {
	position: relative;
	z-index: 0; /* Leaflet ma wysokie z-indexy – nie nachodzi na menu/nagłówek strony. */
	width: 100%;
	background: #e8eaed;
	/* Niektóre motywy/Elementor nakładają szary filtr na mapy – tu go wyłączamy. */
	filter: none !important;
	-webkit-filter: none !important;
}

.mapa-punktow__map .leaflet-tile,
.mapa-punktow__map .leaflet-tile-pane,
.mapa-punktow__map img {
	filter: none !important;
	-webkit-filter: none !important;
}

/* Pinezka */
.mapa-punktow-pin {
	background: none !important;
	border: 0 !important;
}

.mapa-punktow-pin svg,
.mapa-punktow-gpin__icon svg {
	display: block;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
}

/* Etykieta z nazwą nad pinezką */
.mapa-punktow-label,
.leaflet-tooltip.mapa-punktow-label {
	background: #fff;
	border: 0;
	border-radius: 4px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
	color: #1d2327;
	font: 600 13px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	padding: 4px 8px;
	white-space: nowrap;
}

.leaflet-tooltip-top.mapa-punktow-label::before {
	border-top-color: #fff;
}

/* Google Maps – etykieta klasycznej pinezki */
.mapa-punktow-glabel {
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
	padding: 4px 8px;
	white-space: nowrap;
}

/* Google Maps – pinezka z Map ID */
.mapa-punktow-gpin {
	display: flex;
	flex-direction: column;
	align-items: center;
	cursor: pointer;
}

.mapa-punktow-gpin .mapa-punktow-label {
	margin-bottom: 4px;
}

/* Karta punktu (dymek i lista) */
.mapa-punktow-card {
	color: #1d2327;
	font-size: 14px;
	line-height: 1.45;
	text-align: left;
}

.mapa-punktow-card__name {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 8px;
}

.mapa-punktow-card__row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin: 5px 0;
}

.mapa-punktow-card__row > div {
	min-width: 0;
	overflow-wrap: anywhere;
}

.mapa-punktow-ico {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	color: var(--mp-color);
}

.mapa-punktow .mapa-punktow-card a {
	color: var(--mp-color);
	text-decoration: none;
}

.mapa-punktow .mapa-punktow-card a:hover {
	text-decoration: underline;
}

.mapa-punktow-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
}

.mapa-punktow .mapa-punktow-card .mapa-punktow-btn {
	display: inline-block;
	margin: 0;
	padding: 7px 12px;
	border: 1px solid var(--mp-color);
	border-radius: 4px;
	background: var(--mp-color);
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	white-space: nowrap;
	box-shadow: none;
}

.mapa-punktow .mapa-punktow-card .mapa-punktow-btn:hover {
	filter: brightness(.92);
	text-decoration: none;
}

.mapa-punktow .mapa-punktow-card .mapa-punktow-btn--ghost {
	background: transparent;
	color: var(--mp-color);
}

/* Dymek Leaflet */
.mapa-punktow .leaflet-popup-content {
	margin: 14px 18px;
}

.mapa-punktow .leaflet-container a.leaflet-popup-close-button {
	color: #50575e;
}

/* Lista punktów pod mapą */
.mapa-punktow__list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 16px;
	margin-top: 16px;
}

.mapa-punktow__item {
	padding: 16px 18px;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	background: #fff;
}

.mapa-punktow-empty {
	padding: 12px 16px;
	border-left: 4px solid #dba617;
	background: #fcf9e8;
}
