section.top{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
    color: #fff;
    background: #000;
    font-family: 'Nunito Sans', sans-serif;
    text-align: center;
    padding-top: 63pt;
    height: 328px;
}
section.top h1{
    font-size: 12pt;
    font-weight: 400;
}
section.top h1 span{
    color: #FD5526;
}
section.top h2{
    font-size: 18pt;
    font-weight: 300;
    width: 270pt;
    font-style: italic;
}
section.middle{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    top: 285px;
    max-width: 1600px;
    margin: 0 auto;
}
.container{
    width: 100%;
    /* background: #fff; */
    /* height: 100%; */
    position: absolute;
    bottom: -50px;
    left: 0px;
    /* left: 17px; */
}
section.map-bg{
    width: 100%;
    min-height: 510px;
    height: calc(100% - 400px);
    position: relative;
    z-index: 2;
    /* top: -170px; */
    /* padding: 0px 170px; */
    display: flex;
    justify-content: center;
    bottom: -20px;
}
.map{
    width: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    /* gap: 30px; */
}
.box{
    background: #F7F5F6;
    width: 40%;
    height: 500px;
    position: relative;
    bottom: 140px;
    border-radius: 15pt;
    font-family: 'Nunito Sans', sans-serif;
}
.box-map{
    background: #F7F5F6;
    width: 60%;
    height: 500px;
    position: relative;
    bottom: 80px;
    border-radius: 15pt;
}
.box-header{
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    padding-bottom: 15px;
}
.box-header h3{
    font-size: 15pt;
    font-weight:400;
    margin-bottom: 0px;
    color: #656565;
    margin-left: 8px;
}
.d-none{
    display: none;
}
/* SWITCH */
.toggle-control {
    display: block;
    position: relative;
    padding-left: 5.5rem;
    height: 50px;
    cursor: pointer;
    font-size: 1.375rem;
    user-select: none;
}
.toggle-control input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.toggle-control input:checked ~ .control {
    background-color: darkgray;
}
.toggle-control input:checked ~ .control:after {
    left: 3.08rem;
}
.toggle-control .control {
    position: absolute;
    top: 0;
    left: 0;
    height: 2.78rem;
    width: 5.6rem;
    border-radius: 1.563rem;
    background-color: darkgray;
    transition: background-color 0.25s ease-in;
}
.toggle-control .control:after {
    content: "";
    position: absolute;
    left: 0.4rem;
    top: 0.313rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 1.563rem;
    background: #fff;
    transition: left 0.25s ease-in;
}
.box-search{
    width: 85%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.search{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 29px;
    padding: 10px 15px;
}
.search input::placeholder{
    color:#C3C3C3;
}
.search input{
    color: #797979;
    width: 100%;
    border: 0;
    outline: 0;
    padding: 5px;
    padding-left: 15px;
    font-size: 1.2rem;
}

.box-result{
    width: 85%;
    margin: 0px auto;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    height: 320px;
    padding-bottom: 10px;
    overflow-y: scroll;
}
.box-result .item{
    width: 100%;
    background: #fff;
    border-top-right-radius: 11pt;
    border-bottom-right-radius: 11pt;
    padding: 15px;
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}
.box-result .item::after{
    content: '';
    width: 1pt;
    height: 100%;
    background: #FD5526;
    position: absolute;
    left: 0px;
    top: 0px;
}
.box-result .item .img-container{
    width: 200px;
    height: 120px;
    background: #F7F7F7;
}
.box-result .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.box-result .item h4{
    font-size: 1rem;
    color: #656565;
}
.box-result .item span{
    font-size: 0.8rem;
    color: #656565;
}
.box-result .item a{
    text-decoration: none;
    color: #fff;
    background: #000;
    font-weight: 400;
    padding: 5px 15px;
    border-radius: 8px;
    font-size: .8rem;
    width: fit-content;
    margin-top: 3px;
    margin-right: 5px;
    white-space: nowrap;
}
.box-result .item .content{
    font-family: 'Nunito Sans', sans-serif;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
}
.box-result .item .content div{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* MAP */
.leaflet-popup-content-wrapper{
    background: none;
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
    padding: 0px;
    box-shadow: 0 3px 3px rgba(0,0,0,0.4);
}
.leaflet-popup-content{
    margin: 0;
    width: max-content !important;
}
.leaflet-left .leaflet-control{
    margin-left: 20px;
    margin-top: 20px;
    border-radius: 5px;
    border: .8px solid #000;
}
.leaflet-bar a{
    color: #000;
}
.leaflet-touch .leaflet-bar a:first-child{
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
.leaflet-touch .leaflet-bar a:last-child{
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
.leaflet-marker-icon{
    filter: hue-rotate(280deg);
}
.leaflet-marker-icon.custom-icon{
    filter: none;
}
@media screen and (width > 870px){
    .container{ 
        height: 100%;
        position: relative;
    }
    .box{
        border-top-right-radius: 0px;
        border-bottom-right-radius: 0px;
    }
    .box-map{
        border-top-left-radius: 0px;
        border-bottom-left-radius: 0px;
        bottom: 140px;
    }
    .box-result .item::after{
        content: '';
        width: 4px;
        height: 100%;
        background: #FD5526;
        position: absolute;
        left: 0px;
        top: 0px;
    }
    section.top h1{
        font-size: 23px;
        margin-bottom: 4px;
    }
    section.top h2{
        font-size: 16px;
        width: fit-content;
    }
    .map{
        bottom: 70px;
    }
}
@media screen and (width <= 870px){
    .box{
        order:2;
        height: 520pt;
    }
    .box-result{
        height: 365pt;
    }
    .box-map{
        order:1;
        bottom: 105pt;
    }
    section.top h1{
        font-size: 12pt;
        margin-bottom: 9pt;
    }
    section.top h2{
        font-size: 18pt;
    }
    section.map-bg{
        /* padding: 0 35px; */
    }
    .map{
        flex-direction: column;
    }
    .box, .box-map{
        width: 100%;
    }
    .container{
        position: relative;
    }
    section.middle{
        height: 172px;
        top: 0px;
        overflow: hidden;
    }
}
@media screen and (width < 570px){
    .box{
        bottom: 173px;
    }
    .box-header{
        padding-top: 50px;
    }
    section.top{
        /* margin-top: 15px; */
        align-items: center;
        height: 275pt;
    }
    section.middle{
        overflow: hidden;
        height: 190px;
        top: 25px;
    }
    .container{
        left: 0px;
        bottom: 0px;
        padding-bottom: 20pt;
    }
    section.map-bg{
        bottom: -25px;
        /* padding: 0 15px; */
    }

}



@media screen and (width > 870px) {
    
}
@media screen and (width > 968px) {

}
@media screen and (width > 1100px) {
    
}
@media screen and (width > 1200px) {

}
@media screen and (width > 1300px) {
    
}
.leaflet-container a.leaflet-popup-close-button{
    right: 7px;
    font: 12px/50px 'Nunito Sans', sans-serif;
    color: #fff;
}
.leaflet-container a.leaflet-popup-close-button:hover, .leaflet-container a.leaflet-popup-close-button:focus{
    color: #cdcdcd;
}
.map-maker{
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 300px;
    flex-direction: column;
    background: #fff;
    border-radius: 18px;
}
.map-header{
    min-width: 200px;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-top-right-radius: 18px;
    border-top-left-radius: 18px;
}
.map-header img{
    height: 50%;
}
.map-content{
    padding: 10px;
}
.text-primary, .leaflet-container a.text-primary{
    color: #FD5526;
}
.leaflet-container a{
    text-decoration: none;
}
b.text-primary{
    color: #000;
    font-size: .9rem;
    padding: 10px;
}
.map-content ul{
    margin-left: 0px;
}
.map-content ul li{
    list-style: none;
    margin-bottom: 10px;
    font-size: .8rem;
    margin-left: 0px;
    display: flex;
    align-items: flex-start;
}
.map-content ul li:nth-child(1){
    align-items: center;
}
.map-content ul li .icon{
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #E2EDE6;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 4px;
    margin-right: 5px;
}
.map-content ul li .icon img{
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.map-content ul li{
    color: #656565;
}