.acc_logo {
    display: flex;
    justify-content: center;
}

.logo_img {
    width: 150px;

}

.state_sec {
    background: #B31942;
    color: white;
}

.city_sec {
    background: #0A3161;
    color: white;
}

.centerpopupdiv {
    cursor: pointer;
}

.select-button::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: auto;
    transition: transform 0.2s ease;
}

.select-button.active::after {
    transform: rotate(180deg);
}

.select-button {
    cursor: pointer;
    min-width: 220px;
}

.select-options {
    z-index: 999999 !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    display: none;
}

.form-check {
    margin-bottom: 8px;
}

.form-check:last-child {
    margin-bottom: 0;
}

.carousel {
    margin-bottom: 10px;
}

.searchbar {
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px !important;
    justify-content: center;
}


.county_sec {
    background: #0A3161;
    color: white;
}

.acreage_sec {
    background: #28a745;
    color: white;
}

.property_type_sec {
    background: #6f42c1;
    color: white;
}

/* Old carousel control styling - replaced with enhanced visibility styles below */

.avaiunits {
    background-color: rgb(0, 106, 255);
    border-radius: 999px;
    color: rgb(255, 255, 255);
    display: inline-block;
    padding: 2px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    text-transform: none;
    font-family: "Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
}

.timenoti {
    background-color: rgba(10, 10, 20, 0.6);
    border-radius: 999px;
    color: rgb(255, 255, 255);
    display: inline-block;
    padding: 2px 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    -webkit-font-smoothing: antialiased;
    text-transform: none;
    font-family: "Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
}

.galmoney {
    -webkit-font-smoothing: antialiased;
    text-transform: none;
    font-family: "Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    color: rgb(42, 42, 51);
}

.galbutton {
    background-color: rgb(255, 255, 255);
    border-color: rgb(167, 166, 171);
    color: rgb(42, 42, 51);
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px solid;
    border-radius: 4px;
    user-select: none;
    padding: 5px 16px;
    margin: 0px;
    appearance: none;
    transition-property: background-color, border-color, color;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    pointer-events: auto;
    outline: none;
    box-shadow: none;
    width: 100%;
    position: relative;
    color: rgb(42, 42, 51);
    -webkit-font-smoothing: antialiased;
    text-transform: none;
    font-family: "Open Sans", "Adjusted Arial", Tahoma, Geneva, sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    height: auto;
}

section#hero_download_sec::before {
    z-index: 0 !important;
}

section#hero_download_sec {
    position: relative !important;
    z-index: 2147483640 !important;
}

.filter-container {
    position: relative !important;
    z-index: 2147483645 !important;
}

.filter-item {
    position: relative !important;
    z-index: 2147483646 !important;
}

.filter-item .position-relative {
    z-index: 2147483647 !important;
    position: relative !important;
}

.dropdown-menu,
.dropdown {
    z-index: 2147483647 !important;
}

.container,
.container-fluid {
    position: relative;
}

.filter-container {
    transform: translateZ(0);
}


header#site-header {
    z-index: 100000 !important;
}


.mapsection,
#map,
.mapboxgl-map,
.mapboxgl-canvas-container,
.mapboxgl-canvas,
.detailssection {
    z-index: 1 !important;
}


.navbar {
    z-index: 100000 !important;
}


body,
html {
    position: relative;
}


div[id$="Dropdown"],
#citySuggestions {
    z-index: 2147483647 !important;
}

section#map_sec {
    position: relative;
    z-index: 1 !important;
}

.mapsection {
    position: relative;
    z-index: 1 !important;
}

.select-options {
    display: block;
    z-index: 2147483647 !important;
    position: absolute !important;
    background: white !important;
}


body {
    overflow: auto !important;
    height: auto;
}

.detailssection {

    scroll-behavior: smooth;
}

.mapsection {
    height: 500px;
}

#map {
    height: 100%;
    width: 100%;
}


.mapboxgl-popup {
    max-width: 300px;
}

.mapboxgl-popup-content {
    padding: 15px;
    border-radius: 8px;
}


.custom-marker {
    display: block;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    background: #0c3160;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.pagination {
    margin: 30px 0;
    justify-content: center;
    gap: 5px;
}


.page-item {
    display: inline-block;
}


.page-link {
    color: #007bff;
    border: 1px solid #dee2e6;
    padding: 8px 14px;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}


.page-link:hover {
    background-color: #e9f2ff;
    color: #0056b3;
    text-decoration: none;
}


.page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}


.page-item.disabled .page-link {
    color: #6c757d;
    pointer-events: none;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Responsive pagination for very small screens */
@media (max-width: 375px) {
    .pagination {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 4px;
        margin: 20px auto;
        padding: 0 10px;
        max-width: 100%;
        overflow-x: auto;
    }
    
    .page-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        min-width: 40px;
        text-align: center;
        white-space: nowrap;
        border-radius: 8px;
    }
    
    .page-item {
        flex-shrink: 0;
    }
    
    /* Ensure proper spacing and alignment */
    .pagination .page-item.active .page-link {
        font-weight: bold;
        background-color: #007bff;
        border-color: #007bff;
    }
}

@media (max-width: 320px) {
    .pagination {
        gap: 2px;
        padding: 0 5px;
    }
    
    .page-link {
        padding: 6px 8px;
        font-size: 0.8rem;
        min-width: 36px;
    }
    
    /* Make pagination container scrollable if needed */
    nav[aria-label="Property pagination"] {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    nav[aria-label="Property pagination"]::-webkit-scrollbar {
        height: 4px;
    }
    
    nav[aria-label="Property pagination"]::-webkit-scrollbar-track {
        background: #f1f1f1;
        border-radius: 2px;
    }
    
    nav[aria-label="Property pagination"]::-webkit-scrollbar-thumb {
        background: #c1c1c1;
        border-radius: 2px;
    }
}

/* Property description formatting for mobile */
@media (max-width: 768px) {
    .property-description .description-text {
        text-align: left !important;
        line-height: 1.4 !important;
        font-size: 0.95rem;
        word-spacing: normal;
        letter-spacing: normal;
    }
    
    .property-description .description-text p {
        margin-bottom: 0.75rem !important;
        text-align: left !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        -webkit-hyphens: auto;
        -ms-hyphens: auto;
    }
    
    .property-description .description-text p:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Remove excessive spacing on very small screens */
    @media (max-width: 480px) {
        .property-description .description-text {
            font-size: 0.9rem;
            line-height: 1.3 !important;
        }
        
        .property-description .description-text p {
            margin-bottom: 0.5rem !important;
        }
    }
}

/* Mobile aerial map styling */
@media (max-width: 768px) {
    .aerial-map-mobile-container {
        transition: all 0.3s ease;
    }
    
    .aerial-map-mobile-container:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }
    
    .aerial-map-mobile-container .btn-lg {
        padding: 12px 24px;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .aerial-map-mobile-container .fa-file-pdf {
        color: #dc3545 !important;
    }
    
    /* Better touch targets for mobile */
    .aerial-map-mobile-container .btn {
        min-height: 48px;
        touch-action: manipulation;
    }
    
    /* Image aerial maps on mobile */
    .aerial-map-container img {
        transition: transform 0.3s ease;
    }
    
    .aerial-map-container img:active {
        transform: scale(0.98);
    }
    
    /* Mobile PDF viewer styling */
    .aerial-map-mobile-wrapper {
        min-height: 400px;
        position: relative;
    }
    
    .aerial-map-mobile-wrapper iframe {
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        border-radius: 8px;
        background: #f8f9fa;
    }
    
    .aerial-map-mobile-wrapper iframe[style*="opacity:1"] {
        opacity: 1 !important;
    }
    
    /* Loading and fallback states */
    .pdf-loading,
    [id*="pdfMobileLoading"] {
        background: rgba(248, 249, 250, 0.95);
        z-index: 10;
    }
    
    .pdf-fallback,
    [id*="pdfMobileFallback"] {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        z-index: 20;
    }
    
    .pdf-fallback .btn,
    [id*="pdfMobileFallback"] .btn {
        min-height: 48px;
        font-weight: 500;
        touch-action: manipulation;
    }
    
    /* Loading animation */
    .pdf-loading .spinner-border,
    [id*="pdfMobileLoading"] .spinner-border {
        width: 2.5rem;
        height: 2.5rem;
        border-width: 3px;
    }
    
    /* Ensure iframe is touch-friendly */
    .aerial-map-mobile-wrapper iframe {
        -webkit-overflow-scrolling: touch;
        overflow: auto;
    }
}

/* Image lazy loading and optimization - Simplified approach */
.carousel-inner img,
.aerial-map-container img {
    transition: opacity 0.3s ease-in-out;
    background-color: #f0f0f0;
}

/* Show images when they load */
.carousel-inner img[style*="opacity:1"],
.aerial-map-container img[style*="opacity:1"] {
    opacity: 1 !important;
}

/* Loading placeholder - simple shimmer */
.carousel-inner img:not([style*="opacity:1"]) {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Error state styling */
img[style*="opacity:0.5"] {
    opacity: 0.5 !important;
    filter: grayscale(100%);
    background: #f8f9fa !important;
}

/* Ensure first images show immediately */
img[loading="eager"] {
    opacity: 1;
}

/* Mobile optimizations */
@media (max-width: 768px) {
    .carousel-inner img,
    .aerial-map-container img {
        transition: opacity 0.2s ease-in-out;
    }
    
    .carousel-inner img:not([style*="opacity:1"]) {
        animation-duration: 1s;
    }
}

.property-card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.property-card:hover {
    transform: translateY(-5px);

}


.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}


#loading-more {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 10px 0;
}


.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-content {
    border-radius: 12px;
    overflow: hidden;
}

.modal-header {
    background: #b31942;
    color: white;
    border: none;
}

.modal-title {
    font-weight: 600;
}

.btn-close {
    filter: invert(1);
}


.modal-backdrop {
    z-index: 2147483646 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.modal {
    z-index: 2147483648 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    outline: 0;
    overflow-x: hidden;
    overflow-y: auto;
}

.modal-dialog {
    z-index: 2147483648 !important;
    position: relative !important;
    width: auto !important;
    margin: 1.75rem !important;
    pointer-events: none;
}

.modal-content {
    position: relative !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 0.3rem;
    outline: 0;
}


.modal.show {
    display: block !important;
}

.modal.fade {
    transition: opacity 0.15s linear;
}

.modal.fade:not(.show) {
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: none;
}


#propertyModal {
    z-index: 2147483648 !important;
}

#propertyModal .modal-dialog {
    z-index: 2147483648 !important;
}

#propertyModal .modal-content {
    z-index: 2147483648 !important;
}


.modal-body .row .col-4 .border {
    background: #f8f9fa;
    transition: background-color 0.2s;
}

.modal-body .row .col-4 .border:hover {
    background: #e9ecef;
}


.mobile-app-links a {
    transition: transform 0.2s;
}

.mobile-app-links a:hover {
    transform: scale(1.05);
}

@media (max-width: 1200px) {
    .searchbar {
        flex-direction: column;
        align-items: stretch !important;
        gap: 15px !important;
    }

    .searchbar > div {
        width: 100% !important;
        max-width: none !important;
    }

    .select-button {
        min-width: unset;
        width: 100%;
        min-height: 44px;
        padding: 10px 16px !important;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .searchbar {
        flex-direction: column;
        gap: 15px !important;
    }

    .searchbar > div {
        width: 100% !important;
    }

    .select-button {
        min-height: 48px;
        padding: 12px 16px !important;
        font-size: 16px;
    }


    .mapsection {
        height: 50vh;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .property-card .col-md-4 {
        padding: 15px !important;
    }


    .searchbar .position-relative {
        width: 100% !important;
        min-width: unset !important;
    }
}


.cluster-popup {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cluster-popup h6 {
    margin: 0 0 5px 0;
    color: #0c3160;
}

.cluster-popup p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Property modal map styles */
.property-modal-content [id^="propertyMap"] {
    width: 100% !important;
    height: 400px !important;
    min-height: 400px !important;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dee2e6;
    display: block !important;
    visibility: visible !important;
}

.property-modal-content [id^="propertyMap"] .mapboxgl-canvas {
    width: 100% !important;
    height: 100% !important;
}

.property-modal-section {
    margin-bottom: 1.5rem;
}

/* Ensure modal map containers are visible and sized correctly */
.modal-body [id^="propertyMap"] {
    opacity: 1;
    transform: none;
    transition: opacity 0.3s ease;
}

/* Fix for modal map loading state */
.modal-body .map-container {
    position: relative;
    overflow: hidden;
}


.gallery_heading {
    background: #b31942;
    border-radius: 8px 8px 0 0;
}

.gallery_heading h5 {
    margin: 0;
    font-weight: 600;
}

.gallery_heading h6 {
    margin: 0;
    opacity: 0.9;
    font-weight: normal;
}


/* .detailssection {
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.detailssection::-webkit-scrollbar {
    width: 6px;
}

.detailssection::-webkit-scrollbar-track {
    background: transparent;
}

.detailssection::-webkit-scrollbar-thumb {
    background-color: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.detailssection::-webkit-scrollbar-thumb:hover {
    background-color: rgba(255,255,255,0.5);
} */


.btn-load-more {
    background: linear-gradient(135deg, #0A3161 0%, #B31942 100%);
    border: none;
    color: #fff !important;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-load-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: white;
}

.btn-load-more:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}


#property-count {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}


.card {
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-body {
    padding: 1.25rem;
}


.carousel-item img {
    border-radius: 8px 8px 0 0;
}

.carousel-control-prev,
.carousel-control-next {
    width: 8%;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 15;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none !important; /* Remove Bootstrap's default arrows */
    background-size: 0 !important;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: scale(1.1);
}

/* Custom arrow icons for better visibility */
.carousel-control-prev-icon::before,
.carousel-control-next-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-style: solid;
    border-color: white;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon::before {
    border-width: 6px 8px 6px 0;
    border-color: transparent white transparent transparent;
    margin-left: -2px;
}

.carousel-control-next-icon::before {
    border-width: 6px 0 6px 8px;
    border-color: transparent transparent transparent white;
    margin-left: 2px;
}

/* Enhanced visibility on hover */
.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 12%;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }

    .carousel-control-prev-icon::before,
    .carousel-control-next-icon::before {
        border-width: 5px 6px 5px 0;
    }

    .carousel-control-prev-icon::before {
        border-width: 5px 6px 5px 0;
        border-color: transparent white transparent transparent;
    }

    .carousel-control-next-icon::before {
        border-width: 5px 0 5px 6px;
        border-color: transparent transparent transparent white;
    }
}

/* Tablet layout: 2 items per row */
@media (min-width: 769px) and (max-width: 1199px) {
    .property-card.col-md-4.col-lg-4 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}


.filter-container {
    margin-bottom: 20px;
    width: 100%;
    z-index: 999999 !important;
    max-width: 1200px;
    margin: 0 auto 20px auto;
    position: relative;
}

.filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 15px;
    align-items: center;
}

.filter-item {
    flex: 1;
    min-width: 0;
    max-width: none;
}


.filter-row:first-child .filter-item {
    flex-basis: calc(33.333% - 8px);
    max-width: calc(33.333% - 8px);
}

.filter-row:last-child .filter-item {
    flex-basis: calc(25% - 9px);
    max-width: calc(25% - 9px);
}

.price-filter {
    min-width: 300px;
    max-width: 400px;
}


.clear-filters-compact {
    flex: 0 0 auto;
    flex-basis: calc(25% - 9px);
    max-width: calc(25% - 9px);
}

.clear-filters-compact .btn {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.clear-filters-compact .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.clear-filters {
    min-width: 120px;
    max-width: 150px;
    display: flex;
    align-items: flex-end;
}


.state_sec,
.county_sec,
.acreage_sec,
.property_type_sec,
.price_sec {
    background: #B31942;
    color: white;
    border: 2px solid #B31942 !important;
    transition: all 0.2s ease;
    position: relative;
}

.state_sec:hover,
.county_sec:hover,
.acreage_sec:hover,
.property_type_sec:hover,
.price_sec:hover {
    background: #A01739;
    border-color: #A01739 !important;
}


.city-input {
    background: white;
    color: #333;
    border: 2px solid #B31942 !important;
    border-radius: 4px;
    padding: 8px 12px;
    font-weight: bold;
    transition: all 0.2s ease;
}

.city-input:focus {
    border-color: #B31942 !important;
    box-shadow: 0 0 0 0.2rem rgba(179, 25, 66, 0.25) !important;
    background: white;
}

.city-input::placeholder {
    color: #999;
    font-weight: normal;
}


.select-options,
#stateDropdown,
#countyDropdown,
#acreageDropdown,
#propertyTypeDropdown,
#priceDropdown,
#citySuggestions {
    background: white !important;
    border: 2px solid #B31942 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 2147483647 !important;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    width: 100%;
}


#stateDropdown {
    min-width: 180px !important;
    max-width: 250px !important;
}

#countyDropdown {
    min-width: 200px !important;
    max-width: 300px !important;
}

#acreageDropdown {
    min-width: 180px !important;
    max-width: 220px !important;
}

#propertyTypeDropdown {
    min-width: 200px !important;
    max-width: 280px !important;
}

#priceDropdown {
    min-width: 350px !important;
    max-width: 400px !important;
    padding: 12px !important;
}


#citySuggestions {
    padding: 0 !important;
}

.suggestion-item:hover {
    background-color: #f8f9fa !important;
}


.dropdown-active {
    display: block !important;
    opacity: 1;
    visibility: visible;
}


.price-dropdown {
    background: white !important;
    border: 2px solid #B31942 !important;
    border-radius: 4px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 999999 !important;
    min-width: 350px;
    max-width: 400px;
    padding: 12px;
}

.price-filter-container {
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.filter-label {
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.price-display {
    margin-bottom: 10px;
}

.price-value {
    color: white;
    font-weight: bold;
    font-size: 13px;
    padding: 2px 8px;
    background: rgba(179, 25, 66, 0.8);
    border-radius: 4px;
}

.dual-range-slider {
    position: relative;
    height: 40px;
    margin: 15px 0;
}

.dual-range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.dual-range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #B31942;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: all;
    position: relative;
    z-index: 1;
}

.dual-range-slider input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #B31942;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: all;
    position: relative;
    z-index: 1;
}

.slider-track {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    transform: translateY(-50%);
}

.slider-range {
    position: absolute;
    top: 50%;
    height: 6px;
    background: #B31942;
    border-radius: 3px;
    transform: translateY(-50%);
}

.price-quick-select {
    gap: 4px !important;
}

.price-quick-select .btn {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-color: #B31942;
    color: #B31942;
}

.price-quick-select .btn:hover {
    background: #B31942;
    border-color: #B31942;
    color: white;
}


.clear-filters .btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s ease;
    width: 100%;
}

.clear-filters .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}


@media (max-width: 1400px) {
    .filter-row {
        gap: 10px;
    }

    .filter-item {
        min-width: 180px;
        max-width: 250px;
    }

    .price-filter {
        min-width: 280px;
        max-width: 350px;
    }
}


@media (max-width: 1200px) {
    .filter-container {
        padding: 0 15px;
    }

    .filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin-bottom: 12px;
    }


    .filter-item {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
    }


    .select-button {
        min-height: 44px;
        padding: 10px 16px !important;
        font-size: 15px;
        width: 100%;
    }

    .city-input {
        min-height: 44px;
        padding: 10px 16px !important;
        font-size: 15px;
        width: 100%;
    }

    .clear-filters-compact {
        flex: 1 1 calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
    }

    .clear-filters-compact .btn {
        min-height: 44px;
        font-size: 15px;
        padding: 10px 20px;
        width: 100%;
    }
}


@media (max-width: 768px) {
    .filter-container {
        padding: 0 15px;
        margin-bottom: 30px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .filter-row {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        margin-bottom: 0;
    }

    .filter-item {
        width: 100% !important;
        min-width: unset !important;
        max-width: none !important;
        flex: none !important;
        display: block;
    }


    .filter-row .filter-item {
        flex-basis: auto !important;
        min-width: unset !important;
        max-width: none !important;
        width: 100% !important;
    }


    .select-button {
        min-height: 48px;
        padding: 12px 16px !important;
        font-size: 16px;
        min-width: unset;
        width: 100% !important;
        display: block;
    }

    .city-input {
        min-height: 48px;
        padding: 12px 16px !important;
        font-size: 16px;
        width: 100% !important;
        display: block;
    }

    .clear-filters-compact {
        margin-top: 10px;
        width: 100% !important;
        flex: none !important;
        max-width: none !important;
        min-width: unset !important;
    }

    .clear-filters-compact .btn {
        min-height: 48px;
        font-size: 16px;
        padding: 12px 20px;
        width: 100% !important;
        display: block;
    }


    .price-filter-container {
        padding: 15px;
    }

    .price-quick-select {
        justify-content: center;
        gap: 8px !important;
    }

    .price-quick-select .btn {
        font-size: 12px;
        padding: 6px 10px;
        flex: 1;
        min-width: 0;
    }

    .dual-range-slider {
        margin: 20px 0;
    }


    .form-check-label {
        font-size: 16px;
        line-height: 1.4;
        padding: 4px 0;
    }

    .form-check {
        margin-bottom: 12px;
    }

    .suggestion-item {
        padding: 12px 16px !important;
        font-size: 16px;
        min-height: 48px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}


@media (max-width: 768px) {

    #stateDropdown,
    #countyDropdown,
    #acreageDropdown,
    #propertyTypeDropdown {
        min-width: 200px;
        max-width: 300px;
        left: 0 !important;
        right: auto !important;
    }

    #priceDropdown {
        min-width: 280px;
        max-width: 350px;
        left: 0 !important;
        right: auto !important;
    }


    .select-options {
        max-width: calc(100vw - 40px);
    }
}

@media (max-width: 480px) {
    .filter-container {
        padding: 0 10px;
    }


    #stateDropdown,
    #countyDropdown,
    #acreageDropdown,
    #propertyTypeDropdown {
        min-width: 180px;
        max-width: 250px;
    }

    #priceDropdown {
        min-width: 250px;
        max-width: 300px;
    }

    .price-quick-select {
        flex-direction: column;
        gap: 6px !important;
    }

    .price-quick-select .btn {
        width: 100%;
        font-size: 12px;
        padding: 6px 12px;
    }
}

.map-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    border-radius: 8px;
}

.map-loading-content {
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(0, 123, 255, 0.2);
    min-width: 200px;
}

.map-loading-content .spinner-border {
    width: 2rem;
    height: 2rem;
    border-width: 0.25em;
}

.map-loading-content p {
    font-size: 14px;
    margin: 0;
    color: #007bff;
}

/* Enhanced progress loading styles */
.map-loading-content .progress {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background-color: rgba(0, 123, 255, 0.2);
}

.map-loading-content .progress-bar {
    transition: width 0.5s ease;
    border-radius: 10px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.map-loading-content .fs-4 {
    font-size: 1.5rem !important;
    font-weight: 600;
    color: #0056b3;
}

.map-loading-overlay {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Property Modal Styling */
.property-modal-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 0 1rem;
}

.property-modal-section {
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.property-modal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.property-modal-title {
    color: #0A3161;
    font-size: 1.5rem;
    line-height: 1.4;
}

.property-description {
    max-height: 150px;
    overflow-y: auto;
    padding: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0A3161;
}

.no-image-placeholder {
    transition: all 0.3s ease;
}

.no-image-placeholder:hover {
    background-color: #f0f0f0 !important;
}

.property-modal-section h6 {
    color: #0A3161;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-modal-section .text-primary {
    color: #0A3161 !important;
}

/* Stats section styling */
.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 49, 97, 0.15);
    border-color: #0A3161 !important;
}

/* Info section styling */
.info-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 1px solid #e9ecef !important;
    transition: all 0.3s ease;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.info-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 49, 97, 0.15);
    border-color: #0A3161 !important;
}

.info-item .btn {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.property-modal-section .btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.property-modal-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.property-modal-section .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

.map-container iframe,
.aerial-map-container img {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.property-modal-footer .mobile-app-text {
    color: #333;
    font-weight: 600;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    /* Change Property Details header text to white on mobile */
    .property-modal-header-title {
        color: white !important;
    }

    .property-modal-content {
        max-height: 60vh;
        padding: 0 0.5rem;
    }

    .property-modal-title {
        font-size: 1.25rem;
        text-align: center;
    }

    .property-modal-section {
        padding-bottom: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .property-modal-section h6 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .property-modal-section .btn {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .property-description {
        max-height: 120px;
        font-size: 0.875rem;
        padding: 0.5rem;
    }

    .carousel-inner img {
        height: 250px !important;
    }

    .no-image-placeholder {
        height: 200px !important;
    }

    .map-container iframe {
        height: 250px !important;
    }

    .aerial-map-container img {
        max-height: 250px !important;
    }

    .aerial-map-container iframe {
        height: 250px !important;
    }

    /* Adjust modal dialog for mobile */
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100vw - 1rem) !important;
    }

    .modal-content {
        border-radius: 12px;
    }

    /* Action buttons responsive */
    .property-modal-section .row.g-2 {
        gap: 0.5rem;
    }

    .property-modal-section .col-md-4 {
        margin-bottom: 0.5rem;
    }

    /* Stats section mobile adjustments */
    .stat-item {
        min-height: 80px;
        text-align: center;
    }

    .stat-item .fs-4 {
        font-size: 1.25rem !important;
    }

    .stat-item .fs-5 {
        font-size: 1.125rem !important;
    }

    /* Info section mobile adjustments */
    .info-item {
        min-height: 80px;
        text-align: center;
    }

    .info-item .btn {
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .property-modal-content {
        padding: 0 0.25rem;
    }

    .property-modal-title {
        font-size: 1.125rem;
    }

    .property-modal-section {
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .carousel-inner img {
        height: 200px !important;
    }

    .no-image-placeholder {
        height: 180px !important;
    }

    .map-container iframe {
        height: 200px !important;
    }

    .aerial-map-container img {
        max-height: 200px !important;
    }

    .property-modal-section .fs-4 {
        font-size: 1.25rem !important;
    }

    .property-modal-section .fs-5 {
        font-size: 1.125rem !important;
    }
}

/* Ensure proper scrolling for modal content */
.modal-body {
    padding: 0;
    overflow: hidden;
}

.property-modal-content::-webkit-scrollbar {
    width: 6px;
}

.property-modal-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.property-modal-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.property-modal-content::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

.sort_properties select{
    background-color: #22426d;
    color: white;
}
