html,body {
    height:100%;
    width: 100%;
    position: relative;!important
}
#map {
    width: 100%;
    height: 100%;
    top: 38px;
    left: 0;
    position: absolute;
}
#search{
    top:38px;
    left: 0;
    position: absolute;
    background-color: #f3f3f3;
    z-index: 10;
    height: auto;
    padding-bottom: 15px;
}
/*SHADOW*/
#search .shadow .t, #search .shadow .b, #search .shadow .l, #search .shadow .r{
    background-image: url('/class_main/images/shadow.png');
    z-index: 1;
}
#search .shadow .t{
    width: 100%;
    height: 9px;
    background-position: -3px 0;
    position: absolute;
    top: -3px;
    left: 0;
}
#search .shadow .b{
    width: 184px;
    height: 9px;
    background-position: -3px 100%;
    position: absolute;
    bottom: -3px;
    right: 0;
}
#search .shadow .l{
    width: 9px;
    height: 100%;
    background-position: 0 -3px;
    position: absolute;
    top: 0;
    left: -3px;
}
#search .shadow .r{
    width: 9px;
    height: 100%;
    background-position: 100% -3px;
    position: absolute;
    top: 0;
    right: -3px;
}
/*END SHADOW*/

.map_info_box .closebutton{
    /*font-family: 'WebSymbolsLigaRegular';
    text-rendering: optimizeLegibility;
    border: none !important;
    text-decoration: none;
    background-color: #888;
    background-color: rgba(0,0,0,0.5);
    background-color: transparent\0/;
    background-image: url('/class_main/images/transparent_gray_bg.png')\0/;
    background-repeat: repeat\0/;*/
    background-image: url('/class_main/images/close.png');
    background-position: 0 0;
    color: #fff;
    display: block;
    width: 13px;
    height: 13px;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
    line-height: 11px;
    text-indent: -1px;
    position: absolute;
    right: 0;
    top: 0;
    padding: 0;
    margin: 0;
    z-index: 3;
}
.map_info_box .closebutton:hover{
    color: #f00;
    background-position: 0 -13px;
}
.map_info_box{
    z-index: 2;
}
/*SHADOW*/
.map_info_box .shadow .t{
    width: 100%;
    height: 9px;
    background-image: url('/class_main/images/shadow.png');
    background-position: -3px 0;
    position: absolute;
    top: -3px;
    left: 0;
    z-index: 1;
}
.map_info_box .shadow .b{
    width: 184px;
    height: 9px;
    background-image: url('/class_main/images/shadow.png');
    background-position: -3px 100%;
    position: absolute;
    bottom: -3px;
    right: 0;
    z-index: 1;
}
.map_info_box .shadow .l{
    width: 9px;
    height: 100%;
    background-image: url('/class_main/images/shadow.png');
    background-position: 0 -3px;
    position: absolute;
    top: 0;
    left: -3px;
    z-index: 1;
}
.map_info_box .shadow .r{
    width: 9px;
    height: 100%;
    background-image: url('/class_main/images/shadow.png');
    background-position: 100% -3px;
    position: absolute;
    top: 0;
    right: -3px;
    z-index: 1;
}
/*END SHADOW*/
.contact_info{
    padding-left: 15px;
    padding-top: 5px;
}
.contact_info a.bc_name{
    color: #006DB2;
    border-bottom: 1px solid #99c5e2;
    border-bottom: 1px solid rgba(0, 109, 178, 0.5);
    line-height: 0.9;
    text-decoration: none;
}
.contact_info a.bc_name:hover{
    color: #f00;
    border-bottom: 1px solid #ff9999;
    border-bottom: 1px solid rgba(255, 0, 0, 0.5);
}
.contact_info .bc_class{
    font-size: 12px;
    white-space: nowrap;
}
.contact_info .tel{
    font-size: 14px;
    font-weight: bold;
}
.map_info_box .metro_st{
    padding-left: 15px;
    background-image: url('/class_main/images/metro_spb/lines.png');
    background-repeat: no-repeat;
    line-height: 15px;
    margin-top: 3px;
    padding-left: 15px;
    min-height: 15px;
}
.map_info_box .metro_st.metro_line_0{ background-position: 0 -252px;}
.map_info_box .metro_st.metro_line_1{ background-position: 0 -63px;}
.map_info_box .metro_st.metro_line_2{ background-position: 0 -126px;}
.map_info_box .metro_st.metro_line_3{ background-position: 0 -189px;}
.map_info_box .metro_st.metro_line_4{ background-position: 0 0;}
.bc_info{
    padding-left: 10px;
    padding-right: 13px;
    padding-bottom: 9px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 5px;
}

.first_line{
    position: relative;
    display: inline-block;
    zoom: 1; // IE hack to trigger hasLayout
    *display: inline; // IE hack to achieve inline-block behavior
}
.first_line .line_head{
    font-size: 13px;
    font-weight: bold;
    position: absolute;
    top: -23px;
}

.map_info_box{
    width: 200px;
    background-color: #FFF;
    position: relative;
    font-family: 'Trebuchet MS', sans-serif;
    font-size: 13px;
    color: #000;
}
.map_info_box:before{
    background-image: url('/class_main/images/corner.png');
    background-repeat: no-repeat;
    content: "";
    height: 30px;
    width: 24px;
    position: absolute;
    top: 100%;
    left: -8px;
}
.map_info_box>a.center_photo{
    min-height: 93px;
    display: block;
    text-decoration: none;
    border: 0 none;
    position: relative;
}
.map_info_box>a.center_photo>.photo_overlay{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #f00;
    opacity: 0;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
    z-index: 3;
}
.map_info_box>a.center_photo:hover>.photo_overlay{
    opacity: 0.23;
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=23)";
}
.map_info_box>a.center_photo>img{
    width: 100%;
    display: block;
    position: relative;
    z-index: 2;
}
.map_info_box .content_wrap{
    max-height: 250px;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    z-index: 3;
}
.map_info_box .content_wrap .squares{
    margin-left: 10px;
    margin-bottom: 5px;
    position: relative;
}

.squares th{
    text-align: left;
    font-weight: normal;
}
.squares th.hmsqr, .squares th.hrmonth{
    font-size: 12px;
}
.map_info_box .main_param{
    font-size: 13px;
    color: #000;
}
.map_info_box .minor_param{
    font-weight: normal;
    font-size: 11px;
    color: #808080;
    text-align: right;
}
.squares .float_int{
    text-align: right;
}
.squares .float_frac{
    text-align: left;
    width: 30px;
}
.squares .float_int, .squares .float_frac{
    font-size: 14px;
    font-weight: bold;
}
.squares .float_frac:before{

}
.squares .space{
    width: 15px;
}
.map_info_box a.heart{
    font-family: 'WebSymbolsLigaRegular';
    text-rendering: optimizeLegibility;
    border: none !important;
    color: #d6d6d6;
    text-decoration: none;
    font-size: 14px;
    display: block;
    padding-right: 3px;
}
.map_info_box a.heart.active{
    color: #ff5e4e;
}

.bubble{
    height: 23px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-position: 0 0;
    font-weight: normal;
    font-size: 11px;
    font-family: 'Trebuchet MS', sans-serif;
    color: #fff;
    text-align: center;
    line-height: 12px;
    line-height: 9px\0/;
    display: block;
    cursor: pointer;
}

.sq_str_type_wrap{
    display: inline-block;
    padding-bottom: 1em;
    position: relative;
}
.sq_str_type_wrap.double{
    padding-bottom: 1.5em;
}

.sq_str_type_wrap .sq_str_type{
    position: absolute;
    bottom: 0px;
    font-size: 11px;
    font-weight: normal;
    line-height: 1;
    text-align: left;
}

#main_block{
    width: 100%;
    position: relative;
    background-color: #fff;
}
.adv_search_container{
    position: absolute; !important
    height:
    z-index: 9;
    padding-top: 0;
}
.adv_search_container>table{
    width: auto;
    height: auto;
    margin-top: 38px;
}
#main_block table{
    width: auto;
    height: auto;
}
#big_search{
    height: auto;
}

#dist{
    display: none;
}

.only_fav_wrap{
    margin-top: 20px;
    margin-bottom: 5px;
    color: #000;
}


.adv_search_container{
    z-index: 10;
}
#map{
    z-index: 9;
}

.phone_code{
    color: #919191;
    font-size: 10px;
    font-weight: normal;
}

.line_head sup, .minor_param sup{
    font-size: 8px;
}

.minor_param.price_for_m{
    text-align: left;
}


.not_found_overlay{
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 9;
    font: 13px Trebuchet MS, sans-serif;
    display: none;
}
.not_found_overlay>div{
    background-color: #fff;
    display: inline-block;
    position: relative;
    padding: 5px 10px;
    margin-left: -50%;
    margin-top: -50%;
    text-align: left;
}
/*SHADOW*/
.not_found_overlay .shadow .t, .not_found_overlay .shadow .b, .not_found_overlay .shadow .l, .not_found_overlay .shadow .r{
    background-image: url('/class_main/images/shadow.png');
    z-index: 1;
}
.not_found_overlay .shadow .t{
    width: 100%;
    height: 9px;
    background-position: -3px 0;
    position: absolute;
    top: -3px;
    left: 0;
}
.not_found_overlay .shadow .b{
    width: 100%;
    height: 9px;
    background-position: -3px 100%;
    position: absolute;
    bottom: -3px;
    right: 0;
}
.not_found_overlay .shadow .l{
    width: 9px;
    height: 100%;
    background-position: 0 -3px;
    position: absolute;
    top: 0;
    left: -3px;
}
.not_found_overlay .shadow .r{
    width: 9px;
    height: 100%;
    background-position: 100% -3px;
    position: absolute;
    top: 0;
    right: -3px;
}
/*END SHADOW*/