/* 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%;
	margin: 0 auto var(--space-6);
	padding-top: 0;
	color: var(--text-color-body);
	position: relative;
}

@media (min-width: 64em) {
	.thematic-map {
		margin-bottom: var(--space-32);
	}
}

.thematic-map .map-header {
	position: absolute;
	padding-left: var(--space-5);
	padding-bottom: var(--space-2);
	top: var(--space-10);
	left: var(--space-5);
	z-index: 1;
}
.thematic-map .map-header:before {
	content: '';
	position: absolute;
	left: 0;
	top: 4px;
	height: 68px;
	width: 8px;
	pointer-events: none;
	background-color: var(--sw-button-primary-bg);
	border-radius: 3px;
}
.thematic-map h2 {
	margin: 0;
	color: var(--text-color-title);
	font-family: var(--font-family-title);
	font-size: 2.25rem;
	font-weight: 900;
	margin-bottom: var(--space-3);
	line-height: var(--leading-none);
}

.thematic-map h3 {
	font-size: 1.25rem;
	line-height: var(--leading-none);
}

@media (min-width: 64em) {
	.thematic-map .map-header {
		right: 60px;
		top: 78px;
		left: auto;
	}
}
@media (min-width: 75em) {
	.thematic-map h2 {
		font-size: 4.75rem;
		margin-bottom: var(--space-1);
	}
	.thematic-map h3 {
		font-size: 2rem;
	}
	.thematic-map .map-header {
		right: 136px;
		top: 98px;
		left: auto;
	}
	.thematic-map .map-header:before {
		height: 97px;
		width: 12px;
		left: -6px;
		border-radius: 5px;
		top: 16px;
	}
}
/***
	Map Stage
****/
.thematic-map .stage {
	position: relative;
	width: 100%;
}

.thematic-map.top-dropdown .stage {
	flex-direction: column;
}

/***
	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;
	width: 77%;
	background: var(--btn-bg-color-hover);
	border-radius: 3px;
	padding: var(--space-4);
	align-items: center;
	margin: 0 auto;
	padding-bottom: 0;
}

.thematic-map .mobile-dropdown-close {
	display: none;
}

.thematic-map .mobile-dropdown-buttons {
	display: flex;
	justify-content: center;
	padding: var(--space-3) var(--space-5);
}

.thematic-map .mobile-dropdown-trigger {
	display: flex;
	gap: 5px;
	align-items: center;
	padding: var(--space-2) 77px;
	font-size: var(--text-base);
	color: var(--gray-dark);
	border-radius: var(--rounded-full);
	background-color: var(--btn-bg-color);
}

.thematic-map .mobile-dropdown-trigger:focus {
	outline-color: var(--btn-bg-color);
}

.thematic-map .mobile-dropdown-trigger i {
	position: relative;
	top: 2px;
	left: 4px;
	font-size: 1.1875rem;
	color: var(--gray-dark);
}

.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 {
	overflow-y: auto;
	margin-bottom: var(--space-6);
}

.thematic-map .list li {
	margin-bottom: var(--space-5);
	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-base);
	font-weight: 400;
	line-height: var(--leading-none);
	text-align: left;
	background-color: transparent;
	flex: 1 1 auto;
}

.thematic-map a.view-all {
	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);
}

.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: 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 .flag {
	display: none;
	transition: display ease 0.6s;
}

.thematic-map .map .flag.active,
.thematic-map .map .flag.hover {
	display: block;
}
.thematic-map .map .flag: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);
	}
}

.thematic-map .region-list-cont {
	display: flex;
	justify-content: space-between;
	align-items: center;
	order: 1;
	align-self: center;
	transform: translateY(-100px);
	z-index: 1;
}

.thematic-map .region-list-cont a.view-all {
	margin-right: var(--space-5);
}

/*
	Desktop Overwrites
*/
@media (min-width: 64em) {
	.thematic-map .list {
		align-items: flex-start;
	}

	.thematic-map .mobile-dropdown-buttons {
		display: none;
	}

	.thematic-map .list ul,
	.thematic-map .list ul.active {
		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 {
		flex-direction: column;
		justify-content: flex-start;
	}

	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
	}
}

@media (min-width: 64em) {
	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
		margin-left: var(--space-5);
	}
	.thematic-map .region-list-cont {
		display: none;
	}
}

.thematic-map .map .desktop-map {
	display: none;
}
@media (min-width: 64em) {
	.thematic-map .map .desktop-map {
		display: block;
	}
	.thematic-map .map .mobile-map {
		display: none;
	}
}

.thematic-map g[data-map-poi].active:not(#don-julio-default),
.thematic-map g[data-map-beacon]:not(#don-julio):hover .hover {
	display: none;
}

#don-julio-default.active .st81,
#don-julio:hover .st81 {
	fill: var(--btn-bg-color);
}
#don-julio-default.active .st82,
#don-julio:hover .st82 {
	fill: #fff;
}

@media (max-width: 370px) {
	.thematic-map .mobile-dropdown-trigger {
		padding-inline: var(--space-4);
	}
}
@media (max-width: 639px) {
	.thematic-map .map svg {
		position: static;
		width: 175%;
	}
	.thematic-map .map-header {
		top: var(--space-4);
	}
}
@media (max-width: 1023px) {
	.thematic-map .mobile-map {
		min-height: 500px;
	}
	/* Only show on touch devices */
	@media (hover: none) {
		.thematic-map .mobile-map {
			overflow-y: scroll;
			scrollbar-width: thin;
			scrollbar-color: #555555 #f5f5f5;
		}
	}
}
