/*
Theme Name: Houzez Child
Theme URI: http://www.favethemes.com/
Author: Favethemes
Author URI: http://www.favethemes.com/
Description: Houzez is a premium WordPress theme for real estate agents where modern aesthetics are combined with tasteful simplicity, and where the ease of use is achieved without compromise in your ability to customise the design. Whether you are a real estate agent looking to build a website for your company or a web developer seeking a perfect WordPress theme for your next project, you are certain to appreciate the numerous features and benefits that our theme provides.
Version: 1.0
Tags: white, right-sidebar, left-sidebar, custom-colors, custom-menu, featured-images, post-formats, theme-options, translation-ready
License: GNU General Public License version 3.0
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: houzez
Template: houzez
*/


@import url("../houzez/style.css");

/* Your CSS code goes here
-------------------------------------- */

/* Half Map Search Results Scroll Fix */
.half-map-wrap {
    height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
}

.half-map-left-wrap {
    position: sticky !important;
    top: 0 !important;
    height: 100vh !important;
    overflow: hidden !important;
    flex: 0 0 50% !important;
}

.half-map-right-wrap {
    height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    position: relative !important;
    flex: 1 !important;
}

/* Disable body scroll when hovering over search results */
body.disable-scroll {
    overflow: hidden !important;
}

/* Ensure the map doesn't interfere with scrolling */
.half-map-left-wrap .map-wrap {
    height: 100% !important;
    position: relative !important;
}

/* Ensure the listing container takes full height */
.half-map-right-wrap #half-map-listing-area {
    min-height: 100vh !important;
}

/* Fix for search form at top if present */
.half-map-right-wrap .search-half-map {
    position: sticky !important;
    top: 0 !important;
    z-index: 10 !important;
    background: white !important;
}

/* Fix for mobile responsiveness */
@media (max-width: 768px) {
    .half-map-wrap {
        flex-direction: column !important;
        height: auto !important;
    }
    
    .half-map-left-wrap,
    .half-map-right-wrap {
        height: auto !important;
        overflow: visible !important;
        flex: none !important;
    }
    
    .half-map-left-wrap {
        position: relative !important;
        height: 300px !important;
    }
    
    body.disable-scroll {
        overflow: visible !important;
    }
    
    .half-map-right-wrap #half-map-listing-area {
        min-height: auto !important;
    }
}

/* Ensure proper scrollbar styling */
.half-map-right-wrap::-webkit-scrollbar {
    width: 8px;
}

.half-map-right-wrap::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.half-map-right-wrap::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.half-map-right-wrap::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}