
.dmg_results_search_form {padding-top: 4px;}

#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 center no-repeat; background-size: 15px 9px;
}

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

	#dmg_results_wrapper #qsearch_term_wrapper {width: 100%; box-sizing: border-box;}
	.dmg_results_search_form ul > .dmg_results_form_areas {width: 28%;}
	#example_entries {width: 175px !important}


}




.dmg_results_map_wrapper {
    height: 100%;
    display: table;
    display: flex;
    flex-flow: row-reverse;
}

.dmg_results_listing_photo,
.dmg_results_listing_details {
    width: 100%;
    max-height: 450px;
}

.dmg_results_listing_details {
    padding: 10px;
}

.dmg_results_table {
    width: 700px;
}

#dmgmap_wrap {
    width: calc(100% - 700px);
}

.dmg_results_table_row {
    clear: both;
}

.dmg_results_table_row .dmg_results_listing {
    width: 48%;
    float: left;
    margin-top: 0;
    overflow: visible;
}

@media only screen and (max-width: 1200px) {
    .dmg_results_table {
        width: 350px;
    }
    
    #dmgmap_wrap {
        width: calc(100% - 350px);
    }

    .dmg_results_table_row .dmg_results_listing {
        width: 100%;
    }
}

@media only screen and (max-width: 786px) {
    .dmg_results_table {
        width: 0;
    }

    #dmgmap_wrap {
        width: 100%;
    }
}


.dmg_results_table_row .dmg_listing_amen,
.dmg_results_table_row .dmg_listing_address {
    font-size: 14px;
}

.dmg_results_table_row .dmg_listing_price {
    font-size: 26px;
}


.dmg_results_listing_photo:after {
    content: '';
    width: 100%;
    position: absolute;
    background: linear-gradient(0deg, black, transparent);
    left: 0;
    opacity: 0.4;
    height: 50%;
    bottom: 0;
    pointer-events: none;
}

.dmg_results_listing {
    border-radius: 6px;
    /* overflow: hidden; */
    /* box-shadow: 2px 2px 3px #f1eaea; */
    margin-top: 10px;
    margin-top: 25px;
    margin-bottom: 15px;
    -webkit-box-shadow: 0 0 8px rgb(0 0 0 / 10%);
    box-shadow: 0 0 8px rgb(0 0 0 / 10%);
    transform: all 0.5s ease;
}

.dmg_results_listing:hover {
    -webkit-box-shadow: 0 0 8px rgb(0 0 0 / 20%);
    box-shadow: 0 0 8px rgb(0 0 0 / 20%);
    transform: all 0.5s ease;
}

.dmg_results_photo_controls {
    z-index: 1;
}

.dmg_results_listing_photo .dmg_listing_save {
    top: initial;
    bottom: 10px;
    z-index: 1;
}

#dmg_results_wrapper #qsearch_term_wrapper .dmg_layout_qsearch_term {
    border: 2px solid #c0c0c0;
    border-radius: 3px;
}

.dmg_listing_mlslogo img {
    margin: 0;
    position: relative;
    left: initial;
    right: initial;
    bottom: initial;
    display: block;
    margin-top: 12px;
    max-width: 120px;
    height: auto;
}

@media only screen and (max-width: 920px) {
    #dmg_layout_internal .dmg_listing_mlslogo img {
        height: auto;
        width: 50%;
        max-width: 210px;
    }
}

.dmg_listing_mlslogo .mls-name {
    margin-top: 20px;
    display: block;
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 12px;
    text-align: left;
}

.listing-status .checkbox_label {
    position: relative;
}

.listing-status .checkbox_label:after {
    content: '';
    display: block;
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    left: 27px;
    z-index: 1;
    top: 6px;
    background-color: #efefef;
}

.listing-status .search_options_forsale:after {
    background-color: #54C029;
}
.listing-status .search_options_contingent:after {
    background-color: #FF8800;
}
.listing-status .search_options_pending:after {
    background-color: #F8E71C;
}
.listing-status .search_options_sold:after {
    background-color: #FF2F2F;
}
.listing-status .search_options_comingsoon:after {
    background-color: #f26722;
}

.listing-status .checkbox_label img {
    opacity: 0;
}

.dmg_listing_photo_banner {
    right: 10px;
    top: 10px;
    left: initial;
    z-index: 1;
}

.dmg_listing_banner.new {
    background-color: rgb(57 191 55 / 90%);
}

.dmg_listing_banner_wrap {
    width: 75%;
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: initial;
    height: auto;
}

.dmg_listing_address {
    font-weight: bold;
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 13px;
    display: block;
    width: 100%;
    margin: 10px 0 11px;

    font-weight: 400;
    margin: 2px 0 2px;
    line-height: 1.5em;
}

.dmg_listing_type {
    font-size: 15px;
    margin-top: 2px;
    margin-bottom: 0px;
}

.dmg_listing_banner {
    display: inline-block;
    padding: 3px 5px;
    font-size: 13px;
    font-weight: bold;
    border-radius: 4px;
    margin-bottom: 5px;
    height: auto;
}

.matterport_tour img {
    width: 10px;
    margin-right: 0px;
    display: inline;
    height: 12px;
    margin-bottom: -1px;
}


.dmg_results_search_form ul > li {
    font-size: 15px;
}

@media only screen and (min-width: 1510px) {
    .search-bar-top li:nth-child(n + 2):not(.floatRight) {
        width: calc((100% - 763px) / 6);
        text-align: center;
    }
       
    .search-bar-top .dmg_select_display {
        width: 110px;
        padding-right: 10px;
    }
}

/* @media only screen and (min-width: 1200px) {
    .search-bar-top li:nth-child(n + 2):not(.floatRight) {
        width: calc((100% - 743px) / 6);
        text-align: center;
    }
} */

.dmg_results_form_listtype {
    min-width: 130px;
}

/* .nav-inrix-icon a {
    font-size: 0;
} */

.dmg_results_share_wrapper .visuallyhidden {
    display: block;
    height: initial;
    max-height: initial;
    font-size: 15px;
    visibility: visible;
    position: relative;
    bottom: initial;
    overflow: visible;
}

.results_nav_save,
a.dmg_results_share_wrapper {
    padding: 0px 10px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-flow: row-reverse;
    color: #707070;
}

a.results_nav_save:hover {
    color: #707070;
}

.nav-inrix-icon i,
.dmg_results_share_wrapper i {
    font-size: 20px;
    line-height: 34px;
    margin: 0 0 0 5px;
    color: #707070;
}

@media only screen and (min-width: 1300px) {
    .nav-inrix-icon i,
    .dmg_results_share_wrapper i {
        color: #000;
        /* margin-top: 5px; */
    }
}

@media only screen and (max-width: 1390px) {
    .dmg_results_search_form ul > li,
    .dmg_results_share_wrapper .visuallyhidden {
        font-size: 13px;
    }
    
    .dmg_results_form_listtype {
        min-width: initial;
    }
}

@media only screen and (max-width: 1300px) {
    .results_nav_save,
    a.dmg_results_share_wrapper {
        height: 34px;
    }
}

@media only screen and (max-width: 1260px) {
    .results_nav_save, a.dmg_results_share_wrapper {
        flex-flow: column;
        font-size: 10px;
        justify-content: flex-start;
        align-items: center;
        height: 32px;
        line-height: 0;
        padding: 0 4px; 
    }

    .nav-inrix-icon i, .dmg_results_share_wrapper i {
        height: 20px;
        line-height: 20px;    
        margin-bottom: 5px;
    }

    .dmg_results_share_wrapper .visuallyhidden {
        font-size: 10px;
    }
}

@media only screen and (max-width: 600px) {
    .dmg_results_share_wrapper .visuallyhidden,
    .results_nav_save, a.dmg_results_share_wrapper {
        font-size: 0px;
    }

    /*
    .nav-inrix-icon i, .dmg_results_share_wrapper i {
        height: 40px;
        line-height: 40px;
        margin-bottom: 0px;
        font-size: 23px;
        padding: 0;
        margin: 0;
    }

    .nav-inrix-icon i {
        padding: 0 6px;
    }
    */
    
}

#dmg_results_nav_areas + .dmg_results_nav_control {
    max-width: 120px;
    /* padding-right: 10px; */
}


.dmg_results_listing .dmg_listing_price {
    position: absolute;
    left: 10px;
    bottom: 10px;
    font-size: 30px;
    color: #fff;
    font-weight: bold;
    z-index: 1;
    display: flex;
    align-items: center;
    overflow: visible;
}

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

.dmg_results_listing .dmg_listing_price .price-change {
    font-size: 15px;
    line-height: 15px;
    color: #5cd65c;
    display: inline-block;
    margin-left: 5px;
}

.dmg_results_listing .request_information {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: block;
    border: 2px solid #666666;
    background: transparent;
    font-size: 16px;
    border-radius: 5px;
    color: #666666;
    padding: 5px 13px;
    cursor: pointer;
}

.dmg_results_listing .request_information:hover {
    color: #fff;
    background-color: #666666;
}

.dmg_results_listing .dmg_listing_amen {
    width: 100%;
    height: auto;
    background: initial;
    position: relative;
    left: initial;
    border: initial;
    text-align: left;
    display: block;
    overflow: hidden;
}

.dmg_results_listing .dmg_listing_amen_item {
    width: auto;
    padding: 0;
    margin: 0;
    padding-right: 5px;
    font-size: 15px;
}


.dmg_results_listing .dmg_listing_amen_item + .dmg_listing_amen_item {
    padding-left: 7px;
    border: 0;
}

.amen-row {
    display: flex;
    margin-bottom: 5px;
}

.dmg_results_listing.amen_bar {
    padding-bottom: 0;
}

.dmg_amen_value {
    margin-bottom: 0;
    font-weight: bold;
    display: inline-block;
    margin-right: 5px;
}


.dmg_results_listing_photo .dmg_listing_save:hover,
.dmg_results_listing_photo .dmg_listing_save.saved_listing {
    color: #418FDE;
}

.dmg_results_listing_photo {
    border-top-right-radius: 6px;
    border-top-left-radius: 6px;
    overflow: hidden;
}


.dmg_listings_mlsregs {
    font-size: 10px;
    margin-top: 0;
    margin-left: 0;
    position: absolute;
    top: -13px;
    line-height: 10px;
}

.dmg_listings_mlsregs br {
    display: none;
}

.dmg_listings_mlsregs em {
    font-style: normal;
}


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

    .dmg_results_share_wrapper .visuallyhidden {
        display: none !important;
    }

    .results_nav_save, a.dmg_results_share_wrapper {
        font-size: 0;
    }

    .nav-inrix-icon i, .dmg_results_share_wrapper i {
        margin: auto;
    }



}


.cssmodal {
    display: none;
     /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 10000; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.7); /* Black w/ opacity */
}

/* Modal Content */
.css-modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    border: 0;
    width: 92%;
    max-width: 400px;
   	min-height: 300px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s;
    border-radius: 6px;
    overflow: hidden;
}

#modal_share .modal-content {min-height: 280px;}

#modal_texttome .modal-content {min-height: 210px;}
#modal_texttome .modal-body {min-height: 150px;}


/* Add Animation */
@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}


.modal_header_text {line-height: 40px; color: #FFFFFF;}

.modal-body {min-height: 280px; padding: 2px 16px;}
#modal_share .modal-body {min-height: 220px; padding: 10px 10px 0 10px;}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}


.modal-body {
	padding: 10px;
}


.modal-body input[type="text"], .modal-body input[type="email"] {width: 100%; height: 38px; background-color: #EFEFEF; font-size: 16px; color: #242424; margin-bottom: 10px; padding: 0 0 0 5px; font-size: 14px; border-radius: 6px; border: 0; box-sizing: border-box;}
.modal-body textarea {width: 100%; max-width: 100%; height: 60px; padding: 5px; margin: 0 auto 15px; background-color: #EFEFEF; border-radius: 6px; border: 0; font-size: 16px; color: #242424; box-sizing: border-box; resize: vertical;}

.modal-body input::-webkit-input-placeholder, .modal-body textarea::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color:#242424;
  font-size: 16px;
}
.modal-body input::-moz-placeholder, .modal-body textarea::-moz-placeholder { /* Firefox 19+ */
  color: #242424;
  font-size: 16px;
}
.modal-body input:-ms-input-placeholder, .modal-body textarea:-ms-input-placeholder { /* IE 10+ */
  color: #242424;
  font-size: 16px;
}
.modal-body input:-moz-placeholder, .modal-body textarea:-moz-placeholder { /* Firefox 18- */
  color: #242424;
  font-size: 16px;
}

#tour_html_container .detail_submit_button {max-width: 190px;}

.detail_submit_button {height: 38px;
    width: 100%;
    padding: 0;
    margin: 0 auto;
    background: #666666;
    border: 0;
    line-height: 40px;
    vertical-align: middle;
    font-size: 16px;
    color: #FFFFFF;
    text-align: center;
    display: block;
    cursor: pointer;
    }
    
.detail_submit_button:hover {    
	filter: brightness(0.9);
}

.preferred_communication {
	width: 100%;
	height: 38px;
    background-color: #EFEFEF;
    font-size: 16px;
    color: #242424;
    margin-bottom: 15px;
    padding: 0 0 0 5px;
    font-size: 14px;
    border-radius: 6px;
    border: 0;
    box-sizing: border-box;
		
}

/* The Close Button */
.modal-header .myclose {
	margin-right: 10px;
    color: #fff;
    background-color: transparent; 
    float: right;
    font-size: 28px;
    font-weight: bold;
    line-height: 1em;
    vertical-align: middle;
    margin-top: 3px;
    position: absolute;
    right: 0;

}

.modal-header .myclose:hover,
.modal-header .myclose:focus {
    color: #efefef;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    height: 40px;
    padding: 0;
    background-color: #666666;
    line-height: 40px;
    vertical-align: middle;
    text-align: center;
    font-size: 20px;
    color: #FFFFFF;
}

.modal_header_text {line-height: 40px; color: #FFFFFF;}

.modal-body {min-height: 280px; padding: 2px 16px;}
#modal_share .modal-body {min-height: 220px; padding: 10px 10px 0 10px;}

.modal-footer {
    padding: 2px 16px;
    background-color: #5cb85c;
    color: white;
}


.modal-body {
	padding: 10px;
}


.modal-body legend {
    display: none;
}

.modal-body form ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.modal-body input[type="text"], .modal-body input[type="email"] {
    width: 100%;
    height: 38px;
    background-color: #EFEFEF;
    font-size: 16px;
    color: #242424;
    margin-bottom: 10px;
    padding: 0 0 0 5px;
    font-size: 14px;
    border-radius: 6px;
    border: 0;
    box-sizing: border-box;
}

.modal-body textarea {
    width: 100%;
    max-width: 100%;
    height: 60px;
    padding: 5px;
    margin: 0 auto 15px;
    background-color: #EFEFEF;
    border-radius: 6px;
    border: 0;
    font-size: 16px;
    color: #242424;
    box-sizing: border-box;
    resize: vertical;
}

.modal-body input::-webkit-input-placeholder, .modal-body textarea::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  color:#242424;
  font-size: 16px;
}
.modal-body input::-moz-placeholder, .modal-body textarea::-moz-placeholder { /* Firefox 19+ */
  color: #242424;
  font-size: 16px;
}
.modal-body input:-ms-input-placeholder, .modal-body textarea:-ms-input-placeholder { /* IE 10+ */
  color: #242424;
  font-size: 16px;
}
.modal-body input:-moz-placeholder, .modal-body textarea:-moz-placeholder { /* Firefox 18- */
  color: #242424;
  font-size: 16px;
}

#dmg_mhf_saveListing_modal .modal-content-saveListing {
    border: 0;
    border-radius: 6px;
    overflow: hidden;
}

#dmg_mhf_saveListing_modal h2 {
    width: 100%;
    max-width: 330px;
}

.saved_listing i.fa {
    font-weight: bold;
}


/* == Phone
============================================================================ */
@media only screen and (max-width: 480px) {
	.cssmodal {padding-top: 10px;}
}









@media only screen and (max-width: 1000px) {
    .dmg_results_listing {
        width: 48%;
    }
}

@media only screen and (max-width: 700px) {
    .dmg_results_listing {
        width: 100%;
    }
}