.flexbox {
    display: flex;
    flex-flow: row wrap;
    align-items: flex-start;
}

.search_bar_list {
    align-items: flex-end !important;
}

#dmg_layout_internal.dmg_internal_area_advanced_search {
    max-width: 100%;
}

h1 + h1 {
    display: none;
}

#dmg_layout_internal.dmg_internal_area_advanced_search {
    overflow: visible;
}

.dmg_internal_area_advanced_search #dmg_layout_internal-page {
    padding: 0;
}

.header_container_bg {
    margin-top: -95px;
    padding: 110px 10px 20px;
    background: #F5F7F8;
}

.header_container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dmg_internal_area_advanced_search #dmg_layout_internal-page h1 {
    color: #343434;
    margin-bottom: 30px;
    font-size: 32px;
    line-height: 1em;
}

.dmg_results_search_form .search_section:nth-of-type(1) li {
    width:100%;
}

.search_tabs {
    border-bottom: 1px solid #d9e1e2;
}

.search_tabs li {
    margin-bottom: -1px;
    padding-right: 50px
}

.search_tabs a {
    width: 100%;
    height: 50px;
    font-size: 20px;
    line-height: 50px;
    color: #929ba2;
    display: inline-block;
    box-sizing:border-box;
}

.search_tabs a.active {
    color: #000;
    font-weight: bold;
    border-bottom: 2px solid #d82a2a;
    text-decoration: none;
}

.search_tabs a:hover {
    color: #000;
    text-decoration: none;
}



.search_content_wrapper {
    max-width: 1200px;
    margin: 0 auto 30px;
    padding: 50px 10px 0;
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    min-height: 500px;
    font-size: 16px;
}

.search_form_wrapper {
    flex: 1;
}

.search_form_sidebar {
    width: 300px;
    padding-left: 30px;
    box-sizing: border-box;
    position: relative;
}

.search_section + .search_section {
    margin-top: 40px;
}

.search_section.section_toggle {
    padding-top: 25px;
    border-top: 1px solid #CCCCCC;
}

.search_section_flex {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-start
}

.flex_third .search_flex_item {
    width: 31.3333%;
    padding: 0;
    margin: 0 2% 25px 0;
    box-sizing: border-box;
}

.flex_half .search_flex_item {
    width: 48%;
    padding: 0;
    margin: 0 2% 10px 0;
    box-sizing: border-box;
}

.search_flex_item {
    padding-right: 150px;
}

.field-split {
    padding-top: 24px;
    position: relative;
    flex: 1;
}

.search_flex_item.label-display {
    padding-top: 24px;
    position: relative;
}

.field-sep {
    padding: 24px 8px 0;
    line-height: 40px;
}

.search_flex_item.border_right {
    padding-right: 50px;
    margin-right: 50px;
    border-right: 1px solid #CCCCCC;
}

.search_flex_item:last-child {
    padding-right: 0;
}

.list_style_none {
    list-style: none;
    margin: 0;
    padding: 0;
}

.search_content_wrapper li {
    margin-bottom: 15px;
}

#dmg_layout_internal h2.section_content_toggle {
    margin: 0;
    padding-left: 25px;
    font-size: 26px;
    line-height: 1em;
    color: #000000;
    text-transform: uppercase;
    position: relative;
    cursor: pointer;
}

.column_two {
    column-count: 2;
    column-gap: 60px;
}

.community_flex .column_two {
    display: inline-block;
    column-gap: 20px;
}

.column_two li {
    break-inside: avoid-column;
}

#dmg_layout_internal .search_section_title {
    color: #5c6974;
}

#qsintelligent-wrap {
    padding-top: 24px;
}

.search_form_wrapper label {
    display: flex;
    align-items: center;
}

.checkbox_control, .radio_control {
    display: none;
}

.check_display {
    font-size: 17px;
    line-height: 1;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    text-align: center;
    color: #FFFFFF;
    border: 1px solid #a4a4a4;
    border-radius: 3px;
    display: inline-block;
    position: relative;
}

.check_display:after {
    display: none;
}

/*
.check_display:after {
    content: "\2714";
    width: 16px;
    height: 16px;
    font-size: 12px;
    text-align: center;
    color: #FFFFFF !important;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
*/

.radio_display {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 1px solid #a4a4a4;
    border-radius: 50%;
    display: inline-block;
    position: relative;
}

.checkbox_control:checked + .check_display {
    background: #d82a2a;
    border: 1px solid #d82a2a;
}

.radio_control:checked + .radio_display {
    border: 1px solid #d82a2a;
}

.radio_control:checked + .radio_display span {
    width: 10px;
    height: 10px;
    margin: 3px auto;
    background: #d82a2a;
    border-radius: 50%;
    text-align: center;
    display: block;
    position: relative;
    z-index: 1;
}

.margin_top30 {
    margin-top: 30px;
}

.den_label_wrap {
    overflow: hidden;
}

.block_label {
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity .5s ease;
}

.block_label.active-label {
    opacity: 1;
    transition: opacity .5s ease;
}

.block_label.bedroom_label {
    width: 200px;
    float: left;
} 

.block_label.den_label {
    width: 52px;
    float: right;
}

.den_label_wrap .check_display {
    width: 12px;
    height: 12px;
}

.den_label_wrap .block_label {
    margin-bottom: 0;
}

.search_form_wrapper input[type="text"],
.search_form_wrapper input[type="search"] {
    width: 100%;
    height: 40px;
    padding: 0 0 0 5px;
    border: 1px solid #d9e1e2;
    box-sizing: border-box;
}

.search_form_wrapper input[type="text"] {
    background-color: #f5f7f8;
}


.search_form_wrapper select {
    width: 100%;
    height: 40px;
    padding-left: 5px;
    background-color: #f5f7f8;
    border: 1px solid #d9e1e2;
    color: #6a6a6a;
    box-sizing: border-box;
}



.select-wrap {
    width: 100%;
    height: 40px;
    box-sizing: border-box;
}

.range_displays {
    margin-top: 10px;
    padding: 0 3px;
    font-size: 14px;
}

.range_min {
    float: left;
}

.range_max {
    float: right;
}

.toggle_content {
    max-height: 0;
    transition: max-height 1s ease-out;
    overflow: hidden;
}

.active_content + .toggle_content {
    max-height: 3000px;
    transition: max-height 1s ease-in;
}

.section_content_toggle:before {
    content: "\f107";
    width: 20px;
    height: 20px;
    font-family: FontAwesome;
    font-size: 20px;
    text-align: center;
    color: #000;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.section_content_toggle.active_content:before {
    content: "\f106";
}

#carport_range_min, #reduced_range_min {width: 100%; text-align: center; float: none;}

.column_three {
    column-count: 3;
    column-gap: 5px;
}

.results_count_wrapper {
    width: 100%;
    padding: 30px;
    background: #253746;
    transition: margin 1s ease;
    box-sizing: border-box;
}

.results_count_display {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    color: #FFFFFF;
}

.results_count {
    font-size: 32px;
    line-height: 1em;
    margin-bottom: 6px;
}

.results_count_title {
    font-size: 22px;
    line-height: 1em;
    font-weight: bold;
}

.search_submit {
    width: 100%;
    height: 36px;
    line-height: 32px;
    padding: 0;
    margin-bottom: 12px;
    border: 2px solid #d82a2a;
    background: #d82a2a;
    text-align: center;
    font-size: 18px;
    color: #FFFFFF;
    cursor: pointer;
    box-sizing: border-box;
}

.search_submit:hover {
    border: 2px solid #FFFFFF;
}

.reset_form {
    width: 100%;
    height: 36px;
    line-height: 32px;
    font-size: 18px;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
    text-align: center;
    display: block;
    box-sizing: border-box;
}

.reset_form:hover {
    background: #FFFFFF;
    color: #253746;
    text-decoration: none;
}

/* =============== Search Bar =============== */
.search_bar_list {

}

.search_bar_list li {
    flex: 1;
    padding: 20px 5px 0;
    text-align: center;
}

.search_bar_list li.no_tpadding {
    padding-top: 0;
}

.search_bar_list a {
    font-size: 16px;
    line-height: 40px;
    color: #343434;
}

.search_bar_list a:hover {
    color: #000;
    text-decoration: none;
}

.refine_toggle {
    height: 40px;
    background: #bcbec0;
    line-height: 40px;
    font-size: 16px;
}


.search_content_wrapper.results_display {
    box-sizing: border-box;
    height: 0;
    max-height: 0;
    min-height: 0;
    overflow: hidden;
    transition: max-height 2s ease-out;
}

.search_content_wrapper.form_active {
    border-top: 5px solid #bcbec0;
    padding-top: 50px;
    height: auto;
    max-height: 5000px;
    transition: max-height 2s ease-in;
}

.refine_toggle .fa-chevron-up {
    display: none;
}

.refine_toggle.toggle_active .fa-chevron-up {
    display: inline-block;
}

.refine_toggle.toggle_active .fa-chevron-down {
    display: none;
}

.search_results_container {
    margin-top: 40px;
}

.search_bar_list label {
    margin-bottom: 6px;
    text-align: left;
    display: block;
}

.search_bar_list select {
    width: 100%;
    height: 40px;
    padding: 0 0 0 5px;
    border: 1px solid #000;
    border-radius: 0;
    font-size: 16px;
    box-sizing: border-box;
    -webkit-appearance: none;
}

.select_wrapper {position: relative;}
.select_wrapper:after {
    content: "\f107";
    font-family: FontAwesome;
    color: #343434;
    font-size: 22px;
    line-height: 40px;
    position: absolute;
    right: 8px;
    top: 0;
    pointer-events: none;
}

.page_links {
    padding-top: 8px;
}

.search_bar_list .prev_page, .search_bar_list .next_page {
    width: 34px;
    height: 30px;
    margin: 0 2px;
    background: #000;
    color: #FFFFFF;
    line-height: 30px;
    text-align: center;
    display: inline-block;
}

.search_bar_list .prev_page .fa, .search_bar_list .next_page .fa {
    width: 34px;
    height: 30px;
    color: #FFFFFF;
    line-height: 30px;
    text-align: center;
    display: inline-block;
    vertical-align: middle;
}

.search_bar_list .current_page {
    width: 34px;
    height: 30px;
    margin: 0 2px;
    background: #e5e5e5;
    color: #343434;
    line-height: 30px;
    text-align: center;
    display: inline-block;
    cursor: default;
    border: 0;
    box-sizing: border-box;
}
.search_bar_list .current_page:hover {
    color: #333333;
}



.choice-display {
    width: 100%;
}

.choice-wrap {
    height: 40px;
    background: #253746;
    margin-top: 5px;
    padding: 0 10px;
    line-height: 40px;
    color: #FFFFFF;
    display: flex;
    flex-flow: row;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.choice-delete:hover {
    color: #d82a2a;
    cursor: pointer;
}

/* == Desktop
============================================================================ */
@media only screen and (max-width: 1115px) {
    .search_flex_item.border_right {
        padding-right: 15px;
        margin-right: 15px;
    }
}


/* == Desktop
============================================================================ */
@media only screen and (max-width: 968px) {
    .search_content_wrapper {
        flex-flow: column;
    }

    .form_active .search_form_sidebar {
        width: 100%;
        padding: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 5;
    }

    .search_submit {
        width: 48%;
        margin-right: 2%;
        display: inline-block;
    }

    .reset_form {
        width: 48%;
        display: inline-block;
    }

    .results_count_wrapper {
        padding: 8px;
        
    }

    .results_count_display {
        margin-bottom: 10px;
    }

    .results_count, 
    .results_count_title {
        font-size: 20px;
        display: inline-block;
    }

    .search_form_sidebar {
        width: 100%;
        padding: 0;
        position: fixed;
        bottom: 0;
        left: 0;
        z-index: 5;
    }

    .iosapp .search_form_sidebar {
        bottom: 50px;
    }

}

/* == Tablet
============================================================================ */
@media only screen and (max-width: 880px) {

}

/* == Tablet
============================================================================ */
@media only screen and (max-width: 768px) {
    .flex_third .search_flex_item {
        width: 48%;
    }
    .search_section_flex.community_flex {
        justify-content: center;
    }
    .community_flex .border_right + .border_right {
        border: 0;
        margin-bottom: 20px;
    }

    .flex_half .search_flex_item {
        width: 98%;
    }
}

/* == Phone
============================================================================ */
@media only screen and (max-width: 580px) {
    .list_style_none.search_tabs {
        max-width: 100%;
        text-align: center;
        justify-content: center;
    }

    .list_style_none.search_tabs li {
        padding: 0 10px;
        display: inline-block;
    }

    .search_tabs a {
        font-size: 16px;
    }

    .search_section_flex {flex-flow: column;}
    .search_section_flex.community_flex {flex-flow: row wrap;}
    .flex_third .search_flex_item {
        width: 98%;
        margin: 0 auto 25px
    }

    .search_section_flex.flex_third {
        text-align: center;
    }

    #dmg_layout_internal .search_section_title {
        text-align: center;
    }

    .search_flex_item {
        padding-right: 0;
    }

    .column_two, .list_style_none {
        margin: 0 auto;
    }

    .search_content_wrapper .noUi-horizontal {
        height: 20px;
    }

    .search_content_wrapper .noUi-horizontal .noUi-handle {
        top: -2px;
    }

    strong.d-block {
        text-align: center;
    }

    .list_style_none {
        display: inline-block;
    }
}