/* Change flex-direction to column-reverse to move dropdown to bottom of map */
.thematic-map .stage {
	display: flex;
	flex-direction: column;
}

.thematic-map {
	--font-family-title: var(--font-display);
	--font-family-body: var(--font-body);
	--text-color-title: var(--blue-dark);
	--text-color-body: var(--blue-dark);

	--btn-bg-color: var(--orange-dark);
	--btn-bg-color-hover: var(--orange-dark);
	--btn-text-color: var(--blue-dark);
	--btn-text-color-hover: var(--blue-dark);

	width: 100%;
	/* max-width: 1800px; */
	margin: 0 auto var(--space-12);
	padding-top: var(--space-12);
	color: var(--text-color-body);
	background-color: var(--blue-light);
	position: relative;
}

.thematic-map::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	height: 80px;
	width: 80px;
	background-image: url('/includes/public/assets/shared/map-pattern.svg');
	background-size: cover;
	background-repeat: no-repeat;
}

.thematic-map h2 {
	margin: 0;
	margin-bottom: 10px;
	color: var(--text-color-title);
	font-family: var(--font-family-title);
	font-size: 48px;
	font-weight: 400;
	padding: 0 30px;
	text-transform: uppercase;
	line-height: var(--leading-none);
}

/***
	Map Stage
****/
.thematic-map .stage {
	position: relative;
	width: 100%;
}

.thematic-map.top-dropdown .stage {
	flex-direction: column;
}

/***
	Map List
****/

.thematic-map .list ul {
	display: none;
	align-items: flex-start;
	justify-content: space-between;
	flex-direction: column;
	flex: 0 1 auto;
	padding: var(--space-5);
	padding-right: var(--space-3);
}

.thematic-map .list ul.active {
	display: flex;
	justify-content: flex-start;
	position: absolute;
	z-index: 2;
	width: 100%;
	min-height: fit-content;
	background: var(--blue-dark);
	margin: 0;
}

.thematic-map .mobile-dropdown-close {
	display: none;
}

.thematic-map .mobile-dropdown-buttons {
	display: block;
}

.thematic-map .mobile-dropdown-trigger {
	display: flex;
	gap: 5px;
	align-items: center;
	justify-content: space-between;
	padding: 18px 30px;
	font-size: var(--text-base);
	font-weight: 500;
	color: var(--white);
	background-color: var(--blue-dark);
	text-transform: uppercase;
	width: 100%;
	margin-bottom: 0;
	font-family: var(--font-body);
	font-size: 15px;
}

.thematic-map .mobile-dropdown-trigger i {
	position: relative;
}

.thematic-map .mobile-dropdown-buttons i.fa-caret-up {
	display: none;
}

.thematic-map .mobile-dropdown-buttons.active i.fa-caret-down {
	display: none;
}

.thematic-map .mobile-dropdown-buttons.active i.fa-caret-up {
	display: block;
}

.thematic-map .mobile-dropdown-buttons i.fa-caret-down {
	display: block;
}

.thematic-map .list ul {
	height: auto;
	overflow-y: auto;
	margin-bottom: var(--space-6);
}

.thematic-map .list li {
	margin-bottom: var(--space-3);
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}

.thematic-map .list li .poi-toggle {
	font-family: var(--font-family-body);
	font-size: var(--text-sm);
	font-weight: 400;
	line-height: var(--leading-none);
	text-align: left;
	background-color: transparent;
	flex: 1 1 auto;
	padding: 5px;
	margin: 0;
}

.thematic-map .list li .poi-toggle.hover,
.thematic-map .list li .poi-toggle.active {
	text-decoration: underline;
}

.thematic-map a.view-all {
	color: var(--btn-text-color);
	font-family: var(--black);
	font-size: 15px;
	font-weight: 900;
	text-transform: uppercase;
	background-color: var(--btn-bg-color);
	padding: var(--space-4) var(--space-6);
}

.thematic-map .view-all-container {
	margin: 50px 30px;
}

.thematic-map .region-list-cont .description {
	margin: 0 40px 0 30px;
	font-family: var(--font-body);
	font-size: 20px;
}

.thematic-map .list li .qv-btn {
	display: inline;
	color: var(--btn-text-color);
	background: var(--btn-bg-color);
	font-size: var(--text-sm);
	display: inline-block;
	padding: var(--space-1) var(--space-2);
	border-radius: var(--rounded-full);
	white-space: nowrap;
}

.thematic-map .mobile-map-bottom {
	display: flex;
	padding: 0 30px 50px;
	justify-content: space-between;
	align-items: center;
}

.thematic-map .mobile-map-bottom .compass-container {
	width: 75px;
}

.thematic-map .mobile-map-bottom .country-map-container {
	width: 200px;
}

.thematic-map .desktop.country-map-container {
	display: none;
}

@media (min-width:64em){
	.thematic-map .mobile-map-bottom {
		display: none;
	}
	
	.thematic-map .desktop.country-map-container {
		display: block;
		margin-right: 45px;
		align-self: flex-end;
	}

	.thematic-map .desktop.country-map-container img {
		width: 244px;
	}
}

/***
	Map SVG
****/
.thematic-map .map {
	position: relative;
	overflow: hidden;
	width: 100%;
	padding-bottom: 16px;
}

.thematic-map .map svg {
	position: relative;
	width: 100%;
	height: auto;
	top: 50%;
	left: 50%;
	transform: scale(1.25) translate(-50%, 10%);
	padding-bottom: 17%;
	margin: 0;
}

.thematic-map .map svg #compass {
	opacity: 0;
}

@media (min-width:64em){
	.thematic-map .map svg #compass {
		opacity: 1;
	}
}

.thematic-map .map svg [data-map-beacon] {
	cursor: pointer;
}

.thematic-map .map [data-map-poi].active,
.thematic-map .map [data-map-poi].hover {
	display: block;
}


@media (hover: hover) {
	.thematic-map a.view-all:hover {
		background-color: var(--btn-bg-color-hover);
		color: var(--btn-text-color-hover);
	}
}

.thematic-map .region-list-cont {
	margin-bottom: 1.25rem;
}


/*
	Desktop Overwrites
*/
@media (min-width: 64em) {
	.thematic-map {
		padding-top: 0;
	}

	.thematic-map .stage,
	.thematic-map.top-dropdown .stage,
	.thematic-map.bottom-dropdown .stage {
		height: 670px;
		flex-direction: row-reverse;
		padding-bottom: 30px;
	}

	.thematic-map .list {
		align-items: flex-start;
	}

	.thematic-map .map {
		padding-bottom: 0;
	}

	.thematic-map .map svg {
		position: absolute;
		width: auto;
		height: calc(100% + 25px);
		top: 0;
		left: 0;
		transform: scale(1) translateX(-12%);
		padding-bottom: 0;
	}
	
	.thematic-map .mobile-dropdown-buttons {
		display: none;
	}

	.thematic-map .list .view-all {
		display: block;
		max-width: fit-content;
		margin-left: var(--space-5);
	}

	.thematic-map .list li .poi-toggle {
		font-size: var(--text-lg);
	}

	.thematic-map .region-list-cont {
		flex: 0 2 auto;
		padding-top: var(--space-8);
		display: flex;
		flex-direction: column;
		justify-content: space-between;
	}

	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
		padding: 12px 32px;
	}

	.thematic-map h2 {
		padding-left: 0;
		margin-bottom: 13px;
	}

	.thematic-map .view-all-container {
		margin-left: 5px;
	}
	
	.thematic-map .region-list-cont .description {
		margin-left: 5px;
	}
}

@media only screen and (min-width: 73em) {
	.thematic-map .map svg {
		transform: translateX(0);
	}

}

@media only screen and (min-width: 90.063em) {
	.thematic-map .stage,
	.thematic-map.top-dropdown .stage,
	.thematic-map.bottom-dropdown .stage {
		height: 100vh;
	}

	.thematic-map .region-list-cont {
		flex: 0 1 54%;
		padding-top: 72px;
		padding-right: var(--space-8);
		padding-bottom: var(--space-8);
	}
	
	.thematic-map h2 {
		font-size: 71px;
	}
}