.search-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
    min-height: 100vh;
    width: 100%;
}

.property-map {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    transition: all 0.0s ease;
    z-index: 10;
    background: #fff;
}

/* Add a placeholder to maintain layout */
.property-map::before {
    content: '';
    display: block;
    padding-top: 100vh; /* Match the height of the map */
    visibility: hidden;
}

.property-results {
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    position: relative;
    background-color: #e3e3e3;
}

.property-map.map-visible {
    position: fixed !important;
    top: 0;
    left: 0;
    width: calc(50% - 20px);
    margin-top: 112px;
    height: calc(100vh - 112px);
    margin-left: 0;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .search-main {
        grid-template-columns: 1fr;
    }
    
    .property-map {
        position: relative;
        height: 50vh;
    }
    
    .property-map::before {
        padding-top: 50vh;
    }
    
    .property-results {
        height: auto;
    }
}

/* Optional: Add a subtle shadow when map is sticky */
.property-map.map-visible {
} 

.map-placeholder {
    flex: 1;
    height: calc(100vh - 200px);
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    background-color: #f5f5f5;
    position: relative;
    min-height: 400px;
}