/* 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);
	position: relative;
}

.thematic-map .regions .slide .content-wrapper {
	position: relative;
}

.thematic-map h2 {
	margin: 0;
	margin-bottom: 10px;
	color: #325729;
	font-family: var(--font-family-title);
	font-size: 2.688rem;
	font-weight: var(--font-weight-semibold);
	padding: 0 var(--space-5);
    text-transform: uppercase;
    line-height: 1;
}

.thematic-map.slides .header {
	display: flex;
	flex-direction: column;
	margin-bottom: var(--space-2);
}

.thematic-map.slides button.view-all {
	max-width: fit-content;
	align-self: flex-start;
	color: var(--btn-text-color);
	font-family: var(--font-family-body);
	font-size: .938rem;
	font-weight: var(--font-weight-bold);
	background-color: transparent;
	padding: var(--space-1) var(--space-5) var(--space-1) var(--space-4);
	margin-right: var(--space-5);
    width: fit-content;
}

.thematic-map.flight-map-open .header {
	margin-bottom: 4px;
}
.thematic-map.slides .flight-map > .inner > button.view-all {
	padding-top: 0;
}

.thematic-map.slides button.view-all .map-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background-image: url('/includes/public/assets/shared/blue-circle.svg');
    background-size: cover;
    background-repeat: no-repeat;
    margin-right: 6px;
}

.thematic-map.slides.flight-map-open button.view-all .map-icon {
	background-image: url('/includes/public/assets/shared/black-circle.svg');
	color: #9BD2D6;
}

.thematic-map.slides .flight-map {
	display: none;
}

.thematic-map.slides.flight-map-open .flight-map {
	display: block;
	position: absolute;
	z-index: 2;
	background-color: var(--white);
}

.thematic-map.slides.flight-map-open button[data-direct-flights-button] {
	display: none;
}

/***
	Map Stage
****/
.thematic-map .stage {
	position: relative;
	width: 100%;
}

.thematic-map.slides.flight-map-open .stage:before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	pointer-events: none;
	z-index: 1;
}

.thematic-map.top-dropdown .stage {
	flex-direction: column;
}

/***
	Map SVG
****/
.thematic-map .map {
	position: relative;
	overflow: hidden;
	width: 100%;
	flex: 0 1 500px;
}

.thematic-map .map svg {
	position: relative;
	width: 100%;
	height: 100%;
	top: 0;
	left: -70px;
	transform: none;
	margin: 0px;
	width: 960px;
}

@media screen and (min-width: 860px) {
	.thematic-map .map svg {
		left: 0;
		width: 100%;
	}
}

.thematic-map .map svg *:not([data-map-beacon]) {
	pointer-events: none;
}

.thematic-map .map svg [data-map-beacon] {
	cursor: pointer;
	pointer-events: all;
}

.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: 61px;
	margin-left: auto;
	margin-right: auto;
	background-color: var(--white);
}

.thematic-map .regions .image {
	position: relative;
	/* border-top-left-radius: 10px; */
}

.thematic-map .regions .image img {
	border-top-left-radius: 10px;
	border-top-right-radius: 10px;
}

.thematic-map .regions .slide-bottom {
    padding: 30px 20px;
    background-color: #325729;
    color: var(--white);
}

.thematic-map .regions h3 {
	font-size: 1.25rem;
	font-weight: var(--font-weight-bold);
}

.thematic-map .regions .slide-description {
    margin-left: 20px;
}

.thematic-map .regions ul {
    list-style: disc;
}

.thematic-map .regions a i {
	margin-left: var(--space-1);
}

/* Slider Arrows */
.thematic-map.slides .regions .glide__arrows {
	position: absolute;
	display: flex;
	gap: 10px;
	width: 100%;
	justify-content: center;
	z-index: 1;
	top: -61px;
	margin: 0 var(--space-1);
	pointer-events: none;
}

.thematic-map.slides .regions .glide__arrow {
    --arrow-color: var(--white);
    --diameter: 40px;
    width: var(--diameter);
    height: var(--diameter);
    font-size: 1.125rem;
    margin: 0;
    background-image: url('/includes/public/assets/shared/gold-circle.svg');
    background-repeat: no-repeat;
    pointer-events: all;
}

.thematic-map.slides .slide-description a {
	color: #79C150;
}

.thematic-map.slides .slide-description a:hover {
	text-decoration: underline;
}

.thematic-map.slides .regions .glide__arrow:hover {
	color: var(--white);
}

/*
	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: column;
		align-items: center;
		justify-content: center;
	}
	
	.thematic-map.slides button.view-all {
		align-self: center;
	}
}

@media (min-width: 64em) {
	.thematic-map .map {
		flex: unset;
	}

	.thematic-map.slides.flight-map-open .stage {
		display: none;
	}

	.thematic-map.slides.flight-map-open .flight-map {
		position: relative;
	}

	.thematic-map.slides.flight-map-open .flight-map .inner {
		display: flex;
		flex-direction: column;
		align-items: center;
	}

	.thematic-map .stage {
		position: relative;
		display: flex;
		max-width: 100vw;
		margin-bottom: 100px;
	}

	.thematic-map.slides .regions {
		align-self: center;
		width: 39vw;
		max-width: 555px;
		margin: 0;
		z-index: 10;
		position: absolute;
		right: 70px;
	}

	.thematic-map.slides .regions .glide__arrows {
		justify-content: flex-end;
		top: unset;
		bottom: 30px;
		right: 30px;
	}

	.thematic-map.slides .regions .glide__arrow {
		--diameter: 50px;
		background-size: 100%;
	}

	.thematic-map .regions [data-poi] {
		padding: 0;
		padding-top: 61px;
	}

	.thematic-map .regions .content .image img {
		border-top-right-radius: 10px;
		border-top-left-radius: 10px;
	}

	.thematic-map.slides .map {
		overflow: hidden;
		grid-column: 1 / span 2;
		grid-row: 1/ span 1;
	}

	.thematic-map.slides .map svg {
		width: auto;
		height: 100%;
		margin: 0px;
	}

    .thematic-map h2 {
        font-size: 5rem;
    }

    .thematic-map.slides button.view-all {
        font-size: 1.125rem;
    }

    .thematic-map.slides button.view-all .map-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }

    .thematic-map .regions .slide-bottom {
        padding: 35px 30px;
    }

    .thematic-map .regions h3 {
        font-size: 1.875rem;
    }
}

