.pbl-parking-map {
	position: relative;
	width: 100%;
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
	background: #e8f0fb;
}

/* Elementor flex containers can collapse empty/absolute map canvases to 0 width. */
.elementor-widget-parkiraj-bl-parking-map,
.elementor-widget-parkiraj-bl-parking-map > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
	min-width: 0;
	align-self: stretch;
}

.pbl-parking-map--empty,
.pbl-parking-map--missing-key {
	padding: 1.5rem;
	border: 1px dashed #c3c4c7;
	border-radius: 12px;
	background: #fff;
	color: #5b6b7c;
}

.pbl-parking-map--missing-key a {
	color: #0a57cd;
}

.pbl-parking-map__canvas {
	width: 100%;
	height: 452px;
	border-radius: 12px;
}

.pbl-parking-map__toolbar {
	position: absolute;
	top: 1.5rem;
	left: 1.5rem;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: calc(100% - 3rem);
}

.pbl-parking-map__find {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	min-height: 56px;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 8px;
	background: #0a57cd;
	color: #fff;
	font-family: inherit;
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.125rem;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 32, 66, 0.18);
}

.pbl-parking-map__find:hover,
.pbl-parking-map__find:focus-visible {
	background: #002042;
	outline: none;
}

.pbl-parking-map__find-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 999px;
	background: #fff;
	flex-shrink: 0;
}

.pbl-parking-map__find-icon img {
	display: block;
	width: 20px;
	height: 20px;
}

.pbl-parking-map__locate {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	padding: 2px;
	border: 0;
	border-radius: 999px;
	background: #fff;
	box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.22);
	cursor: pointer;
	flex-shrink: 0;
}

.pbl-parking-map__locate:hover,
.pbl-parking-map__locate:focus-visible {
	outline: 2px solid #0a57cd;
	outline-offset: 2px;
}

.pbl-parking-map__locate img {
	display: block;
	width: 24px;
	height: 24px;
}

.pbl-parking-map__status {
	position: absolute;
	left: 1.5rem;
	right: 1.5rem;
	bottom: 1.5rem;
	z-index: 2;
	margin: 0;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: rgba(0, 32, 66, 0.9);
	color: #fff;
	font-size: 0.875rem;
	line-height: 1.4;
}

.pbl-parking-map__status[hidden] {
	display: none !important;
}

.pbl-parking-map__status--error {
	background: rgba(218, 29, 29, 0.92);
}

/* Custom numbered pin (HTML AdvancedMarker / overlay content) */
.pbl-map-pin {
	position: relative;
	width: 32px;
	height: 40px;
	transform: translateY(-4px);
	cursor: pointer;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.pbl-map-pin__shape {
	position: absolute;
	inset: 0;
	background: currentColor;
	border-radius: 50% 50% 50% 0;
	transform: rotate(-45deg);
	border: 2px solid #fff;
}

.pbl-map-pin__label {
	position: absolute;
	top: 3px;
	left: 3px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 999px;
	background: currentColor;
	color: #fff;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1;
	z-index: 1;
}

.pbl-map-pin.is-active {
	transform: translateY(-8px) scale(1.08);
	z-index: 2;
}

/* Marker InfoWindow popup */
.pbl-map-info {
	max-width: 260px;
	padding: 0.25rem 0.15rem 0.35rem;
	font-family: inherit;
	color: #002042;
}

.pbl-map-info__title {
	margin: 0 0 0.5rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.25;
	color: #002042;
}

.pbl-map-info__pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem;
	margin: 0 0 0.625rem;
}

.pbl-map-info__pill {
	display: inline-flex;
	align-items: center;
	padding: 0.25rem 0.625rem;
	border-radius: 32px;
	font-size: 0.6875rem;
	font-weight: 500;
	line-height: 1.2;
	white-space: nowrap;
}

.pbl-map-info__pill--availability {
	background: #daffd9;
	color: #05a700;
}

.pbl-map-info[data-status='limited'] .pbl-map-info__pill--availability {
	background: #fff4d6;
	color: #9a6b00;
}

.pbl-map-info[data-status='full'] .pbl-map-info__pill--availability,
.pbl-map-info[data-status='unavailable'] .pbl-map-info__pill--availability {
	background: rgba(218, 29, 29, 0.12);
	color: #da1d1d;
}

.pbl-map-info__pill--type {
	background: #e6f2ff;
	color: #0a57cd;
}

.pbl-map-info__row {
	margin: 0 0 0.375rem;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #5b6b7c;
}

.pbl-map-info__label {
	font-weight: 600;
	color: #002042;
}

.pbl-map-info__text {
	margin: 0.25rem 0 0.75rem;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: #5b6b7c;
}

.pbl-map-info__actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.pbl-map-info__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.5rem 0.875rem;
	border-radius: 8px;
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	text-align: center;
	box-sizing: border-box;
}

.pbl-map-info__btn--primary {
	background: #0a57cd;
	color: #fff;
}

.pbl-map-info__btn--primary:hover,
.pbl-map-info__btn--primary:focus-visible {
	background: #002042;
	color: #fff;
}

.pbl-map-info__btn--secondary {
	background: transparent;
	border: 1px solid #0a57cd;
	color: #0a57cd;
}

.pbl-map-info__btn--secondary:hover,
.pbl-map-info__btn--secondary:focus-visible {
	background: #e6f2ff;
	color: #0a57cd;
}

/* Tighten Google InfoWindow chrome a bit */
.gm-style .gm-style-iw-c {
	padding: 12px !important;
	border-radius: 12px !important;
}

.gm-style .gm-style-iw-d {
	overflow: auto !important;
}

@media (max-width: 781px) {
	.pbl-parking-map__toolbar {
		top: 1rem;
		left: 1rem;
		max-width: calc(100% - 2rem);
	}

	.pbl-parking-map__find-label {
		max-width: 11rem;
	}

	.pbl-parking-map__status {
		left: 1rem;
		right: 1rem;
		bottom: 1rem;
	}
}
