.main-container {
    height: auto;
}

#UpdatePanel {
    overflow: hidden;
}

.search-results-container {
    height: 100%;
}

#searchResultsContainer_1 {
    height: 100%;
}

#gvContent.map-page-wrapper {
    height: 100%;
}

#map_large {
    height: 100%;
    width: 100%;
}

#map_large>div {
    background: transparent !important;
}

.mdo-checkbox.map-label-checkbox input~label:before {
    border-color: #27AE60;
    transition: all .25s ease-in-out;
}

.mdo-checkbox.map-label-checkbox input~label.hide-after:before {
    border-color: #CFCFCF;
    transition: all .25s ease-in-out;
}

.mdo-checkbox.map-label-checkbox input~label.hide-after:after {
    display: none;
}

.mdo-checkbox.map-label-checkbox input~label:after {
    position: absolute;
    display: block;
    content: '';
    left: 0.41rem;
    top: 6px;
    width: 3px;
    height: 6px;
    border: solid #27AE60;
    border-width: 0 2px 2px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    animation: fadeIn2 .25s ease-in-out;
}

.gm-style iframe+div {
    border: none !important;
}

.map-open .table-icons-block.mobile-only {
    display: none;
}

.map-open .search-results-container {
    display: none;
}

.map-open #map-page-wrapper {
    display: block;
    height: calc(100dvh - 181px);
}

.map-content {
    position: relative;
    overflow: hidden;
}

.sidebar-map-opener {
    position: relative;
    width: 20px;
    height: 20px;
    opacity: 0.2;
    cursor: pointer;
    transition: opacity ease 0.5s;

    &:hover {
        opacity: 1;
    }

}

.sidebar-map-opener::before,
.sidebar-map-opener::after {
    content: "";
    position: absolute;
    top: 10px;
    display: block;
    width: 18px;
    height: 3px;
    background: #000;
}

.sidebar-map-opener::before {
    transform: rotate(45deg);
}

.sidebar-map-opener::after {
    transform: rotate(-45deg);
}

.sidebar-map {
    padding: 20px 15px;
    position: absolute;
    width: 400px;
    height: 100%;
    z-index: 100;
    background: #fff;
    top: 0;
    right: -500px;
    opacity: 0;
    transition: all 0.5s linear;
}

.map-sidebar-active .sidebar-map {
    right: 0;
    opacity: 1;
    transition: all 0.5s linear;
}

.sidebar-map-header {
    font-size: 16px;
    font-family: Poppins;
    font-weight: 500;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.custom-marker {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    background: #d34e4e;
    transition: none;
    border: 5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    display: none;
    z-index: 2;
    cursor: pointer;
}

.custom-marker::after {
    bottom: 12px;
}

.custom-marker.active {
    background: #fff;
    border: 5px solid #fff;
    width: 32px;
    height: 32px;
    color: #0C0D11;
    font-size: 14px;
    /* transform: scale(1.1) translate(0px, -7px); */
}

.custom-marker::before {
    display: none;
}

.custom-marker.is-project {
    background-color: rgba(69, 73, 89, 1);
}

.custom-marker.is-mine {
    background-color: rgba(211, 78, 78, 1);
}

.custom-marker.mine .prg-element,
.custom-marker.mine .img-project {
    display: none;
}

.custom-marker.project .com-element,
.custom-marker.project .img-mine {
    display: none;
}

.small-scale .custom-marker {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    transition: none;
}

.small-scale .custom-marker img {
    display: none;
}

.custom-marker img {
    width: 18px;
    height: 18px;
    transition: none;
}

.marker-selection {
    opacity: 0;
    position: absolute;
    bottom: -8px;
    left: -8px;
    width: 48px;
    height: 48px;
    border: 2px solid rgba(2, 161, 211, 1);
    border-radius: 50%;
    background: rgba(2, 161, 211, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.custom-marker.active+.marker-selection {
    opacity: 1;
}

.small-scale .marker-selection {
    width: 26px;
    height: 26px;
    left: -5px;
    top: 10px;
}

.custom-marker .com-element,
.custom-marker .prg-element {
    top: -4px;
    bottom: -4px;
    position: absolute;
    height: 30px;
    width: 30px;
    background-origin: border-box;
    background-repeat: no-repeat;
}

.com_1 img,
.com_2 img,
.com_3 img,
.com_4 img,
.com_5 img,
.com_6 img,
.com_7 img,
.com_8 img,
.com_9 img,
.com_10 img,
.com_11 img,
.com_12 img,
.com_13 img,
.com_14 img,
.com_15 img,
.com_16 img,
.prg-element img {
    width: auto;
    height: auto;
    position: absolute;
    top: 0;
}

.prg-element img {
    right: 1px;
}

.com_1 img {
    top: 0;
}

.com_2 img {
    top: 0;
}

.com_3 img {
    top: 21px;
    right: 3px;
}

.com_4 img {
    top: 15px;
    right: 0px;
}

.com_5 img {
    right: 1px;
}

.com_6 img {
    top: 8px;
    right: 0px;
}

.com_7 img {
    top: 6px;
    right: 0px;
}

.com_8 img {
    top: 15px;
    right: 24px;
}

.com_9 img {
    top: 13px;
    right: 26px;
}

.com_10 img {
    top: 19px;
    right: 1px;
}

.com_11 img {
    top: 17px;
    right: 0px;
}

.com_12 img {
    top: 15px;
    right: 0px;
}

.com_13 img {
    top: 13px;
    right: 0px;
}

.com_14 img {
    top: 17px;
    right: 0px;
}

.com_15 img {
    top: 16px;
    right: 0px;
}

.com_16 img {
    top: 10px;
}

.color_level-met {
    filter: invert(35%) sepia(87%) saturate(754%) hue-rotate(322deg) brightness(97%) contrast(95%);
}

.color_level-not-met {
    filter: invert(56%) sepia(0%) saturate(0%) hue-rotate(225deg) brightness(93%) contrast(88%);
}

.color_level-zero {
    filter: invert(100%) sepia(100%) saturate(0%) hue-rotate(198deg) brightness(111%) contrast(101%);
}

.custom-marker.visible {
    display: flex;
    margin-top: 15px;
}

.marker-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.tip-marker {
    position: absolute;
    bottom: 42px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.tip-marker a {
    color: var(--text-color);
    text-decoration: none;
}

.tip-marker.visible {
    opacity: 1;
    pointer-events: auto;
}

.small-scale .tip-marker {
    display: none;
}

.tip-marker::after {
    content: "";
    position: absolute;
    bottom: -3px;
    right: 50px;
    display: block;
    width: 12px;
    height: 12px;
    background: var(--table-sec-background);
    transform: rotate(45deg);
}

.wrap-view-controls {
    margin: 16px;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.map-satellite-btn,
.map-view-btn {
    transition: none;
    background: var(--map-view-button);
    color: var(--text-color);
}

.map-view-btn {
    border-radius: 8px 0 0 8px;
    width: 49px;
}

.map-satellite-btn {
    border-radius: 0 8px 8px 0;
    width: 72px;
}

.map-satellite-btn:hover,
.map-view-btn:hover,
.zoom-out-btn:hover,
.zoom-in-btn:hover,
.mine-scale:hover,
.mine-type:hover {
    transform: none;
    transition: all 0.3s ease-in-out;
    background-color: var(--color-white);
    color: var(--text-color);
}

.map-satellite-btn.active,
.map-view-btn.active {
    font-weight: normal;
    background-color: var(--map-view-active-button);
    color: #000;
}

.zoom-out-btn {
    border-radius: 8px 8px 0 0;
}

.zoom-in-btn {
    border-radius: 0 0 8px 8px;
}


.wrap-zoom-controls {
    margin-left: 16px;
}

.map-legend-wrap {
    display: flex;
    width: auto;
    justify-content: flex-end;
    padding: 16px;
    gap: 16px;
}

.map-legend {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    min-height: 40px;
    height: 100%;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    position: relative;
}

.map-mine {
    min-width: 250px;
    height: 40px;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    justify-content: stretch;
    align-items: center;
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    justify-content: space-between;
}

.mine-scale {
    display: flex;
    align-items: center;
    width: 90%;
    height: 100%;
    text-align: center;
    padding: 0 8px 0 8px;
    background: var(--map-view-button);
    color: var(--text-color);
    border-radius: 8px 0 0 8px;
}

.mine-type {
    display: flex;
    align-items: center;
    width: 110%;
    height: 100%;
    text-align: center;
    padding: 0 8px 0 8px;
    background: var(--map-view-button);
    color: var(--text-color);
    border-radius: 0 8px 8px 0;
}

.mine-scale img,
.mine-type img {
    margin-right: 4px;
}

.mine-scale.selected,
.mine-type.selected {
    background: var(--map-view-active-button);
    color: #000;
}

.map-legend.accordeon-closed {
    /* max-height: 40px; */
}

.legend-header {
    display: flex;
    align-items: center;
    gap: 4px;
    width: auto;
    padding: 11px 8px;
    cursor: pointer;
    background: var(--map-view-active-button);
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    color: #000;
}

.legend-body {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    max-height: calc(100dvh - 215px);
    opacity: 1;
    overflow: auto;
    background: var(--map-view-button);
    border-radius: 8px;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 200px;
    transform: translateY(4px);
}

.accordeon-closed .legend-header {
    background: var(--map-view-button);
    color: var(--color-text)
}

.accordeon-closed .legend-body {
    opacity: 0;
    pointer-events: none;
}

.legend-el {
    display: flex;
    align-items: center;
    padding: 4px 0;
}

.legend-el img {
    filter: brightness(0) saturate(100%) invert(55%) sepia(13%) saturate(613%) hue-rotate(170deg) brightness(93%) contrast(87%);
    margin-right: 8px;
}

.round-mine,
.round-project {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.round-mine {
    background: rgba(211, 78, 78, 1);
}

.round-project {
    background: rgba(69, 73, 89, 1);
}

.arrow {
    height: 16px;
    width: 16px;
    float: right;
    background-size: cover;
    background-image: url('/img/icons/triangle-down.svg');
    transition: 0.3s ease-in-out;
    transform: rotate(180deg);
}

.infoIcon {
    display: inline-block;
    height: 16px;
    width: 16px;
    float: right;
    background-size: cover;
    background-image: url('/img/icons/info.svg');
    transition: 0.3s ease-in-out;
}

.accordeon-closed .arrow {
    transform: rotate(0deg);
}

.map-description {
    position: absolute;
    width: 353px;
    max-height: 100%;
    bottom: -1000px;
    right: 16px;
    background: var(--map-description);
    border-radius: 8px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    box-shadow: 0px 16px 40px 0px #00000040;
    transition: all 0.3s ease-in-out;
    z-index: 16;
    display: none;
}

.map-description.toggled {
    bottom: 16px;
}

.map-desc-header {
    padding: 16px;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map-desc-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
}

.map-desc-text .icon {
    margin-right: 0;
}

.map-desc-text a {
    /* color: rgb(12, 13, 17); */
    text-decoration: none;
}

#map-sidebar-close {
    cursor: pointer;
}

.map-desc-body {
    border-radius: 0 0 8px 8px;
    max-height: calc(100dvh - 332px);
    overflow-y: auto;
    border-top: 1px solid var(--table-border-color);
    border-bottom: 1px solid var(--table-border-color);
}

.map-desc-header:before {
    content: "";
    background: linear-gradient(180deg, rgba(28, 31, 47, 0.08) 0%, rgba(34, 38, 57, 0) 100%);
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    top: 56px;
    height: 23px;
    pointer-events: none;
    opacity: 0;
    transition: all 300ms ease-in-out;
}

.map-desc-header:has(+ .map-desc-body.scrolled-y):before {
    opacity: 1;
}

.map-desc-body table {
    border-collapse: collapse;
    width: 100%;
}

.map-desc-body td {
    overflow: hidden;
    text-align: left;
    padding: 6px 16px;
    border: 1px solid var(--table-border-color);
    background: var(--table-main-background);
}

.map-desc-body td ul {
    list-style: disc;
    margin-left: 8px;
    display: flex;
    gap: 4px;
    flex-direction: column;
}

.map-desc-body td:first-child {
    font-weight: 500;
    max-width: unset;
}

.map-desc-body tr:first-child td {
    border-top: none;
}

.map-desc-body tr:last-child td {
    border-bottom: none;
}

.map-desc-body tr:nth-of-type(2n) td {
    background: var(--map-description);
}

@media screen and (min-width: 1441px) and (max-width: 1919px) {
    .map-open #map-page-wrapper {
        height: calc(100dvh - 191px);
    }
}

@media screen and (min-width: 1920px) {
    .map-open #map-page-wrapper {
        height: calc(100dvh - 221px);
    }
}

@media screen and (max-width: 1150px) {
    .map-open main {
        border-radius: 0;
    }

    .map-open .main-container {
        padding: 0;
    }

    .map-open #map-page-wrapper {
        height: calc(100dvh - 73px);
    }

    .map-open .mobile-only.mobile-label-tab-wrapper {
        position: absolute;
        z-index: 1;
        width: calc(100dvw - 32px);
        top: 56px;
        margin: 0 16px 0 16px;
    }

    .map-open .mobile-label-tab {
        margin-bottom: 0;
    }

    .map-open .map-legend-wrap {
        top: 51px !important;
        width: 100%;
        display: flex;
        justify-content: space-between;
    }

    .map-open .wrap-view-controls,
    .map-open .wrap-zoom-controls {
        display: none;
    }

    .map-open .map-legend,
    .map-open .map-mine {
        border-radius: 12px;
    }

    .map-open .legend-body {
        padding: 8px;
    }

    .map-open .mine-scale {
        border-radius: 12px 0 0 12px;
    }

    .map-open .mine-type {
        border-radius: 0 12px 12px 0;
    }

    .map-open .zoom-out-btn {
        border-radius: 12px 12px 0 0;
    }

    .map-open .zoom-in-btn {
        border-radius: 0 0 12px 12px;
    }

    .map-open .map-view-btn {
        border-radius: 12px 0 0 12px;
    }

    .map-open .map-satellite-btn {
        border-radius: 0 12px 12px 0;
    }

    .map-open .map-description {
        right: calc((100dvw - 353px) / 2);
    }

    .map-open .map-desc-body {
        max-height: calc(100dvh - 160px);
        overflow-y: scroll;
    }

    .tip-marker {
        display: none;
    }

    .map-mine {
        justify-content: flex-start;
        min-width: auto;
    }

    .mine-scale,
    .mine-type {
        width: auto;
    }

    .map-legend-wrap {
        justify-content: space-between;
        gap: 0;
        width: 100%;
    }

    .wrap-view-controls {
        top: unset !important;
        bottom: 26px;
    }

    .wrap-zoom-controls {
        left: unset !important;
        right: 0;
    }
}