/* =========== Base Stylesheet =========== */
/* Contents: structure, page layouts, menu */
/* ======================================= */

/* whitespace reset */
* {margin:0;padding:0;}
/* override annoying things */
a:focus {outline: none;}
a img {border: none;}
#content ul, #content ol {list-style-position: inside;}

/* Global structure
-------------------*/
body, html, #wrap {height: 85%; margin-top: 5px;}
#wrap {width: 760px; margin: 0 auto; margin-top: 15px;}
#footer {clear: both; padding: 0px 0 20px 0; text-align: center;}
#header {padding: 0 1px;}

/* Column layout
-----------------*/
/* two column, sidebar on the right */
#main {clear: both;}
#menu {width: 170px;float: left;}
#content {width: 397px; float: left; padding: 15px 10px;}
#sub-section {width: 150px; float: right; padding: 15px 10px;}

/* pages without 3 columns                       <-----------------------EDIT THIS */
body.listing #content,
body.detail #content,
body.buying #content,
body.renting #content,
body.privacy #content,
body.about #content,
body.calc #content,
body#staff #content {width: 565px;float: right;}

/* Header
----------*/

#header img {
display: block;
float: right;
}

#header img#logo {
float: left;
position: relative;
top: 12px;
left: 11px;
}

/* Menu
--------*/

#menu {
padding: 0 0 0 1px;
}

#menu ul {
list-style-type: none;
}

#menu a {
display: block;
width: 159px;
padding: 10px 0 10px 10px;
}

#menu li li a {
border: none;
padding: 3px 0 0 20px;
width: 149px;
}

#menu ul ul {
display: none;
padding: 10px 0 15px 0;
}

/* shows subnav based on page context                       <-----------------------EDIT THIS */
body.buying ul#buyList,
body.selling ul#sellList,
body.renting ul#rentList,
body.calc ul#calcList,
body.about ul#aboutList {
display: block;
}

/* Dynamic text
----------------*/

#content img#dyn-heading-img {
display: block;
margin-bottom: 15px;
}

#content img#dyn-img1 {
float: right;
margin: 0 0 10px 20px;
}

#sub-section img#dyn-img2 {
margin-bottom: 10px;
display: block;
}

/* Home 
---------*/

body#home #content img#dyn-img2 {
float: left;
margin: 0 15px 10px 0;
}

body#home #sub-section fieldset {
border: none;
padding: 0;
}

body#home #sub-section legend {
font-weight: bold;
font-size: 1.2em;
margin-bottom: 10px;
padding-left: 0;
margin-left: 0;
}

body#home #sub-section label {
font-size: 0.9em;
font-weight: bold;
float: none;
display: inline;
}

body#home #sub-section p {
margin-bottom: 5px;
}

body#home #sub-section select {
width: 140px;
font-size: 0.9em;
}

body#home #sub-section #qs_price select {
width: 62px;
}

body#home #sub-section form #qs_st label {
padding-right: 5px;
width: auto;
float: none;
display: inline;
}

body#home #sub-section form #qs_st input {
vertical-align: middle;
width: auto;
}

body#home #sub-section form #submit {
text-align: right;
margin: 15px 0 0 0;
padding: 0 8px 0 0;
}

/* Listings
------------*/

body.listing .property {
padding: 10px 0;
clear: both;
overflow: hidden;
}

body.listing .property .image {
display: block;
float: left;
margin-right: 15px;
}

body.listing .property .details {
width: 250px;
float: left;
margin-right: 10px;
}

body.listing .property .features {
float: left;
}

body.listing .property .features img {
margin-right: 7px;
vertical-align: bottom;
}

body.listing .property .price {
text-align: right;
}

body.listing #filter {
height: 40px;
padding: 10px;
margin-bottom: 5px;
}

body.listing #filter label {
float: none;
display: block;
width: auto;
font-size: 0.9em;
font-weight: bold;
}

body.listing #filter select {
width: 85px;
display: block;
font-size: 0.9em;
}

body.listing #filter p {
clear: none;
float: left;
margin-right: 6px;
}

body.listing #filter input {
width: auto;
padding: 1px 5px;
margin-top: 13px;
cursor: pointer;
}

/* Property detail
-------------------*/

body.detail #content h2 {
padding: 3px 0;
margin-bottom: 5px;
}

body.detail #content ul {
margin-bottom: 15px;
list-style-type: none;
list-style-position: outside;
}

body.detail #content ul#outgoingslist {
list-style-position: inside;
}

body.detail #addressbar {
height: 25px;
margin-bottom: 5px;
}

body.detail #addressbar h1 {
float: left;
}

body.detail #addressbar p {
float: right;
}

body.detail #addressbar img {
vertical-align: middle;
margin: 0 2px 0 10px;
} 

body.detail #propertydetails {
width: 300px;
float: left;
margin-bottom: 20px;
}

body.detail #extradetails {
width: 244px;
float: right;
margin-bottom: 20px;
}

body.detail #extradetails img {
width: 118px;
}

body.detail #extradetails img#mainimage {
width: auto;
margin-bottom: 3px;
display: block;
}

body.detail #extradetails .images p {
text-align: center;
}

body.detail #extradetails dl {
margin-bottom: 10px;
}

/* Staff 
---------*/

body#staff dl {
clear: both;
margin-bottom: 10px;
padding-bottom: 10px;
}

body#staff dl dt.photo {
float: left;
margin-right: 15px;
margin-bottom: 5px;
}

body#staff dl dd.position {
margin-bottom: 5px;
}

body#staff dl dd.contact {
margin-bottom: 5px;
}