/* Change flex-direction to column-reverse to move dropdown to bottom of map */
.thematic-map .stage {
	display: flex;
	flex-direction: column;
	background-color: #E3EFFF;
}

.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);
	--map-text-blue: #003865;

	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: var(--font-weight-normal);
	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: 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 .stage {
	position: relative;
	width: 100%;
}

.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: 84vw;
	padding: 20px 35px;
	margin-left: auto;
	margin-right: auto;
	background-color: var(--white);
	box-shadow: var(--shadow-xl);
}

.thematic-map .regions .image {
	position: relative;
}

.thematic-map .regions .slide-bottom {
	margin-top: var(--space-2);
	margin-bottom: var(--space-3);
}

.thematic-map .regions h3 {
	font-size: var(--text-2xl);
    font-weight: 500;
    color: #003865;
	margin-bottom: 10px;
}

.thematic-map .regions .subtitle {
	font-family: var(--font-amiri);
	font-size: var(--text-xl);
	font-weight: 400;
	line-height: 20px;
	letter-spacing: 2px;
	color: var(--map-text-blue);
	text-transform: uppercase;
}

.thematic-map .regions .slide-description {
	font-size: 14px;
	font-weight: 400;
	line-height: 25px;
	letter-spacing: 1px;
	margin-bottom: 10px;
}

.thematic-map .regions a i {
	margin-left: var(--space-1);
}

.thematic-map .regions .read-more-button {
	display: flex;
    align-items: center;
    color: black;
    gap: 6px;
    background-color: #FF8070;
    width: fit-content;
    font-weight: 600;
    font-size: var(--text-sm);
    padding: 12px 10px;
	pointer-events: all;
}

.glide__arrows .glide__arrow {
	--arrow-color: var(--white);
    --arrow-bg-color: var(--sw-key-color);
    width: 42px;
    height: 57px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding: 0;
    margin: var(--space-3);
    background-color: var(--arrow-bg-color);
    font-size: var(--text-xl);
    color: var(--arrow-color);
    pointer-events: all;
    transition: color var(--transition-appendix), background-color var(--transition-appendix);
    justify-content: center;
}
.thematic-map.slides .regions .glide__arrows .glide__arrow--left {
    left: -65px;
    position: absolute;
    bottom: -65px;
    margin: unset;
}
.thematic-map.slides .regions .glide__arrows .glide__arrow--right {
   	right: -65px;
    position: absolute;
    bottom: -65px;
    margin: unset;
}

@media (min-width: 75em) {
	.thematic-map {
		/* margin-bottom: 240px; */
	}
	.thematic-map .stage {
		position: relative;
		display: grid;
		grid-template-columns: 5fr 3fr;
		grid-template-rows: 1fr;
		max-width: 100vw;
	}

	.thematic-map.slides .regions {
		grid-column: 2 / span 1;
		grid-row: 1/ span 1;
		justify-self: end;
		width: 33vw;
		max-width: 475px;
		margin: 0;
		z-index: 10;
		margin-top: 40px;
		align-self: start;
		pointer-events: none;
	}

	.thematic-map .regions [data-poi] {
		margin-bottom: var(--space-6);
		max-width: 300px;
		padding: 20px 35px;
		margin-left: auto;
		margin-right: auto;
		background-color: var(--white);
		box-shadow: var(--shadow-xl);
	}

	.thematic-map.slides .map {
		width: auto;
	}

	.thematic-map.slides .map svg {
		width: 100%;
        height: auto;
	}
}

@media (min-width: 81.25em) {

	.thematic-map .regions [data-poi] {
		max-width: 365px;
	}

	.thematic-map.slides .regions {
		justify-self: end;
		margin-top: 40px;
		align-self: start;
	}

	.thematic-map .regions .content {
		max-width: 300px;
		margin: 0 auto;
	}
}
@media (min-width: 82.25em) {
	.thematic-map .regions [data-poi] {
		max-width: 402px;
	}
	.thematic-map.slides .regions {
		justify-self: start;
	}
}