.flex-map__map-container {
	width: 100%;
	position: relative;
	max-width: 570px;
	height: 400px;
	margin: 0 auto;
	border: 1px solid #B9B9B9;
	overflow: hidden;
}

.main[data-columns="two"] .flex-map__map-container {
    max-width: 765px;
}

@media only all and (min-width: 55em) {
    .flex-map__map-container {
        height: 550px;
    }
}


.flex-map__status {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.flex-map__tooltip-content,
.flex-map__entity {
    /*border: .125rem solid #b9b9b9;*/
    margin: 0.3rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.flex-map__entity:not(:last-of-type)::after {
    content:"";
    border: none;
    border-bottom: 0.125rem solid #ccc;
    width: 20%;
    align-self: center;
    display: flex;
    margin: 0.5rem 0 1rem 0;
}

button.filterdropdown__title {
    display: block;
    border: none;
    width: 100%;
    color: var(--theme-bg-highlight);
    font-size: .85rem;
    padding: .46875rem 2.575rem .46875rem .9375rem;
    border-radius: 5px;
    text-align: left;
    background: #FFF;
    position: relative;
}

button.filterdropdown__title:before {
    content: "";
    display: block;
    border-style: solid;
    border-color: var(--theme-bg-highlight);
    border-width: 3px 3px 0 0;
    transform: rotate(135deg);
    height: 10px;
    width: 10px;
    position: absolute;
    right: .9375rem;
    top: 8px;
    transition: all .3s ease;
}

button.filterdropdown__title.active:before {
    transform: rotate(-45deg);
    top: 12px;
}

.esri-widget .meta-description,
.flex-map__entity .meta-description {
    color: #737373;
    font-size: 0.75rem;
    width: 100%;
    line-height: 1rem;
    margin: 0 0 0.125rem 0;
}

/*
Custom Styling Esri Map and Widget
*/

.esri-view-root .esri-ui, .esri-ui-inner-container, .esri-ui .esri-popup--is-docked, .esri-popup__main-container {
    z-index: 1000;
}

.esri-popup__header-container--button, .esri-popup__header-container, .esri-features__heading {
    display: none !important;
}

.esri-widget {
    font-family: verdana,helvetica,arial,sans-serif;
}

.esri-component.esri-popup,
.esri-popup__main-container {
    border-radius: 0.25rem;
}

.esri-popup__button,
.esri-popup__header-title,
.esri-popup__header-container--button {
    color: var(--theme-bg-highlight);
}

.esri-popup__button:hover,
.esri-popup__header-container--button:hover {
    background-color: #fff;
    color: var(--theme-bg-highlight-hover);
}

:root {
    /*measures*/
    --ui-border-radius: 5px;
    --padding-v: .5rem;
    --padding-h: .5rem;
    /*spacing*/
    --space-xs: 0.25rem;
    --space-s: 0.5rem;
    --space-m: 0.75rem;
    --space-l: 1rem;
    --space-xl: 1.25rem;
    --space-xxl: 1.5rem;
    /*font-sizes*/
    --default-text: 0.875rem;
    --medium-text: 1rem;
    --headings: 1.25rem;
    --large-headings: 1.3rem;
    /*functional colors*/
    --functional-grey: #737373;
    --inactive-grey: #cecece;
    --light-grey: #efefef;
    --text-color: #464646;
    --functional-green: #699419;
    --functional-green-rgb: 105, 148, 25;
    --functional-yellow: #f09400;
    --functional-yellow-rgb: 240, 148, 0;
    --functional-red: #d60e00;
    --functional-red-rgb: 214, 14, 0;

}



.wrapper--checkbox {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 0.75rem;
    padding: var(--space-s) 0;
}

.wrapper--checkbox label {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: center;
}

.wrapper--checkbox input[type="checkbox"]:hover,
.wrapper--checkbox label:hover {
    cursor: pointer;
}

.wrapper--checkbox input[type="checkbox"] {
    appearance: none;
    background-color: #fff;
    margin: 0;
    font: inherit;
    color: currentColor;
    width: 1.25rem;
    height: 1.25rem;
    border: 0.15rem solid var(--functional-grey);
    border-radius: var(--ui-border-radius);
    transform: translateY(-0.075rem);
    display: grid;
    place-content: center;
}


.wrapper--checkbox input[type="checkbox"]::before {  
    content: "";
    background: var(--theme-bg-highlight);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath d='M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z'/%3E%3C/svg%3E");
    width: 0.8rem;
    height: 0.8rem;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
}

.wrapper--checkbox input[type="checkbox"]:checked {
    border: 0.15rem solid var(--theme-bg-highlight);
}

.wrapper--checkbox  input[type="checkbox"]:checked::before {
    transform: scale(1);
}

.treemap-input {
    border: 1px solid #707070;
    border-radius: 5px;
    font-size: 0.85rem;
    color: #707070;
    margin: 0.5rem 0;
    padding: 0.46875rem 0.9375rem;
}
    
.ui-autocomplete {
    border: 1px solid #6d6d6d;
    background-color: #FFF;
    list-style: none;
    padding: 0;
    margin: 0;
    z-index: 1000;
}

.ui-autocomplete .ui-menu-item {
    padding: 4px;
    cursor: pointer;
    border-bottom: 1px solid #6d6d6d
}

.ui-autocomplete .ui-menu-item:hover {
    padding: 4px;
    background-color: #EFEFEF;
}

.ui-autocomplete .ui-menu-item:last-child {
    border-bottom: none;
}

.treemap--dropdown__container button.filterdropdown__title:before {
    transform: rotate(135deg);
    top: calc(50% - 10px);
}

#treemap-application-map {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
    height: 300px;
    max-width: 30rem;
}

.esri-popup__header-title, .flex-map__entity-title {
    line-height: 1.35rem;
}

.treemap--dropdown__container button.filterdropdown__title.active:before {
    transform: rotate(-45deg);
    top: calc(50% - 5px);
}

.treemap--dropdown__content li:hover {
        background: #e6e6e6;
}

.treemap--dropdown__content li, .treemap--dropdown__container button  {
    display: flex;
    cursor: pointer;
    line-height: 1.25rem;
    align-items: center;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 0px;
    margin: 0px 0px 0.25rem;
}
.treemap--dropdown__content li {
    padding: 0.15rem 0.9375rem;
    border-top: 1px solid #e6e6e6;
    margin: 0;
}
.treemap--dropdown__content li:first-child {
    border-top: 0;
}
.treemap--dropdown__container .flex-map__pictogram {
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 0px 0.75rem;
    margin: 0px;
}

.flex-treemap {
    margin: 0.75rem 0;
}

.treemap--dropdown__container button {
    background-color: #FFF;
    padding: 0.45rem .9375rem;
    border: 1px solid var(--theme-bg-highlight);
    border-radius: 5px;
    width: 100%;
}

.treemap--dropdown__container button.active {
    border-radius: 5px 5px 0 0
}

.treemap--dropdown__container {
    position: relative;
}
.treemap--dropdown__content {
    display: none;
    padding: 0;
    margin: 0;
    list-style: none;
    position: absolute;
    z-index: 1001;
    background-color: #FFF;
    top: calc(100% - 0.25rem);
    width: 100%;
    left: 0px;
    border-color: var(--theme-bg-highlight);
    border-width: 0px 1px 1px 1px;
    border-style: solid;
    border-radius: 0px 0px 5px 5px;
    overflow: hidden;
    height: 0;
    transition: height .3s ease;
}
.success-message {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.validation-error {
    display: flex;
    margin: 0.5rem 0 0;
}

.validation-error svg {
    margin: 0.2rem 0;
}

.validation-error ul {
    margin: 0 0 0 0.5rem;
    list-style: none;
    color: #d60e00
}

.wrapper--modal {
    background: rgba(0, 0, 0, .5);
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1000;
}

.wrapper--modal__scrollArea {
    height: 100%;
    width: 100%;
    overflow: auto;
}

.wrapper--modal__content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner__bg {
  width: 100%;
  height: 100%;
  background-color: hsla(var(--color, 0, 0%), var(--l, 0%), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-spinner__icon {
  fill: #fff;
  width: 6rem;
  height: 6rem;
  filter: drop-shadow(0px 0px 8px hsl(var(--color, 0, 0%), var(--l, 0%), 0.4));
  animation: loading-spinner-animation 3s linear infinite;
}

@keyframes loading-spinner-animation {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

#treemap-application-modal .form--contact {
max-height: none;
}

#treemap-application-modal {
   z-index: 1000;
}