/*Leaflet CSS Custom*/

.label_column_popup {
    font-weight: bolder;
    text-transform: uppercase;
}

.leaflet-container a.leaflet-popup-close-button {
    padding: 7px 21px 21px 7px;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    background-color: #0000001a;
}

.leaflet-popup-content-wrapper {
    padding: 0;
    font-family: 'Fira Sans';
    border-radius: 6px;
}

.leaflet-popup .popup-header-title {
    font-size: 12px;
    color: #000;
    margin-left: 0;
    font-weight: 500;
}

.leaflet-popup-content {
    margin: 0;
    min-width: 269px;
}

.showing-list-map-header.popup-content-header {
    height: 28px;
}

.showing-list-map-header.popup-content-header img {
    position: absolute;
    height: 34px;
    top: 11px;
    left: 0px;
}

.leaflet-popup-content .popup-content-body {
    margin: 23px 14px 0;
    padding-bottom: 16px;
}

.popup-content-body .title {
    font-size: .9rem;
    text-align: center;
    font-weight: 500;
    margin: 0 6px;
}

.popup-content-body hr:not([size]) {
    height: 2px;
}

.popup-content-body hr {
    opacity: .1;
    margin: .6rem 0;
}

.popup-content-body .attribute-title {
    display: block;
    font-weight: 600;
    margin-top: 4px;
    margin-bottom: 4px;
}

.popup-content-body .proposition {
    display: block;
    margin-bottom: 5px;
}

.legend_box {
    position: relative;
}

.legend {
    position: relative;
    display: inline-block;
    bottom: 0;
    width: 375px;
    font-family: 'Fira Sans';
    background: transparent;
    line-height: 24px;
    color: #474747;
    box-shadow: 0px 3px 5px #20232381 !important
}

.legend:nth-child(2) {
    margin-left: 270px;
}

.legend:nth-child(3) {
    margin-left: 540px;
}

.legend .card {
    border: none;
    overflow-y: auto;
}

.legend .card .card-header {
    border: none;
}

.legend .card .card-body {
    height: 285px;
    overflow-y: auto;
}

.legend .card .card-body hr {
    margin: 1.4rem 0;
    color: #000;
    opacity: 0.1;
}

.legend .map-type-icon {
    width: 22px;
    margin-left: 8px;
    margin-right: 8px;
    opacity: 0.6;
}

.legend .card .card-body hr:not([size]) {
    height: 2px;
}

.card-header span {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 14px;
    color: #474747;
}

.card-header i {
    font-size: 1.5rem;
    color: #474747;
}

.legend-item-header {
    display: flex;
    background-color: #E8EDED;
    margin-bottom: 3px;
    max-height: 40px;
}

.legend-item-header a {
    opacity: .4;
    align-items: center;
    margin-top: 0;
    margin-bottom: 0;
}

.legend-item-header a:hover {
    background-color: #c5d1d1;
    opacity: 1;
    border-radius: 0;
}

.label-name {
    display: inline-block;
    color: #000;
    font-weight: 700;
    font-size: .9rem;
    padding: 6px 10px 6px 0px;
    width: auto;
    /* margin-right: auto; */
    max-width: calc(100% - 50px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-label {
    display: flex;
    padding: 4px 0;
    margin-left: 12px;
    flex-direction: row;
    align-items: baseline;
    color: #000000cb;
}

.source-label {
    margin: 10px 12px 24px 12px;
    display: block;
    font-size: 14px;
}

.info-label span {
    padding-left: 12px;
    font-size: 14px;
    font-weight: 600;
    line-height: 22px;
}

.info-label i {
    font-size: 17px;
    margin-top: auto;
    margin-bottom: auto;
}

.label-marker {
    margin-left: 14px;
}

.label-marker i {
    font-size: 20px;
}

.label-line i {
    font-size: 19px;
}

.label-polygon i {
    padding-bottom: 2.5px;
}

.info-label span i {
    margin-left: 5px;
}

.leaflet-bar {
    border: none !important;
    background-clip: initial !important;
    box-shadow: -1px 2px 7px #202323 !important;
}

.leaflet-bar a {
    color: #555 !important;
}

.leaflet-control-layers {
    border: none !important;
}

.leaflet-touch .leaflet-control-layers-toggle {
    width: 40px;
    height: 40px;
}

.leaflet-control-layers-toggle {
    background-image: url('../img/icons/leaflet/layers.svg') !important;
}

.leaflet-control-target,
.leaflet-control-search,
.leaflet-control-layers-toggle {
    display: block;
    width: 40px;
    height: 40px;
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.15) !important;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 25px;
}

.leaflet-top.leaflet-left {
    z-index: 1001;

}

.leaflet-control-target {
    background-image: url('../img/icons/leaflet/target.svg') !important;
}

.leaflet-control-search {
    box-shadow: 0 0 black !important;
    background-image: url('../img/icons/leaflet/search.svg') !important;
}

.leaflet-control-search:hover {
    background-color: #f4f4f4 !important;
}

.leaflet-control-target:hover {
    background-color: #f4f4f4 !important;
}

.leaflet-touch .leaflet-bar a {
    width: 40px;
    height: 35px;
    line-height: 35px;
    color: #666666;
}

.leaflet-bar {
    box-shadow: 0 1px 1px 1px rgba(0, 0, 0, 0.15) !important;
}


/* LEGEND POSITION */

.leaflet-container a {
    color: #000 !important;
    text-decoration: none !important;
}

.leaflet-container a:hover {
    color: #000;
}


/*legend scroll-bar */

.legend ::-webkit-scrollbar-track-piece {
    background-color: #bebebe !important;
}

.legend ::-webkit-scrollbar {
    width: 10px;
    background: #000 !important;
}

.legend ::-webkit-scrollbar-thumb {
    border-radius: 25px;
    background: rgb(255, 255, 255, 0.2) !important;
}


/*zoom control scroll-bar */

.leaflet-top {
    display: flex !important;
}

.leaflet-control {
    height: 100%;
    border-radius: 50px;
}

.leaflet-control-layers {
    display: flex !important;
}

.leaflet-control-layers-toggle,
.leaflet-control-target,
.leaflet-control-search {
    border-radius: 50px;
}

.leaflet-control-layers-expanded {
    border-radius: 10px !important;
}

.leaflet-control-browser-print {
    display: none !important;
}

@media print {
    .fullscreen-icon {
        display: none !important;
    }

    .header-img {
        width: 28mm;
        padding: 5px;
    }

    .legend-print {
        position: relative;
        display: inline-block;
        bottom: 0;
        width: 62mm;
        height: 20mm;
        font-family: 'Fira Sans';
        background: rgba(255, 255, 255, 0.5);
        margin: 0px !important;
    }

    .leaflet-control-attribution.leaflet-control {
        display: none;
    }
}

.collapse-legend {
    margin: auto 0 auto auto;
}

@media (max-width: 1400px) {
    .legend .card .card-body {
        max-height: 280px;
    }
}

.legend.hide {
    display: none !important;
}

.north-icon {
    height: 50px;
}

.info.legend.leaflet-control {
    width: 50px !important;
    box-shadow: 0px 0px 0px #20232381 !important;
    right: -19px;
}

.leaflet-bottom.leaflet-left {
    left: max(360px, 20%);
    bottom: 20px;
}

.leaflet-bottom.leaflet-right .legend .card {
    background-color: #F3F3F3;
}

.legend .img-fluid {
    padding: 10px;
    position: absolute;
}

.collapse.show img {
    display: block;
}

.collapse img {
    display: none;
}

.leaflet-control-alert {
    width: 320px;
    left: 50%;
    top: 65%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    position: fixed;
}

.alert-map {
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Barlow';
    color: #f7f7f7;
    background-color: #121212b3;
    border-color: #585858;
    border-radius: 50px;

}

.leaflet-control-alert i {
    font-size: 1.5rem;
}