/* Change flex-direction to column-reverse to move dropdown to bottom of map */
.thematic-map .stage {
	display: flex;
	flex-direction: column;
	background-color: #C7EEE7;
}

.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: transparent;
	--btn-bg-color-hover: transparent;
	--btn-text-color: var(--sw-button-secondary-color);
	--btn-text-color-hover: var(--sw-button-secondary-color-hover);

	width: 100%;
	margin: 0 0 var(--space-12);
	padding-top: var(--space-8);
	color: var(--text-color-body);
}

@media (min-width: 64em) {
	.thematic-map {
		margin-top: 40px;
		margin-bottom: var(--space-20);
	}
}

.thematic-map .map-info {
	position: relative;
}
.thematic-map .map-info::after {
	content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 100px;
    height: 100px;
    background-image: url(/includes/client_public/assets/shared/pattern-waves.svg);
    background-size: 260%;
    background-position: bottom;
    pointer-events: none;
}

@media (min-width: 64em) {
	.thematic-map .map-info::after {
		right: -49px;
        top: -35px;
        width: 115px;
        height: 115px;
        background-size: 203%;
        background-position: bottom;
        pointer-events: none;
	}
}
.thematic-map .map-info > .inner {
	background-color: var(--white);
	padding: 60px var(--space-4) var(--space-8);
}
.thematic-map .map-info h2 {
	margin: 0;
	margin-bottom: var(--space-2);
	color: var(--blue-dark);
	font-family: var(--font-family-title);
	font-size: 2.625rem;
	line-height: 1.1;
	font-weight: var(--font-weight-normal);
	padding-right: 90px;
}

@media (min-width: 64em) {
	.thematic-map .map-info h2 {
		font-size: 3rem;
		margin-bottom: var(--space-1);
		padding-right: unset;
	}
}
@media (min-width: 90em) {
	.thematic-map .map-info h2 {
		font-size: 4rem;
		margin-bottom: var(--space-1);
	}
}

.thematic-map .map-info p {
	font-size: 1.1875rem;
	line-height: var(--leading-normal);
	margin-bottom: var(--space-5);
	font-weight: 400;
}

.thematic-map .map-info .map-country-desktop {
	display: none;
}

@media (min-width: 64em) {
	.thematic-map .map-info {
		display: flex;
		flex-direction: column;
		flex: 0 1 816px;
        height: max-content;
        margin-right: 49px;
	}
	
	.thematic-map .map-info > .inner {
		padding: var(--space-6) var(--space-20) var(--space-10) 40px;
        margin-bottom: var(--space-12);
        background: white;
	}
	.thematic-map .map-info .map-country-desktop {
		width: 254px;
		height: 161px;
		align-self: center;
		display: block;
	}

	.thematic-map .map .map-country-mobile {
		display: none;
	}
}

/***
	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;
	position: absolute;
	z-index: 2;
	width: 100%;
	background: var(--blue);
}

.thematic-map .mobile-dropdown-close {
	display: none;
}

.thematic-map .mobile-dropdown-buttons {
	display: flex;
	justify-content: center;
}

.thematic-map .mobile-dropdown-trigger {
	display: flex;
	gap: 5px;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-3) 30px var(--space-3) var(--space-5);
	font-size: var(--text-sm);
	font-weight: var(--font-weight-semibold);
	letter-spacing: 0.007em;
	color: var(--white);
	background-color: var(--blue);
	width: 100%;
}

.thematic-map .mobile-dropdown-trigger i {
	position: relative;
	top: 2px;
}

@media(hover:hover) {
	.thematic-map .mobile-dropdown-trigger:hover {

	}
}

.thematic-map .mobile-dropdown-buttons i.fa-angle-up {
	display: none;
}

.thematic-map .mobile-dropdown-buttons.active i.fa-angle-down {
	display: none;
}

.thematic-map .mobile-dropdown-buttons.active i.fa-angle-up {
	display: block;
}

.thematic-map .mobile-dropdown-buttons i.fa-angle-down {
	display: block;
	font-size: var(--text-base);
}

.thematic-map .list ul {
	height: auto;
	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-sm);
	font-weight: var(--font-weight-normal);
	line-height: var(--leading-none);
	text-align: left;
	background-color: transparent;
	flex: 1 1 auto;
	color: var(--white);
	text-transform: uppercase;
	font-weight: 600;
    padding: var(--space-1) 0;
}

.thematic-map .list li .poi-toggle.hover,
.thematic-map .list li .poi-toggle.active {
	text-decoration: underline;
}

.thematic-map a.view-all {
	position: relative;
    display: inline-block;
    padding: 10px 20px;
    margin: 0;
    font-family: var(--font-body);
    font-weight: var(--font-weight-semibold);
    font-size: 0.6875rem;
    line-height: 1.15;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
    text-decoration: none !important;
    color: var(--btn-text-color);
    background-color: var(--btn-bg-color);
    border: 2px solid transparent;
    border-radius: 0;
    transition: color var(--transition-appendix), background-color var(--transition-appendix), border-color var(--transition-appendix);
}

@media (min-width: 64em) {
	.thematic-map a.view-all {
		font-size: 0.8125rem;
		padding: 12px 27px;
	}
}


.thematic-map a.view-all::before {
	position: absolute;
	inset: -2px;
	display: block;
	content: '';
	border: 2px solid var(--blue);
	border-top: none;
	border-right: none;
	pointer-events: none;
	transition: border-color var(--transition-appendix);
}

@media (hover : hover ) {

	.thematic-map a.view-all:hover {
		color: var(--text-color-hover);
		background-color: var(--background-color-hover);
		border-color: var(--blue);
	}
}

@media (hover: hover) {
	.thematic-map a.view-all:hover {
		background-color: var(--btn-bg-color-hover);
		color: var(--btn-text-color-hover);
	}
}


.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 {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--space-4);
	padding-bottom: var(--space-10);
	position: relative;
	overflow: hidden;
	width: 100%;
}

.thematic-map .map svg {
	position: relative;
    width: calc(100% + 92px);
    height: auto;
    top: 0;
    left: -34px;
    transform: none;
    margin: 0px;
}

.thematic-map .map svg [data-map-beacon] {
	cursor: pointer;
}

.thematic-map .map [data-map-poi][id*="active"] {
	display: none;
}

.thematic-map .map [data-map-poi].active,
.thematic-map .map [data-map-poi].hover {
	display: block;
}


.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;
}



.thematic-map .region-list-cont {
	width: 100%;
}

.thematic-map .region-list-cont a.view-all {
	margin-right: var(--space-5);
}

/*
	Desktop Overwrites
*/
@media (min-width: 64em) {
	.thematic-map .stage,
	.thematic-map.top-dropdown .stage,
	.thematic-map.bottom-dropdown .stage {
		height: 570px;
		flex-direction: row-reverse;
	}

	.thematic-map .list {
		align-items: flex-start;
	}

	.thematic-map .map svg {
		position: absolute;
		width: auto;
		height: calc(100% + 30px);
		top: 50%;
		transform: translate(0, -50%);
		margin: 0px;
	}
	
	.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;

		display: none;
	}

	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
	}
}

@media (min-width: 64em) {
	.thematic-map .stage {
		height: 750px;

		display: flex;
		flex-direction: row-reverse;
        padding-bottom: 30px;
	}

	.thematic-map .region-list-cont {
		flex: 0 1 24%;
		align-items: flex-start;
		display: none;
	}

	.thematic-map .map svg {
		width: 100%;
		height: auto;
		left: 0;
    	top: 50%;
		height: calc(100% + 20px);
	}

	.thematic-map .region-list-cont a.view-all {
		margin-right: 0;
		margin-left: var(--space-5);
	}
}

@media only screen and (min-width: 90em) {
	.thematic-map .map svg {
		transform: none;
        top: 0;
		width: auto;
		transform: none;
		height: 100%;
	}
}