#dmg_layout_header.dmg_header_internal {position: relative;}

#dmg_layout_internal {width: 100%; max-width: 1260px; padding: 20px; margin: 30px auto; position: relative; box-sizing: border-box;}
#dmg_layout_internal-page {padding: 10px 0;}

.dmg_layout_internal_photo {margin: 0 0 15px 15px; padding: 4px; border: 1px solid #e5e5e5; box-shadow: 0 0 10px #cccccc; float: right;}
.dmg_internal_custom li {margin-bottom: 8px; line-height: 1.5em;}
#dmg_advanced_additional_wrapper p {margin: 0;}
#dmg_layout_internal .dmgpriceinput {margin-right: 0;}
#dmg_contact_wrapper {font-size: 1.25em;}


#dmg_layout_internal h1 {font-family: 'Roboto Slab', serif; font-size: 34px; color: #012b55; font-weight: normal;}
#dmg_layout_internal h2 {font-family: 'Roboto Slab', serif; font-size: 28px; color: #005aa8; font-weight: normal;}
#dmg_layout_internal h3 {font-family: 'Roboto Slab', serif; font-size: 20px; color: #333333; font-weight: normal;}

#dmg_marketing_featured h1, #dmg_marketing_featured h2 {font-family: 'Roboto Slab', serif;}
#dmg_marketing_featured {margin: 0; padding: 40px 0px 0; background: #147daf url(/images/layout/featured-bg.jpg) no-repeat; background-size: 100% auto;}

#dmg_marketing_markets {padding: 0 0 20px;}
#dmg_marketing_markets h2 .section_title {font-family: 'Roboto Slab', serif; font-size: 28px; line-height: 1em; color: #FFFFFF; font-weight: 300; text-align: center; margin: 0 0 20px 0; padding: 0px; display: block;}

#dmg_services_affiliates {text-align: center}
#dmg_services_affiliates img {margin: 0 20px;}

#dmg_layout_main .dmg_banner_728:first-child {margin: 10px auto 0;}
.dmg_banner_728 {width: 728px; margin: 0 auto 10px;}
.dmg_banner_300 {width: 300px; margin: 0 auto 10px;}

/* TOP AND SIDEBAR FORMATING
-------------------------------------------------*/
#dmg_layout_internal-top-bar {width: 100%; max-width: 960px; height: 204px; margin: -20px 0 0 -8px; padding: 0; float: left;}
#dmg_layout_internal-page .dmg_advanced_wide_divider {display: none;}

.dmg_internal_area_listings.dmg_internal_subarea_mapsearch #dmg_layout_internal-top-bar {display: none;}

#dmg_layout_nav-holder.mapsearch #dmg_advanced_nav .dmg_nav_wrapper > ul {margin-top: 2px;}

#dmg_layout_internal-top-bar + #dmg_layout_internal-page .ds_detail_socialtop {padding-top: 30px;}	 
	
#dmg_layout_internal-page #dmg_detail_detail_one .dmg_detail_header h1	{font-size: 24px;}
#dmg_layout_internal-page #dmg_detail_detail_one .dmg_detail_header {border: 0; padding: 0; margin-bottom: 10px; background: none;}
#dmg_layout_internal-page #dmg_404_wrapper {margin: 180px auto 0;} 
#dmg_layout_internal #dmg_layout_internal-page #dmg_404_wrapper #dmg_404_address_details h1 {
	width: auto; height: auto; padding: 0; margin: 0; background: none; color: inherit; line-height: 1em; vertical-align: middle; float: none; position: relative; left: 0; top: 0; box-sizing: border-box;}	

#dmg_layout_internal-page.sideBar {width: auto; max-width: 630px; margin-right: 300px}
#dmg_layout_internal-side-bar {width: 270px; margin: 40px 0 0 0;}

#dmg_layout_internal-page.sideBar img {max-width: 100%; height: auto; margin: 0 auto; display: block;}

#dmg_internal_qsearch {width: 270px; padding: 20px; margin-bottom: 30px; background: #dfdfdf; box-sizing: border-box;}
#dmg_internal_qsearch legend {display: none;}
#dmg_internal_qsearch ul {list-style: none; margin: 0 ; padding: 0;}
#dmg_internal_qsearch li {height: 30px; margin-bottom: 10px;}
#dmg_internal_qsearch ul li:last-child {margin-bottom: 0;}

#dmg_internal_qsearch input[type="text"] {width: 230px; height: 30px; padding: 0 0 0 4px; border: 0; border-radius: 3px; font-family: Roboto, sans-serif; font-size: 14px; line-height: 30px; vertical-align: middle; box-sizing: border-box; box-shadow: 0 0 8px #C5C4C4;}
#dmg_internal_qsearch #dmg_layout_qsearch_term {margin-bottom: 0; color: #005aa8;}
#dmg_internal_qsearch select {width: 230px;}
#dmg_layout_qstype_chzn {margin-bottom: 0;}
#dmg_internal_qsearch .dmg_qsearch_button {width: 230px;}

#dmg_internal_qsearch .chzn-container {}
#dmg_internal_qsearch .chzn-single {width: 230px; height: 30px; background-color: #FFFFFF; background-image: none; padding-left: 3px; border-radius: 3px; border: 0; font-family: Roboto, sans-serif; font-size: 14px; box-sizing: border-box; box-shadow: 0 0 8px #C5C4C4;}
#dmg_internal_qsearch .chzn-results li {height: 16px; line-height: 16px; margin-bottom: 3px; margin-right: 0; padding: 4px; float: none;}
#dmg_internal_qsearch .chzn-container-single .chzn-search input {position: absolute; left: -9000px;}
#dmg_internal_qsearch .chzn-container-single .chzn-drop {border: 0; border-top: 0; z-index: 900;}
#dmg_internal_qsearch .chzn-container-single .chzn-single div {background: none; border-left: 0;}

.dmg_sidebar_links ul {list-style: none; margin: 0; padding: 0;}
#dmg_layout_internal-side-bar h2 {color: #012b55; font-size: 24px;}
#dmg_layout_internal-side-bar .dmg_sidebar_links li {margin-bottom: 0; border-top: 1px solid #cccccc; line-height: 1em;}
.dmg_sidebar_links a {padding: 10px; line-height: 1.125em; display: block;}
#dmg_layout_internal-side-bar .dmg_sidebar_links a:link, #dmg_layout_internal-side-bar .dmg_sidebar_links a:visited, #dmg_layout_internal-side-bar .dmg_sidebar_links a:active {color: #005aa7;} 
#dmg_layout_internal-side-bar .dmg_sidebar_links a:hover {background: #EFEFEF; color: #5D90CC; text-decoration: none;}
#dmg_layout_internal-side-bar .dmg_sidebar_links a.active_link {padding: 10px 10px 10px 20px; background: #EFEFEF url(/images/layout/arrow-sidenav.png) 5px center no-repeat; color: #5D90CC;}


.dmg_property_price {position: absolute; right: 10px; top: 162px;}
.dmg_property_price span:first-child {display: none;}

#dmg_results_wrapper #qsearch_term_wrapper .dmg_layout_qsearch_term {width: 230px !important; text-overflow: ellipsis}
.dmg_results_search_form ul > li {padding: 0 5px !important; font-size: 13px !important;}

#dmg_featured_areas_table {overflow: hidden;}
#dmg_featured_areas_table div {width: 25%; margin-bottom: 6px; float: left;}

#dmg_results_wrapper .dmg_results_title {line-height: 1.5em !important;}

/* == Offices ==================== */
.office-map {max-width: 100%; margin: 0 auto 25px; display: block;}
#dmg_clickable_map {}
#dmg_visual_map {display: none;}

#dmg_office_boxes {width: 100%; max-width: 800px; margin: 25px auto;}
.dmg_office_box {width: 25%; margin-bottom: 30px; display: table; float: left;}

.dmg_office_number {padding-right: 5px; font-size:28px; display: table-cell; vertical-align: middle;}
.dmg_office_details {line-height: 1.25em; display: table-cell;}


/* == Agent Search ==================== */
#dmg_agent_search_wrapper {clear: both;}
#dmg_agent_search {width: 100%; max-width: 850px; margin: 15px auto 30px auto; padding: 5px 15px 15px 15px; color: #FFFFFF;
border-radius: 3px;
background: #17375a;
position: relative;
box-sizing: border-box;
}
#dmg_agent_search h2 {color: #FFF; margin: 10px 0;}

#dmg_agent_letters {padding-left: 10px; padding-bottom: 10px; border-bottom: 1px dashed #CCCCCC; overflow: hidden;}

#dmg_agent_letters a {width: 24px; height: 24px; line-height: 24px; vertical-align: middle; margin-right: 7px; background: #E51837; color: #FFFFFF; font-weight: bold; text-align: center; text-decoration: none; display: block; float: left;
border-radius: 3px;
position: relative;
}
#dmg_agent_letters a:hover {background: #FFFFFF; color: #000000}
#dmg_agent_search form {margin: 0 0 0 10px; padding: 0; overflow: hidden}
#dmg_agent_search label {width: 84px; line-height: 22px; vertical-align: middle; margin-right: 4px; display: block; float: left;}
#dmg_agent_search input[type=text] {width: 100px; margin-right: 22px; float: left;}
#dmg_agent_search select {float: left;}
#dmg_agent_search font {line-height: 22px; vertical-align: middle; margin-right: 4px; display: block; float: left;}
#dmg_agent_search_submit {padding: 4px 8px; margin-left: 18px; background: #E51837; color: #FFF; font-weight: bold; text-align: center; display: block; float: left;
border-radius: 3px;
position: relative;
float: left;
}
#dmg_agent_search_submit:hover {background: #FFFFFF; color: #000000}


/* == Responsive Iframes for videos and such ==================== */
.dmg_internal_iframe_wrapper {max-width: 600px; margin: 15px auto;}
.dmg_internal_iframe_responsive {height: 0; padding-bottom: 56.25%; padding-top: 25px; position: relative; overflow: hidden;}
.dmg_internal_iframe_responsive iframe {width: 100% !important; height: 100% !important; position: absolute; top: 0; left: 0; display: block;}


/* SIDEBAR FORM
=========================================== */
#dmg_sidebar_form_wrapper {width: 270px; margin-bottom: 30px; padding: 20px; background: #dfdfdf;  box-sizing: border-box;}
#dmg_sidebar_form {width: 230px; box-sizing: border-box;}
#dmg_sidebar_form legend {display: none;}
#dmg_sidebar_form ul {list-style: none; margin: 0 ; padding: 0;}
#dmg_sidebar_form li {margin-bottom: 10px;}
#dmg_sidebar_form ul li:last-child {margin-bottom: 0;}

#dmg_sidebar_form input[type="text"] {width: 230px; height: 30px; padding: 0 0 0 4px; border: 0; border-radius: 3px; font-family: Roboto, sans-serif; font-size: 14px; line-height: 30px; vertical-align: middle; box-sizing: border-box; box-shadow: 0 0 8px #C5C4C4;}
#dmg_sidebar_form textarea {width: 230px; height: 80px; padding: 4px 0 0 4px; border: 0; border-radius: 3px; font-family: Roboto, sans-serif; font-size: 14px; line-height: 1.125em; vertical-align: middle; box-sizing: border-box; box-shadow: 0 0 8px #C5C4C4;}
#dmg_sidebar_form button {width: 230px;}


#dmg_sidebar_form > fieldset > ul > li:nth-child(6) > button {}

.dmg_qsearch_button {
    width: 160px;
    height: 36px;
    padding: 0 5px;
    background: #005aa8;
    font-family: 'Roboto Slab', serif;
    font-size: 16px;
    color: #FFFFFF;
    line-height: 36px;
    vertical-align: middle;
    text-align: center;
    border: 1px solid #2699fb;
    box-shadow: inset 0 0 16px #003869;
    border-radius: 3px;
    box-sizing: border-box;
}


#dmg_lp_onethird h2 {font-size: 18px;}
#dmg_lp_wrapper .dmg_lp_wdgt_market_info p {font-size: 14px;}

/* == Nav Overrides ===================== */
#dmg_layout_nav li ul li a:link, #dmg_layout_nav li ul li a:visited, #dmg_layout_nav li ul li a:active {padding: 0 10px;}

#dmg_advanced_category_details_wrapper #dmg_advanced_residential_wrapper label {font-size: 13px;}

/* == MHF Modal ===================== */
#login_title {color: #333333; font-weight: bold; font-size: 1.5em; margin-bottom: 2px; padding-left: 22px; width: 400px;}
.login_label {width: 160px; margin-bottom: 8px; padding-right: 0.5em; line-height: 20px; vertical-align: middle; text-align: right; display: block; float: left;}
.login_input {margin-bottom: 8px; float: left;}
.alphacube_buttons input {background: #005aa8; color: #FFFFFF; border: 0; text-transform: uppercase; font-weight: bold; margin: 0 5px;}    
.alphacube_buttons input:hover {background: #EA485F; color: #FFFFFF;} 
.forgot_button {display:inline-block; margin-top: 8px;}

.floatRight {float: right !important;}

#dmg_layout_disclaimer #google_translate_div_element {display: none;}

.disclaimer_links_span + div {display: none;}

#dmg_translate_wrapper {height: 28px; background: #efefef;}
#dmg_translate_wrapper #google_translate_div_element {float: right;}
#dmg_translate_wrapper .goog-te-gadget {}
#dmg_translate_wrapper .goog-te-gadget div {display: inline-block;}
#dmg_translate_wrapper .goog-te-combo {margin-right: 10px;}

#dmg_layout_disclaimer > br:nth-child(7) {display: none;}

/* SITEMAP
-------------------------------------------------*/
#sitemap li.heading { font-size:1.325em; font-weight:bold; margin-bottom:4px; }
#sitemap #toprow, #sitemap #bottomrow  { width:100%; float:left; margin-bottom:10px; }
#sitemap ul.column { list-style: none; width:32%; float:left; line-height:1.6em; }

#dmg_layout_internal #dmg_layout_internal-top-bar {display: none;}


.dmg_internal_iframe_wrapper.noclear {clear: none;}



/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 820px) {
	.dmg_office_box {width: 33%; height: 120px;}	
}

/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 930px) {
	#dmg_featured_areas_table div {width: 33% !important; float: left;}
}

/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 900px) {
	#dmg_services_affiliates img {margin-bottom: 20px;}
}

/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 900px) {
	#dmg_agent_search {max-width: 385px;}
	#dmg_agent_letters a {margin-bottom: 7px}
	
	#dmg_agent_search h2 {text-align: center; font-size: 18px}
	#dmg_agent_search form {width: 100%; max-width: 300px; margin: 0 auto;}
	#dmg_agent_search label {width: 100%; display: block;}
	#dmg_agent_search font {width: 95%;}
	#dmg_agent_search_submit {margin: 0 auto; clear: left; float: none;}
	#dmg_agent_search input[type="text"] {width: 100%; height: 30px; padding: 0 0 0 5px; margin-bottom: 12px; box-sizing: border-box;}
	#dmg_agent_search select {width: 100%; margin-bottom: 18px;}
}

/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 786px) {
	#dmg_internal_sidebar_table {display: table;}
	#dmg_layout_internal-side-bar {display: table-footer-group}
	#dmg_layout_internal-side-bar + #dmg_layout_internal-page {display: table-header-group}
	#dmg_layout_internal-side-bar {width: 270px; margin: 10px auto; float: none; display: block;}
	
	#dmg_featured_areas_table div {width: 25% !important; text-align: center; float: left;}
}

/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 786px) {
	#dmg_featured_areas_table div {width: 33% !important; float: left;}
}

/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 650px) {
	.dmg_office_box {width: 50%; height: 120px;}	
}

/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 500px) {
	#dmg_featured_areas_table div {width: 50% !important; float: left;}
	#dmg_layout_internal-page.sideBar img {max-width: 100%; height: auto; margin: 0 auto !important; display: block;}
	
	#dmg_clickable_map {display: none;}
	#dmg_visual_map {display: block;}
	
	#dmg_office_header {width: 100%;}
	#dmg_office_header, #dmg_office_header tbody, #dmg_office_header tr, #dmg_office_header td {width: 100%; display: block}
	
	#dmg_office_header td {text-align: center;}
}

/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 480px) {
	#dmg_office_boxes {width: 200px;}
	.dmg_office_box {width: 100%; height: 120px;}	
}



/* == Tablet Portrait
============================================================================ */
@media only screen and (max-width: 320px) {
	#dmg_internal_sidebar_table {width: 304px;}
	#dmg_layout_internal-page.sideBar {width: 300px;}
}