.rdm-map {
	width: 100%;
}

.rdm-map__figure {
	position: relative;
	width: 100%;
	margin: 0;
	line-height: 0;
}

.rdm-map__label {
	position: absolute;
	top: 75px;
	left: 75px;
	z-index: 4;
	padding: 0.85rem 1.5rem;
	border-radius: 8px;
	background: #011220;
	color: #fff;
	font-size: 32px;
	font-weight: 500;
	line-height: 1.25;
	pointer-events: none;
}

.rdm-map__image {
	display: block;
	width: 100%;
	height: auto;
}

.rdm-map__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
}

.rdm-map__markers {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}

.rdm-map__marker {
	position: absolute;
	display: block;
	aspect-ratio: 1 / 1;
	height: auto;
	pointer-events: none;
	transform: translate(-50%, -50%);
}

.rdm-map__marker img {
	display: block;
	width: 100%;
	height: auto;
}

.rdm-map__tooltips {
	position: absolute;
	inset: 0;
	z-index: 3;
	pointer-events: none;
}

.rdm-map__tooltip {
	position: absolute;
	min-width: 14rem;
	max-width: 18rem;
	max-height: 16rem;
	padding: 1rem 1.25rem;
	border-radius: 8px;
	background: #011220;
	color: #fff;
	opacity: 0;
	overflow-y: auto;
	visibility: hidden;
	transform: translate(-50%, calc(-100% - 1.25rem));
	transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
	pointer-events: none;
}

.rdm-map__tooltip.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translate(-50%, calc(-100% - 1.5rem));
}

.rdm-map__tooltip-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.3;
}

.rdm-map__tooltip-label {
	margin: 0 0 0.75rem;
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.78rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.rdm-map__tooltip-highlight {
	margin: 0;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.45;
}

.rdm-map__tooltip-highlight + .rdm-map__tooltip-highlight {
	margin-top: 0.15rem;
}

.rdm-map__tooltip-highlight--plocha {
	color: rgba(255, 255, 255, 0.88);
}

.rdm-map__tooltip-empty {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 500;
	line-height: 1.45;
}

.rdm-map__tooltip-meta {
	margin: 0.75rem 0 0;
	padding-top: 0.65rem;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.72);
	font-size: 0.85rem;
	line-height: 1.4;
}

.rdm-map__svg {
	display: block;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.rdm-map__shape {
	pointer-events: all;
	cursor: pointer;
	outline: none;
	will-change: opacity;
}

@keyframes rdm-map-breathe-a {
	0%,
	100% {
		opacity: 0.34;
	}

	50% {
		opacity: 0.56;
	}
}

@keyframes rdm-map-breathe-b {
	0%,
	100% {
		opacity: 0.36;
	}

	50% {
		opacity: 0.6;
	}
}

@keyframes rdm-map-breathe-c {
	0%,
	100% {
		opacity: 0.28;
	}

	50% {
		opacity: 0.5;
	}
}

.rdm-map__shape[data-budova="a"] {
	opacity: 0.34;
	animation: rdm-map-breathe-a 2.8s ease-in-out infinite;
	animation-delay: 0.2s;
}

.rdm-map__shape[data-budova="b"] {
	opacity: 0.36;
	animation: rdm-map-breathe-b 3.6s ease-in-out infinite;
	animation-delay: 0.9s;
}

.rdm-map__shape[data-budova="c"] {
	opacity: 0.28;
	animation: rdm-map-breathe-c 2.4s ease-in-out infinite;
	animation-delay: 1.5s;
}

.rdm-map__shape.is-hovering {
	transition: opacity 0.22s ease;
}

@media (prefers-reduced-motion: reduce) {
	.rdm-map__shape.is-hovering {
		transition: none;
	}

	.rdm-map__tooltip {
		transition: none;
	}

	.rdm-map__shape {
		animation: none;
	}

	.rdm-map__shape[data-budova="a"] {
		opacity: 0.4;
	}

	.rdm-map__shape[data-budova="b"] {
		opacity: 0.42;
	}

	.rdm-map__shape[data-budova="c"] {
		opacity: 0.3;
	}

	.rdm-map__shape.is-paused {
		opacity: 0.64;
	}
}

@media (max-width: 991px) {
	.rdm-map {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
	}

	.rdm-map__figure {
		min-width: 600px;
		width: 600px;
		max-width: none;
	}

	.rdm-map__label {
		top: 1.25rem;
		left: 1.25rem;
		max-width: none;
		padding: 0.5rem 0.85rem;
		font-size: 1rem;
		line-height: 1.3;
		white-space: nowrap;
	}

	.rdm-map__tooltip {
		min-width: 11rem;
		max-width: calc(100vw - 3rem);
		max-height: 12rem;
		padding: 0.85rem 1rem;
		transform: translate(-50%, calc(-100% - 0.75rem));
	}

	.rdm-map__tooltip.is-visible {
		transform: translate(-50%, calc(-100% - 1rem));
	}

	.rdm-map__tooltip-title {
		font-size: 0.9rem;
	}

	.rdm-map__tooltip-highlight,
	.rdm-map__tooltip-empty {
		font-size: 0.85rem;
	}
}

@media (max-width: 767px) {
	.rdm-map__label {
		top: 1rem;
		left: 1rem;
		padding: 0.45rem 0.75rem;
		font-size: clamp(0.75rem, 2.8vw, 0.875rem);
	}
}
