/*----------------------------------------------------------------------------
 *
 * Layout stylesheet for theme: uhome
 *
 * This covers layout styles and default colours for the default layout.
 *
 * REMEMBER: Anything that gets added in here and affects colours 
 * probably also needs an entry in the dynamic agency stylesheet for this layout,
 * which can be found at app/views/stylesheets/<theme>.rcss.
 *
 *---------------------------------------------------------------------------*/
 

/*----------------------------------------------------------------------------
 * body
 *---------------------------------------------------------------------------*/

body {
    margin: 0;
    text-align: center;
}
    
#container {
    padding: 2px;
    background: white;
    border: 1px solid #999;
}


/*----------------------------------------------------------------------------
 * shadow
 *---------------------------------------------------------------------------*/

#shadow_container {
    margin: 20px auto;
    text-align: left;
    width: 962px;
}
    
#shadow_top {
    background: bottom left no-repeat url(../images/bg_shadow_t_on_eee.png);
    height: 9px;
    padding: 0px;
    margin: 0px;
    font-size: 0em;
}

#shadow_middle {
    background: top center repeat-y url(../images/bg_shadow_m_on_eee.png);
    padding: 0 4px;
}
    
#shadow_bottom {
    background: top center no-repeat url(../images/bg_shadow_b_on_eee.png);
    height: 9px;
    padding: 0px;
    margin: 0px;
    font-size: 0em;
}



/*----------------------------------------------------------------------------
 * header
 *---------------------------------------------------------------------------*/

#header {
    padding: 10px;
}

h1 {
    clear: none;
    float: left;
    margin: 10px 0 0 10px;
}

h1 em {
    display: block;
    font-size: 0.9em;
    font-weight: normal;
    color: #666;
}
    
#header_right {
    float: right;
    text-align: right;
}
    

/*----------------------------------------------------------------------------
 * navigation
 *---------------------------------------------------------------------------*/

#navigation_container {
}
    
#navigation {
    clear: both;
}
    

/*----------------------------------------------------------------------------
 * content
 *---------------------------------------------------------------------------*/
    
#content_container {
    clear: both;
}
       
#main {
    float: left;
    width: 540px;
    padding: 30px;
}
       
#left {
    float: left;
    width: 160px;
    margin-right: 40px;
}

#right {
    float: left;
    width: 700px;
}

#sidebar {
    float: right;
    width: 250px;
    margin-right: 60px;
    display: inline;
}


/*----------------------------------------------------------------------------
 * footer
 *---------------------------------------------------------------------------*/

#footer_container {
	margin-top: 1em;
    padding: 0.5em 1em;
    background-color: #e7e7e7;
    clear: both;
}

#footer ul {
    margin: 0;
}

#site_footer_content {
	float: right;
	font-size: 0.85em;
}

#site_footer_content p {
	margin: 0;
}

/*----------------------------------------------------------------------------
 * Content stylesheet for theme: uhome
 *
 * This covers general styles for content (main and sidebar)
 *
 * REMEMBER: Anything that gets added in here and affects colours 
 * probably also needs an entry in the dynamic agency stylesheet for this layout,
 * which can be found at app/views/stylesheets/<theme>.rcss.
 *
 *---------------------------------------------------------------------------*/
 
 
body {
    font-family: tahoma, arial, sans-serif;
    }
    
 
/*----------------------------------------------------------------------------
 * Links
 *---------------------------------------------------------------------------*/

a,
a:visited,
a:link {
    color: #000;
    }


/*----------------------------------------------------------------------------
 * Messages
 *---------------------------------------------------------------------------*/

#messages {
    padding: 0.5em 2em;
    background: #e7e7e7 top right url(../images/curve_tr.png) no-repeat;
    margin: 0 0 2em 0;
    }

#messages p {
    margin: 0.25em 0;
    font-weight: bold;
    }

#messages p.error {
    color: red;
    }

#messages p.notice {
    color: green;
    }
    

/*----------------------------------------------------------------------------
 * Tabbed forms
 *---------------------------------------------------------------------------*/

ul#form_tabs {
    list-style-type: none;
    padding: 1.5em 0 0 0;
    margin: 0px;
    }
    
ul#form_tabs li {
    float: left;
    margin-right: 2px;
    } 
       
ul#form_tabs li a {
    text-decoration: none;
    display: block;
    float: left;
    padding: 0.4em 0.75em;
    background: #e7e7e7 top right url(../images/curve_tr.png) no-repeat;
    color: #999;
    }
    
ul#form_tabs li.current {
    font-weight: bold;
    color: black;
    background: #ccc top right url(../images/curve_tr.png) no-repeat;
    }

ul#form_tabs li.current a:hover {
    color: black;
}

ul#form_tabs li a:hover {
    color: #666;
    }
       
div.tabbed,
form.tabbed {
    clear: both;
    padding: 1em;
    border-style: solid;
    border-width: 4px;
    }


/*----------------------------------------------------------------------------
 * DL forms general
 *---------------------------------------------------------------------------*/

div.buttons.top { 
    float: right;
    }

div.buttons { 
    text-align: right;
    }
    
.required {
    color: red;
    font-weight: bold;
    margin-right: 0.25em;
    }
    
form.dl_form h3 {
    margin: 0.75em 0 0.25em 0;
    }
    
form.dl_form fieldset {
    border: none;
    padding: 0.5em 1em;
    }
    
form.dl_form dl {
    clear: left;
    }
    
form.dl_form dl dt {
    display: block;
    clear: left;
    float: left;
    width: 120px;
    margin: 0.35em 10px 0.75em 0;
    font-size: 0.9em;
    color: #333;
    }

form.dl_form dl dd {
    display: block;
    float: left;
    margin: 0 0 0.75em 0;
    width: 330px;
    }

form.dl_form dl dd label {
    margin-right: 1em;
    }
    
form.dl_form dl.radio dd {
    margin-top: 0.25em;
    }
    
p.hideable_help {
    color: #888;
    font-size: 0.85em;
    }

div.buttons {
    clear: left;
    }
     

/*----------------------------------------------------------------------------
 * Form-input styles
 *---------------------------------------------------------------------------*/

textarea.street_address {
    width: 100%;
    height: 2.5em;
    }

fieldset input, textarea, select {
    border: 1px solid #ddd;
    padding: 3px 5px;
    background: #e7e7e7;
    color: #333;
    font-size: 0.9em;
    }

fieldset select:focus {
    border: 1px solid #ccc;
    background: #ddd;
    color: #000;
    }
    
fieldset select:focus option {
    background: #fff;
    }
    
fieldset input:focus, textarea:focus {
    border: 1px solid #ccc;
    background: #ddd;
    color: #000;
    }


/*----------------------------------------------------------------------------
 * Errors
 *---------------------------------------------------------------------------*/

.field-with-errors input,
.field-with-errors textarea,
.field-with-errors select {
    border: 1px solid red;
    }

#error_explanation {
    padding: 0.25em 1em;
    background: #e7e7e7 top right url(../images/curve_tr.png) no-repeat;
    font-size: 0.9em;
    }

#error_explanation ul li {
    margin: 0.25em 0 0 0;
    }

#content #error_explanation h3 {
    color: red;
    }
        
    
/*----------------------------------------------------------------------------
 * Maps
 *---------------------------------------------------------------------------*/

#gmap_container {
    clear: both;
    margin: 0.5em 0 1em 0;
    padding: 10px 13px;
    background: #e7e7e7 top right url(../images/curve_tr.png) no-repeat;    
    }
    
#gmap {
    border-top: 2px solid #ddd;
    border-left: 2px solid #ddd;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    width: 100%;
    height: 300px;
    }


/*----------------------------------------------------------------------------
 * Search
 *---------------------------------------------------------------------------*/


/*----------------------------------------------------------------------------
 * Navigation
 *---------------------------------------------------------------------------*/
 
#navigation ul {
    margin: 0;
    padding-left: 10px;
    }
    
#navigation ul li {
    list-style-type: none;
    float: left;
    }
    
#navigation ul li a {
    display: block;
    float: left;
    margin: 0 2px 0 0;
    padding: 0.4em 0.75em 0.3em 0.75em;
    text-decoration: none;
    font-weight: bold;
    }

    
/*----------------------------------------------------------------------------
 * Headings
 *---------------------------------------------------------------------------*/

h2, h3, h4, h5, h6 {
    font-family: trebuchet, "trebuchet MS", helvetica, sans-serif;
    }

h2 a, h3 a, h4 a, h5 a, h6 a {
    text-decoration: none;
    }
    
    
/*----------------------------------------------------------------------------
 * Header
 *---------------------------------------------------------------------------*/
 
#header h1 {
    }
    
    
/*----------------------------------------------------------------------------
 * User info
 *---------------------------------------------------------------------------*/
 
#header_right {
    color: #666;
    font-size: 0.85em;
    }

#header_right a {
    #444;
    }
    
    
/*----------------------------------------------------------------------------
 * Sidebar: general
 *---------------------------------------------------------------------------*/
 
#sidebar h3 {
    color: #333;
    padding: 0 6px 4px 10px;
    font-weight: bold;
    }

#sidebar .module {
    clear: left;
    margin-bottom: 20px;
    background: #ddd;
    }

#sidebar .module .content {
    clear: both;
    }

#sidebar .module.first {
    padding-top: 10px;
    background: top left repeat-x url(/gradient/aaaaaa/dddddd/1/5/v) #ddd;
    }

#sidebar .module .content {
    clear: both;
    margin: 0 10px;
    padding: 8px;
    background: #fff;
    }

#sidebar_footer_content {
    text-align: center;
    }
    
#sidebar .corners_t {
    background: #ddd top center no-repeat url(../images/sb_corners_t_ddd.png);
    min-height: 10px;
    height: 10px;
    }
    
#sidebar .corners_b {
    background: #ddd bottom center no-repeat url(../images/sb_corners_b_ddd.png);
    min-height: 10px;
    height: 10px;
    }
    
/* TODO: rename icon class in sidebar partial */
#sidebar p.icon {
    margin: 0;
    font-size: 0.85em;
    text-align: right;
    }

#sidebar .module ul.tabs {
    margin: 0 10px 0 10px;
    }
    
#sidebar .module ul.tabs li {
    list-style-type: none;
    float: left;
    margin-right: 2px;
    }
    
#sidebar .module ul.tabs li a {
    display: block;
    padding: 3px 6px;
    text-decoration: none;
    font-weight: bold;
    color: #999;
    font-size: 0.85em;
    }
    
#sidebar .module ul.tabs li a.current {    
    background: #fff;
    color: #666;
    cursor: arrow;
    }

#sidebar .module ul.tabs li a:hover {
    color: #666;
    }

#sidebar h3.tab {
    margin: 0 10px 0 10px;
    padding: 3px 6px;
    background: #fff;
    color: #666;
    float: left;
    font-size: 0.85em;
    display: inline;
    }
    
#sidebar h3.tab a {
    text-decoration: none;
    }
        
#sidebar h3.expandable a {
    padding-right: 14px;
    background: right 50% url(../images/arrow_r_plain_off.png) no-repeat;
    }
    
#sidebar h3.expandable.expanded a,
#sidebar h3.expandable a:hover {
    background: right 50% url(../images/arrow_d_plain_on.png) no-repeat;
    }


/*----------------------------------------------------------------------------
 * Sidebar: search module
 *---------------------------------------------------------------------------*/

#content #search_module .content {
    text-align: center;
    }
    
#content #search_module form {
    text-align: left;
    margin: 6px auto 0 auto; padding: 0;
    width: 180px;
    }

#search_module form select {    
    width: 100%;
    }

#search_module .content p {
    margin-bottom: 0.2em;
    }
    
#search_module .buttons {
    margin: 0;
    text-align: right;
    }
        

/*----------------------------------------------------------------------------
 * Sidebar: favourites/saved searches module
 *---------------------------------------------------------------------------*/

#account_module .content p {
    text-align: center;
    margin: 0;
    }
    
#account_module .content ul {
    list-style-type: none;
    margin: 0;
    }

#account_module .content ul ul li {
    display: block;
    list-style-type: none;
    margin: 0.1em 0;
    }

#account_module .content ul li {
    margin: 0.25em 1em;
    }
    

/*----------------------------------------------------------------------------
 * Sidebar: branch module
 *---------------------------------------------------------------------------*/

#branch_module .content {
    }

#branch_module h4 {
    float: left;
    margin: 0;
    }

#branch_module .branch_map_link {
    float: right;
    font-size: 0.85em;
    color: #666;
    }
    
#branch_module .content ul {
    margin: 0.5em 0;
    }

#branch_module .branch.first {
    border: none;
    }
    
#branch_module .branch {
    padding: 0.5em 0 0 0;
    border-top: 1px solid #ddd;
    }
    
#branch_module .branch_address p {
    clear: both;
    margin: 0 0 0.25em 0;
    }
        
#branch_module .content ul li {
    list-style-type: none;
    margin-top: 0.3em;
    }
    

   
    

/*----------------------------------------------------------------------------
 * Main content
 *---------------------------------------------------------------------------*/
 
#main {
    line-height: 1.3em;
    font-size: 1em;
    }

#main h2 {
    font-size: 1.6em;
    color: #009;
    margin: 0 0 0.6em 0;
    }
    
    

/*----------------------------------------------------------------------------
 * Listings
 *---------------------------------------------------------------------------*/

.item {
    margin: 1.5em 0 0.5em 0.5em;
    margin-left: 0.5em;
    clear: both;
    }
    
.item h3 {
    font-size: 1.3em;
    margin: 0 0 0.15em 0;
    }

.item img.asset {
    float: right;
    border: 3px solid #ccc;
    margin: 0 0 2em 1.5em;
    }

.item img.marker {
	float: right;
}

ul.property_summary {
    margin: 0.25em 0;
    }
    
ul.property_summary li {
    display: inline;
	float: left;
    color: #666;
    font-weight: bold;
    font-size: 0.9em;
    margin-right: 0.5em;
    padding-left: 12px;
    background: left 50% url(/global/images/bullets/square-7x7.png) no-repeat;
	white-space: nowrap;
    }

#content .item ul.actions {
    list-style-type: none;
    font-size: 0.9em;
    margin: 0.25em 0;
    }

.item ul.actions li {
    margin: 0.5em 1em 0.5em 0;
    display: inline;
    }

.item .property_description {   
    clear: left;
    }
    
    
/*----------------------------------------------------------------------------
 * Footer
 *---------------------------------------------------------------------------*/
 
#footer ul {
    list-style-type: none;
    float: left;
    }
    
#footer ul li {
    display: inline;
    }

#footer ul li a {
    font-size: 0.85em;
    text-decoration: underline;
    color: #666;
    padding: 0 0.75em;
    border-left: 1px solid #999;
    }

#footer ul li a:hover {
    color: #333;
    }
    
#footer ul li.first a {
    border-left: none;
    padding-left: 0;
    }
    
#powered_by {
    float: right;
    }
    

/*----------------------------------------------------------------------------
 * Register Page Tweaks
 *---------------------------------------------------------------------------*/

#your_property_situation dl dd {
	width: 20px;
	clear: none;
	float: left;
	margin-right: 15px;
	display: inline;
}

#your_property_situation dl {
	clear: none;
	display: inline;
}

#your_property_situation label {
	font-size:0.9em;
}

#your_property_situation .checkbox {
	margin-right: 10px;
}

#your_property_situation .label_container {
	width: 150px;
	float: left;
	text-align: right;
	margin-right: 10px;
}

#your_property_situation .checkbox_container {
	margin-right: 15px;
	float: left;
}

    


/*----------------------------------------------------------------------------
 *
 * Controller overrides stylesheet for theme: uhome
 *
 * This overrides styles in the controller stylesheets found in
 * the folder hierarchy below /public/stylesheets
 *
 * REMEMBER: Anything that gets added in here and affects colours 
 * probably also needs an entry in the dynamic agency stylesheet for this layout,
 * which can be found at app/views/stylesheets/<theme>.rcss.
 *
 *---------------------------------------------------------------------------*/
 

/*----------------------------------------------------------------------------
 * home/index
 *---------------------------------------------------------------------------*/


/*----------------------------------------------------------------------------
 * account/register
 *---------------------------------------------------------------------------*/

form#register {
    margin: 1em;
	width: 535px;
    }
    
form#register select {
    width: 10em;
    }

form#register dt {
    width: 150px;
    text-align: right;
    }

form#register dd {
    width: 320px;
    }
    
form#register fieldset fieldset {
    float: left;
    }
    

/*----------------------------------------------------------------------------
 * account/reset_password_request
 *---------------------------------------------------------------------------*/

form.account .buttons {
    margin-left: 140px;
    text-align: left;
    }
      

/*----------------------------------------------------------------------------
 * account/login
 *---------------------------------------------------------------------------*/

form#login {
    padding-bottom: 3em;
    }

form#login .buttons {
    float: none;
    margin-left: 11em;
    }
    
#login_actions {
    padding: 0.5em 1em;
    background: #eee bottom left url(../images/curve_bl.png) no-repeat;
    }

#login_actions p {
    margin: 0.25em 0;
    }


/*----------------------------------------------------------------------------
 * account/profile
 *---------------------------------------------------------------------------*/

body.account_profile form.tabbed dd {
    width: 320px;
    }
    

    

/*----------------------------------------------------------------------------
 * properties/index
 *---------------------------------------------------------------------------*/
 
form.search_form {
    margin: 2em 0;
    }
    
form.search_form select {
    width: 160px;
    }
    
    

/*----------------------------------------------------------------------------
 * properties/show
 *---------------------------------------------------------------------------*/
 
#property_short_description {
    margin: 1em 0;
    font-size: 1.2em;
    font-weight: bold;
    line-height: 1.2em;
    }
    
ul.property_summary {
    clear: left;
    margin: 0.5em 0;
	list-style-type: none;
    }
	
ul.property_summary li {
	display: inline;
    }
	
#main img.photo {
    border: 10px solid #ddd;
    }

#details_header ul {
	list-style-type: none;
	margin: 0;
	}
	
#details_navigation ul {
	border-bottom: 1px solid #bbb;
	padding-left: 1em;
	margin: 1em 0 1.5em 0;
	height: 2em;
	}
	
#details_navigation ul li {
	float: left;
	margin-right: 2px;
    position: relative;	
    top: 2px;
    display: inline;
	}
	
#details_navigation ul li a {
	display: block;
	padding: 0.25em 1em;
	background: #e7e7e7;
	border: 1px solid #e7e7e7;
	border-bottom: none;
	text-decoration: none;
	font-size: 0.85em;
	color: #999;
	}

#details_navigation ul li a.current {
	border-color: #bbb;
	background-color: #fff;
	color: black;
	border-bottom: 1px solid #fff;
	}

#details_navigation ul li a:hover {
	color: black;
	}

#property_actions {
	margin: 0.5em 0;
	}
	
#property_actions li {
	display: inline;
	padding-right: 1em;
	font-size: 0.85em;
	}

#property_actions li a {
	color: #666;	
	}
	
ul.property_summary {
	margin: 0.5em 0 1em;
}
	

/*----------------------------------------------------------------------------
 * properties/show sidebar module
 *---------------------------------------------------------------------------*/

#property_media_module .content p {
    margin: 0;
    }
    
#property_media_module #photos img {
    margin: 0.5em;
    border: 2px solid #ccc;
    }

#property_media_module #photos a:hover img {
    border: 2px solid #999;
    }

#property_media_module #downloads {
	text-align: left;
	}
	
#property_media_module #downloads ul {
	list-style-type: none;
	margin: 0 2em;
	}

#property_media_module #downloads ul li {
	margin: 0.5em 0;
	}
	
    
/*----------------------------------------------------------------------------
 * properties sidebar content
 *---------------------------------------------------------------------------*/

#sidebar #property_links .content {
    padding: 0;
    }
    
#property_links ul {
    list-style-type: none;
    margin: 0;
    }

#property_links ul li{
    display: inline;
    }

#property_links li a {
    display: block;
    padding: 0.5em;
    text-align: center;
    font-weight: bold;
    text-decoration: none;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    }
    
    
/*----------------------------------------------------------------------------
 * properties sidebar footer
 *---------------------------------------------------------------------------*/

#property_footer {
    margin: 1.5em 1.5em 0 1.5em;
    text-align: center;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
    }
    