/* Keep the home sidebar in normal flow, below the search and customer reviews.
   All three columns reserve their own space; only listing columns reflow. */
@media (min-width:993px) {
    .dh_w1200_center.dh_main_section {
        --kh-home-left:max(20px, calc((100% - 1200px) / 2));
        display:grid;
        grid-template-columns:245px minmax(0, 1fr) 187px;
        gap:20px;
        align-items:start;
        width:min(1407px, calc(100% - var(--kh-home-left) - 20px));
        margin-left:var(--kh-home-left);
        margin-right:20px;
        margin-bottom:80px;
    }
    .dh_main_section > .banner_main_left_zone {
        position:static;
        grid-column:1;
        grid-row:1;
        float:none;
        width:245px;
        min-width:0;
        margin:0;
    }
    .dh_main_section > #dhMainSection {
        grid-column:2;
        grid-row:1;
        width:100%;
        min-width:0;
        min-height:0;
        margin:0;
    }
    .dh_main_section > .kh_home_sidebar {
        display:block;
        position:static;
        grid-column:3;
        grid-row:1;
        float:none;
        width:187px;
        min-width:0;
        margin:0;
    }
    #dhMainSection .main_section > .container {
        width:100%;
        max-width:100%;
        min-width:0;
        margin:0;
        padding:0;
    }
    #dhMainSection .main_section .row.recent_location {
        /* AJAX refreshes set display:block inline on these rows. */
        display:grid !important;
        grid-template-columns:repeat(auto-fit, minmax(210px, 1fr));
        gap:10px;
        width:100%;
        margin-left:0;
        margin-right:0;
        padding:0;
    }
    #dhMainSection .main_section .row.recent_location::before,
    #dhMainSection .main_section .row.recent_location::after { display:none; }
    #dhMainSection .main_section .row.recent_location > .text-muted.text-center {
        grid-column:1 / -1;
    }
    #dhMainSection .main_section .row.recent_location > .villa_list,
    #dhMainSection .main_section .row.recent_location > .card_villa {
        float:none;
        min-width:0;
        width:100% !important;
        margin:0 !important;
    }
    #dhMainSection .main_section .row.recent_location > .villa_list {
        height:auto !important;
        align-self:start;
    }
    #dhMainSection .main_section .recent_location .villa_list > .pc_img_wrap {
        /* Growing a card must not let its photo crop off the price rows. */
        aspect-ratio:3 / 2;
        height:auto !important;
        min-height:0 !important;
        max-height:none !important;
        padding-top:0 !important;
    }
}
