﻿.map {
    height: 500px;
    width: 100%;
}

.map-results {
    width: 448px;
    height: 400px;
    max-width: 90%;
}

button.button-search.hide {
    display: none;
}

button.button-search.show {
    display: block;
}

.delete-marker {
    background-color: #e30613;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background-image: url(/Content/Images/icons/icon-remove-polygon.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
}

.leaflet-right .leaflet-control {
    margin-right: 17px;
}

.leaflet-touch .leaflet-bar a {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 8px;
    font-size: 25px;
    border: none;
    outline: inherit;
}

    .leaflet-touch .leaflet-bar a:first-child {
        border-top-left-radius: 8px;
        border-top-right-radius: 8px;
    }

    .leaflet-touch .leaflet-bar a:last-child {
        border-bottom-left-radius: 8px;
        border-bottom-right-radius: 8px;
    }

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: none;
}

.leaflet-bar.leaflet-control-zoom a:first-child {
    margin-bottom: 16px;
}


.leaflet-control.leaflet-control-locate a {
    color: #164194;
}

.leaflet-bottom .leaflet-control.leaflet-control-locate {
    margin-bottom: 16px;
}

.button-edit-poligon {
    position: absolute;
    width: 160px;
    height: 34px;
    z-index: 400;
    left: 50px;
    top: 28px;
    cursor: pointer;
}

    .button-edit-poligon:hover {
        background-image: linear-gradient(0deg, #0000000f, #0000000f);
        background-origin: border-box;
    }

.edit-polygon {
    background-color: #e30613;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    background-image: url(/Content/Images/icons/icon-edit-polygon.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 65%;
}

.hide-section {
    display: none;
}

.hide-section-resize-map {
    height: 0;
    visibility: hidden;
    overflow: hidden;
    min-height: 0;
}

.filters-container.fixed-position {
    position: fixed;
    top: 83px;
    width: 100%;
    left: 0;
    background-color: #fff;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    padding-right: 20px;
}

.map-container.fixed-position {
    position: sticky;
    top: 170px;
}

.filter-control span.error {
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    color: red;
    line-height: 1;
}

.filters-container .filter-control.filter-buttons {
    flex-basis: 100%;
    display: none;
}

.filters-container .filter-control.filter-buttons button {
    margin-top: 10px;        
}

.popup-marker .leaflet-popup-content-wrapper {
    border: 2px solid #164194;
    color: #164194;
    padding: 0px;
}

.popup-marker .leaflet-popup-content {
    color: #164194;
    font-weight: bold;
}

.popup-marker .leaflet-popup-tip {
    background: #164194;
}

.tooltip-marker.leaflet-tooltip {
    border: 2px solid #164194;
    color: #164194;
    font-weight: bold;
    background-color: white;
    padding: 5px;
    border-radius: 3px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 1200px) {
    #map-container-content .mobile-filters-buttons.hide-section {
        display: none !important;
    }

    #map-container-content .mobile-filters-buttons.fixed-position {
        position: sticky;
        top: 83px;
        width: 100%;
        background-color: #fff;
        z-index: 2;
    }

    .filters-container {
        display: none;
    }

    .filters-container.fixed-position {
        top: 177px;
    }
    
    .filters-container.show-section {
        display: flex;
        position: fixed;
        top: 182px;
        width: 100%;
        left: 0;
        background-color: #fff;
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 20px;
        padding-right: 20px;
        z-index: 2;
    }

    .content-map {
        position: relative;
        z-index: 1;
    }

    .map-container.fixed-position {
        position: initial;
        top: 0px;
    }

    .map-results {
        width: 100%;
        height: 500px;
        max-width: 100%;
    }

    .mobile-hide-section {
        display: none;
    }

    .mobile-hide-section-resize-map {
        height: 0;
        visibility: hidden;
    }
}
@media screen and (max-width: 767px) {
    .map-content {
        height: auto;
    }
    .hide-section-resize-map {
        height: 0;
    }
    .estates-list-container {
        min-height: auto;
    }
    #map-container-content .mobile-buttons.mobile-hide-section {
        display: none !important;
    }
    button.button-search {
        display: none;
    }
    button.button-search.show {
        display: none;
    }
    .button-edit-poligon {
        display: none;
    }
    .filters-container .filter-control.filter-buttons {
        display: block;
    }
    body.map-edit{
        overflow: hidden;
    }
}

@media (max-width: 767px) and (max-height: 800px) {
    .map {
        height: 55vh;
    }
    .map-results {
        height: 55vh;
    }
}

@media screen and (max-width: 380px) {
    .filters-container.show-section {
        top: 170px;
    }
}

.info-help-text {
    display: flex;
    align-items: center;
}

.info-help-text.hide {
    display: none;
}

.info-help-text p {
    margin: 0;
    color: #164194;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

@media screen and (max-width: 767px) {
    .info-help-text {
        display: none;
    }
}