/* COLORS -
primary = #0067b1
secondary = #9f0606
tertiary = #EFEFEF
beige = #dbdbdb 
* 
* */



/* CSS Reset Changes */

html {background: 
#f7f7f7 url('/images/layout5/homepage-bg.jpg') center 138px no-repeat; background-size: 100% 420px; }


body {font-size: 100%; margin: 0 auto; font-family: 'Questrial', sans-serif;}

p, h1, h2, h3, h4, h5, h6, img, div, span, form, fieldset, label, legend {margin: 0px; padding: 0px; border: 0px; font-size: 1em;}
legend {display: none;}

/* Fonts -  1.375em = 22px / 1.25em = 20px / 1.125em = 18px / 1em = 16px 
.875em = 14px / .75em = 12px / .687em = 11px / .625em = 10px */

h1, h2, h3, h4, h5, h6 {}

.dmg_layout_container {width: 960px; margin: 0 auto; padding: 0;}


/* == Header ==================== */
#dmg_layout_header_bg {background: #dbdbdb; box-shadow: 0 0 6px #333333;}
#dmg_layout_header {width: 960px; height: 138px; padding-top: 20px; margin: 0 auto; box-sizing: border-box;}
.dmg_layout_logo {width: 168px; height: 97px; border: 0; float: left;}


/* == Homefinder ==================== */
.dmg_layout_mhf {padding: 5px 10px; height: 15px; vertical-align: middle; color: #FFFFFF; font-size: 14px; background: #b2b2b2; float: right; padding: 5px 10px;}
#dmg_homefinder_title {margin-right: 8px; display: inline-block;  color: #004d83;}
.dmg_layout_mhf a:link, .dmg_layout_mhf a:visited, .dmg_layout_mhf a:active {padding: 0 5px; color: #353535; text-decoration: none; display: inline-block;}
.dmg_layout_mhf a:hover {color: #0067b1; text-decoration: underline;}
.dmg_layout_phone {line-height: 26px; vertical-align: middle; margin-right: 12px; color: #0092a0; font-size: 18px; display: inline-block; float: right;}
.dmg_homepage_title {margin-top: 20px; font-size: 18px; color: #868686; font-weight: normal; display: inline-block; float: right; clear: right;}



/* == Navigation ==================== */
nav {width: 760px; height: 40px; margin: 5px 0px auto 0; float: right;}
nav ul {list-style: none; margin: 0; padding: 0;}
#dmg_top_nav {text-align:justify}
#dmg_top_nav > li {display: inline-block;}
#dmg_top_nav:after{content: ''; display: inline-block; width: 100%;}
#dmg_top_nav > li > a:link, #dmg_top_nav > li > a:visited, #dmg_top_nav > li > a:active {padding: 0 0 0 8px; color: #292929; line-height: 40px; vertical-align: middle; text-decoration: none; display: block;}
#dmg_top_nav > li > a:hover, #dmg_top_nav > li:hover > a {background: #0067b1; color: #FFFFFF;}


nav li ul {min-width: 180px; display: block; margin: 0; padding: 0; background: #0067b1; position: absolute; left: -999em; box-shadow: 3px 3px 4px #333333; z-index: 10; clear: both;}
nav li ul ul { margin: -38px 0 0 180px; border-left: 1px solid #595959;}
nav li ul li  { background: #0067b1; float: none; color: #FFFFFF; display: block; height:0; -webkit-transition:height 140ms ease-in; -moz-transition:height 140ms ease-in; -o-transition:height 140ms ease-in; transition:height 140ms ease-in;} /*Menu background*/
#dmg_top_nav > li:hover ul li {
    height: 30px;
}
nav li ul li a:link, nav li ul li a:visited, nav li ul li a:active {padding: 0 5px; font-size: 16px; color: #FFFFFF; text-decoration: none; display: block; line-height: 32px; box-shadow: inset 0 0 6px #00528e; }
#dmg_top_nav li ul li a:hover {background: #00a5ff; box-shadow: none;}
#dmg_top_nav li ul li:hover {background: #00a5ff; color: #FFFFFF; } /*Hover color of text link in menus*/

nav li:hover ul ul { left: -999em; }
nav li:hover ul, nav li li:hover ul { left: auto;}

nav ul li ul li:first-child {border-bottom: 1px solid #00528e;}
nav ul li ul li + li {border-top: 1px solid #007cd4; border-bottom: 1px solid #00528e;}
nav ul li ul li:last-child {border-bottom: 0;}

#dmg_layout_slogan {min-width: 380px; height: 200px; display: table;}
#dmg_layout_slogan div {height: 200px; color: #FFFFFF; font-size: 48px; text-shadow: 0 0 6px #000000;  display: table-cell; vertical-align: middle;}


#dmg_box_wrapper {width: 941px; height: 688px; box-sizing: border-box;}
#dmg_box_wrapper div {width: 221px; min-height: 180px; padding: 20px; color: #FFFFFF; font-size: 14px; box-sizing: border-box; display: inline-block; float: left;}
#dmg_box_wrapper .dmg_box_agent, #dmg_box_wrapper .dmg_box_featured {height: 269px; margin: 19px 0 19px;}
#dmg_box_wrapper .dmg_box_qsearch {width: 461px; height: 288px; margin: 0 19px 19px;}
#dmg_box_wrapper .dmg_box_blog {width: 461px; margin: 0 19px 19px 0;}
#dmg_box_wrapper .dmg_box_3d {margin: 0 19px 19px 0}
#dmg_box_wrapper .dmg_box_relocation {height: 280px; margin: 0 0 19px 0; float: right;}
.dmg_box_property, .dmg_box_land, .dmg_box_hcs {margin: 0 19px 0 0;}
#dmg_box_wrapper .dmg_box_news {min-height: 80px}

.dmg_box_title {margin-bottom: 8px; font-size: 24px; display: block;}

.dmg_box_agent p {margin-bottom: 10px;}
.dmg_box_agent a:link, .dmg_box_agent a:visited, .dmg_box_agent a:active {padding: 10px 0 10px 5px; background: url(/images/layout5/arrow.png) 165px center no-repeat; border-top: 1px solid #c2d750; color: #FFFFFF; font-size: 18px; text-decoration: none; text-transform: uppercase; display: block;}
.dmg_box_agent a:hover {background: #a1bc05 url(/images/layout5/arrow.png) 165px center no-repeat;}

 
.dmg_box_news_date {margin: 8px 0; display: block;}
.dmg_box_blog a:link, .dmg_box_blog a:visited, .dmg_box_blog a:active {color: #FFFFFF; text-decoration: none;}
.dmg_box_blog a:hover {color: #a8c504} 

.dmg_box_featured {}
.dmg_box_featured img {margin-bottom: 8px; border: 2px solid #FFFFFF;}
.dmg_box_featured a:link, .dmg_box_featured a:visited, .dmg_box_featured a:active {color: #FFFFFF; line-height: 1.25em; text-decoration: none;}

.dmg_box_3d a:link, .dmg_box_3d a:visited, .dmg_box_3d a:active {color: #FFFFFF; text-decoration: none; display: block;}
.dmg_box_3d b {width: 76px; line-height: 1.25em; font-weight: normal; display: inline-block;}
.dmg_box_3d img {width: auto; height: 100px; margin: 5px -15px 0 0;}

.dmg_box_relocation em {width: 99px; line-height: 1.25em; font-style: normal; display: inline-block;}
.dmg_box_relocation img {width: 166px; height: 214px; border: 0; margin: -106px -30px 0 0;}
.dmg_box_relocation a:link, .dmg_box_relocation a:visited, .dmg_box_relocation a:active {color: #FFFFFF; text-decoration: none;}

.dmg_box_property img, .dmg_box_land img, .dmg_box_hcs img {margin: 0 auto; border: 0; display: block;}
.dmg_box_property img {width: 158px; height: 103px; margin-top: 18px;}
.dmg_box_land img {width: 164px; height: 94px; margin-top: 18px;}
.dmg_box_hcs img {width: 167px; height: 83px; margin-top: 29px;}

#dmg_box_wrapper .dmg_box_news {padding: 15px 20px;}
.dmg_box_news a:link, .dmg_box_news a:visited, .dmg_box_news a:active {color: #FFFFFF; text-decoration: none;}
.dmg_box_news img {width: 40px; height: 26px; border: 0; margin-top: -9px;}

.box_green {background: #a8c504;}
.box_green .dmg_box_title {color: #c50442;}


.dmg_box_3d.box_green:hover, .dmg_box_land.box_green:hover {background: #a1bc05; box-shadow: inset 0 0 15px #718403}
.dmg_box_relocation.box_blue:hover {background: #004d91 url(/images/layout5/icon-relocation.png) right bottom no-repeat;; box-shadow: inset 0 0 15px #00325e}  
.dmg_box_property.box_red:hover, .dmg_box_news.box_red:hover  {background: #b7053d; box-shadow: inset 0 0 15px #84032c}
.dmg_box_hcs.box_teal:hover, .dmg_box_featured.box_teal:hover {background: #008591; box-shadow: inset 0 0 15px #00565e}

.box_red {background: #c50442;}

.box_teal {background: #0092a0;}
.box_teal .dmg_box_title {color: #a8c504;}


.dmg_box_relocation.box_blue {background: #0053a0 url(/images/layout5/icon-relocation.png) right bottom no-repeat;}
.box_blue {background: #0053a0;}
.box_blue .dmg_box_title {color: #a8c504;}



#dmg_layout_welcome_wrapper {margin-top: 30px; padding-top: 30px; border-top: 1px solid #dedede; overflow: hidden;}
#dmg_layout_welcome_wrapper h2 {margin: 0 0 10px 0; color: #0053a0; font-size: 24px; font-weight: normal;}

#dmg_layout_welcome {width: 840px; margin: 0 auto 50px;}
#dmg_layout_welcome h3 {margin: 0 0 10px 0; color: #c50442; font-size: 16px; font-weight: normal;}
#dmg_layout_welcome p {margin-bottom: 16px; color: #242424; font-size: 14px; line-height: 1.75em;}


#dmg_optimize_featured {width: 700px; margin: 0 auto;}
#dmg_optimize_featured div {width: 220px; min-height: 280px; color: #242424; font-size: 14px; line-height: 1.25em; float: left;}
#dmg_optimize_featured div + div {margin-left: 20px;}
#dmg_optimize_featured div:nth-of-type(4) {margin-left:0;}
#dmg_optimize_featured a {margin-bottom: 8px; color: #242424; text-decoration: none; display: inline-block;}
#dmg_optimize_featured a:hover {color: #0053a0;}
#dmg_optimize_featured img {margin-bottom: 10px; width: 220px; height: 160px; border: 0;}
#dmg_optimize_featured strong {margin-bottom: 8px; color: #9f0606; font-size: 16px; display: inline-block;}


#dmg_layout_internal #dmg_lp_wrapper p {font-size: 14px; line-height: 1.375em;}
#dmg_layout_internal #dmg_lp_wrapper a {font-size: 14px;}
#dmg_lp_wrapper .dmg_lp_wdgt_home {font-size: 13px;}


/* == Qsearch ==================== */
.dmg_box_qsearch .dmg_box_title {margin-bottom: 20px;}
#dmg_layout_qsearch ul {list-style: none; margin: 0; padding: 0;}
#dmg_layout_qsearch li {margin: 0 0 18px 0; float: left;}
#dmg_layout_qsearch input[type="text"] {height: 28px; border: 0; line-height: 28px; vertical-align: middle; box-sizing: border-box; box-shadow: 0 0 10px #565656;}
#dmg_layout_qsearch input[type="checkbox"] {border: 0;}
#address {width: 421px; padding: 0 0 0 5px;}
.dmgpriceinput {width: 202px; padding: 0 0 0 5px;}
#dmg_layout_qsearch label {margin-right: 25px; display: inline-block;}
.dmg_qsearch_button {width: 421px; height: 38px; padding: 0 10px; background: #424242 url(/images/layout5/button-arrows.png) 352px center no-repeat; border: 0; font-size: 16px; color: #FFFFFF; text-align: left; box-sizing: border-box;}
.dmg_qsearch_button:hover {background: #0067b1 url(/images/layout5/button-arrows.png) 352px center no-repeat;}
#dmg_box_wrapper .dmg_qsearch_advanced {width: 421px; margin: 0; padding: 0; text-align: right; color: #424242; font-size: 12px;}
.dmg_qsearch_advanced a:link, .dmg_qsearch_advanced a:visited, .dmg_qsearch_advanced a:active {color: #FFFFFF;}



/* == Internal ==================== */
#dmg_layout_internal {width: 930px; min-height: 400px; padding: 15px; margin: 45px auto 25px; background: #FFFFFF; font-family: 'Roboto', sans-serif; color: #333333; font-size: .875em; overflow: hidden; box-shadow: 0 0 10px #333333;}
#dmg_layout_internal h1 {font-family: 'Questrial', sans-serif; color: #0067b1; margin-bottom: 10px; font-size: 2em; font-weight: bold}
#dmg_layout_internal h2 {font-family: 'Questrial', sans-serif; color: #9f0606; font-size: 1.5em; }
#dmg_layout_internal h3 {font-family: 'Questrial', sans-serif; color: #333333; font-size: 1.125em; }


.dmg_internal_custom p {padding-bottom: 8px; line-height: 1.5em;}
.dmg_internal_custom li {margin-bottom: 6px;}

.dmg_layout_internal_photo {padding: 5px; border: 1px solid #0067b1; float: right;}
#dmg_layout_internal form table td {text-align: left;}

#dmg_contact_wrapper {font-size: 1.125em;}

#dmg_layout_office_featured div {background: #FFFFFF;}

/* == Style from Old design ==================== */
.faq_answer {  background: url("/images/layout/faq_a.gif") no-repeat scroll left top transparent;  border-bottom: 1px solid #EEEEEE;margin: 0 0 15px; padding: 0 10px 15px 30px;}
.faq_question { background: url("/images/layout/faq_q.gif") no-repeat scroll left top transparent; margin: 0;   padding: 0 10px 20px 30px;}

.faq_answer {border-bottom: 1px solid #EEEEEE;    margin: 0 0 15px;  padding: 0 10px 15px 30px;}

.orangebutton{background-color: #CC3333!important;}
.orangebutton:hover{background-color: #FC2828!important;}
.bluebutton:hover{background-color: #0053A0!important;}

#dmg_layout_internal #dmg_layout_listings {margin: 20px auto 0; float: none;}
#dmg_layout_internal #dmg_layout_community .dmg_layout_back {display: none;}
#dmg_layout_internal #dmg_layout_listings ul {width: 651px;}
#dmg_layout_internal #dmg_layout_listings .listing {width: 649px; font-size: 14px;}
#dmg_layout_internal #dmg_layout_listings li {font-size: 14px;}
#dmg_layout_internal #dmg_layout_listings {width: 667px;}
#dmg_layout_internal .listingInfo {width: 473px;}

#dmg_results_properties .dmg_results_pagination {width: 96%}
#dmg_results_wrapper .dmg_results_saveSearch {margin-right: 20px}

/*======= Office Map ======*/
.dmg_layout_findAgent{ float: left; width: 188px; height: 263px; background: #ece9e3; padding: 20px; margin-right: 13px; -webkit-border-radius: 4px;-moz-border-radius: 4px;border-radius: 4px; behavior: url(/shared/htc/PIE.php); position: relative;}
.dmg_layout_findAgent ul{ list-style: none; margin: 0; padding:0;}
.dmg_layout_findAgent li{margin-bottom: 20px; }
.dmg_layout_findAgent li label{  display: block; font-size: 0.8em; }
.dmg_layout_findAgent li input, .dmg_layout_findAgent li select{ width: 169px;}
.dmg_layout_findAgent img, #officeMap{ border: none; }

.dmg_layout_officeMap{ float: left; width: 659px;}
.dmg_layout_MyOffices{ float: right; width: 255px;}
#dmg_layout_internal .dmg_layout_MyOffices img { float: left; width: 100px; border: 1px solid #ccc; padding: 5px;}
#dmg_layout_internal .dmg_layout_MyOffices ul{ float: left; width: 120px; font-size: .9em; list-style: none; padding: 0; margin: 0 0 0 10px;}
#dmg_layout_internal .dmg_layout_MyOffices li{ margin-bottom: 2px;}
.dmg_layout_MyOffices a{ color: #333333;}

#dmg_results_wrapper{padding: 0!important; font-family: arial, sans-serif !important;}
.dmg_results_uppercase { font-family: arial, sans-serif !important; text-transform: capitalize !important;}
#dmg_results_refineResults h2 {padding: 7px !important;}
#dmg_results_wrapper{ min-width: 888px!important;}
#dmg_results_wrapper #dmg_results_sortView{width: 98%!important;}
#dmg_results_properties {width: 76%!important;}
.dmg_results_gallery_view #dmg_results_properties {width: 100%!important;}
	
.dmg_results_gallery_view .dmg_results_listing{width: 294px!important;}	

.dmg_results_list_view .dmg_results_listingInfoIdx, .dmg_results_map_view .dmg_results_listingInfoIdx {position: relative; margin: -56px 3px 0px -25px !important;}

.dmg_results_list_view .dmg_results_listingCompany, .dmg_results_map_view .dmg_results_listingCompany {height: 48px !important;}
.dmg_results_map_view .dmg_results_listingCompany {right: -20px}
.dmg_results_list_view .dmg_results_listingCompany {right: -20px;}
#dmg_results_wrapper.dmg_results_gallery_view .dmg_results_listingCompany {height: 40px !important; position: absolute; right: 10px; top: -62px;}

.dmg_results_list_view .dmg_search_listing_area, .dmg_results_map_view .dmg_search_listing_area  {width: 260px;}

.dmg_results_gallery_view  .slider {width: 168px !important;}

#dmg_layout_internal #dmg_layout_centerColumn {margin-bottom: 25px;}

img.floatright {
background: none repeat scroll 0 0 #ECE9E4;
border: 1px solid #0053A0;
float: right;
margin: 15px;
padding: 5px;
}

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


#dmg_layout_leftColumn {font-size: 18px;}



/* == Footer ==================== */
#dmg_layout_footer {background: #FFFFFF; min-height: 480px; overflow: hidden;}
#dmg_layout_footer h2 {margin: 0 0 10px 0; color: #0053a0; font-size: 24px; font-weight: normal;}
#dmg_footer_contact {width: 960px; height: 360px; padding: 40px 0; margin: 0 auto 40px; border-bottom: 1px solid #cccccc; box-sizing: border-box;}
#dmg_footer_company {width: 180px; margin-right: 60px; float: left;} 
#dmg_footer_company span {margin: 16px 0; color: #0067b1; font-size: 24px; display: inline-block;}
#dmg_footer_social img {width: 24px; height: 24px; border: 0; margin: 0 5px 20px 0;}
.dmg_footer_button {width: 160px; height: 30px; margin-bottom: 15px; background: #424242; color: #FFFFFF !important; text-decoration: none; line-height: 30px; vertical-align: middle; text-align: center; display: block;}
.dmg_footer_button:hover {background: #0067b1;}


#dmg_footer_offices {width: 420px; min-height: 294px; float: left;}
#dmg_footer_offices ul {list-style: none; margin: 0; padding: 0;}
#dmg_footer_offices li {margin-bottom: 20px; width: 50%; font-size: 14px; line-height: 1.5em; float: left;}
#dmg_footer_offices strong {font-size: 16px; color: #9f0606;}

#dmg_footer_form {width: 230px; float: right;}
#dmg_footer_contact_form input {width: 230px; height: 28px; padding: 0 0 0 4px; margin-bottom: 10px; color: #484848; line-height: 28px; vertical-align: middle; border: 1px solid #d0d0d0; box-sizing: border-box}
#dmg_footer_contact_form textarea {width: 230px; height: 60px; padding: 0 0 0 4px; margin-bottom: 20px; border: 1px solid #d0d0d0; color: #484848; box-sizing: border-box;}
#dmg_footer_contact_form button {width: 230px; height: 38px; padding: 0 10px; background: #424242 url(/images/layout5/button-arrows.png) 163px center no-repeat; border: 0; font-size: 16px; color: #FFFFFF; text-align: left; box-sizing: border-box;}
#dmg_footer_contact_form button:hover {background: #0067b1 url(/images/layout5/button-arrows.png) 163px center no-repeat;}

#dmg_layout_disclaimer {width: 960px; margin: 0 auto; font-size: 13px; color: #424242;}
#dmg_layout_associations {width: 76px; height: 37px; margin-right: 10px; background: url('/images/layout5/associations.png') no-repeat; float: left;}
#dmg_layout_associations a {width: 38px; height: 37px;display: block; float: left;}
.dmg_shared_copyright {margin-top: 5px; float: left;}

/* == Disclaimer ==================== */
#dmg_layout_disclaimer ul {margin: 0; padding: 0; list-style: none;}
#dmg_layout_disclaimer li {float: left; margin-right: 15px;}



/*== MHF Modal ===================== */
#login_title {color: #0067b1; font-weight: bold; font-size: 1.5em; margin-bottom: 12px; 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: #9f0606; color: #FFFFFF; margin: 0 5px;}


/*== Slideshow   ================ */
#dmg_layout_slideshow {width: 530px; height: 251px; margin-left: 20px; margin-top: 10px; padding-top: 10px; float: left;}
#dmg_layout_slideshow_images {position:relative; display:block; margin:0px; padding:0px; width:530px; height:241px; overflow:hidden;}
#dmg_layout_slideshow_images li {position:absolute; display:block; list-style-type:none; margin:0px; padding:0px; background-color:#FFFFFF;}
#dmg_layout_slideshow_images li img{display:block; background-color:#FFFFFF;}

/* == General ==================== */
a:link, a:active, a:visited {color: #0067b1;}
a:hover {color: #9f0606; text-decoration:none;}

.clearBoth {clear: both;}
.clearLeft {clear: left}
.clearRight {clear: right}

.floatRight {float: right !important;}
.floatLeft {float: left !important;}

.alignCenter {text-align: center;}
.alignLeft {text-align: left;}
.alignRight {text-align: right;}

@media only screen and (max-device-width: 480px) {
	#dmg_box_wrapper .dmg_box_blog {font-size: 11px;}
}

/* == Manipulate Office Name ==================== */

.officeid_045200003 #dmg_dynamic_office_detail h1,
.officeid_045200003 + #dmg_layout_agents_wrapper h2,
.officeid_045200002 #dmg_dynamic_office_detail h1,
.officeid_045200002 + #dmg_layout_agents_wrapper h2,
.officeid_045200000 #dmg_dynamic_office_detail h1,
.officeid_045200000 + #dmg_layout_agents_wrapper h2,
.officeid_045200001 #dmg_dynamic_office_detail h1,
.officeid_045200001 + #dmg_layout_agents_wrapper h2 {
	display: none;
}

#dmg_dynamic_office_detail:before {
	display: block;
	font-size: 18px;
	color: #0067B1;
	font-weight: bold;
}

#dmg_layout_agents_wrapper:before {
	padding-bottom: 2px;
	margin-bottom: 8px;
	color: #0067B1;
	font-size: 18px;
	border-bottom: 1px solid #0067B1;
	display: block;
	font-weight: bold;
}

.officeid_045200003 #dmg_dynamic_office_detail:before {
	content: "Nevada Area";
}

.officeid_045200003 + #dmg_layout_agents_wrapper:before {
	content: "Nevada Area Real Estate Agents";
}

.officeid_045200002 #dmg_dynamic_office_detail:before {
	content: "Boone Area";
}

.officeid_045200002 + #dmg_layout_agents_wrapper:before {
	content: "Boone Area Real Estate Agents";
}

.officeid_045200000 #dmg_dynamic_office_detail:before {
	content: "Ames Area";
}

.officeid_045200000 + #dmg_layout_agents_wrapper:before {
	content: "Ames Area Real Estate Agents";
}

.officeid_045200001 #dmg_dynamic_office_detail:before {
	content: "Ankeny Area";
}

.officeid_045200001 + #dmg_layout_agents_wrapper:before {
	content: "Ankeny Area Real Estate Agents";
}
