/* Change flex-direction to column-reverse to move dropdown to bottom of map */
.thematic-map.js-loaded{
	opacity: 1 !important;
}
.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-12);
	padding-top: var(--space-8);
	color: var(--text-color-body);
}

.thematic-map h2 {
	margin: 0;
	margin-bottom: var(--space-5);
	color: var(--text-color-title);
	font-family: var(--font-family-title);
	font-size: var(--text-6xl);
	font-weight: 400;
	padding: 0 var(--space-5);
}

.thematic-map.slides .header {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--space-2);
}

.thematic-map.slides a.view-all {
	max-width: fit-content;
	align-self: flex-end;
	color: var(--btn-text-color);
	font-family: var(--font-family-body);
	font-size: var(--text-base);
	font-weight: 500;
	text-transform: uppercase;
	border-radius: var(--rounded-full);
	background-color: var(--btn-bg-color);
	padding: var(--space-1) var(--space-5) var(--space-1) var(--space-4);
	margin-right: var(--space-5);
}

/***
	Map Stage
****/
.thematic-map .stage {
	position: relative;
	width: 100%;
	/* box-shadow: var(--shadow-lg); */
}

.thematic-map.top-dropdown .stage {
	flex-direction: column;
}

/***
	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;
}

.thematic-map .map svg [data-map-beacon] {
	cursor: pointer;
}

.thematic-map .map svg [data-map-poi] {
	display: none;
	transition: display ease 0.6s;
}

.thematic-map .map [data-map-poi].active,
.thematic-map .map [data-map-poi].hover {
	display: block;
}

.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);
	}
}

/***
	Resolves opacity issue for last slide index
***/

.thematic-map .glide__slide--active .map-callout-tiles-3-across {
	transition: opacity 200ms ease-in;
	opacity: 1 !important;
}

/*** 
	Slider Layout 
***/

.thematic-map .regions [data-poi] {
	/* margin-bottom: var(--space-6); */
	max-width: 100vw;
	/* padding: var(--space-2) var(--space-5); */
	margin-left: auto;
	margin-right: auto;
	background-color: var(--white);
}

.thematic-map .regions .image {
	position: relative;
}
.thematic-map .regions .image::after {
	position: absolute;
	content: '';
	background: url('/includes/public/assets/shared/interactive_map/textured-edge-bottom.png') ;
	bottom: 0;
    left: 0;
    height: 28px;
    width: 100%;
    z-index: 5;
}


.thematic-map .regions .slide-bottom {
	/* margin-top: var(--space-2); */
	margin-bottom: var(--space-3);
	background-color: #EDF6FB;
	padding: 20px 30px;
	/* background-image: url('/includes/public/assets/shared/interactive_map/halftone-grunge.png'); */
}
.thematic-map .regions h3 {
	font-size: var(--text-lg);
	font-weight: 600;
}

.thematic-map .regions a i {
	margin-left: var(--space-1);
}
.thematic-map .regions .read-more-button{
	display: inline-flex;
    align-items: center;
    gap: 8px;
	color: var(--blue-dark);
	font-family: var(--font-display);
	text-transform: uppercase;
	letter-spacing: 1px;
}

.thematic-map .regions .slide-bottom .title{
	font-family: var(--font-display);
	font-size: 25.263px;
	color: var(--blue-dark);
	letter-spacing: 0.505px;
	line-height: 105%;
	/* text-transform: uppercase; */
}
.thematic-map .regions [data-poi='welcome'] .slide-bottom .title{
	font-family: var(--font-display);
	font-size: 25.263px;
	color: var(--blue-dark);
	text-transform: uppercase;
	line-height: 20px;
}
.thematic-map .regions .slide-bottom .subtitle{
	display: none;
}
.thematic-map .regions [data-poi='welcome'] .slide-bottom .subtitle{
	display: block;
	color: var(--blue-dark);
	font-family: var(--font-display);
	font-size: 44.211px;
	font-weight: 600;
	line-height: 44.211px; 
	letter-spacing: 3.537px;
	text-transform: uppercase;
}
.thematic-map .regions .slide-bottom .slide-description{
	line-height: 125%;
	padding: 10px 0 20px;
}
	/* Slider Arrows */
/* .thematic-map.slides .regions .glide__arrows {
	position: absolute;
	display: flex;
	z-index: 1;
	bottom: 0;
	right:	0;
	margin: var(--space-2) var(--space-1);
} */
.thematic-map.slides .regions .count-arrows{
	display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: var(--blue-dark);
}
.thematic-map.slides .regions .count-arrows .slide-info{
	color: var(--white);
    font-family: var(--font-display);
    text-transform: uppercase;
}

/*
	Desktop Overwrites
*/
@media (min-width: 50em) {
	.thematic-map.slides .regions {
		width: 90vw;
		margin-left: auto;
		margin-right: auto;
	}
	
	.thematic-map.slides .header {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	
	.thematic-map.slides a.view-all {
		align-self: center;
	}
}

@media (min-width: 64em) {
	.thematic-map{
		position: relative;
		overflow: hidden;
	}
	.thematic-map-region-slider{
		min-height: 520px;
		background-color: #EDF6FB;
	}
	.thematic-map .stage {
		height: 670px;
		position: unset;
		display: grid;
		grid-template-columns: 2fr 1fr;
		grid-template-rows: 1fr;
		max-width: 1300px;
		padding: 0 20px;
		margin: 0 auto;		
	}
	.thematic-map::after{
		content: '';
		position: absolute;
		right: var(--initial-right); 
		top: 0;
		height: 100%;
		width:100%;
		background: url('/includes/public/assets/shared/interactive_map/map_background.svg');
		background-repeat: no-repeat;
	}
	.thematic-map.slides .regions .count-arrows{
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 25px 30px;
		background-color: var(--blue-dark);
		position: absolute;
		z-index: 5;
		bottom: -62px;
		left: 0;
		width: 100%;
	}
	.thematic-map.slides .regions {
		grid-column: 2 / span 1;
		grid-row: 1/ span 1;
		justify-self: end;
		align-self: center;
		width: 33vw;
		max-width: 475px;
		margin: 0;
		z-index: 10;
	}

	.thematic-map.slides .map {
		overflow: hidden;
		grid-column: 1 / span 2;
		grid-row: 1/ span 1;
		z-index: 5;
	}

	.thematic-map.slides .map svg {
		width: auto;
		height: 100%;
		margin: 0px;
	}
	.thematic-map .regions .slide-bottom .title{
		font-size: 32px;
	}
	.thematic-map .regions .slide-bottom .slide-description {
		font-size: 18px;
	}
	.thematic-map .regions .read-more-button {
		font-size: 16px;
		padding-bottom: 20px;
	}
	.thematic-map .regions [data-poi='welcome'] .slide-bottom .subtitle {
		font-size: 42px;
	}
	.thematic-map .regions [data-poi='welcome'] .slide-bottom .title {
		font-size: 28px;
	}
}
@media (min-width: 75em) {
	.thematic-map .regions [data-poi='welcome'] .slide-bottom .subtitle {
		font-size: 56px;
		letter-spacing: 1.1px;
	}
	.thematic-map .regions [data-poi='welcome'] .slide-bottom .title {
		font-size: 32px;
		line-height: 32px;
	}
	.thematic-map .stage {
		height: 800px;
	}
}
@media (min-width: 90em) {
	.thematic-map .stage {
		padding: unset;	
	}
}