/* 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(--gray-900);
	--text-color-body: var(--gray-900);

	--btn-bg-color: var(--sw-button-secondary-bg);
	--btn-bg-color-hover: var(--sw-button-secondary-bg-hover);
	--btn-text-color: var(--sw-button-secondary-color);
	--btn-text-color-hover: var(--sw-button-secondary-color-hover);

	width: 100%;
	max-width: var(--width-feature);
	margin: 0 auto var(--space-8);
	padding-top: 0;
	color: var(--text-color-body);
}

.thematic-map h2 {
	margin: 0;
	margin-bottom: var(--space-2);
	color: var(--text-color-title);
	font-family: var(--font-display);
	font-size: 31px;
	font-weight: 600;
	padding: 0 var(--space-5);
	line-height: var(--leading-none);
	text-transform: capitalize;
}
.thematic-map > div > p {
	padding: 0 var(--space-5);
	color: var(--black-text);
	line-height: var(--leading-snug);
	margin-bottom: var(--space-5);
}

/***
	Map Stage
****/
.thematic-map .stage {
	position: relative;
	width: 100%;
	margin-top: var(--space-5);
}

.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: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: var(--space-3);
	position: absolute;
	z-index: 2;
	width: 100%;
	background: var(--white);
	align-items: center;
	justify-items: center;
}

.thematic-map .mobile-dropdown-close {
	display: none;
}

.thematic-map .mobile-dropdown-buttons {
	display: flex;
	justify-content: center;
	padding: 0;
}

.thematic-map .region-list-cont .list {
	width: 100%;
}
.thematic-map .mobile-dropdown-trigger {
	display: flex;
	gap: 12px;
	align-items: center;
	padding: var(--space-4) var(--space-6);
	font-size: 19px;
	font-weight: 600;
	color: var(--primary-color-700);
	background-color: var(--beige);
	width: 100%;
	text-align: center;
	justify-content: center;
	text-transform: capitalize;
	letter-spacing: 0.013em;
	font-family: var(--font-display);
	line-height: var(--leading-none);
}

.thematic-map .mobile-dropdown-trigger i {
	background: #1f3936;
	color: #fff;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: grid;
	place-items: center;
}

.thematic-map .mobile-dropdown-buttons i.fa-angle-up {
	display: none;
}

.thematic-map .mobile-dropdown-buttons.active i.fa-angle-down {
	display: none;
}

.thematic-map .mobile-dropdown-buttons.active i.fa-angle-up {
	display: grid;
}

.thematic-map .mobile-dropdown-buttons i.fa-angle-down {
	display: grid;
}

.thematic-map .list ul {
	height: auto;
	overflow-y: auto;
	margin-bottom: var(--space-6);
}

.thematic-map .list li .poi-toggle {
	font-family: var(--font-family-body);
	font-weight: 600;
	line-height: var(--leading-none);
	background-color: transparent;
	font-size: var(--text-base);
	color: var(--green);
	padding: 0;
}

.thematic-map .list li .poi-toggle.hover,
.thematic-map .list li .poi-toggle.active {
	text-decoration: underline;
}

.thematic-map a.view-all {
	color: #fff;
	font-family: var(--font-family-body);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	background-color: var(--orange);
	padding: var(--space-3) var(--space-4);
	margin-left: var(--space-5);
	letter-spacing: 0.04em;
}

.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;
}

/***
	Map SVG
****/
.thematic-map .map {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.thematic-map .map svg {
	position: relative;
	width: 100%;
	height: auto;
	top: 0;
	left: 0;
	transform: none;
	margin: 0px;
	min-width: 587px;
}

.thematic-map .map svg [data-map-beacon] {
	cursor: pointer;
}

.thematic-map .map svg .flag {
	display: none;
	transition: display ease 0.6s;
}

.thematic-map .map .flag.active,
.thematic-map .map .flag.hover {
	display: block;
}
.thematic-map .map .flag:hover {
	display: block;
}

.thematic-map .region-list-cont {
	display: flex;
	justify-content: space-between;
	align-items: center;
	order: 1;
}

.thematic-map .region-list-cont a.view-all {
	margin-right: var(--space-5);
}

.thematic-map .swipe {
	height: 59px;
}
.thematic-map .swipe span {
	text-align: center;
	display: block;
	margin-top: 20px;
	font-family: var(--font-display);
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.03em;
	color: var(--sw-icon-bg);
}
/*
	Desktop Overwrites
*/
@media (min-width: 64em) {
	.thematic-map .stage,
	.thematic-map.top-dropdown .stage,
	.thematic-map.bottom-dropdown .stage {
		height: 570px;
		flex-direction: row;
	}

	.thematic-map .list {
		align-items: flex-start;
	}

	.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 ul {
		justify-content: center;
	}

	.thematic-map .region-list-cont {
		flex-direction: column;
		justify-content: flex-start;
	}

	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
	}
}

@media (min-width: 64em) {
	.thematic-map .stage {
		height: 670px;
		order: -1;
	}

	.thematic-map .region-list-cont {
		flex: 0 1 24%;
		align-items: flex-start;
		display: none;
	}

	.contentRender_name_plugins_common_thematic_map_region {
		display: none;
	}

	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
		margin-left: var(--space-5);
	}
}

/* Hide elements on desktop devices */
.thematic-map .desktop-only {
	display: none;
}

@media (min-width: 64em) {
	/* Hide elements on mobile devices */
	.thematic-map .mobile-only {
		display: none;
	}

	/* Show elements on desktop devices */
	.thematic-map .desktop-only {
		display: block;
	}
}

/* Only show on touch devices */
@media (hover: none) {
	.thematic-map .map {
		overflow-x: scroll;
		scrollbar-width: thin;
		scrollbar-color: #555555 #f5f5f5;
	}
}

@media (min-width: 64em) {
	.thematic-map {
		display: grid;
		grid-template-columns: 2.034fr 1fr;
		padding-inline: 52px;
		align-items: center;
		margin-bottom: var(--space-20);
	}
	.thematic-map .header-content {
		padding-left: var(--space-10);
	}
	.thematic-map .map {
		overflow: unset;
		display: grid;
		align-items: center;
	}

	.thematic-map .map svg {
		transform: none;
		position: static;
	}
	.thematic-map a.view-all {
		font-size: 15px;
		padding: var(--space-4) 26px;
		letter-spacing: 0.07em;
	}
	.thematic-map h2 {
		font-size: 58px;
		padding-right: var(--space-8);
		line-height: 1.1;
		margin-bottom: var(--space-6);
	}
	.thematic-map h2 + h3 {
		padding-left: var(--space-5);
		font-size: 22px;
		text-transform: capitalize;
		font-weight: 600;
		color: var(--gold);
		margin-bottom: var(--space-5);
	}
	.thematic-map > div > p {
		font-size: 21px;
		margin-bottom: var(--space-10);
	}
}
