/* Property Search Half-Map Layout Adjustments */
/* Override parent theme's max-width: 1300px media query that stacks to column */

.rh-ultra-properties-half-map {
    display: flex !important;
    gap: 0 !important;
}

.rh-ultra-properties-half-map .rh-ultra-half-map {
    flex: 0 0 50% !important;
    min-height: 400px;
    max-width: none !important;
}

.rh-ultra-properties-half-map .rh-ultra-half-map-list {
    flex: 1 1 50% !important;
    max-width: none !important;
    width: auto !important;
    overflow-y: auto;
    padding-right: 40px !important;
    padding-left: 40px !important;
    padding-bottom: 80px !important;
}

@media (max-width: 1300px) {
    /* Override parent theme's column stacking */
    .rh-ultra-properties-half-map {
        flex-direction: row !important;
    }

    .rh-ultra-properties-half-map .rh-ultra-half-map {
        margin-bottom: 0 !important;
    }
}

@media (max-width: 1024px) {
    .rh-ultra-properties-half-map .rh-ultra-half-map {
        flex: 0 0 45% !important;
    }

    .rh-ultra-properties-half-map .rh-ultra-half-map-list {
        flex: 1 1 55% !important;
    }
}

@media (max-width: 768px) {
    .rh-ultra-properties-half-map {
        flex-direction: column !important;
    }

    .rh-ultra-properties-half-map .rh-ultra-half-map {
        flex: 0 0 300px !important;
        order: 2;
        margin-bottom: 40px !important;
    }

    .rh-ultra-properties-half-map .rh-ultra-half-map-list {
        flex: 1 1 auto !important;
        order: 1;
    }
}
