/* 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);
	--map-blue: #014a9c;
	--map-green: #a3ddab;

	width: 100%;
	max-width: var(--width-feature);
	margin: 0 auto var(--widget-margin-bottom);
	color: var(--white);

	@media (min-width: 64em) {
		margin-top: -53px;
	}
}

.thematic-map h2 {
	margin: 0;
	margin-bottom: -60px;
	color: var(--map-blue);
	font-family: var(--font-display);
	font-size: 26px;
	font-weight: 700;
	line-height: 31.2px;
	padding: 0 var(--space-5);
}

.thematic-map.slides .header {
	margin-bottom: 6px;
	margin-top: 10px;
}

.thematic-map.slides .header .dashed-arrow {
    margin: 12px 10px 0px 0px;
}

/***
	Map Stage
****/
.thematic-map .stage {
	position: relative;
	width: 100%;
}

.thematic-map.top-dropdown .stage {
	flex-direction: column;
}

/***
	Map SVG
****/
.thematic-map .map {
	position: relative;
	overflow: scroll;
	width: 100%;
	min-height: 350px;
}

.thematic-map .map svg {
	position: relative;
	width: 100%;
	height: auto;
	top: 0;
	left: 0;
	transform: translate(-75px, 75px) scale(1.5);
	margin: 0px;
}

.thematic-map .map svg [data-map-beacon] {
	cursor: pointer;
}

.thematic-map .map svg [data-map-poi] {
	opacity: 0;
	transition: display ease 0.6s;
}

.thematic-map .map [data-map-poi].active,
.thematic-map .map [data-map-poi].hover {
	opacity: 1;
}

.thematic-map .map [data-map-poi]:hover {
	opacity: 1;
}

#Dashed-line-arrow {
	display: none;
}



/*** 
	Slider Layout 
***/

.thematic-map .regions {
	position: relative;
}

.thematic-map .regions [data-poi]:not(button.poi-toggle) {
	max-width: 100vw;
	min-height: 320px;
	padding: var(--space-2) var(--space-4);
	margin: 0px 20px;
	background-color: var(--map-blue);
	position: relative;
}

.thematic-map .regions .poi-list {
	width: 55%;
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 5px;
}

.thematic-map .regions .poi-list .region-options > ul  {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3px;
}

.thematic-map .regions .poi-list .region-options > ul > li:nth-of-type(1) {
	grid-column: 1;
	grid-row: 1;
}

.thematic-map .regions .poi-list .region-options > ul > li:nth-of-type(2) {
	grid-column: 1;
	grid-row: 2;
}

.thematic-map .regions .poi-list .region-options > ul > li:nth-of-type(3) {
	grid-column: 2;
	grid-row: 1;
}

.thematic-map .regions .poi-list .region-options > ul > li:nth-of-type(4) {
	grid-column: 2;
	grid-row: 2;
}

.thematic-map .regions .poi-list .region-options > ul > .default-slide  {
	display: none;
}

.thematic-map .regions .poi-list .region-options .poi-toggle {
	color: var(--map-blue);
    background-color: var(--map-green);
    border-radius: 50px;
    min-height: unset;
    min-width: 95px;
    padding: 3px 10px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 12px;
    text-transform: uppercase;
    line-height: 22px;
}

.thematic-map .regions .poi-list .region-options .poi-toggle.active {
	color: var(--white);
    background-color: var(--map-blue);
	border: solid 1px var(--white);
}

.thematic-map .regions .poi-list .region-options .poi-toggle[data-poi="default-slide"] {
	display: none;
}

.thematic-map .regions .image {
	position: relative;
	display: none;
}

.thematic-map .regions .slide-bottom {
	margin-top: var(--space-2);
	margin-bottom: var(--space-3);
}

.thematic-map .regions .slide-bottom .dashed-line {
	margin: 5px 0px;
	width: 100%;
}

.thematic-map .regions .slide-bottom .slide-description {
	font-family: var(--font-body);
	font-weight: 500;
	font-size: 13px;
	line-height: 21px;
	margin-bottom: 10px;
}

.thematic-map .regions .slide-bottom .read-more-button {
	font-family: var(--font-display);
	font-weight: 500;
	text-transform: uppercase;
	font-size: 12px;
	border-radius: 50px;
	padding: var(--space-2) var(--space-4);
	line-height: 22px;
	color: var(--map-blue);
	background-color: var(--white);
}

.thematic-map .regions h3,
.thematic-map .regions h4 {
	font-size: var(--text-2xl);
	text-transform: uppercase;
	font-family: var(--font-display-bold);
	font-size: 20px;
	line-height: 24px;
}

.thematic-map .regions h4 {
	font-size: 17px;
	line-height: 20.4px;
}

.thematic-map .regions a i {
	margin-left: var(--space-1);
}

/* Slider Arrows */
.thematic-map.slides .regions .glide-arrows-cont {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-1);
	position: absolute;
    bottom: var(--space-2);
    left: var(--space-1);
}

.thematic-map.slides .regions .glide__arrows {
	display: flex;
	margin: 0px;
}

.thematic-map.slides .regions .glide__arrows .glide__arrow {
	background-color: transparent;
	box-shadow: none;
	width: var(--space-6);
    height: var(--space-6);
	margin: var(--space-3);
}

.thematic-map.slides .regions .glide__arrows .glide__arrow.glide__arrow--left {
	transform: rotate(180deg);
}

@media (max-width: 374px) {
	.thematic-map .regions [data-poi]:not(button.poi-toggle) {
		min-height: 340px;
	}

	.thematic-map .regions .poi-list {
		width: 55%;
		position: absolute;
		z-index: 2;
		right: 0px;
		bottom: 5px;
	}

	.thematic-map .regions .poi-list .region-options > ul {
		display: flex;
		flex-direction: column;
		gap: 0px;
		align-items: center;
		justify-content: center;
	}

	.thematic-map .regions .poi-list .region-options > ul > li {
		margin-bottom: 5px;
	}
}

@media (min-width: 40em) {
	.thematic-map .regions [data-poi]:not(button.poi-toggle) {
		min-height: 250px;
	}

	.thematic-map .regions .poi-list .region-options > ul {
		justify-items: center;
	}

	.thematic-map .regions .poi-list .region-options .poi-toggle {
		min-width: 150px;
	}

	.thematic-map .map {
		overflow: scroll;
		min-height: 450px;
	}

	.thematic-map .map svg {
		transform: translate(-75px, 75px) scale(1.2);
	}

	.thematic-map h2 {
		margin-top: 30px;
		margin-bottom: -85px;
	}

}

/*
	Desktop Overwrites
*/
@media (min-width: 48em) {
	.thematic-map.slides .regions {
		width: 90vw;
		margin-left: auto;
		margin-right: auto;
	}
	
	.thematic-map.slides .header {
		margin: 20px 50px;
	}

	.thematic-map .map {
		overflow: scroll;
		min-height: 550px;
	}
	
}

@media (min-width: 64em) {
	.thematic-map .stage {
		height: 850px;
		position: relative;
		display: grid;
		grid-template-columns: 1fr 2fr;
		max-width: 100vw;
	}

	.thematic-map .regions .image {
		display: block;
	}

	.thematic-map.slides .header {
		grid-row: 1;
		margin: 0px;
		align-self: end;
		position: relative;
		top: 75px;
	}

	.thematic-map.slides .regions {
		grid-column: 1 / span 1;
		grid-row: 2/ span 1;
		justify-self: end;
		width: 45vw;
		max-width: 475px;
		margin: 0;
		z-index: 10;
		height: 575px;
		top: 120px;
	}

	.thematic-map.slides .map {
		overflow: scroll;
		grid-column: 1 / span 2;
		grid-row: 2/ span 1;
	}

	.thematic-map.slides .map svg {
		width: auto;
		height: 100%;
		margin: 0px;
		transform: none;
	}

	.thematic-map.slides .header .dashed-arrow {
		display: none;
	}

	#Dashed-line-arrow {
		display: block;
	}

	.thematic-map .regions .poi-list .region-options .poi-toggle {
		min-width: 120px;
	}

	.thematic-map .regions [data-poi]:not(button.poi-toggle) {
		padding: 0px;
		min-height: 550px;
	}

	.thematic-map .regions .slide-bottom {
		padding: var(--space-5);
		margin-top: 0px;
		margin-bottom: 0px;
		min-height: 320px;
	}

	.thematic-map h2 {
		font-size: 42px;
		line-height: 52.8px;
		margin-top: 0px;
		margin-bottom: 0px;
	}

	.thematic-map .regions h3 {
		font-size: 36px;
		line-height: 43.2px;
	}

	.thematic-map .regions .slide-bottom .slide-description {
		font-size: 14px;
		line-height: 22px;
		margin-bottom: 15px;
	}

	.thematic-map .regions h4 {
		font-size: 20px;
		line-height: 24px;
	}

	.thematic-map .regions .slide-bottom .read-more-button,
	.thematic-map .regions .poi-list .region-options .poi-toggle {
		font-size: 14px;
	}

	.thematic-map.slides .regions .glide__arrows {
		bottom: 0px;
		left: 10px;
	}
}

@media (min-width: 75em) {
	.thematic-map .regions .poi-list {
		bottom: -40px;
	}

	.thematic-map .regions .slide-bottom {
		min-height: 370px;
	}

	.thematic-map.slides .regions .glide__arrows {
		bottom: 10px;
		left: 10px;
	}

	.thematic-map.slides .regions .glide__arrows .glide__arrow {
		width: var(--space-8);
		height: var(--space-8);
		margin: var(--space-4);
	}

	.thematic-map.slides .regions {
		top: 130px;
	}
}

@media (min-width: 90em) {
	.thematic-map.slides .regions {
		top: 140px;
	}

	.thematic-map.slides .header {
		top: 95px;
	}

	.thematic-map h2 {
		padding: 0 var(--space-6);
	}

	.thematic-map .regions .slide-bottom .dashed-line {
		margin: 10px 0px;
	}

	.thematic-map.slides .map {
		overflow: hidden;
	}
}

