#mapContainer {
    position: relative;
    width: 100%;
    height: 80vh;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

#mapContainer #map {
    position: relative;
    height: 80vh;
    width: 100%;
    margin: 0;
    padding: 0;
}


#listContainer {
    position: relative;
    width: 100%;
    height: 80vh;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 0;
}

.mapHeader h2, .listHeader h2 {
    text-align: center;
}

.listHeader h2 {
    margin-top: 2.8rem;
}

/* ---------------------------------------------------------- */


#mapContainer #legendContainer {
    position: relative;
    user-select: none;
}

#mapContainer #legendWrapper {
    position: absolute;
    bottom: 0;
    left: auto;
    right: auto;
    width: 100%;
    text-align: center;
    pointer-events: none;
}

#mapContainer #legendWrapper #legend {
    display: inline-block;
    background: #FFF;
    margin: auto;
    padding: 6px 12px;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    max-width: 200px;
    cursor: pointer;
    pointer-events: auto;
}

#mapContainer #legendWrapper #legend span.questionIcon {
    display: inline-block;
    color: white;
    background: #888;
    border-radius: 50%;
    line-height: 24px;
    width: 24px;
    height: 24px;
}

.swal2-container #legendPopupContents {
    padding: 12px 0;
}

.swal2-container #legendPopupContents .gridWrapper {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.swal2-container #legendPopupContents .gridItem {
    flex: 0 0 120px;
    padding: 8px;
}

.swal2-container #legendPopupContents div.header {
    padding: 20px 0 12px 0;
    font-weight: bold;
}

.swal2-container #legendPopupContents div.label {
    font-size: 12px;
}

.swal2-container #legendPopupContents img {
    max-width: 32px;
}

/* ---------------------------------------------------------- */


#list {
    position: relative;
    display: block;
    height: 80vh;
}

#list div.dataTables_scrollHead {
    margin-bottom: -15px;
}


/* ---------------------------------------------------------- */


.filterButton {
    z-index: 49;
    display: block;
    position: relative;
    height: 40px;
    width: fit-content;
    line-height: 40px;
    padding: 0 18px;
    text-align: center;
    cursor: pointer;
    overflow: hidden;
    font-size: 14px;
    color: #FFF;
    background-color: #f89d1e;
    border-radius: 3px;
    margin: 24px auto;
    transition: 0.25s ease-out;
    text-transform: uppercase;
    font-weight: bold;
}

.filterButton:hover{
    background-color: #ffc107;
}


#filter {
    position: fixed;
    top: 0;
    width: 100%;
    left: -80vw;
    width: 480px;
    max-width: 80vw;
    height: 100%;
    background-color: #FFF;
    overflow-y: scroll;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
    z-index: 100009;
}

#filterContainer {
    position: relative;
    z-index: 100009;
}

#filter #filterContent {
    width: 100%;
    min-height: 100%;
    margin-top: 6px;
    padding-bottom: 24px;
    min-height: 80vh;
}

#filter #filterContent .choiceContainer {
    padding: 24px 8px 0 2px;
    /* border-bottom: 1px solid #DDD; */
}

#filter #filterContent .choiceContainer .choiceItems {
    display: none;
    padding-bottom: 24px;
}

#filter #filterContent div.filterItem {
    font-size: 90%;
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid #888;
    border-radius: 3px;
    margin: 4px;
    cursor: pointer;
    user-select: none;
}

#filter #filterContent div.choiceHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0 24px 24px;
    cursor: pointer;
    background-color: #4eb848;
    background-size: cover;
    background-repeat: no-repeat;
}

#filter #filterContent div.choiceHeader.themes {
    background-image: url('../img/filter-themes-bg.svg');
}

#filter #filterContent div.choiceHeader.locations {
    background-image: url('../img/filter-locations-bg.svg');
}

#filter #filterContent div.choiceHeader.sectors {
    background-image: url('../img/filter-sectors-bg.svg');
}

#filter #filterContent div.choiceHeader h3 {
    margin: 0;
    font-size: 20px;
    line-height: 100%;
    display: inline-block;
    font-weight: 600;
    padding-top: 12px;
    color: #FFF !important;
}

#filter #filterContent div.choiceHeader .expCont {
    justify-content: end;
    position: relative;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    margin-right: 24px;
}

#filter #filterContent div.choiceHeader .expCont:before,#filter #filterContent div.choiceHeader .expCont:after {
        content: "";
        position: absolute;
        background-color: #FFF;
        transition: transform 0.25s ease-out;
    }

#filter #filterContent div.choiceHeader .expCont:before {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        margin-left: -1px;
    }

#filter #filterContent div.choiceHeader .expCont:after {
        top: 50%;
        left: 0;
        width: 100%;
        height: 2px;
        margin-top: -1px;
    }

#filter #filterContent div.choiceHeader .expCont.active:before{ transform: rotate(90deg); }

#filter #filterContent div.choiceHeader .expCont.active:after{ transform: rotate(180deg); }

#filter #filterContent div.filterItem.active {
    background: #9AE;
    box-shadow: inset 0 -1px 6px rgba(255, 255, 255, 0.6);
}

#filter #buttonContainer {
    display: flex;
    position: sticky;
    bottom: 0;
    height: 52px;
    width: 100%;
    background: #FFF;
    justify-content: space-between;
}

#filter #buttonContainer button {
    width: 48%;
    margin: 6px 12px 0 0;
    cursor: pointer;
}

/* #filter #buttonContainer button#filterSubmit {

} */


/* ---------------------------------------------------------- */


#info {
    z-index: 999999999;
    display: flex;
    position: fixed;
    top: 0;
    right: -80vw;
    width: 100vw;
    width: 480px;
    max-width: 80vw;
    height: 100%;
    /* height: 100vh; */
    background-color: #FFF;
    /* overflow-y: scroll; */
    box-sizing: border-box;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

#infoContainer {
    position: relative;
    z-index: 100009;
}

#infoCloseButtonWrapper {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    position: sticky;
    top: 0;
    right: 0;
    height: 48px;
    text-align: right;
    align-items: center;
    justify-content: end;
    z-index: 500;
}

#infoCloseButton {
    display: flex;
    flex-direction: row;
    text-align: right;
    align-items: center;
    justify-content: end;
    cursor: pointer;
    font-size: 48px;
}

#infoCloseButton.filter {
    background: rgba(255, 255, 255, 1);
}

#infoCloseButton.info {
    background: rgba(255, 255, 255, 0.6);
}

#infoCloseButton small {
    display: flex;
    font-size: 18px;
    padding: 6px 12px 0 18px;
}

#infoCloseButton .x {
    display: flex;
    line-height: 60px;
    padding-right: 18px;
    padding-left: 18px;
}

#infoContainer {
    box-sizing: border-box;
    width: 100%;
    overflow-y: scroll !important;
}

#infoContent {
    box-sizing: border-box;
    position: relative;
    z-index: 104;
}

#infoContent .main {
    padding: 0 24px;
}

#infoContent h1, #infoContent h2, #infoContent h3 {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    font-weight: 600;
    font-size: 120%;
    line-height: 1.2;
}

#infoContent p {
    margin: 0;
    padding: 0 0 12px 0;
}

#infoContent ul {
    margin: 0;
    padding: 0 0 12px 32px;
}

#infoContent .infoHeader {
    margin-top: -48px;
    margin-bottom: 1em;
    padding: 12em 2em 1em 2em;
    background-image: url('../img/map-detail-bg-mid.svg');
    background-size: contain;
    background-repeat: no-repeat;
}

#infoContent .infoHeader h1 {
    color: rgba(0, 0, 0, 0.8) !important;
}

#infoContent .infoHeader.fed { background-color: #eba242; }
#infoContent .infoHeader.reg { background-color: #6bb658; }
#infoContent .infoHeader.prov { background-color: #4688c6; }
#infoContent .infoHeader.loc { background-color: #f9d954; }
#infoContent .infoHeader.oth { background-color: #878787; }

#infoContent .main {
    padding: 0.4em 2em 3em 2em;
}

#infoContent .main .social {
    display: flex;
    justify-content: space-evenly;
}

#infoContent .main .adaptation {
    padding: 0 0 16px 0;
}

#infoContent .main hr {
    border: 0;
    height: 1px;
    margin: 18px 0;
    background: #999;
}


/* ---------------------------------------------------------- */


@media (max-width: 820px) {
    #mapContainer {
        font-size: 12px;
    }

    #list {
        padding-top: 80px;
    }

    .swal2-container #legendPopupContents .gridItem {
        flex: 0 0 64px;
        padding: 8px;
    }

    .swal2-container #legendPopupContents div.header {
        padding: 12px 0 6px 0;
    }

    .swal2-container #legendPopupContents img {
        max-width: 24px;
    }
}
