:root {
	--header-height: 80px;
	--region-map-background-color: #75797D;
	--region-map-color1: #53575C;
	--region-map-color2: #C61932;
	--region-map-color3: #FFFFFF;
	--region-map-height-offset: 0px; /* Do not change. Set in JS. */
	--region-map-land-stroke-width: 1; /* Do not change. Set in JS. */
	--region-map-animation-duration-ms: 0ms; /* Do not change. Set in JS. */
}

.region-map, .region-map * {
	box-sizing: border-box;
}

.region-map {
	position: relative;
	width: 100%;
	height: calc(100vh - var(--header-height) - var(--region-map-height-offset));
	background-color: var(--region-map-background-color);
	overflow: hidden;
}

.region-map .map-view {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.region-map .map-view svg {
	transform-origin: left top;
}

.region-map .map-view svg > g,
.region-map .map-view svg > path {
	transition-duration: var(--region-map-animation-duration-ms);
	transition-property: opacity;
}

.region-map .map-view svg .hidden {
	opacity: 0;
}

.region-map .map-view svg path.land,
.region-map .map-view svg > path {
	stroke-width: var(--region-map-land-stroke-width);
	transition-duration: var(--region-map-animation-duration-ms);
	transition-property: fill, stroke-width, opacity;
}

.region-map .map-view svg g path.title,
.region-map .map-view svg g circle {
	transition-duration: var(--region-map-animation-duration-ms);
	transition-property: opacity;
}

.region-map.zoomed .map-view svg g path.title,
.region-map.zoomed .map-view svg g circle,
.region-map.animated .map-view svg g path.title,
.region-map.animated .map-view svg g circle {
	opacity: 0;
}

.region-map .map-view svg g.for-interaction path.land {
	opacity: 0;
	transition-duration: var(--region-map-animation-duration-ms);
	transition-property: opacity;
}

.region-map:not(.zoomed) .map-view svg g.for-interaction path.land,
.region-map:not(.zoomed) .map-view svg g.for-interaction rect {
	cursor: pointer;
}

.region-map .map-view svg g.for-interaction.no-photo path.land {
	fill: var(--region-map-color2);
}

.region-map .map-view svg g.selected.for-interaction path.land {
	opacity: 1;
}

.region-map:not(.zoomed):not(.animated) .map-view svg g.hover:not(.for-interaction) path.land {
	fill: var(--region-map-color1);
}

.region-map .map-side-n,
.region-map .map-side-s,
.region-map .map-side-e,
.region-map .map-side-w {
	position: absolute;
	background-position: center center;
	background-repeat: no-repeat;
}

.region-map .map-side-n {
	top: 25px;
	left: calc(50% - 24px);
	width: 48px;
	height: 94px;
	background-image: url('../img/map-side-n.svg');
}

.region-map .map-side-s {
	bottom: 80px;
	left: calc(50% - 24px);
	width: 48px;
	height: 38px;
	background-image: url('../img/map-side-s.svg');
}

.region-map .map-side-e {
	top: calc(50% - 19px);
	right: 80px;
	width: 25px;
	height: 38px;
	background-image: url('../img/map-side-e.svg');
}

.region-map .map-side-w {
	top: calc(50% - 19px);
	left: 80px;
	width: 25px;
	height: 38px;
	background-image: url('../img/map-side-w.svg');
}

.region-map .map-zoom-out {
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	position: absolute;
	/*bottom: 80px;*/
	bottom: 48px;
	left: 80px;
	width: 62px;
	height: 64px;
	background-image: url('../img/map-zoom-out.svg');
	background-position: center center;
	background-repeat: no-repeat;
}

.region-map .map-prev-next {
	display: flex;
	position: absolute;
	bottom: 80px;
	right: 80px;
	gap: 10px;
	align-items: center;
}

.region-map .map-prev-next .numbers {
	font-family: 'DM Sans', sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 10px;
	line-height: 160%;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--region-map-color3);
}

.region-map .map-prev-next .prev,
.region-map .map-prev-next .next {
	-webkit-tap-highlight-color: transparent;
	cursor: pointer;
	width: 48px;
	height: 48px;
	background-image: url('../img/map-prev-next-arrow.svg');
	background-position: center center;
	background-repeat: no-repeat;
}

.region-map .map-prev-next .prev {
	transform: rotate(180deg);
}

.region-map .map-small-view {
	position: absolute;
	bottom: 80px;
	right: 80px;
	width: 24vh;
}

.region-map .map-small-view svg {
	width: 100%;
	height: 100%;
}

.region-map .map-small-view svg g rect {
	opacity: 0;
	transition-duration: var(--region-map-animation-duration-ms);
	transition-property: opacity;
}

.region-map .map-small-view svg g.selected rect {
	opacity: 1;
}

.region-map .map-small-view svg g path {
	fill: var(--region-map-color1);
	fill-opacity: 0;
	transition-duration: var(--region-map-animation-duration-ms);
	transition-property: fill-opacity;
}

.region-map .map-small-view svg g:not(.selected) {
	cursor: pointer;
}

.region-map .map-small-view svg g:not(.selected):hover path {
	fill-opacity: 1;
}

.region-map .map-popup {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.region-map .map-popup > div {
	max-width: 600px;
	text-align: center;
}

.region-map .map-popup .country {
	font-family: 'Libre Baskerville', serif;
	font-style: italic;
	font-weight: 400;
	font-size: 30px;
	line-height: 127%;
	text-align: center;
	color: var(--region-map-color3);
	
	margin-bottom: 12px;
}


.region-map .map-popup .title {
	font-family: 'Libre Baskerville', serif;
	font-style: normal;
	font-weight: 400;
	font-size: 72px;
	line-height: 125%;
	text-align: center;
	color: var(--region-map-color3);
	
	margin-bottom: 32px;
}

@media (max-height: 650px) {
	.region-map .map-side-n,
	.region-map .map-side-s,
	.region-map .map-side-e,
	.region-map .map-side-w {
		opacity: 0;
	}
}

@media (max-width: 990px) {
	.region-map .map-side-n,
	.region-map .map-side-s,
	.region-map .map-side-e,
	.region-map .map-side-w {
		opacity: 0;
	}
	
	.region-map .map-popup > div {
		max-width: 350px;
	}
	
	.region-map .map-popup .country {
		display: none;
	}
	
	.region-map .map-popup .title {
		font-size: 36px;
		line-height: 122%;
	}
}

.region-link {
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	padding: 21px 32px;
	background: var(--region-map-color3);
	border: solid 1px var(--region-map-color3);
	cursor: pointer;
	width: fit-content;
	
	transition-duration: var(--region-map-animation-duration-ms);
	transition-property: border-color;
	
	font-family: 'DM Sans', sans-serif;
	font-style: normal;
	font-weight: 700;
	font-size: 10px;
	line-height: 160%;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	color: var(--region-map-color1);
}

.region-link:hover {
	border-color: var(--region-map-color2);
}
