.map-container {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.map-container:has(#map){
	position: inherit;
    overflow: inherit;
    height: 100vh;
}

#map,
#map-header,
#map-single {
    position: relative;
    left: auto;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#map:not(.no-fixed){
	height:100vh;
}

#map-header {
    height: 500px;
}

#map-single {
    height: 360px;
}

.map-container #map.fixed,
.map-container #map-header.fixed,
.map-container #map-single.fixed,
.map-container #map.mapboxgl-map.fixed,
.map-container #map-header.mapboxgl-map.fixed,
.map-container #map-single.mapboxgl-map.fixed {
    position: fixed !important;
}

/* popup mapbox */
.mapboxgl-popup.mapboxgl-popup-anchor-bottom {
    top: -35px;
}

.mapboxgl-popup.mapboxgl-popup-anchor-top {
    top: 35px;
}

.mapboxgl-popup-content {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0px 10px 25px 0px #365F681A;
    padding: 16px;
    pointer-events: auto;
    position: relative;
    min-width: 348px;
}

.mapboxgl-popup-content .popup-content {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    gap: 16px;
}

.mapboxgl-popup-content .popup-thumb {
    flex-shrink: 0;
}

.mapboxgl-popup-content .popup-thumb img {
    max-width: 120px;
    width: 120px;
    height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.mapboxgl-popup-content .pop-main-content .popup-title {
    color:  #161E2D;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    margin-bottom: 10px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}

.mapboxgl-popup-content .pop-main-content .popup-address {
    color: #5C6368;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px; 
    margin-top: 9px;
    margin-bottom: 3px;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}


.mapboxgl-popup-content .pop-main-content .popup-address i {
    margin-right: 5px;
}

.mapboxgl-popup-content .pop-main-content .popup-des {
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 5px;
}

.mapboxgl-popup-content .pop-main-content .popup-des i {
    margin-right: 4px;
    font-size: 15px;
    color: #5C6368;
}

.mapboxgl-popup-content .pop-main-content .popup-des .popup-information {
    font-size: 12px;
    font-weight: 600;
    line-height: 19px;
    letter-spacing: 0.08em;
    color: #161E2D;
}

.mapboxgl-popup-content .pop-main-content .popup-price {
    color: var(--theme-primary-color);
    font-size: 18px;
    font-weight: 600;
}

.mapboxgl-popup-content .mapboxgl-popup-close-button {
    padding: 0;
    margin: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1c1c1e75;
    color: #fff;
    border-radius: 50%;
    top: -15px;
    right: -15px;
    font-weight: 300;
    font-size: 25px;
    line-height: 30px;
}

.mapboxgl-popup-content .mapboxgl-popup-close-button:hover {
    background: var(--theme-primary-color);
}

/* popup google map */
.gm-style .gm-style-iw-c{
    padding: 0;
}

.gm-style .gm-style-iw-d{
    overflow: hidden !important;
}

.gm-style .gm-style-iw-d .pop-main-content{
    padding: 15px;
}

.gm-style .gm-style-iw-d .popup-title{
    color: #1C1C1E;
    font-size: 16px;
    font-weight: 600;
    line-height: 150%;
    margin-bottom: 0px;
}

.gm-style .gm-style-iw-d .popup-address{
    color: #3A3A3C;
    font-size: 12px;
    font-weight: 400;
    line-height: 150%;
    margin-bottom: 6px;
}
.gm-style .gm-style-iw-d .popup-price{
    color: var(--theme-primary-color);
    font-size: 18px;
    font-weight: 600;
}

@media only screen and (max-width: 1300px) {
    .half-map-right .map-container,
    .half-map-left .map-container {
        min-height: unset;
        position: relative !important;
    }

    .half-map-right .properties-list-wrap .group-card-item-property,
    .half-map-left .properties-list-wrap .group-card-item-property {
        height: unset;
        overflow-x: unset;
        overflow-y: unset;
    }
}

@media only screen and (max-width: 767px) {
    .cards-container {
        flex-direction: column-reverse;
    }

    .map-container #map.mapboxgl-map.fixed,
     .map-container #map-header.mapboxgl-map.fixed,
      .map-container #map-single.mapboxgl-map.fixed,
      #map {
        position: relative !important;
      }

    .half-map-right .map-container,
    .half-map-left .map-container {
        min-height: unset;
        position: relative!important;
        height: 500px;
    }

    .properties-list-wrap .tfre-my-property-search .toolbar-search-list {
        justify-content: left !important;
        margin-top: 20px;
    }
}