/**
 * @author Denis Barushev <barushev@gmail.com>
 * @since 08.10.2008
 */
html, body, div, ul, ol, dl, li, dt, dd, p, form, h1, h2, h3, h4, h5, h6, table, tr, td {
    margin: 0;
    padding: 0;
}

html {
    background: #fff;
}

body {
    font: 62.5% Verdana, Tahoma, sans-serif;
    color: #000;
}

ul {
    list-style-type: none;
}

img {
    border: 0;
    vertical-align: top;
}

table {
    border-collapse: collapse;
}

h1 {
    font: normal 2.1em Arial, Tahoma, sans-serif;
    margin: 20px;
}

h2 {
    font-size: 1.2em;
    padding: 35px 20px 20px 20px;
}

a {
    color: #000;
}


/**
 * Layout
 */
html {
    background: #faf8ed url(/media/images/bgs/html.gif) repeat-y left;
    height: 100%;
}

body {
    padding: 0 30px;
    background: url(/media/images/bgs/body.gif) repeat-y right;
    min-height: 100%;
    height: auto !important;
    height: 100%;
}

#wrap {
    overflow: hidden;
    zoom: 1;
}

#sidebar {
    float: left;
    padding: 20px;
    width: 180px;

    background: #e4e8d1;
    border: 1px solid #fff;
    border-bottom: 0;
}

#content {
    margin-left: 222px;
    padding: 6px 30px 30px 30px;

    background: #ffffed;
    border-bottom: 1px solid #dbd7bf;
    border-right: 1px solid #fff;
}

#footer {
    margin-left: 222px;
    background: #faf8ed;
    border-top: 2px solid #e6e2cb;
    border-right: 1px solid #fff;
}


/**
 * Header
 */
#header {
    border: 1px solid #fff;
    border-width: 0 1px;
    font: 1.3em Arial, Tahoma, sans-serif;
    position: relative;
}

#header .logo {
    width: 177px;
    background: #fff;
    padding: 19px 0 26px 43px;
    border-bottom: 8px solid #8fa384;
    position: absolute;
    top: 0;
    left: 0;
}

#header .description {
    padding: 29px 0 0 272px;
    border-bottom: 8px solid #8fa384;
    height: 100px;
    background: #e4e8d1 url(/media/images/bgs/header.gif) repeat-x bottom;
    color: #8f9c8b;
}

#header .description .title {
    font-weight: bold;
    padding-bottom: 2px;
}

#header .description a {
    color: #8f9c8b;
}


/**
 * Sidebar
 */
#sidebar ul {
    color: #3f484a;
}

#sidebar li {
    border-top: 1px solid #f1f5df;
    border-bottom: 1px solid #c9cfaa;
    padding: 5px 0 9px 0;
}

#sidebar li li {
    padding: 4px 0 3px 0;
    font: 1.2em Arial, Tahoma, sans-serif;
    border: none;
}

#sidebar li.first_child {
    border-top: 0;
}

#sidebar li.last_child {
    border-bottom: 0;
}

#sidebar li.current {
    font-weight: bold;
}

#sidebar a {
    color: #3f484a;
}

#sidebar li .phones {
    font-size: 1.3em;
    font-weight: bold;
    padding-top: 4px;
}


/**
 * Ads
 */
table.ads {
    width: 100%;
}

table.ads td {
    background: #f2f4de;
    padding: 8px;
    vertical-align: middle;
    font-size: 1.2em;
    border: 1px solid #ffffed;
}

table.ads thead td {
    color: #6d7a69;
    padding: 15px 8px;
}

table.ads thead td.sort span {
    cursor: pointer;
}

table.ads thead td.sort span {
    padding-right: 10px;
}

table.ads thead td.asc span {
    background: url(/media/images/icons/sort_asc.gif) no-repeat right;
}

table.ads thead td.desc span {
    background: url(/media/images/icons/sort_desc.gif) no-repeat right;
}

table.ads thead td.sort span a {
    color: #6d7a69;
}

table.ads tbody tr:hover td {
    background-color: #e4e6ca;
}

table.ads td.photo {
    width: 40px;
    background-image: url(/media/images/bgs/photo.gif);
    background-repeat:  no-repeat;
    background-position: center center;
}

table.ads td.no_photo {
    width: 40px;
    background-image: url(/media/images/bgs/no_photo.gif);
}

table.ads td.photo .image {
    display: none;
    position: relative;
    top: -8px;
    left: -8px;
    font-size: 0;
    height: 0;
    width: 0;
}

table.ads tbody tr:hover td.photo .image {
    display: block;
}

table.ads td.photo .image div {
    position: absolute;
    top: -33px;
    left: -42px;
    border: 1px solid #ffffed;
    background: #c1c4a4;
    padding: 5px;
}

table.ads td.photo .image img {
    border: 1px solid #f2f4de;
}

table.ads td.price {
    text-align: right;
    font-weight: bold;
}

table.ads td.price .hot {
    color: #f00;
    padding-left: 16px;
    background: url(/media/images/bgs/hot_price.gif) no-repeat left center;
}

table.ads tbody td.rooms {
    text-align: center;
    width: 40px;
    font-weight: bold;
}

table.ads td.floor {
    text-align: center;
    width: 40px;
}

table.ads td.request {
    width: 62px;
    text-align: center;
}

table.ads td.request span {
    color: #5d5e53;
    border-bottom: 1px dashed #5d5e53;
    font-size: .91666em;
    cursor: pointer;
}

table.ads td.location span {
    font-weight: bold;
}


ul.ads {
    background: #f2f4de;
    margin-bottom: 20px;
}

ul.ads li {
    padding: 17px;
    border-bottom: 1px solid #ffffed;
    overflow: hidden;
    zoom: 1;
}

ul.ads li .photo {
    float: left;
    border: 5px solid #c1c4a4;
}

ul.ads li .photo img {
    border: 1px solid #f2f4de;
}

ul.ads li .info {
    margin-left: 117px;
}

ul.ads li .description {
    font: 1.2em Arial, Tahoma, sans-serif;
    padding-bottom: 8px;
}

ul.ads li h3 {
    font-size: 1.2em;
    padding-bottom: 11px;
}

ul.ads li .price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 6px;
}

ul.ads li .hot {
    color: #f00;
    padding-left: 16px;
    background: url(/media/images/bgs/hot_price.gif) no-repeat left center;
}

ul.ads li .contacts {
    color: #5d5e53;
    font-size: 1.1em;
}

ul.ads li .contacts .request {
    border-bottom: 1px dashed #5d5e53;
    cursor: pointer;
}


/**
 * Filters
 */
.filters {
    background: #f2f4de;
    padding: 8px 20px 11px 20px;
    zoom: 1;
}

.filters table {
    width: 100%;
}

.filters thead td {
    color: #8f8e82;
    padding-bottom: 3px;
    font: 1.1em Tahoma, Verdana, sans-serif;
}

.filters tbody td.dash {
    width: 11px;
    padding-right: 10px;
    padding-left: 0;
    vertical-align: middle;
}

.filters tbody td {
    vertical-align: top;
    padding: 0 16px 0 6px;
}

.filters tbody td.submit {
    padding-right: 0;
    padding: 0 4px 0 0;
}

.filters tbody td.reset {
    padding-right: 0;
}

.filters td.price {
    width: 8%;
}

.filters td.rooms {
    width: 12%;
}

.filters input.full {
    width: 100%;
    font: 1.2em Arial, Tahoma, sans-serif;
    padding: 4px;
    margin: 0 -6px;
}

.filters input.button {
    padding: 3px 3px 2px 3px;
    margin: 0;
}


/**
 * Combobx
 */
div.combobox {
    position: relative;
    padding-right: 20px;
}

div.combobox div.menu {
    display: none;
    background: url(/media/images/bgs/popup.png) no-repeat bottom right;
    position: absolute;
    left: 1px;
    top: 34px;
    padding: 0 7px 7px 0;
    font: 1.2em Arial, Tahoma, sans-serif;
}

div.expanded div.menu {
    display: block;
}

div.combobox div.menu .bl {
    width: 7px;
    position: absolute;
    height: 7px;
    font-size: 0;
    background: url(/media/images/bgs/shadow_bl.png);
    bottom: 0;
    left: -7px;
}

div.combobox div.menu .tr {
    width: 7px;
    position: absolute;
    height: 7px;
    font-size: 0;
    background: url(/media/images/bgs/shadow_tr.png);
    top: -7px;
    right: 0;
}

div.combobox ul.parent {
    padding: 5px;
    margin-top: -7px;
    margin-left: -7px;
    border: 1px solid #e0e0e0;
    background: #fff;
}

div.combobox ul.location {
    padding-bottom: 0;
}

div.combobox ul ul {
    padding-top: 5px;
}

div.combobox input.combobox {
    cursor: default;
    padding-right: 24px;
    margin-right: -26px;
}

div.combobox label {
    display: block;
    position: relative;
    padding: 2px 5px 1px 23px;
    white-space: nowrap;
    zoom: 1;
}

div.combobox label input {
    position: absolute;
    left: 0;
    top: -1px;
}

div.combobox .toggle {
    position: absolute;
    right: 1px;
    top: 6px;
    border: 1px solid #9dad95;
    border-width: 0 1px 1px 0;
}

div.expanded .toggle {
    border-width: 1px 0 0 1px;
}

div.combobox .toggle img {
    border: 1px solid #c9ccae;
    border-width: 1px 0 0 1px;
}

div.expanded .toggle img {
    border-width: 0 1px 1px 0;
}

div.combobox ul.location li {
    font-weight: bold;
    border-top: 1px solid #e5e5e5;
    padding: 6px 0 7px 0;
}

div.combobox ul.location li.first_child {
    border-top: 0;
}

div.combobox ul.location li li {
    font-weight: normal;
    border-top: 0;
    padding: 0;
}


/**
 * Ads Menu
 */
#ads_menu {
    list-style-type: none;
    padding: 19px 10px 23px 20px;
}

#ads_menu li {
    display: inline;
    font-size: 1.2em;
}

#ads_menu .hot {
    color: #f00;
    padding-left: 16px;
    background: url(/media/images/bgs/hot_price.gif) no-repeat left center;
}

#ads_menu .hot a {
    color: #f00;
}

#ads_menu li.current {
    font-weight: bold;
}


/**
 * Ad
 */
.ad {
    margin-top: 25px;
}

.ad .info {
    border-bottom: 1px solid #ffffed;
    background: #f2f4de;
    padding: 20px;
}

.ad .photos {
    padding: 20px 0 20px 20px;
    background: #f2f4de;
    border-bottom: 1px solid #ffffed;
    overflow: hidden;
    zoom: 1;
}

.ad .photos li {
    border: 5px solid #c1c4a4;
    float: left;
    margin: 0 20px 20px 0;
}

.ad .photos .gallery {
    clear: both;
    font-size: 1.1em;
}

.ad .photos li img {
    border: 1px solid #f2f4de;
}

.ad .description {
    background: #f2f4de;
    padding: 20px;
}

.ad .description div {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.ad .contacts {
    color: #5d5e53;
    font-size: 1.1em;
}

.ad .contacts .request {
    border-bottom: 1px dashed #5d5e53;
    cursor: pointer;
}

.ad .code {
    color: #949681;
    font-size: 1.2em;
    padding-bottom: 8px;
}

.ad .price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 9px;
}

.ad h3 {
    font-size: 1.2em;
    padding-bottom: 11px;
}

.ad .description table {
    margin-top: -8px;
}

.ad .description td {
    font: 1.2em Arial, Tahoma, sans-serif;
    padding: 8px 45px 0 0;
}

.ad .description td.param {
    width: 130px;
}

/**
 * Footer
 */
#footer {
    padding-left: 50px;
    color: #695e52;
}

#footer a {
    color: #695e52;
}

#footer .counters {
    padding-top: 25px;
    overflow: hidden;
    zoom: 1;
}

#footer .counters li {
    float: left;
    padding-right: 10px;
}

#footer .copyright {
    padding: 15px 0;
}

/**
 * The Best Ads
 */
#best_ads {
    border-collapse: separate;
    width: 99%;
}

#best_ads td {
    background: #f2f4de;
    padding: 20px;
    vertical-align: top;
}

#best_ads td.separator {
    background: none;
    width: 30px;
    padding: 0;
}

#best_ads .separator td.separator {
    height: 30px;
}

#best_ads td.empty {
    background: none;
}


#best_ads td.last {
    width: 47%;
}

#best_ads .photo img {
    border: 1px solid #ffffed;
}

#best_ads .photo .image {
    border: 5px solid #c1c4a4;
    width: 137px;
}

#best_ads .photo {
    float: left;
    width: 160px;
    padding-bottom: 5px;
}

#best_ads .info {
}

#best_ads .price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 6px;
    overflow: hidden;
}

#best_ads .hot {
    color: #f00;
    padding-left: 16px;
    background: url(/media/images/bgs/hot_price.gif) no-repeat left center;
}

#best_ads .description {
    font: 1.2em Arial, Tahoma, sans-serif;
    padding-bottom: 8px;
}

#best_ads h3 {
    font-size: 1.2em;
    padding-bottom: 11px;
}

#best_ads .code {
    color: #949681;
    font-size: 1.2em;
    padding-bottom: 8px;
}

#best_ads .photo .all {
    padding-top: 10px;
    font-size: 1.1em;
}


/**
 * Request ad
 */
#request_ad {
    position: absolute;
    width: 100%;
    top: 100px;
    display: none;
    left: 0;
}

#request_ad .main_outer {
    width: 613px;
    height: 545px;
    background: url(/media/images/bgs/popup.png) no-repeat bottom right;
    margin: 0 auto;
    position: relative;
}

#request_ad .outer {
    border: 1px solid #9b9e7b;
    background: #f2f4de;
    position: absolute;
    height: 543px;
    width: 611px;
    left: -7px;
    top: -7px;

}

#request_ad .inner {
    border: 1px solid #ffffed;
    height: 541px;
}

#request_ad .bl,
#request_ad .tr {
    width: 7px;
    height: 7px;
    font-size: 0;
    position: absolute;
}

#request_ad .bl {
    left: -7px;
    bottom: 0;
    background: url(/media/images/bgs/shadow_bl.png);
}

#request_ad .tr {
    right: 0;
    top: -7px;
    background: green;
    background: url(/media/images/bgs/shadow_tr.png);
}

#request_ad h4 {
    padding: 13px 25px 17px 25px;
    font: normal 2.1em Arial, Tahoma, sans-serif;
}

#request_ad .ad_info {
    padding: 20px 25px;
    border-top: 1px solid #ffffed;
    border-bottom: 1px solid #ffffed;
}

#request_ad .ad_info .photo {
    float: left;
    border: 5px solid #c1c4a4;
}

#request_ad .ad_info .photo img {
    border: 1px solid #f2f4de;
}

#request_ad .ad_info .info {
    margin-left: 134px;
}

#request_ad .ad_info .description {
    font: 1.2em Arial, Tahoma, sans-serif;
    padding-bottom: 8px;
}

#request_ad .ad_info h3 {
    font-size: 1.2em;
    padding-bottom: 11px;
}

#request_ad .ad_info .price {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 6px;
}

#request_ad .ad_info {
    overflow: hidden;
    zoom: 1;
}

#request_ad .ad_info .contacts {
    color: #5d5e53;
    font-size: 1.1em;
}

#request_ad img.close {
    position: absolute;
    top: 19px;
    right: 30px;
    cursor: pointer;
}

#request_ad table {
    margin-top: 13px;
}

#request_ad td {
    vertical-align: top;
    padding-top: 8px;
}

#request_ad td.param {
    font-size: 1.2em;
    padding: 15px 0 16px 25px;
    width: 135px;
    vertical-align: top;
}

#request_ad .error td.param {
    font-weight: bold;
    color: #f00;
}

#request_ad .captcha td.param {
    padding-top: 8px;
}

#request_ad .captcha div {
    padding-top: 14px;
}

#request_ad .captcha img {
    border: 1px solid #c1c4a4;
}

#request_ad input.full {
    width: 420px;
    padding-top: 4px;
    padding-bottom: 4px;
}

#request_ad .captcha input {
    width: 125px;
    padding-top: 4px;
    padding-bottom: 4px;
}

#request_ad input.button {
    background: #c1c4a4;
    font: bold 1.2em Arial, Tahoma, sans-serif;
    padding: 4px 40px;
    color: #5d5e53;
}

#request_ad td.buttons {
    padding-top: 28px;
}


/**
 * Ad navigator
 */
.ad_navigator {
    font-size: 1.2em;
    padding: 0 20px 0 5px;
    margin: 15px 0 0 0;
    overflow: hidden;
    zoom: 1;
}

.ad_navigator .pagination {
    float: left;
    overflow: hidden;
    zoom: 1;
}

.ad_navigator .pagination li {
    float: left;
    padding: 0 5px;
}

.ad_navigator .pagination .current {
    background: #e4e8d1;
    font-weight: bold;
    padding: 0 3px;
}

.ad_navigator .prev_next {
    float: right;
    width: 205px;
    overflow: hidden;
    zoom: 1;
}

.ad_navigator .prev_next .disable {
    color: #949681;
}

.ad_navigator .prev_next .prev {
    float: left;
}

.ad_navigator .prev_next .next {
    float: right;
}

.ad_navigator .back {
    float: left;
}

.ad_navigator .back a {
    font-weight: bold;
}


/**
 * Form
 */
table.form {
    width: 100%;
}

.form td.label {
    font: 1.2em Arial, Tahoma, sans-serif;
    vertical-align: top;
    padding-top: 16px;
    width: 150px;
}

.form .error td.label {
    color: #f00;
    font-weight: bold;
}

.form td {
    padding: 10px 20px;
    background: #f2f4de;
}

.form tr.first_child td {
    padding-top: 25px;
}

.form tr.last_child td {
    padding-bottom: 25px;
}

.form td.buttons {
    padding-top: 5px;
}

.form input.text {
    padding-top: 4px;
    padding-bottom: 4px;
}

.form .captcha input {
    width: 125px;
    padding-top: 4px;
    padding-bottom: 4px;
}

.form .captcha div {
    padding-top: 14px;
}

.form .captcha img {
    border: 1px solid #c1c4a4;
}

.form input.button {
    background: #c1c4a4;
    font: bold 1.2em Arial, Tahoma, sans-serif;
    padding: 4px 40px;
    color: #5d5e53;
}

.form textarea,
.form input.text {
    width: 100%;
}

#new_ad {
    margin-right: 275px;
    zoom: 1;
}

#new_ad div.error {
    color: #f00;
    border-bottom: 1px solid #ffffed;
    padding: 15px 20px 15px 20px;
    font: 1.2em Arial, Tahoma, sans-serif;
    background: #f2f4de;
}

#new_ad .add_file,
#new_ad .delete_file {
    border-bottom: 1px dashed #000;
    cursor: pointer;
    font: 1.2em Arial, Tahoma, sans-serif;
}

#new_ad .files li {
    padding-bottom: 10px;
}

#new_ad .files li.dummy {
    display: none;
}


#new_ad_notice {
    position: relative;
    zoom: 1;
}

#new_ad_notice p {
    position: absolute;
    right: 25px;
    top: 15px;
    width: 200px;
    font: 1.2em Arial, Tahoma, sans-serif;
}


div.text {
    font: 1.2em Arial, Tahoma, sans-serif;
    margin: 20px 20px 0 20px;
}

div.text p {
    margin: 1em 0;
}

div.text p.source {
    font-style: italic;
    padding: 12px 0 17px 0;
}

div.text h2 {
    font-size: 1.0833em;
    padding: 0;
    margin: 1.6em 0 1.4em 0;
}


/**
 * News
 */
ul.news {
    padding-left: 20px;
    padding-bottom: 1px;
    font: 1.2em Arial, Tahoma, sans-serif;
}

ul.news li {
    margin: 15px 0;
}

ul.news span.date {
    color: #a4a890;
}

h2.news {
    padding: 0;
    margin: 20px 0;
    padding-left: 20px;
}


/**
 * Q&A
 */
dl.qa {
    font: 1.2em Arial, Tahoma, sans-serif;
}

dl.qa dt {
    margin-top: 1px;
    padding: 12px 40px;
    background: #f2f4de url(/media/images/bgs/qa_dt_collapsed.gif) no-repeat 16px 14px;
}

dl.qa dt.expanded {
    background-image: url(/media/images/bgs/qa_dt_expanded.gif);
}

dl.qa dt span {
    border-bottom: 1px dashed #000;
    cursor: pointer;
}

dl.qa dd {
    background: #f2f4de;
    padding: 1px 40px;
    display: none;
    margin-top: -8px;
}

dl.qa dd p {
    margin: 1em 0;
}


/**
 * Links
 */
ol.links {
    font: 1.2em Arial, Tahoma, sans-serif;
    padding-left: 45px;
}

ol.links li {
    padding-bottom: 15px;
}

ol.links li .link_data {
    overflow: hidden;
    zoom: 1;
}

ol.links li .link {
    margin-right: 280px;
}

ol.links li .button {
    float: right;
    width: 200px;
}


.ad_not_found {
    font-size: 1.2em;
    padding: 20px 0 0 20px;
}

.ad_not_found p {
    margin: 0.5em 0;
}

.ad_not_found a {
    font-weight: bold;
}


.send_message {
    background: #f2f4de;
    padding: 12px 20px;
    font: 1.2em Arial, Tahoma, sans-serif;
}

.send_message h2 {
    padding: 0 0 10px 0;
    font-size:1.0833em;
}


#ad_request_sended {
    display: none;
    padding: 62px 0 0 160px;
    background: url(/media/images/bgs/ad_request_sended.gif) no-repeat 80px 50px;
}

#ad_request_sended p {
    font: 1.2em Verdana, Tahoma, sans-serif;
}

#ad_request_sended .buttons {
    padding-top: 40px;
}

#ad_request_sended .buttons input {
    width: 270px;
}
