.inone-sotomap {
	position: relative;
	max-width: 100%;
	container-type: inline-size;
}

.inone-sotomap__stage {
	position: relative;
	line-height: 0;
}

.inone-sotomap__image {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

.inone-sotomap__svg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Areas */

.inone-sotomap__area {
	fill: var(--ism-area-fill, transparent);
	stroke: var(--ism-area-stroke, transparent);
	stroke-width: var(--ism-stroke-width, 2px);
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
	cursor: pointer;
	outline: none;
	transition: fill 0.25s ease, stroke 0.25s ease;
}

/* While the pointer is over the map, outline every area so visitors see what they can explore. */
.inone-sotomap__stage:hover .inone-sotomap__area {
	stroke: var(--ism-accent, #a3906a);
	stroke-opacity: 0.55;
	stroke-dasharray: 5 5;
}

.inone-sotomap .inone-sotomap__area:hover,
.inone-sotomap .inone-sotomap__area:focus,
.inone-sotomap .inone-sotomap__area.is-active {
	fill: var(--ism-active-fill);
	stroke: var(--ism-active-stroke);
	stroke-opacity: 1;
	stroke-dasharray: none;
	filter: drop-shadow(0 0 6px var(--ism-accent, #a3906a));
}

.inone-sotomap .inone-sotomap__area:focus-visible {
	stroke-width: calc(var(--ism-stroke-width, 2px) + 1px);
}

/* Spotlight: the rest of the map fades while an area is open. */
.inone-sotomap__dim {
	fill: var(--ism-dim, rgba(255, 255, 255, 0.55));
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.inone-sotomap.has-active .inone-sotomap__dim {
	opacity: 1;
}

/* Popup */

.inone-sotomap__infos,
.inone-sotomap__popup[hidden] {
	display: none;
}

.inone-sotomap__popup {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 20;
	box-sizing: border-box;
	width: 320px;
	max-width: calc(100% - 16px);
	max-height: 100%;
	overflow: auto;
	padding: 22px 24px 20px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	border-top: 3px solid var(--ism-accent, #a3906a);
	border-radius: 10px;
	background: var(--ism-popup-bg, #fff);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 40px -12px rgba(20, 20, 20, 0.35);
	color: var(--ism-text-color, #000);
	line-height: 1.5;
	text-align: left;
	animation: inone-sotomap-in 0.22s ease-out;
}

@keyframes inone-sotomap-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

.inone-sotomap__popup .hotspot-title {
	margin: 0 32px 0 0;
	padding: 0;
	color: var(--ism-title-color, inherit);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.15;
}

.inone-sotomap__popup .hotspot-title::after {
	content: "";
	display: block;
	width: 40px;
	height: 1px;
	margin: 12px 0 12px;
	background: var(--ism-accent, #a3906a);
}

.inone-sotomap__popup .hotspot-content p {
	margin: 0 0 14px;
	color: var(--ism-text-color, inherit);
	font-size: 14px;
	line-height: 1.55;
	opacity: 0.8;
}

.inone-sotomap__popup .hotspot-content ul {
	margin: 0;
	/* The theme draws each list icon 20px left of its item, so the list is indented to keep icons inside the card. */
	padding: 12px 0 0 20px;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	list-style: none;
}

.inone-sotomap__popup .hotspot-content li {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 400;
	letter-spacing: normal;
	line-height: 1.45;
	text-transform: none;
}

.inone-sotomap__popup .hotspot-content > :last-child,
.inone-sotomap__popup .hotspot-content li:last-child {
	margin-bottom: 0;
}

.inone-sotomap__close {
	position: absolute;
	top: 12px;
	right: 12px;
	display: none;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.05);
	color: inherit;
	font-size: 22px;
	line-height: 32px;
	text-align: center;
	cursor: pointer;
}

.inone-sotomap__close:hover,
.inone-sotomap__close:focus-visible {
	background: rgba(0, 0, 0, 0.1);
}

/* Touch screens get a close button, since there is no pointer leaving the area. */
@media (hover: none) {
	.inone-sotomap__close {
		display: block;
	}
}

/* Narrow maps: the popup becomes a card under the map instead of covering it. */
@container (max-width: 700px) {
	.inone-sotomap__popup {
		position: relative;
		top: auto !important;
		left: auto !important;
		width: auto;
		max-width: none;
		max-height: none;
		margin-top: 12px;
	}

	.inone-sotomap__popup .hotspot-title {
		font-size: 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.inone-sotomap__area,
	.inone-sotomap__dim {
		transition: none;
	}

	.inone-sotomap__popup {
		animation: none;
	}
}
