:root {
	--hotspot-animation-delay-step: 0.25s;
	--hotspot-overlay-bg: rgb(28, 42, 50);
	--hotspot-overlay-color: #ffffff;
	--hotspot-marker-size: 24px;
}

.hotspotsWrapper {
	max-width: 1600px;
	width: 100%;
}

.hotspots {
	position: relative;

	&.hotspots--small {
		width: 75%;
		margin-inline: auto;

		@media screen and (max-width: 1200px) {
			width: 100%;
		}
	}
}

.hotspots__image {
	width: 100%;
	height: auto;
	display: block;
}

.hotspots__hotspot {
	position: absolute;
	transform: translate(-50%, -50%);
	line-height: 0;
	pointer-events: auto;
	transition: opacity 0.2s ease-in-out;

	& > img,
	& .hotspots__hotspotMarker {
		cursor: pointer;
		opacity: 0;
		visibility: hidden;
		animation: zoomIn 0.5s ease-in-out both;
		animation-delay: calc(var(--hotspot-index, 0) * var(--hotspot-animation-delay-step));
	}

	&:hover .hotspots__hotspotOverlay {
		opacity: 1;
		pointer-events: auto;
	}

	/* Active state for mobile */
	&.hotspots__hotspot--active {
		@media only screen and (max-width: 768px) {
			scale: 1.4;
			transition: scale 0.2s ease-in-out;
			transform-origin: left;
		}
	}

	&.hotspots__hotspot--hide {
		opacity: 0;
		pointer-events: none;
	}

	/* Overlay Color: Dark */
	&.hotspots__hotspot--overlayColor-dark .hotspots__hotspotOverlay {
		color: var(--hotspot-overlay-color);
		background-color: var(--hotspot-overlay-bg);

		& p {
			color: var(--hotspot-overlay-color);
			margin: 0 0 8px 0;
			line-height: 1.4;

			&:last-child {
				margin-bottom: 0;
			}
		}
	}

	/* Overlay Color: Light */
	&.hotspots__hotspot--overlayColor-light .hotspots__hotspotOverlay {
		color: #000000;
		background: #ffffff;

		& p {
			color: #000000;
			margin: 0 0 8px 0;
			line-height: 1.4;

			&:last-child {
				margin-bottom: 0;
			}
		}
	}

	/* Overlay Positions */
	&.hotspots__hotspot--overlayPosition-left-top .hotspots__hotspotOverlay {
		transform: translateY(-100%);
		right: 12px;
		top: 12px;
		box-shadow: -5px -5px 5px -5px rgba(0, 0, 0, 0.6);
	}

	&.hotspots__hotspot--overlayColor-light.hotspots__hotspot--overlayPosition-left-top .hotspots__hotspotOverlay {
		box-shadow: -5px -5px 5px -5px rgba(255, 255, 255, 0.6);
	}

	&.hotspots__hotspot--overlayPosition-left-bot .hotspots__hotspotOverlay {
		transform: translateY(100%);
		right: 12px;
		bottom: 12px;
		box-shadow: -5px 5px 5px -5px rgba(0, 0, 0, 0.6);
	}

	&.hotspots__hotspot--overlayColor-light.hotspots__hotspot--overlayPosition-left-bot .hotspots__hotspotOverlay {
		box-shadow: -5px 5px 5px -5px rgba(255, 255, 255, 0.6);
	}

	&.hotspots__hotspot--overlayPosition-right-top .hotspots__hotspotOverlay {
		transform: translateY(-100%);
		left: 12px;
		top: 12px;
		box-shadow: 5px -5px 5px -5px rgba(0, 0, 0, 0.6);
	}

	&.hotspots__hotspot--overlayColor-light.hotspots__hotspot--overlayPosition-right-top .hotspots__hotspotOverlay {
		box-shadow: 5px -5px 5px -5px rgba(255, 255, 255, 0.6);
	}

	&.hotspots__hotspot--overlayPosition-right-bot .hotspots__hotspotOverlay {
		transform: translateY(100%);
		left: 12px;
		bottom: 12px;
		box-shadow: 5px 5px 5px -5px rgba(0, 0, 0, 0.6);
	}

	&.hotspots__hotspot--overlayColor-light.hotspots__hotspot--overlayPosition-right-bot .hotspots__hotspotOverlay {
		box-shadow: 5px 5px 5px -5px rgba(255, 255, 255, 0.6);
	}
}

.hotspots__hotspotOverlay {
	position: absolute;
	opacity: 0;
	pointer-events: none;
	width: 200px;
	max-width: 200px;
	min-width: 150px;
	height: auto;
	padding: 10px;
	transition: opacity 0.2s ease-in-out;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	line-height: 1.4;

	@media only screen and (max-width: 768px) {
		display: none;
	}
}

/* Mobile Text List - outside .hotspots container, inside .hotspotsWrapper */
.hotspots__mobileTextList {
	display: none;
	margin-top: 1.5rem;

	@media only screen and (max-width: 768px) {
		display: block;
	}
}

.hotspots__mobileTextItem {
	display: none;
	padding: 1rem 0;

	&.hotspots__mobileTextItem--active {
		display: block;
	}

	&:last-child {
		border-bottom: none;
	}

	& p {
		margin: 0;
		line-height: 1.6;
	}
}

.hotspots__mobileTextTitle {
	margin: 0 0 0.5rem 0;
	line-height: 1.4;
}

@keyframes zoomIn {
	0% {
		pointer-events: none;
		opacity: 0;
		visibility: hidden;
		transform: scale3d(0.3, 0.3, 0.3);
	}
	50% {
		pointer-events: auto;
		opacity: 1;
		visibility: visible;
	}
	100% {
		pointer-events: auto;
		opacity: 1;
		visibility: visible;
		transform: scale3d(1, 1, 1);
	}
}
