html,
body,
#map {
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	background: #f2f4f6;
	font-family: Jost, Arial, Helvetica, sans-serif;
}

.maplibregl-map {
	font-family: Jost, Arial, Helvetica, sans-serif;
}

.mdx-pin {
	width: 34px;
	height: 46px;
	cursor: pointer;
}

.mdx-pin svg {
	display: block;
	filter: drop-shadow(0 2px 3px rgba(14, 52, 73, .35));
	transition: transform .15s ease;
	transform-origin: 50% 100%;
}

.mdx-pin:hover svg {
	transform: scale(1.1);
}

/* Всплывающее окно клиники */

.maplibregl-popup-content {
	padding: 16px 32px 16px 18px;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(14, 52, 73, .18);
	color: #0e3449;
	font-size: 14px;
	font-weight: 300;
	line-height: 1.4;
}

.maplibregl-popup-close-button {
	top: 6px;
	right: 6px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	color: #0e3449;
	font-size: 20px;
	line-height: 22px;
}

.maplibregl-popup-close-button:hover {
	background: #f2f4f6;
}

.mdx-pop__name {
	margin-bottom: 6px;
	font-size: 16px;
	font-weight: 500;
}

.mdx-pop__row {
	margin-top: 4px;
}

.mdx-pop a {
	color: #007c8e;
	font-weight: 500;
	text-decoration: none;
}

.mdx-pop a:hover {
	text-decoration: underline;
}

/* Кнопки масштаба */

.maplibregl-ctrl-group {
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(14, 52, 73, .15) !important;
	overflow: hidden;
}

.maplibregl-ctrl-group button {
	width: 36px;
	height: 36px;
}

.maplibregl-ctrl-group button:hover {
	background-color: #f2f4f6;
}

.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon,
.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
	filter: invert(31%) sepia(96%) saturate(1700%) hue-rotate(163deg) brightness(88%);
}

/* Подпись источника данных: свёрнута в кнопку «i» */

.maplibregl-ctrl-attrib.maplibregl-compact {
	min-height: 24px;
	margin: 0 8px 8px 0;
	padding: 2px 28px 2px 8px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .9);
	color: #0e3449;
	font-size: 11px;
	line-height: 20px;
}

.maplibregl-ctrl-attrib.maplibregl-compact:not(.maplibregl-compact-show) {
	padding: 0;
	background: transparent;
}

.maplibregl-ctrl-attrib a {
	color: #007c8e;
}

.maplibregl-ctrl-attrib-button,
.maplibregl-ctrl-attrib.maplibregl-compact .maplibregl-ctrl-attrib-button {
	top: 0;
	right: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background-color: #007c8e;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.5' r='1.6' fill='%23fff'/%3E%3Crect x='10.7' y='10.5' width='2.6' height='7.5' rx='1.3' fill='%23fff'/%3E%3C/svg%3E");
	background-size: 24px 24px;
	opacity: .85;
}

.maplibregl-ctrl-attrib-button:hover {
	opacity: 1;
}

/* Запасной вариант, если карта не загрузилась */

.mdx-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
	color: #0e3449;
	font-size: 15px;
}

.mdx-fallback a {
	color: #007c8e;
	font-weight: 500;
}
