﻿/*
.dropdown.show .dropdown-menu[x-placement="top-start"], .dropup.show .dropdown-menu[x-placement="top-start"], .bootstrap-select.show .dropdown-menu[x-placement="top-start"] {
    -webkit-transform: translate3d(0, 40px, 0) !important;
    -moz-transform: translate3d(0, 40px, 0) !important;
    -o-transform: translate3d(0, 40px, 0) !important;
    -ms-transform: translate3d(0, 40px, 0) !important;
    transform: translate3d(0, 40px, 0) !important;
    bottom: auto !important;
    top: 0 !important;
}

.dropdown-menu .inner {
    max-height: 300px !important;
}
.breadcrumb-search {
    background-color: transparent;
    color: #66615b !important;
    border: 1px solid #DDDDDD;
}
.breadcrumb-search a {
  
    color: #66615b !important;
  
}*/

@media (min-width: 991px) and (max-width: 1794px) {
    .bootstrap-select > .dropdown-toggle {
        padding: 0.5rem 8px;
    }
}
/*******************************/
@media(max-width:767px) {
    .dropdown-menu .inner {
        max-height: 100% !important;
    }
}

.card-listing {
    margin-top: 5px;
    height: 320px;
}

    .card-listing .prop-img {
        height: 170px;
        width: 100%;
    }

    .card-listing .united-listing {
        position: absolute;
        top: -15px;
        right: -10px;
    }

    .card-listing .listing-status {
        position: absolute;
        top: -15px;
        left: -10px;
    }

    .card-listing .fav-listing {
        position: absolute;
        bottom: 2px;
        right: 5px;
    }

    .card-listing .btn-outline-danger.isFav {
        color: #fff;
        background-color: #dc3545;
        border-color: #dc3545;
    }

        .card-listing .btn-outline-danger.isFav:hover {
            border-color: #f5593d;
            color: inherit;
            opacity: 1;
            background-image: none;
            background-color: transparent
        }

    .card-listing .text-address {
        display: flex;
    }

        .card-listing .text-address .nc-pin-3 {
            position: relative;
            top: 2px;
            right: 2px;
        }

.map-search {
    width: 100%;
    height: 85vh;
}


@media (max-width: 776px) {
    .map-search {
        height: 75vh; 
        max-width: 100%;
        padding: 5px;
        z-index: 900;
    }
}


.card-map-search:hover {
    transform: none !important;
    -webkit-transform: none !important;
    -ms-transform: none !important;
    -moz-transform: none !important;
}

.card-map-search {
   max-width:250px;
   height:300px;
}
.badge-map-search {
    top: 13px !important;
}

.mycluster {
    height: 30px;
    width: 30px;
    border-radius: 50%;
    background-color: #dc3545;
    color: white;
    text-align: center;
    font-size: 16px;
    line-height: 30px;
    margin-top: -20px;
    margin-left: -20px;
    animation: pulse 1s infinite 2s cubic-bezier(0.16, 1.22, 0, 1.79);
    box-shadow: 0 0 0 0 white;
}

@keyframes pulse {
    to {
        box-shadow: 0 0 0 5px rgba(165, 13, 13, 0.27);
    }
}


.dot-marker-icon {
    background: #002855;
    border-radius: 50%;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    box-shadow: 0 0 2px #333;
}

.leaflet-marker-icon.marker-hovered {
    z-index: 9999 !important;
}

/* Override gradient/shadow from default */
.marker-cluster {
    background-image: none !important;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background: transparent !important;
    background-image: none !important;
}

    /* Common base cluster style */
    .marker-cluster div {
        color: white;
        font-weight: bold;
        text-align: center;
        border-radius: 50%;
        border: 2px solid white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 0 8px rgba(0, 40, 85, 0.5) !important; /* soft blue shadow */
    }

/* Cluster size variations with consistent colors */
.marker-cluster-small {
    width: 30px;
    height: 30px;
}

    .marker-cluster-small div {
        width: 30px;
        height: 30px;
        font-size: 13px;
        background-color: #004080 !important;
    }

.marker-cluster-medium {
    width: 40px;
    height: 40px;
}

    .marker-cluster-medium div {
        width: 40px;
        height: 40px;
        font-size: 14px;
        background-color: #003366 !important;
    }

.marker-cluster-large {
    width: 50px;
    height: 50px;
}

    .marker-cluster-large div {
        width: 50px;
        height: 50px;
        font-size: 15px;
        background-color: #002855 !important;
    }

#location-badge.location-overlay-wrapper {
    position: absolute;
    top: 10px; /* closer to top */
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90vw;
    z-index: 9999;
    display: flex;
    justify-content: center;
    pointer-events: none; /* pass clicks through except on child */
    animation: fadeInBadge 0.5s ease forwards;
}

.location-label-overlay {
    background-color: rgba(102, 97, 91, 0.9); /* less transparent */
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    text-align: center;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    max-width: 50vw;
    cursor: pointer;
    pointer-events: auto; /* enable click */
    user-select: none; /* optional: prevent text selection on click */
    transition: background-color 0.3s ease;
}

.location-label-overlay:hover {
    background-color: rgba(102, 97, 91, 1); /* full opacity on hover */
}

.location-label-overlay strong {
    font-weight: bold;
}

.location-label-overlay .remove-filter {
    display: block;
    font-size: 10px;
    margin-top: 4px;
    text-decoration: underline;
    color: #ffdb6e; /* nicer yellow/gold color */
}

@keyframes fadeInBadge {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}


.ui-autocomplete-input{
    margin-top:5px;
    height:35px !important;
}

.sticky-top {
    position: sticky;
    z-index: 1030; /* Higher than other elements like navbars */
}

.z-index-10 {
    z-index: 10;
}

#mobile-map-info {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 45vh;
    background: transparent;
    z-index: 10000; /* make sure it’s above the map */
    overflow-y: auto;
    /* box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);*/
    padding: 10px;
}

    #mobile-map-info.active {
        display: block;
    }
.mobile-popup-card {
    padding: 10px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

    .mobile-popup-card:hover {
        background: #f9f9f9;
        text-decoration: none;
    }

    .mobile-popup-card .badge {
        font-size: 0.7rem;
    }
    .mobile-popup-card .btn.rounded-circle {
        width: 32px;
        height: 32px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
@media (max-width: 576px) {
    .card.card-listing {
        margin-bottom: 1rem;
    }

    .card-body .row.pt-1 span {
        font-size: 13px;
    }

    .card-footer {
        font-size: 13px;
    }
}


.aspect-ratio-box {
    aspect-ratio: 4 / 3; /* or 16/9 or 1/1 depending on your design */
    overflow: hidden;
    border-radius: 0.5rem;
}

.aspect-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.aspect-ratio-box {
    position: relative;
    width: 100%;
    padding-top: 75%; /* = 4:3 ratio */
    overflow: hidden;
}

    .aspect-ratio-box img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

