
.dmg_results_table_box {
    margin-bottom: 0;
}

.dmg_internal_subarea_mapsearch .div_results_footer.disclaimer {
    margin-top: 0 !important;
}

.dmg_results_search_form {
    padding: 20px 0;
    background: #f7f7f7;
}

#dmg_results_wrapper ul {
    display: grid;
    grid-template-columns: 265px repeat(6, 1fr) auto;
    gap: 8px;
    padding: 0 8px !important;
    box-sizing: border-box;
}

.dmg_results_search_form ul > li {
    padding: 0 !important;
    background: #fff;
    border-radius: 8px;
}

.dmg_results_search_form ul > li.dmg_results_form_save {
    background: transparent;
}

.dmg_results_search_form ul > li:hover {
    background: #fff;
}

.dmg_results_search_form ul > li + li {
    border: none;
}

.dmg_select_wrap,
.dmg_results_form_areas .dmg_select_wrap {
    padding: 0 16px;
    border: 1px solid rgba(17, 0, 0, 0.20);
    border-radius: 8px;
    box-sizing: border-box;
}

.search-bar-top .dmg_select_display, 
.dmg_results_nav_control
 {
    background: url(/shared/images/searchresults/select-down-arrow.png) right center no-repeat;
    background-size: 12px 6px;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
}

#dmg_results_nav_areas + .dmg_results_nav_control {
    max-width: 100%;
}

.content_check:checked + .dmg_results_nav_control {
    background: url(/shared/images/searchresults/select-up-arrow.png) right center no-repeat;
    background-size: 12px 6px;
}

.dmg_results_form_options > .dmg_results_nav_control {
    background: url(/shared/images/searchresults/select-down-arrow.png) right 16px center no-repeat;
    background-size: 12px 6px;
    padding: 0 35px 0 16px;
    border: 1px solid rgba(17, 0, 0, 0.20);
    border-radius: 8px;
    box-sizing: border-box;
}

#dmg_control_form_options:checked + .dmg_results_search .dmg_results_form_options .dmg_results_nav_control  {
    background: url(/shared/images/searchresults/select-up-arrow.png) right 16px center no-repeat;
    background-size: 12px 6px;
}

#dmg_results_wrapper #qsearch_term_wrapper .dmg_layout_qsearch_term {
    padding: 0 16px;
    border: 1px solid rgba(17, 0, 0, 0.20);
    border-radius: 8px;
    box-sizing: border-box;
}

.search-bar-top li:nth-child(n + 2):not(.floatRight) {
    text-align: left;
}

.gm-style .gm-style-iw-d {
    margin-top: 0;
}


.dmg_results_search_form .search-bar-top > li .dmg_results_nav_control, 
.dmg_results_search_form .search-bar-top > li .dmg_select_display {
    text-transform: capitalize;
}

.clear-search-filters {
    padding: 0 12px;
}

.clear-search-filters a {
    line-height: 34px;
    text-decoration: underline;
    font-size: 14px;
}

a.dmg_results_share_wrapper {
    padding: 0;
}

.dmg_results_share_wrapper .visuallyhidden,
.dmg_results_share_wrapper i {
    display: none;
}

a.dmg_results_share_wrapper .save_search_text {
    border: 1px solid #d73a31;
    border-radius: 50px;
    background: #d73a31;
    color: #fff;
    display: inline-block;
    font-size: 14px;
    line-height: 1;
    padding: 8px 25px 10px;
    font-weight: 600;
    transition: all .3s ease;
    text-decoration: none;
    text-align: center;
}

.nav-inrix-icon {
    display: none !important;
}


.dmg_results_map_wrapper {
    flex-flow: row;
}

.dmg_results_map_wrapper div#dmgmap_wrap {
    width:75%;
}

.dmg_results_map_wrapper .dmg_results_table {
    width: 25%;
}

.dmg_results_map_wrapper.results-view-1 div#dmgmap_wrap {
    width: 50%;
}

.dmg_results_map_wrapper.results-view-1 .dmg_results_table {
    width: 50%;
}

.dmg_results_map_wrapper.results-view-2 .dmg_results_table {
    width: 25%;
    transition: width 500ms ease-in-out;
}

.dmg_results_map_wrapper.results-view-2 div#dmgmap_wrap {
    width: 75%;
    transition: width 500ms ease-in-out;
}


.dmg_results_map_wrapper .dmg_results_table .dmg_results_table_row .dmg_results_listing,
.dmg_results_map_wrapper.results-view-2 .dmg_results_table .dmg_results_table_row .dmg_results_listing {
    width: 98%;
}

.dmg_results_map_wrapper.results-view-1 .dmg_results_table .dmg_results_table_row .dmg_results_listing,
.dmg_results_map_wrapper.half-map .dmg_results_table .dmg_results_table_row .dmg_results_listing {
    width: 48%;
}



.dmg_results_map_wrapper.half-map .dmg_results_table {
    width: 50% !important;
}

.dmg_results_map_wrapper.half-map div#dmgmap_wrap {
    width: 50% !important;
}

.dmg_results_map_wrapper.full-map .dmg_results_table {
    width: 0 !important;
    padding: 0;
}

.dmg_results_map_wrapper.full-map div#dmgmap_wrap {
    width: 100% !important;
}




#expandCollapseMap {
    position: absolute;
    bottom: 15px;
    right: 180px;
    transition: all .5s ease-in-out;
    display: flex;
    gap: 4px;
}

.show-full-map,
.show-half-map {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    opacity: 1;
    min-width: 36px;
    max-width: 200px;
    transition: all .5s ease-in-out;
    padding: 5px 10px;
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,.5);
    border-radius: 8px;
    box-sizing: border-box;
}

.standard-map {
    display: none;
    opacity: 0;
    max-width: 0;
    transition: all .5s ease-in-out;
    min-width: 36px;
    max-width: 200px;
    transition: all .5s ease-in-out;
    padding: 5px 10px;
    background: #f5f5f5;
    border: 1px solid rgba(0,0,0,.5);
    border-radius: 8px;
    box-sizing: border-box;
}

.show-full-map .fa,
.show-half-map .fa,
.standard-map .fa {
    font-size: 24px;
    line-height: 1;
    font-weight: 400;
}

.dmg_results_map_wrapper.full-map #expandMap .standard-map {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    opacity: 1;
    max-width: 200px;
}

.dmg_results_map_wrapper.half-map #collapseMap .standard-map {
    display: flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    opacity: 1;
    max-width: 200px;
}

.dmg_results_map_wrapper.full-map .show-full-map,
.dmg_results_map_wrapper.full-map .show-half-map,
.dmg_results_map_wrapper.half-map .show-full-map,
.dmg_results_map_wrapper.half-map .show-half-map {
    display: none;
    opacity: 0;
    max-width: 0;
}

.dmg_map_sidebar .dmg_results_pagination_total {
    text-align: left;
    font-size: 14px !important; 
    color: #717171;
}



.dmg_map_sidebar .dmg_results_filter {
    padding: 0 0 15px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.dmg_map_sidebar .dmg_results_filter .dmg_results_pagination_total {
    display: none;
}

.dmg_results_map_wrapper.results-view .dmg_map_sidebar .dmg_results_filter .dmg_results_pagination_total {
    display: block;
}

.view-toggles .dmg_select_wrap,
.sort-toggles .dmg_select_wrap {
    padding: 0;
    border: none;
    box-sizing: border-box;
}

#dmg_results_wrapper .dmg_map_sidebar .dmg_results_filter ul,
#dmg_results_wrapper .dmg_results_filter ul {
    display: grid;
    grid-template-columns: auto auto;
    gap: 16px;
    box-sizing: border-box;
}

#dmg_results_wrapper .dmg_results_filter ul li .dmg_select_wrap {
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.dmg_results_filter .dmg_select_display {
    background: #fff;
    background: url(/shared/images/searchresults/select-down-arrow.png) right center no-repeat;
    background-size: 12px 6px;
    width: auto;
    box-sizing: border-box;
    font-size: 14px;
    padding: 0 19px 0 0;
    text-align: right;
    text-transform: capitalize !important;
    color: #717171;
    line-height: 24px !important;
    height: 24px !important;
    float: left;
}

#dmg_results_wrapper .dmg_map_sidebar .dmg_results_filter ul {
    padding-left: 3px !important;
}

.dmg_btn_group {
    justify-content: flex-start;
}

/* listing card */

.dmg_results_listing {
    background: #fff;
    box-shadow: none;
}

.dmg_results_listing:hover {
    box-shadow: none;
}

.dmg_results_photo_controls {
    top: 50%;
    transform: translateY(-50%);
    background: none;
}

.dmg_listing_gallery_prev .fa, .dmg_listing_gallery_next .fa {
    font-weight: 400;
    filter: drop-shadow(2px 4px 12px rgba(0,0,0,.95));
}

.dmg_results_listing_photo:after {
    border-radius: 0 0 8px 8px;
}

.dmg_results_listing_photo img {
    border-radius: 8px;
}

.dmg_results_listing_photo .dmg_listing_save.cta-save {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: auto;
    height: 28px;
    width: 28px;
    background: rgba(0,0,0,.4);
    border-radius: 50px;
    color: #fff;
    text-shadow: none;
}

.dmg_results_listing_photo .dmg_listing_save:hover, .dmg_results_listing_photo .dmg_listing_save.saved_listing {
    color: #fff;
    text-shadow: none;
}

.dmg_results_listing .dmg_listing_price {
    position: relative;
    top: 0;
    left: auto;
    color: #003b5c;
    font-size: 20px;
    font-weight: 700;
    line-height: normal;
    margin-top: 6px;
    margin-bottom: 12px;
}

.dmg_results_listing .price-previous {
    display: block;
    position: relative;
    font-size: 15px;
    text-decoration: line-through;
    bottom: auto;
    margin: 0;
}

.dmg_listing_address {
    font-size: 15px;
    color: #000;
    font-weight: 500;
    line-height: normal;
}

.dmg_listing_address:hover {
    color: #000;
}

.dmg_listing_address span {
    opacity: .6;
}

.amen-row {
    margin-bottom: 0;
    margin-top: 4px;
}

.dmg_results_listing .dmg_listing_amen_item {
    color: #717171;
    font-size: 14px;
    font-weight: 400;
    text-transform: capitalize;
    line-height: normal;
    position: relative;
    display: flex;
    align-items: center;
    padding-right: 8px;
}

.dmg_amen_value {
    font-weight: 400;
}

.amen-row .dmg_listing_amen_item:not(:first-child) {
    content: "•";
    position: relative;
    padding-left: 8px;
}

.amen-row .dmg_listing_amen_item:not(:last-child)::after {
    content: "•";
    position: relative;
    left: 8px;
}

.dmg_listing_mlslogo.company {
    height: 0 !important;
    display: flex;
    justify-content: flex-end;
}

.dmg_listing_mlslogo img {
    height: 35px;
    width: auto !important;
    top: -90px;
}

.prop-mls-logo {
    display: block !important;
}

.dmg_internal_subarea_mapsearch .div_results_footer.disclaimer {
    padding: 3px;
    margin-top: 10px;
    border-top: 1px solid rgba(0,0,0,.1);
    background: #f7f7f7;
}

/* results page */

.dmg_listing_photo_banner {
    display: none;
}

.dmg_results_listing_photo .dmg_listing_save {
    display: none;
}

.dmg_listing_details_bg {
    background: #fff;
}

.dmg_results_search {
    height: auto;
}

#dmg_layout_internal #dmg_results_wrapper .dmg_results_title, #dmg_layout_internal.dmg_internal_area_customContent h1, #dmg_layout_internal.dmg_internal_area_contact h1, #dmg_layout_internal.dmg_internal_area_myaccount h1, #dmg_layout_internal.dmg_internal_area_agents h1 {
    background: none;
    color: #003b5c;
    text-transform: capitalize;
    font-weight: 600;
}

@media only screen and (min-width: 1510px) {
    .search-bar-top li:nth-child(n + 2):not(.floatRight) {
        width: 100%;
        text-align: left;
    }
       
    .search-bar-top .dmg_select_display {
        width: 100%;
        padding-right: 19px;
    }
}

@media only screen and (max-width: 1280px) {
    .dmg_results_search_form .dmg_results_form_beds, .dmg_results_search_form .dmg_results_form_baths {
        display: none;
    }

    #dmg_results_wrapper ul {
        grid-template-columns: 265px repeat(4, 1fr) auto;
    }

    .dmg_results_table {
        width: 30%;
    }
    
    #dmgmap_wrap {
        width: 70%;
    }
    
}

@media only screen and (max-width: 1100px) {
    .dmg_results_search_form ul > .dmg_results_form_price {
        display: none;
    }

    #dmg_results_wrapper ul {
        grid-template-columns: 265px repeat(3, 1fr) auto;
    }

    .dmg_results_table {
        width: 35%;
    }
    
    #dmgmap_wrap {
        width: 65%;
    }

    .dmg_results_map_wrapper.results-view .dmg_results_table .dmg_results_table_row .dmg_results_listing {
        width: 98%;
    }

    .dmg_results_map_wrapper.results-view-1 .dmg_results_table .dmg_results_table_row .dmg_results_listing,
    .dmg_results_map_wrapper.half-map .dmg_results_table .dmg_results_table_row .dmg_results_listing {
        width: 98%;
    }
}

@media only screen and (max-width: 960px) {
    .dmg_results_search_form ul .dmg_results_form_areas, .dmg_results_search_form ul .dmg_results_form_listtype {
        display: none;
    }

    #dmg_results_wrapper #qsearch_term_wrapper .dmg_layout_qsearch_term {
        width: 300px;
    }

    #dmg_results_wrapper ul {
        grid-template-columns: 300px 1fr auto;
    }

    .dmg_results_map_wrapper .dmg_results_table {
        width: 0 !important;
        padding: 0 !important;
    }
    
    .dmg_results_map_wrapper div#dmgmap_wrap {
        width: 100% !important;
    }

    #expandCollapseMap {
        display: none;
    }

    .dmg_results_map_wrapper.results-view .dmg_results_table {
        width: 0;
    }

    .dmg_results_map_wrapper.results-view #dmgmap_wrap {
        width: 100%;
    }

    #list-view-button {
        background: #fff;
        border: 0;
        bottom: 23px;
        box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
        color: rgb(86, 86, 86);
        display: block;
        font-family: Roboto, Arial, sans-serif;
        font-size: 18px;
        height: 40px;
        line-height: 40px;
        padding: 0 10px;
        position: absolute;
        right: 70px;
    }
}


@media only screen and (max-width: 740px) {
    .dmg_results_search_form ul .dmg_results_form_areas, .dmg_results_search_form ul .dmg_results_form_listtype {
        display: none;
    }

    #dmg_results_wrapper #qsearch_term_wrapper .dmg_layout_qsearch_term {
        width: 100%;
    }

    .dmg_results_search, .dmg_results_search_form ul {
        height: auto;
    }

    #dmg_results_wrapper ul {
        grid-template-columns: auto auto;
    }

    #dmg_results_wrapper #qsearch_term_wrapper {
        grid-column: span 2;
    }
}

#dmgmap_wrap {
    width: 100%;
    transition: width 500ms ease-in-out 0s;
}


@media only screen and (min-width: 1200px) {

    #dmgmap_wrap {
        width: 75%;
    }

}

.dmg_results_map_wrapper.full-map #dmgmap_wrap {
    width: 100%;
}

@media only screen and (min-width: 1570px) and (max-width: 1630px) {
    .dmg_listing_mlslogo img {
        height: 30px;
        margin-top: 15px;
    }
}

@media only screen and (min-width: 1520px) and (max-width: 1570px) {
    .dmg_listing_mlslogo img {
        height: 25px;
        margin-top: 17px;
    }
}

@media only screen and (min-width: 1370px) and (max-width: 1520px) {
    .dmg_listing_mlslogo img {
        height: 25px;
        margin-top: 20px;
    }

    .dmg_results_listing .dmg_listing_price {
        font-size: 17px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1370px) {
    .dmg_listing_mlslogo img {
        height: 22px;
        margin-top: 22px;
    }

    .dmg_results_listing .dmg_listing_price {
        font-size: 16px;
    }

    .dmg_results_listing .dmg_listing_amen_item {
        font-size: 12px;
    }
}

@media only screen and (min-width: 1200px) and (max-width: 1260px) {
    .dmg_listing_mlslogo img {
        height: 20px;
        margin-top: 24px;
    }

    .dmg_results_listing .dmg_listing_price {
        font-size: 15px;
    }

    .dmg_results_listing .dmg_listing_amen_item {
        font-size: 12px;
    }
}
