.pa-property-map {
	margin-top: 28px;
}

.pa-property-map h2 {
	margin-bottom: 14px;
}

.pa-property-map__frame {
	position: relative;
	overflow: hidden;
	min-height: 380px;
	border-radius: 18px;
	background: #eaf3f4;
	box-shadow: 0 12px 35px rgba(5, 54, 71, .1);
}

.pa-property-map__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 380px;
}

.pa-property-map__loading {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	margin: 0;
	padding: 24px;
	color: #315b64;
	text-align: center;
}

.pa-property-map__canvas--error {
	background: linear-gradient(135deg, #eef7f8, #dcecef);
}

.pa-property-map__canvas .maplibregl-popup-content {
	min-width: 200px;
	padding: 12px 15px;
	border-radius: 11px;
	font-size: 14px;
	line-height: 1.4;
	text-align: center;
	box-shadow: 0 8px 28px rgba(4, 43, 58, .22);
}

.pa-property-map__canvas .maplibregl-popup-content strong {
	display: block;
	margin-bottom: 3px;
	font-size: 15px;
	color: #083d55;
}

.pa-map-marker {
	position: relative;
	width: 38px;
	height: 48px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .28));
}

.pa-map-marker span {
	position: absolute;
	top: 0;
	left: 3px;
	width: 32px;
	height: 32px;
	border: 3px solid #fff;
	border-radius: 50% 50% 50% 0;
	background: #d93025;
	transform: rotate(-45deg);
}

.pa-map-marker span::after {
	position: absolute;
	top: 8px;
	left: 8px;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	content: '';
}

.pa-map-marker:focus-visible {
	outline: 3px solid #087d91;
	outline-offset: 3px;
}

.pa-property-map__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
}

.pa-property-map__actions a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 9px 15px;
	border: 1px solid #c8e0e4;
	border-radius: 999px;
	background: #fff;
	color: #073d59 !important;
	font-weight: 800;
	text-decoration: none !important;
}

.pa-property-map__actions .pa-map-primary {
	border-color: #087d91;
	background: #087d91;
	color: #fff !important;
}

@media (max-width: 600px) {
	.pa-property-map__frame,
	.pa-property-map__canvas {
		min-height: 320px;
	}

	.pa-property-map__actions a {
		width: 100%;
	}
}

/* Map / terrain mode switcher. */
.pa-property-map__modes {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 4;
	display: inline-flex;
	gap: 3px;
	padding: 4px;
	border: 1px solid rgba(7, 61, 89, .18);
	border-radius: 999px;
	background: rgba(255, 255, 255, .94);
	box-shadow: 0 5px 18px rgba(4, 43, 58, .16);
	backdrop-filter: blur(8px);
}

.pa-property-map__modes button {
	min-height: 38px;
	padding: 7px 13px;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #073d59;
	font: inherit;
	font-size: 13px;
	font-weight: 800;
	line-height: 1;
	cursor: pointer;
}

.pa-property-map__modes button:hover,
.pa-property-map__modes button:focus-visible {
	background: #e7f3f5;
}

.pa-property-map__modes button:focus-visible {
	outline: 3px solid rgba(8, 125, 145, .35);
	outline-offset: 1px;
}

.pa-property-map__modes button.is-active {
	background: #087d91;
	color: #fff;
}

.pa-property-map__modes button:disabled {
	opacity: .5;
	cursor: not-allowed;
}

.pa-property-map__frame.is-terrain .maplibregl-canvas {
	cursor: grab;
}

@media (max-width: 600px) {
	.pa-property-map__modes {
		top: 10px;
		left: 10px;
	}

	.pa-property-map__modes button {
		min-height: 36px;
		padding-inline: 11px;
		font-size: 12px;
	}
}

