.listings-container h1 {
    padding-bottom: 20px;
}
.geodir-search-container {
    display: none !important;
}
.map-container {
    height: 300px;
    position: relative;
    background: #f8f9fa;
    border-bottom: 3px solid #27ae60;
    overflow: hidden;
    transition: height 0.3s ease;
}
body.map-view .map-container,
body.map-view #gd_map_canvas_archive,
body.map-view #gd_map_canvas_archive_wrapper,
body.map-view .geodir_map_container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 9999 !important;
}
body.map-view #listings-wrapper {
    display: none;
}
.map-view .geodir-map-wrap,
.map-view .geodir_map_container,
.map-view .geodir_map_container > div,
.map-view #gd_map_canvas,
.map-view .leaflet-container,
.map-view .geodir-map-osm-wrap,
.map-view .gd-osm-map,
.map-view .gd-map-osm,
.map-view [data-map-type="osm"] {
    height: 100% !important;
    width: 100% !important;
    position: unset !important
}
.list-view .geodir-map-wrap,
.list-view .geodir_map_container,
.list-view .geodir_map_container > div,
.list-view #gd_map_canvas,
.list-view .leaflet-container,
.list-view .geodir-map-osm-wrap,
.list-view .gd-osm-map,
.list-view .gd-map-osm,
.list-view [data-map-type="osm"] {
    height: 300px !important;
    width: 100% !important;
}
.bsui .row.row-cols-md-0 .card {
	flex-flow: column !important;
}
.listings-container .bsui .embed-item-cover-xy {
    border-radius: 50%;
}
.results-header {
    background: white;
    padding: 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 60px;
    z-index: 100;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.results-count {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}
.map-close-btn {
    position: fixed;
    top: 40px;
    right: 40px;
    width: 44px;
    height: 44px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    font-size: 20px;
    color: #666;
    display: none;
    z-index: 2147483647;
    transition: all 0.3s ease;
}
.map-close-btn:hover {
    background: #f8f9fa;
    transform: scale(1.1);
}
body.map-view .map-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2147483647 !important;
}
#listings-wrapper.listings-container {
    padding-top: 20px;
    padding-left: 20px;
    padding-right: 20px;
}
.bsui .bg-white,
.leaflet-top.leaflet-left,
.leaflet-bottom.leaflet-right {
    display: none !important;
}
.fab-container {
    position: fixed;
    bottom: 20px;
    left: 15px;
    right: 15px;
    z-index: 1000;
    pointer-events: none;
}
.fab-wrapper {
    display: flex;
    gap: 10px;
    pointer-events: auto;
}
.fab {
    border: none;
    padding: 15px 20px;
    border-radius: 25px;
    font-size: 20px;
    font-family: inherit !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    min-height: 54px;
}
.fab-map {
    width: 54px;
    padding: 0;
    background: #27ae60;
}
.fab-filter {
    flex: 1;
}
.fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}
.fab-map:hover {
    background: #219a52;
    box-shadow: 0 6px 25px rgba(39, 174, 96, 0.5);
}
.fab-filter:hover {
    background: #c0392b;
}
.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.filter-overlay.active {
    opacity: 1;
    visibility: visible;
}
.filter-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.filter-overlay.active .filter-panel {
    transform: translateY(0);
}
.filter-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}
.filter-title {
    font-size: 20px;
    font-weight: 600;
}
.filter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}
.filter-content {
    padding: 0 20px 20px 20px;
}
.filter-section {
    padding-top: 25px;
    border-top: 1px solid #f0f0f0;
}
.filter-section:first-child {
    border-top: none;
    padding-top: 5px;
}
.filter-label h4 {
    font-weight: 500;
    display: block;
    font-size: 16px;
    margin-bottom: 12px !important;
}

.filter-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    background: #fafafa;
}
.filter-input:focus {
    outline: none;
    border-color: #e74c3c;
}
.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-btn, .filter-btn:focus {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #1f1b2d !important
}
.filter-btn:hover {
    border-color: #e74c3c;
    background: #fff5f5;
    color: #1f1b2d !important
}
.filter-btn.active {
    background: var(--global-palette1);
    color: white !important;
    border-color: #e74c3c;
}
.slider-container {
    padding: 20px 10px 0px 20px;
}
.custom-slider {
    margin: 20px 0 15px 0;
}
.slider-values {
    text-align: center;
    font-weight: 600;
    color: #333;
    font-size: 15px;
}
.noUi-target {
    background: #f0f0f0;
    border-radius: 10px;
    border: none;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    height: 8px;
}
.noUi-connect {
    background: linear-gradient(90deg, #e74c3c, #c0392b);
    border-radius: 10px;
}
.noUi-handle {
    border: 3px solid #fff;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    width: 24px;
    height: 24px;
    right: -12px;
    top: -8px;
}
.noUi-handle:before,
.noUi-handle:after {
    display: none;
}
.noUi-handle:hover {
    background: #c0392b;
    transform: scale(1.1);
    transition: all 0.2s ease;
}
.noUi-active {
    box-shadow: 0 3px 12px rgba(231, 76, 60, 0.5);
}
.noUi-horizontal .noUi-handle {
    width: 24px;
    height: 24px;
    right: -12px;
    top: -8px;
}
.filter-actions {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 100;
}
.btn {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
}
.btn-primary {
    color: white;
}
.error-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    z-index: 3000;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { transform: translateX(-50%) translateY(-100%); }
    to { transform: translateX(-50%) translateY(0); }
}
@media (max-width: 1199px) {
   .geodir-loop-container {
       padding-bottom: 60px;
   }
}
@media (min-width: 769px) and (max-width: 1199px) {
    .fab-container {
        left: 50%;
        transform: translateX(-50%);
        max-width: 520px;
        right: auto;
    }
    .filter-panel {
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        max-width: 420px;
        right: auto;
    }
    .filter-overlay.active .filter-panel {
        transform: translateX(-50%) translateY(0);
    }
}
.map-view .map-container,
.map-view .geodir_map_container,
.map-view .leaflet-container,
.map-view .leaflet-tile-pane,
.map-view .leaflet-tile-container {
    background: #f0f0f0 !important;
}
.map-view .leaflet-tile {
    background: transparent !important;
}
body.map-view .fab-container {
    display: none !important;
}

body.filter-is-active #masthead,
body.filter-is-active #wrapper > *:not(.filter-overlay) {
    z-index: 1 !important;
}
body.filter-is-active .filter-overlay {
    z-index: 2147483647 !important;
}

@media (min-width: 1200px) {
    .geodir-desktop-wrapper {
        display: flex;
        height: calc(100vh - 100px);
        position: relative;
    }
    .geodir-desktop-wrapper .filter-overlay {
        order: 1;
        flex: 0 0 25%;
        position: static !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: none !important;
        transform: none !important;
        z-index: auto !important;
    }
    .geodir-desktop-wrapper .filter-panel {
        position: static !important;
        transform: none !important;
        max-height: 100% !important;
        height: 100% !important;
        overflow-y: auto;
        border-radius: 0;
        box-shadow: none;
        border-right: 1px solid #e0e0e0;
    }
    .geodir-desktop-wrapper .filter-close {
        display: none;
    }
    .geodir-desktop-wrapper #listings-wrapper {
        order: 2;
        flex: 0 0 35%;
        height: 100%;
        overflow-y: auto;
    }
    
    body.map-view .geodir-desktop-wrapper #listings-wrapper {
        display: block !important;
    }
    .geodir-desktop-wrapper .map-container {
        order: 3;
        flex: 0 0 40%;
        height: 100vh !important;
        position: sticky !important;
        top: 100px;
        border-bottom: none;
    }
    .geodir-desktop-wrapper .map-container .geodir-map-wrap,
    .geodir-desktop-wrapper .map-container .geodir_map_container,
    .geodir-desktop-wrapper .map-container .geodir_map_container > div,
    .geodir-desktop-wrapper .map-container #gd_map_canvas_archive,
    .geodir-desktop-wrapper .map-container .leaflet-container {
        height: 100vh !important;
        width: 100% !important;
        position: relative !important;
    }
    .fab-container,
    .map-close-btn {
        display: none !important;
    }
    body.map-view .map-container {
       position: sticky !important;
       top: 100px !important;
       left: auto !important;
       right: auto !important;
       bottom: auto !important;
       z-index: 1 !important;
    }
}
.site-footer-wrap {
    display: none;
}