html, body {
  background-color: #e9e9e9;
  color: #666666;
  font-family: sans-serif;
  font-size: 12px;
}

a {
  color: #779a0b;
  text-decoration: none;
}
  
  a:active, a:focus, a:hover {
    text-decoration: underline;
  }

h1 {
  margin: 10px 0 0 0;
  color: #631f48;
  font-family: "Ubuntu", sans-serif;
  font-size: 30px;
}
  
  h1 a {
    color: #631f48;
  }

h2, h3 {
  position: relative;
  height: 35px;
  margin: 20px 0 20px 0;
  padding: 0 10px;
  background-color: #631f48;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  color: #ffffff;
  font-family: "Ubuntu", sans-serif;
  font-size: 16px;
  font-weight: bold;
  line-height: 35px;
  z-index: 1;
}
  
  h2:before, h3:before {
    position: absolute;
    bottom: -3px;
    left: 10px;
    background-color: #631f48;
    content: '';
    height: 15px;
    width: 15px;
    transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    z-index: -1;
  }

h3 {
  height: 25px;
  font-size: 12px;
  line-height: 25px;
}

p {
  margin: 0 0 1em 0;
}

ul {
  list-style-type: square;
}

.ad {
  font-size: 0;
  line-height: 0;
}

/* Featured Listings */
.featured-listings {
  overflow: auto;
  width: 100%;
  font-size: 10px;
}
  
  .featured-listings ul li {
    display: block;
    position: relative;
    height: 250px;
    margin-bottom: 20px;
    list-style-type: none;
  }
  
  .featured-listings ul li a {
    display: block;
    font-size: 12px;
    font-weight: bold;
  }
  
  /* Page Curl Effect: http://www.matthamm.com/box-shadow-curl.html */
  .featured-listings ul li a img {
    height: 121px;
    width: 216px;
    position: relative;
    float: left;
    margin: 0 auto 10px auto;
    padding: 2px;
    background: #ffffff; /* old browsers */
    border: 1px solid #efefef;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.2) inset;
    -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 0, 0, 0.2) inset;
    -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.2) inset;
  }
  
    .featured-listings ul li a img:after {
      z-index: -1;
      position: absolute;
      background: transparent;
      width: 70%;
      height: 55%;
      content: "";
      right: 10px;
      bottom: 10px;
      transform: skew(15deg) rotate(6deg);
      -webkit-transform: skew(15deg) rotate(6deg);
      -moz-transform: skew(15deg) rotate(6deg);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
      -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
      -moz-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    }
    
    .featured-listings ul li a img:before {
      z-index: -2;
      position: absolute;
      background: transparent;
      width: 70%;
      height: 55%;
      content: '';
      left: 10px;
      bottom: 10px;
      transform: skew(-15deg) rotate(-6deg);
      -webkit-transform: skew(-15deg) rotate(-6deg);
      -moz-transform: skew(-15deg) rotate(-6deg);
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
      -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
      -moz-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    }
  
  .featured-listings ul li a:last-child {
    position: absolute;
    bottom: 0;
    height: 12px;
    padding: 0 0 0 16px;
    background-image: url("../images/arrow-link.gif");
    background-position: left center;
    background-repeat: no-repeat;
    font-size: 10px;
    line-height: 12px;
  }


/* Header */
header nav {
  height: 35px;
  margin-bottom: 20px;
  background-color: #373837;
  -moz-border-radius-bottomleft: 5px;
  -webkit-border-bottom-left-radius: 5px;
  border-bottom-left-radius: 5px;
  -moz-border-radius-bottomright: 5px;
  -webkit-border-bottom-right-radius: 5px;
  border-bottom-right-radius: 5px;
  color: #ffffff;
  line-height: 35px;
}
  
  header nav a {
    color: #ffffff;
  }
  
  header nav a:active, header nav a:focus, header nav a:hover {
    text-decoration: underline;
  }
  
  header nav .title {
    font-family: "Ubuntu", sans-serif;
    font-size: 14px;
    font-weight: bold;
  }
  
  header nav ul {
    float: right;
    margin-right: 10px;
    list-style-type: none;
  }
    
    header nav ul li {
      float: left;
    }

header section {
  height: 90px;
  margin-bottom: 20px;
  font-family: "Raleway", serif;
  font-weight: bold;
  font-size: 28px;
  line-height: 30px;
  text-shadow: 1px 1px 0 #fff;
}
  
  header section .title {
    padding: 15px 0;
  }
  
  header section .ad {
    text-align: right;
  }

header aside {
  clear: both;
  min-height: 40px;
  background-color: #84b60d;
  -moz-border-radius-topleft: 5px;
  -webkit-border-top-left-radius: 5px;
  border-top-left-radius: 5px;
  -moz-border-radius-topright: 5px;
  -webkit-border-top-right-radius: 5px;
  border-top-right-radius: 5px;
}


/* Article */
article {
  padding-bottom: 20px;
  background-color: #ffffff;
  word-wrap: break-word;
}
  
  article:after {
    visibility: hidden;
    display: block;
    font-size: 0;
    content: " ";
    clear: both;
    height: 0;
  }
  
  article section {
    clear: both;
  }


/* Breadcrumbs */
nav.breadcrumbs {
  height: 30px;
  color: #ffffff;
  background-color: #719c0b;
  line-height: 30px;
}
  
  nav.breadcrumbs ul {
    margin-bottom: 0;
    list-style-type: none;
  }
    
    nav.breadcrumbs ul li {
      position: relative;
      margin: 0 0 0 10px;
      padding: 0 0 0 15px;
      display: block;
      float: left;
    }
    
    nav.breadcrumbs ul li:before {
        content: " ";
        display: block;
        position: absolute;
        width: 0;
        height: 0;
        margin-top: -4px;
        border-top: 4px solid transparent;
        border-bottom: 4px solid transparent;
        border-left: 5px solid #ffffff;
        top: 50%;
        left: 0;
        z-index: 1;
     }
     
     nav.breadcrumbs ul li:first-child {
       margin: 0;
       padding: 0;
     }
     
     nav.breadcrumbs ul li:first-child:before {
       display: none;
     }

  
  nav.breadcrumbs a {
    color: #ffffff;
  }



/* Footer */
footer {
  min-height: 40px;
  margin-bottom: 50px;
  background-color: #373837;
  -moz-border-radius-bottomleft: 5px;
  -webkit-border-bottom-left-radius: 5px;
  border-bottom-left-radius: 5px;
  -moz-border-radius-bottomright: 5px;
  -webkit-border-bottom-right-radius: 5px;
  border-bottom-right-radius: 5px;
  color: #ffffff;
  font-size: 10px;
  line-height: 40px;
}
  
  footer a {
    color: #ffffff;
  }
  
  footer nav {
    float: right;
    margin: 0 10px;
  }
  
  footer nav li {
    display: inline;
  }


/* Tags */
ul.tags li {
  display: inline;
  margin: 0;
  list-style-type: none;
  font-size: 10px;
  font-weight: bold;
}
  
  ul.tags li:after {
    content: ",";
  }
  
  ul.tags.li:last-child:after {
    visibility: hidden;
  }


/* Listing */
#listing_detail h1 {
  margin-bottom: 20px;
}

#listing_detail .locality {
  margin-top: 10px;
  text-align: right;
}

/* Page Curl Effect: http://www.matthamm.com/box-shadow-curl.html */
#listing_detail .thumbnail {
  height: 130px;
  width: 456px;
  position: relative;
  margin: 0 auto 10px auto;
  padding: 2px;
  background: #ffffff; /* old browsers */
  border: 1px solid #efefef;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.2) inset;
  -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 60px rgba(0, 0, 0, 0.2) inset;
  -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4), 0 0 40px rgba(0, 0, 0, 0.2) inset;
}

  #listing_detail .thumbnail:after {
    z-index: -1;
    position: absolute;
    background: transparent;
    width: 70%;
    height: 55%;
    content: "";
    right: 10px;
    bottom: 10px;
    transform: skew(15deg) rotate(6deg);
    -webkit-transform: skew(15deg) rotate(6deg);
    -moz-transform: skew(15deg) rotate(6deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  }
  
  #listing_detail img.thumbnail:before {
    z-index: -2;
    position: absolute;
    background: transparent;
    width: 70%;
    height: 55%;
    content: '';
    left: 10px;
    bottom: 10px;
    transform: skew(-15deg) rotate(-6deg);
    -webkit-transform: skew(-15deg) rotate(-6deg);
    -moz-transform: skew(-15deg) rotate(-6deg);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
    -moz-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6);
  }

#listing_detail .vcard {
  font-size: 10px;
  line-height: 17px;
}
  
  #listing_detail .vcard ul li {
    margin: 0 0 4px 0;
    list-style-type: none;
  }
    
    #listing_detail .vcard ul li:last-child {
      display: none;
    }
  
  #listing_detail .vcard .label {
    display: inline-block;
    width: 65px;
    font-weight: bold;
  }

.login li {
  list-style-type: none;
}

.login .facebook {
  display: inline-block;
  overflow: hidden;
  height: 0;
  width: 0;
  margin: -0.5em 5px;
  padding: 25px 0 0 194px;
  background-image: url("../images/facebook_connect.gif");
  background-position: center;
  background-repeat: no-repeat;
}

.errorlist {
  float: right;
  color: #a40000;
}
