﻿#mapPage {
    width: 100%;
    height: calc(100dvh - 60px);
    display: flex;
}

#MapParent {
    width: calc(100% - 650px);
    height: 100%;
    position: relative;
}

#MapContainer {
    width: 100%;
    height: 100%;
}

#AnnouncementList {
    width: 350px;
    height: 100%;
    padding: 10px;
    overflow-y: auto;
    box-shadow: -3px 0px 6px #0000001f;
    z-index: 401;
}

#FilterContainer {
    width: 300px;
    height: 100%;
    box-shadow: 0 0 6px #00000026;
    padding: 10px 5px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

    #FilterContainer .subs {
        padding-right: 5px;
        border-right: 1px solid var(--Primary);
    }

    #FilterContainer label {
        width: 100%;
        text-align: center;
    }

.activeCategory {
    color: var(--Primary);
    font-weight: bold;
}

#FilterContainer li {
    margin-bottom: 6px;
}

.custom-price-marker .marker-text {
    background: var(--Primary);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 8px;
    text-align: center;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

    .custom-price-marker .marker-text:before {
        content: "";
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 5px solid var(--Primary);
    }

.custom-price-marker .marker-dot {
    background: var(--Primary);
    border-radius: 50%;
    width: 15px;
    height: 15px;
}



#AnnouncePreview {
    position: absolute;
    bottom: 10px;
    z-index: 401;
    background-color: white;
    border-radius: 8px;
    width: calc(100% - 35px);
    max-width: 450px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--Shadow);
}

    #AnnouncePreview span {
        display: inline-flex;
        background-color: #dfdfdf;
        color: black;
        align-items: center;
        font-size: 12px;
        font-weight: bold;
        border-radius: 3px;
        margin: 5px;
        padding: 0px 3px;
    }

    #AnnouncePreview .imgView {
        display: flex;
        gap: 1%;
        justify-content: space-around;
        padding: 5px;
        height: 165px;
        overflow-x: auto;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
        cursor: grab;
    }

        #AnnouncePreview .imgView img {
            width: 150px;
            height: 150px;
            object-fit: cover;
            border-radius: 5px;
            pointer-events: none;
            user-drag: none;
            -webkit-user-drag: none;
        }

            #AnnouncePreview .imgView:active {
                cursor: grabbing;
            }

    #AnnouncePreview .TitleContainer {
        color: #373737;
        font-size: 18px;
        padding: 5px 10px;
    }

.activePin {
    background-color: black !important;
}

    .activePin:before {
        border-top: 5px solid black !important;
    }

.closeBtn {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    background-color: white;
    display: flex;
    transform: translate(-50%, -50%);
    cursor: pointer;
    font-size: 23px;
    border-radius: 50%;
}

    .closeBtn:before {
        content: '';
        width: 50px;
        height: 50px;
        transform: translate(13px, -13px);
        position: absolute;
        z-index: -1;
    }

.CategoryFilter .CategoryFilterBox .CategoryFilterBox-Prop.uncollapse .CategoryFilterBox-PropInput {
    overflow: hidden !important;
    max-height: unset !important;
}

.leaflet-control-zoom {
    display: none;
}

.leaflet-top {
    top: 40px !important;
}

#FilterExpander {
    display: none;
}

#drawOnMap {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 400;
    background-color: var(--Primary);
    color: white;
    display: flex;
    padding: 5px;
    font-size: 22px;
    border-radius: 5px;
    box-shadow: var(--Shadow);
    cursor: pointer;
}

#deleteDrawing {
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 400;
    background-color: darkred;
    color: white;
    display: flex;
    align-items: center;
    padding: 5px;
    font-size: 14px;
    border-radius: 5px;
    box-shadow: var(--Shadow);
    cursor: pointer;
}

#SetCurrentLocation {
    position: absolute;
    top: 42px;
    right: 5px;
    z-index: 400;
    background-color: var(--Primary);
    color: white;
    display: flex;
    padding: 5px;
    font-size: 22px;
    border-radius: 5px;
    box-shadow: var(--Shadow);
    cursor: pointer;
}

.cursor-cross, .cursor-cross * {
    cursor: crosshair !important;
}

.custom-price-marker.new-announcement .marker-text:after {
    content: 'جدید';
    background-color: darkred;
    color: white;
    padding: 1px 5px;
    border-radius: 5px 5px 0 0;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    top: -16px;
    font-size: 9px;
    border-left: 1px solid var(--Primary);
    border-right: 1px solid var(--Primary);
    border-top: 1px solid var(--Primary);
}

.custom-price-marker.new-announcement .activePin.marker-text:after {
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-top: 1px solid black;
}

.custom-price-marker.new-announcement .marker-dot:after {
    content: 'جدید';
    background-color: darkred;
    color: white;
    padding: 1px 5px;
    border-radius: 100% 0% 50% 50% / 0% 0% 100% 100%;
    left: 50%;
    transform: translateX(-50%);
    position: absolute;
    top: -16px;
    font-size: 9px;
    border-left: 1px solid var(--Primary);
    border-right: 1px solid var(--Primary);
    border-top: 1px solid var(--Primary);
}

.custom-price-marker.new-announcement .activePin.marker-dot:after {
    border-left: 1px solid black;
    border-right: 1px solid black;
    border-top: 1px solid black;
}

.responsive-mobile-menu {
    display: flex !important;
    flex-grow: 1;
    justify-content: space-around !important;
    max-width: 900px;
}

    .responsive-mobile-menu input {
        width: calc( 100% - 70px);
        margin-left: 15px;
    }

.search-result-inner label {
    font-weight: bold;
    color: #515151;
    font-size: 14px;
}

.search-result-inner {
    margin: 3px 0;
    position: relative;
    cursor: pointer;
    border-bottom: 1px solid #00000036;
    padding: 2px 0;
}

    .search-result-inner * {
        cursor: pointer;
    }

    .search-result-inner span {
        font-size: 12px;
        color: #6d6d6d;
    }

        .search-result-inner span.rightNote {
            position: absolute;
            left: 0;
            top: 6px;
            color: #a7a7a7;
        }

.scroll-hidden {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Internet Explorer 10+ */
}

    .scroll-hidden::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }

.custom-price-marker {
    pointer-events: auto !important;
}

.leaflet-marker-icon {
    pointer-events: auto !important;
}

@media (max-width: 991px) {
    .header-style-01 > .navbar {
        padding: 0 !important;
    }

    .CategoryFilterTriggerBox {
        position: absolute;
        top: -37px;
        z-index: 1;
        padding: 1px 4px !important;
        border: 1px solid var(--Primary) !important;
        background-color: white !important;
        color: var(--Primary) !important;
    }

    .responsive-mobile-menu input {
        margin-left: 0;
    }

    #CatFilter {
        max-height: calc(100dvh - 245px);
        overflow-y: auto;
        margin-top: 15px;
    }

    #drawOnMap {
        top: 50px;
    }

    #SetCurrentLocation {
        top: 90px;
    }

    #deleteDrawing {
        top: 50px;
    }

    #AnnouncePreview {
        bottom: 35px;
    }

    .fullHeight {
        height: calc(100% - 155px) !important;
    }

    #MapParent {
        width: 100%;
        flex: 1;
    }

    #FilterContainer {
        width: 100%;
        flex-direction: column-reverse;
        justify-content: flex-end;
        transition-duration: .3s;
        background-color: white;
        bottom: 45px;
        z-index: 405;
        position: absolute;
    }

        #FilterContainer:not(.fullHeight) {
            height: 53px;
        }

    #FilterExpander {
        position: relative;
        cursor: pointer;
        z-index: -1;
        display: flex;
        flex-direction: row-reverse;
    }

        #FilterExpander:before {
            content: '';
            width: 30%;
            height: 2px;
            background-color: gray;
            position: absolute;
            top: -6px;
            left: 50%;
            transform: translateX(-50%);
        }

        #FilterExpander div {
            width: max-content;
            border: 1px solid var(--Primary);
            color: var(--Primary);
            border-radius: 5px;
            padding: 1px 4px !important;
        }

    #mapPage {
        height: calc(100dvh - 120px);
        flex-direction: column-reverse;
    }

    .propsContainer {
        max-height: calc(100dvh - 330px);
        overflow-y: auto;
    }

    .CategoryFilter .CategoryFilterBox {
        position: absolute !important;
        padding: 0 10px 0 0 !important;
        max-height: calc(100dvh - 220px) !important;
    }

    .CategoryFilterBox-Btnbox {
        margin-top: 0 !important;
    }

    .responsive-mobile-menu {
        max-width: 100%;
    }

    #AnnouncementList {
        position: absolute;
        width: 100%;
        z-index: 405;
        top: 50px;
        background-color: white;
        display: flex;
        flex-direction: column-reverse;
        transition-duration: .3s;
        padding: 0;
    }

        #AnnouncementList:not(.fullHeight) {
            height: 45px;
            overflow-y: hidden;
        }

    #announceExpander {
        cursor: pointer;
        padding: 10px 0;
    }

        #announceExpander:before {
            content: '';
            width: 30%;
            height: 2px;
            background-color: gray;
            position: absolute;
            bottom: 4px;
            left: 50%;
            transform: translateX(-50%);
        }


    #AnnouncementsContainer {
        overflow-y: auto;
        overflow-x: hidden;
        display: flex;
        flex-direction: column-reverse;
        padding: 5px;
    }
}
