/* 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-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%;
	gap: 15px;
	/* 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);
	padding-top: 35px;
	margin-left: auto;
	margin-right: auto;
	background: linear-gradient(180deg, #D2E4EA 27.8%, rgba(210, 228, 234, 0) 100%);
	position: relative;
}
.thematic-map .regions [data-poi]::before{	
    content: '';
    pointer-events: none;
    background-image: url(/includes/public/assets/shared/grunge.svg);
    background-repeat: repeat-x;
    position: absolute;
    left: 0;
    height: 30px;
	top: 0;
    width: 100%;
    transform: rotate(180deg);
}

.thematic-map .regions .image {
	position: relative;
}

.thematic-map .regions .slide-bottom {
	margin-top: var(--space-2);
	margin-bottom: var(--space-3);
}
.thematic-map .regions [data-poi-content="default"] .title{
	font-family: var(--font-oswald);
	font-weight: 600;
	font-size: 24px;
	text-transform: uppercase;
	color: var(--blue-0e);
}
.thematic-map .regions h3 {
	font-size: var(--text-lg);
	font-weight: 600;
	padding-bottom: 15px;
	color: var(--blue-0e);
	font-family: var(--font-roboto-slab);
	font-weight: 700;
	font-size: 20px;
	line-height: 26px;
	
}
.thematic-map .regions .slide-description{
	font-family: var(--font-roboto-slab);
	font-size: 14px;
	line-height: 21px;
	font-weight: 400;
	padding-bottom: 15px;
	color: var(--blue-0e);
}

.thematic-map .regions .read-more-button{
	font-family: var(--font-roboto-slab);
	font-size: 18px;
	line-height: 24px;
	font-weight: 500;
	color: var(--blue-0e);
}
.thematic-map .regions a i {
	margin-left: var(--space-1);
	background-color: #77B856;
    border-radius: 50%;
    font-size: 12px;
    padding: 3px;
}
	
.thematic-map .regions a i::before {
	content: '\f061';
}

/* Slider Arrows */
.thematic-map.slides .regions .glide__arrows {
	/* position: absolute; */
	display: flex;
	gap: 10px;
	z-index: 1;
	bottom: 0;
	right:	0;
	margin: var(--space-2) var(--space-1);
}
.thematic-map.slides .regions .glide__arrows .glide__arrow{
	height: 48px;
	width: 48px;	
}
.thematic-map.slides .regions .glide__arrows .glide__arrow i{
	font-size: 24px;
}

/*
	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 .stage {
		position: relative;
		display: grid;
		grid-template-columns: 2fr 1fr;
		grid-template-rows: 1fr;
		max-width: 100vw;
	}
	.contentRender_name_plugins_common_thematic_map_slides{
		position: relative;
	}
	.thematic-map::after{
		content: '';
		pointer-events: none;
		background-image: url(/includes/public/assets/shared/decorations/grassy-illustration-right.svg);
		display: block;
		position: absolute;
		right: 0%;
		bottom: 0px;
		width: 249px;
		height: 110px;
	}
	.thematic-map .regions [data-poi-content="default"] .title {
		line-height: 34px;
		font-size: 32px;
	}
	.thematic-map .regions .slide-description {
		font-family: var(--font-roboto-slab);
		font-size: 16px;
		line-height: 21px;
		font-weight: 400;
		padding-bottom: 15px;
		color: var(--blue-0e);
	}
	.thematic-map .regions h3 {
		font-size: var(--text-lg);
		font-weight: 600;
		padding-bottom: 15px;
		color: var(--blue-0e);
		font-family: var(--font-roboto-slab);
		font-weight: 700;
		font-size: 28px;
		line-height: 31px;
	}

	.thematic-map.slides .regions {
		grid-column: 2 / span 1;
		grid-row: 1/ span 1;
		width: 33vw;
		max-width: 400px;
		margin: 0;
		z-index: 10;
	}

	.thematic-map.slides .map {
		overflow: hidden;
		grid-column: 1 / span 2;
		grid-row: 1/ span 1;
		max-width: 66vw;
	}

	.thematic-map.slides .map svg {
		width: auto;
		height: 100%;
		margin: 0px;
	}
}
@media (min-width: 75em){
	.thematic-map::after{
		content: '';
		pointer-events: none;
		background-image: url(/includes/public/assets/shared/decorations/grassy-illustration-right.svg);		
		display: block;
        position: absolute;
        right: 0%;
        bottom: 8px;
        width: 345px;
        height: 152px;
	}
	.thematic-map .regions .slide-bottom {
		margin-top: var(--space-5);
		margin-bottom: var(--space-3);
	}
	.thematic-map .regions [data-poi-content="default"] .title {
        line-height: 44px;
        font-size: 40px;
    }
	.thematic-map .regions h3 {
        font-size: var(--text-lg);
        font-weight: 600;
        padding-bottom: 15px;
        color: var(--blue-0e);
        font-family: var(--font-roboto-slab);
        font-weight: 700;
        font-size: 32px;
        line-height: 36px;
	}
	.thematic-map .regions .slide-description {
        font-family: var(--font-roboto-slab);
        font-size: 16px;
        line-height: 26px;
        font-weight: 400;
        padding-bottom: 15px;
        color: var(--blue-0e);
    }
}
@media (min-width:85em){
	.thematic-map.slides .map{
		max-width: 900px;
	}
}
