.location-map-block {
	position: relative;
}

.location-map {
	position: relative;
	display: block;
	width: 100%;
	max-width: 700px;
	margin-inline: auto;
}

.location-map__image {
	display: block;
	width: 100%;
	height: auto;
}

.location-map__marker {
	position: absolute;
	left: var(--location-map-x);
	top: var(--location-map-y);
	z-index: 2;
	transform: translate(-50%, -50%);
}

.location-map__pin {
	position: relative;
	display: block;
	width: 2.25rem;
	height: 2.25rem;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: #ffffff;
	cursor: pointer;
}

.location-map__tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 1rem);
	z-index: 3;
	min-width: 15rem;
	padding: 1rem 1.5rem;
	background: #ffffff;
	color: var(--wp--preset--color--contrast, #1d1028);
	box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.18);
	font-size: 1rem;
	line-height: 1.4;
	text-align: center;
	white-space: nowrap;
	transform: translateX(-50%);
	opacity: 0;
	pointer-events: none;
	transition:
		opacity 0.2s ease,
		transform 0.2s ease;
}

.location-map__tooltip::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 1rem;
	height: 1rem;
	background: #ffffff;
	transform: translateX(-50%) translateY(50%) rotate(45deg);
}

.location-map__marker:hover .location-map__tooltip,
.location-map__marker:focus-within .location-map__tooltip,
.location-map__marker.is-active .location-map__tooltip {
	opacity: 1;
	transform: translateX(-50%) translateY(-0.25rem);
}

.location-map__pin {
	position: relative;
	overflow: visible;
}

.location-map__pin::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 999px;
	border: 10px solid rgba(255, 255, 255, 0.5);
	animation: location-map-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.location-map__pin::after {
	display: none;
}

@keyframes location-map-ping {
	0% {
		transform: scale(1);
		opacity: 0.7;
	}

	70% {
		transform: scale(2);
		opacity: 0;
	}

	100% {
		transform: scale(2);
		opacity: 0;
	}
}