/* Change flex-direction to column-reverse to move dropdown to bottom of map */
.thematic-map {
	position: relative;
	width: 100%;
	padding: var(--space-48) 0 var(--space-8) 0;
}

.thematic-map:after {
	content: '';
	background-image: url(/includes/public/assets/shared/map-bg.png);
	background-repeat: no-repeat;
	background-size: cover;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
	opacity: .3;
}

.thematic-map .stage {
	display: flex;
	flex-direction: column;
	max-width: var(--width-feature);
	margin: 0 auto var(--space-12);
}

/***
	Map Stage & Content
****/
.thematic-map .stage {
	position: relative;
	width: 100%;
}

.thematic-map.top-dropdown .stage {
	flex-direction: column;
}

.thematic-map .stage .content.desktop {
	display: none;
}

.thematic-map .stage .content.mobile {
	display: block;
}

.thematic-map .stage .content {
	display: flex;
	flex-direction: column;
	padding: 10px 10px;
}

.thematic-map .stage .content h3 {
	font-size: 25px;
	font-weight: 700;
	color: black;
	line-height: 27.5px;
	padding-bottom: 10px;
}

.thematic-map .content p {
	font-family: var(--font-family-body);
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
}

.thematic-map .scroll-divider {
	display: none;
}

/***
	Map List
****/

.thematic-map .list ul {
	display: none;
	align-items: flex-start;
	justify-content: space-between;
	flex-direction: column;
	flex: 0 1 auto;
	padding: var(--space-5);
	padding-right: var(--space-3);
}

.thematic-map .list ul.active {
	display: flex;
	justify-content: flex-start;
	position: absolute;
	z-index: 2;
	min-width: 335px;
	min-height: fit-content;
	background: var(--white);
	border-radius: 10px;
	border: 2px solid #8dc63f;
	margin: 0;
}

.thematic-map .mobile-dropdown-close {
	display: none;
}

.thematic-map .mobile-dropdown-buttons {
	display: flex;
	justify-content: center;
	padding: var(--space-2) 0;
}

.thematic-map .mobile-dropdown-trigger {
	display: flex;
	flex-direction: row-reverse;
	gap: 5px;
	border-radius: var(--rounded-full);
	padding: var(--space-3) var(--space-6);
	font-family: var(--font-family-body);
	color: black;
	background: #78DCD5;
	text-transform: uppercase;
	font-size: 12.77px;
	font-weight: 700;
	line-height: 19.15px;
	min-width: 335px;
	place-content: center;
}

.thematic-map .mobile-dropdown-trigger i {
	position: relative;
	top: 2px;
}

.thematic-map .mobile-dropdown-buttons i.fa-caret-up {
	display: none;
}

.thematic-map .mobile-dropdown-buttons.active i.fa-caret-down {
	display: none;
}

.thematic-map .mobile-dropdown-buttons.active i.fa-caret-up {
	display: block;
}

.thematic-map .mobile-dropdown-buttons i.fa-caret-down {
	display: block;
}

.thematic-map .list ul {
	height: auto;
	overflow-y: auto;
}

.thematic-map .list li {
	display: flex;
	align-items: flex-start;
	justify-content: flex-start;
}

.thematic-map .list li .poi-toggle {
	/*! display: inline; */
	font-family: var(--font-family-body);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-bold);
	line-height: var(--leading-none);
	text-align: left;
	flex: 1 1 auto;
	margin: 0;
	background-color: transparent;
	color: black;
	padding: 5px 0;
}

.thematic-map .list li .poi-toggle.hover,
.thematic-map .list li .poi-toggle.active {
	text-decoration: underline;
}

.thematic-map a.view-all {
	font-size: var(--text-base);
	font-weight: var(--font-weight-bold);
	border-radius: var(--rounded-full);
	padding: 5px;
	text-decoration: underline;
}

.thematic-map .list li .qv-btn {
	display: inline;
	color: var(--btn-text-color);
	background: var(--btn-bg-color);
	font-size: var(--text-sm);
	display: inline-block;
	padding: var(--space-1) var(--space-2);
	border-radius: var(--rounded-full);
	white-space: nowrap;
}

/***
	Map SVG
****/
.thematic-map .map {
	position: relative;
	overflow-x: scroll;
	width: 100%;
}

.thematic-map .map::-webkit-scrollbar {
	width: 0px;
	background: transparent;
}

.thematic-map .map svg[data-map] {
	position: relative;
	width: 100%;
	height: auto;
	top: 0;
	left: 0;
	transform: none;
	margin: 0px;
}

.thematic-map .map svg [data-map-poi] {
	cursor: pointer;
	opacity: .4;
	z-index: 2;
}

.thematic-map .map svg .active[data-map-poi],
.thematic-map .map svg .hover[data-map-poi] {
	opacity: 1;
}

.thematic-map .map svg .flag {
	display: none;
	transition: display ease 0.6s;
}

.thematic-map .map #beaumont-shape-dotted-line,
.thematic-map .map #icons,
.thematic-map .map #roads,
.thematic-map .map #grass-texture {
	pointer-events: none;
	z-index: -1;
} 

.thematic-map .map #POIs-banners > g {
	z-index: 3;
	cursor: pointer;
}

.thematic-map .map #POIs-banners [data-map-label] {
	filter: invert(1);
}

.thematic-map .map #POIs-banners .hover[data-map-label],
.thematic-map .map #POIs-banners .active[data-map-label] {
	filter: unset;
}

.thematic-map .map .map-inset {
	position: absolute;
	top: 0;
	right: 38%;
	width: 70px;
}

.thematic-map .map .map-inset .fas.fa-map-marker-alt {
	position: absolute;
	color: #f26f62;
}

@media (hover: hover) {
	.thematic-map a.view-all:hover {
		background-color: var(--btn-bg-color-hover);
		color: var(--btn-text-color-hover);
	}
}

.thematic-map .region-list-cont {
	display: flex;
	justify-content: space-between;
	align-items: center;
	place-self: center;
}

.thematic-map .region-list-cont a.view-all {
	margin-right: var(--space-5);
}

/*
	Desktop Overwrites
*/
@media (min-width: 50em) {
	.thematic-map .stage,
	.thematic-map.top-dropdown .stage,
	.thematic-map.bottom-dropdown .stage {
		flex-direction: column;
	}

	.thematic-map .list {
		align-items: flex-start;
	}

	.thematic-map .list ul,
	.thematic-map .list ul.active[data-poi-list] {
		display: flex;
	}

	.thematic-map .list .view-all {
		display: block;
		max-width: fit-content;
		margin-left: var(--space-5);
	}

	.thematic-map .list ul {
		justify-content: center;
	}

	.thematic-map .list li .poi-toggle {
		font-size: var(--text-lg);
	}

	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
	}

}

@media (min-width: 64em) {
	.thematic-map .region-list-cont {
		flex: 0 1 24%;
		align-items: end;
	}

	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
		margin-left: var(--space-5);
	}

	.thematic-map .stage .content {
		display: flex;
		flex-direction: column;
		position: absolute;
		top: -30px;
		right: 25px;
		max-width: 470px;
		text-align: right;
	}

	.thematic-map .stage .content h3 {
		font-size: 40px;
		font-weight: 700;
		color: #000;
		line-height: 44px;
		padding-bottom: 10px;
	}

	.thematic-map .stage .content p {
		font-size: 16px;
		font-weight: 500;
		line-height: 27.2px;
		padding-bottom: 5px;
	}

	.thematic-map .stage .content a {
		font-size: 17px;
		font-weight: 700;
		line-height: 25.5px;
		max-width: fit-content;
		align-self: flex-end;
	}

	.thematic-map .stage .content.mobile {
		display: none;
	}

	.thematic-map .map .map-inset {
		position: absolute;
		top: 0;
		right: 38%;
		width: 150px;
	}

	.thematic-map .region-list-cont {
		justify-content: end;
	}

	.thematic-map .list ul.active {
		min-width: -webkit-fill-available;
	}

	.thematic-map .map .map-inset .fas.fa-map-marker-alt {
		position: absolute;
		right: 4px;
		top: 66px;
		color: #f26f62;
	}

	.thematic-map .mobile-dropdown-trigger {
		font-size: 16px;
		font-weight: 700;
		line-height: 24px;
	}

	.thematic-map .region-list-cont {
		place-self: end;
	}
}

@media (max-width: 1250px) {
	.thematic-map .map svg[data-map] {
		width: 75%;
	}

	.thematic-map .map .map-inset {
		width: 100px;
		right: 45%;
	}

	.thematic-map .map .map-inset .fas.fa-map-marker-alt {
		right: 0px;
		top: 35px;
	}
}

@media (max-width: 1023px) {
	.thematic-map .map svg[data-map] {
		width: 132%;
	}

	.thematic-map .map .map-inset {
		width: 100px;
		right: 8%;
	}
}

@media (max-width: 640px) {
	.thematic-map .map .map-inset {
		width: 70px;
		right: 30px;
	}

	.thematic-map .map .map-inset .fas.fa-map-marker-alt {
		top: 20px;
	}

	.thematic-map .map #calder-ave-default > polygon {
		border: 1px solid;
		stroke-width: 25px;
		stroke: transparent;
	}

	.thematic-map .scroll-divider {
		display: flex;
		gap: 10px;
		justify-content: center;
		align-items: center;
		min-height: 38px;
		background-color: #8DC63F;
	}

	.thematic-map .scroll-divider .scroll-text {
		font-size: 14px;
		font-weight: 700;
	}

}

.thematic-map .list ul[data-poi-list] {
	display: none;
}

.thematic-map .list ul.active[data-poi-list] {
	display: inherit;
}

@media (max-width: 363px) {
	.thematic-map .list ul.active,
	.thematic-map .mobile-dropdown-trigger {
		min-width: 290px;
	}
}
