/* Change flex-direction to column-reverse to move dropdown to bottom of map */
.thematic-map.slides .stage {
	display: flex;
	flex-direction: column-reverse;
}

.thematic-map.slides {
	--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%;
	color: var(--text-color-body);
}

.thematic-map.slides h2 {
	padding: 20px 5px 20px 20px;
	font-family: var(--font-display);
	font-weight: normal;
	font-size: var(--text-3xl);
	line-height: calc(7 / 6);
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--blue-dark);
}

.thematic-map.slides.slides .header {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--space-2);
}

.thematic-map.slides.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: var(--font-weight-medium);
	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.slides .stage {
	position: relative;
	width: 100%;
	background-color: #fff;
}

.thematic-map.slides.top-dropdown .stage {
	flex-direction: column;
}

/***
	Map SVG
****/
.thematic-map.slides .map {
	position: relative;
	overflow: hidden;
	width: 100%;
}

.thematic-map.slides .map svg {
	position: relative;
	width: 100%;
	height: auto;
	top: 0;
	left: 0;
	transform: none;
	margin: 0px;
}

.thematic-map.slides .map svg [data-map-beacon] {
	cursor: pointer;
}

.thematic-map.slides .map svg [data-map-poi] {
	display: none;
	transition: display ease 0.6s;
}

.thematic-map.slides .map [data-map-poi].active,
.thematic-map.slides .map [data-map-poi].hover {
	display: block;
}

.thematic-map.slides .map [data-map-poi]:hover {
	display: block;
}

@media (hover: hover) {
	.thematic-map.slides a.view-all:hover {
		background-color: var(--btn-bg-color-hover);
		color: var(--btn-text-color-hover);
	}
}

/* Region List */
.thematic-map.slides .region-list-cont {
	padding: 0 20px;
}
.thematic-map.slides .region-list-cont ul.list {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.thematic-map.slides .region-list-cont .list li .poi-toggle {
	display: block;
	padding: 0;
	margin: 0;
	font-family: var(--font-display);
	font-weight: normal;
	font-size: var(--text-lg);
	line-height: 1.2;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: #004157;
	background: none;
	padding-right: 15px;
	border-radius: 0;
	transition: color var(--transition-appendix);
}

.thematic-map.slides .region-list-cont .list li:not(:last-child) .poi-toggle {
    border-right: 2px solid #004157;
}

.thematic-map.slides .region-list-cont .list li .poi-toggle.active,
.thematic-map.slides .region-list-cont .list li .poi-toggle.hover {
	color: var(--orange);
}

/***
	Resolves opacity issue for last slide index
***/

.thematic-map.slides .glide__slide--active .map-callout-tiles-3-across {
	transition: opacity 200ms ease-in;
	opacity: 1 !important;
}

/*** 
	Slider Layout 
***/

.thematic-map.slides .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: #fff;
}

.thematic-map.slides .regions .image {
	position: relative;
}

.thematic-map.slides .regions .slide-bottom {
	margin-top: var(--space-2);
	margin-bottom: var(--space-3);
}

.thematic-map.slides .regions h3 {
	font-size: var(--text-lg);
	font-weight: var(--font-weight-semibold);
	text-transform: uppercase;
    margin-top: 40px;
    margin-bottom: 20px;
}

.thematic-map.slides .slide-description {
	margin-bottom: 30px;
}

.thematic-map.slides .read-more-button {
	border: 2px solid black;
	color: black;
    padding: 10px;
	display: inline-block;
	margin: 0;
    font-family: var(--font-body-bold);
    font-weight: normal;
    font-size: var(--text-sm);
    line-height: normal;
    letter-spacing: 0.073em;
    text-transform: uppercase;
    text-align: center;
	border-radius: var(--rounded-full);
}

.thematic-map.slides .read-more-button:hover {
	border: 2px solid var(--orange) ;
	color: white;
	background-color: var(--orange);
}

.thematic-map.slides .regions a i {
	margin-left: var(--space-1);
}

/* Slider Arrows */
.thematic-map.slides.slides .regions .glide__arrows {
	position: absolute;
	display: flex;
	z-index: 1;
	bottom: 0;
	right:	0;
	margin: var(--space-2) var(--space-1);
}

/*
	Desktop Overwrites
*/
@media (min-width: 50em) {
	.thematic-map.slides.slides .regions {
		width: 90vw;
		margin-left: auto;
		margin-right: auto;
	}
	
	.thematic-map.slides.slides .header {
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
	
	.thematic-map.slides.slides a.view-all {
		align-self: center;
	}
}

@media (min-width: 64em) {
	.thematic-map.slides .stage {
		min-height: 538px;
		position: relative;
		display: grid;
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto;
		max-width: 100vw;
		max-height: 1051px;
	}

	.thematic-map.slides.slides .regions {
		grid-column: 1 / span 1;
		grid-row: 1/ span 1;
		align-self: center;
		width: 48vw;
		margin: 0;
		z-index: 10;
	}

	.thematic-map.slides.slides .map {
		overflow: hidden;
		grid-column: 2 / span 1;
		grid-row: 1/ span 1;
	}

	.thematic-map.slides.slides .map svg {
		width: 100%;
		height: auto;
		margin: 0px;
		right: 0;
	}

	.thematic-map.slides h2 {
		line-height: 1.1;
		max-width: 80%;
		margin-bottom: 10px;
	}
}

@media (min-width: 90em) {
	.thematic-map.slides h2 {
		font-size: 3.125rem;
		margin-bottom: 60px;
	}

	.thematic-map.slides .regions {
		padding-left: 40px;
	}
}

