section.main {
    /* note: page h1 is not visible is js is disabled */
    visibility: hidden;
}

.category-selector {
    width: 100%;
    /*font-size: 14px !important;*/
}

.category-selector .operation-tabs .tab {
    position: relative;
    display: inline-block;
    padding: 0 38px;
    height: 42px;
    line-height: 42px;
    color: #E1E2E2;
    /*background-color: #384345;*/
    background-color: #34495e;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px 4px 0 0;
}
.category-selector.visual-effects .operation-tabs .tab {
    transition: background-color 200ms ease;
}
.category-selector .operation-tabs .tab.selected {
    color: #2F4143;
    background-color: white;
    font-weight: bold;
}
.category-selector .operation-tabs .tab:not(.selected):hover {
    color: white;
    /*background-color: #535e60;*/
    background-color: #435d77;
}
.category-selector .tab .hot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 16px;
    height: 16px;
    background: transparent url("/img/landing/icons/fire.png") 0 0;
    background-size: 100%;
}

.category-selector .content {
    border-radius: 0 4px 4px 4px;
    box-shadow: 0 7px 20px 0 rgba(0,0,0,0.2);
}

.category-selector .type-selector {
    background-color: white;
    border-bottom: 1px solid #EBEBEB;
    padding: 0 15px 0;
    border-top-right-radius: 4px;
}
.category-selector .type-selector .type {
    float: left;
    position: relative;
    text-align: center;
    color: #2F4143;
    margin: 26px 0 0;
    padding-bottom: 12px;
    border-bottom: 4px solid transparent;
}
.category-selector .type-selector .type i {
    display: block;
    width: 75px;
    height: 55px;
    background-image: url(/img/landing/icons/type-icons-color-2h.png);
    background-size: 760px 55px; /* x4 */
    margin: 0 28px 8px;
}
.category-selector .type-selector .type-kvartira i {
    background-position: 0 0;
}
.category-selector .type-selector .type-dom i {
    background-position: -152px 0;
}
.category-selector .type-selector .type-dacha i {
    background-position: -228px 0;
}
.category-selector .type-selector .type-komnata i {
    background-position: -76px 0;
}
.category-selector .type-selector .type-nomer i {
    background-position: -608px 0;
}
.category-selector .type-selector .type-hostel i {
    background-position: -684px 0;
}
.category-selector .type-selector .type-kommer i {
    background-position: -304px 0;
}
.category-selector .type-selector .type-garazh i {
    background-position: -380px 0;
}
.category-selector .type-selector .type-zemlya i {
    background-position: -456px 0;
}
.category-selector .type-selector .type.selected {
    color: #009fe4;
    border-bottom-color: #009fe4;
}
.category-selector .type-selector .type.selected i {
    /*background-position-x: 0;*/

}
.category-selector .type-selector .type:not(.selected):not(:hover) i {
    /*filter: brightness(80%);*/
    /*filter: grayscale(20%);*/
}
.category-selector .type-selector .type:not(.selected):hover i {
    /*color: #009fe4;*/
    /*filter: brightness(110%);
    color: #707070;*/
    filter: brightness(107%);
}

.category-selector .type .badge {
    font-size: 10px;
    position: absolute;
    background-color: #b8b8b8;
    padding: 2px 5px;
    top: -8px;
    right: 10px;
    border: 1px solid white;
    min-width: 22px;
}
.category-selector .type.selected .badge {
    background-color: #00b2ff;
}
/*slick style, no bg*/
.category-selector .type .badge.slick {
    background-color: white;
    color: #a0a0a0;
    border-color: #b8b8b8;
    border-width: 2px;
    box-shadow: 0 0 1px 1px white;
    padding: 1px 4px;
}
.category-selector .type.selected .badge.slick {
    color: #00b2ff;
    border-color: #00b2ff;
}
/*digits style, no bg or border */
.category-selector .type .badge.digits {
    background-color: white;
    color: #a0a0a0;
    border: 0;
    box-shadow: none;
    padding: 2px 0 2px 3px;
    font-size: 11px;
    min-width: unset;
}
.category-selector .type.selected .badge.digits {
    /*color: #00b2ff;*/
    background-color: white;
}


.category-selector .search-options {
    padding: 15px 17px;
    background-color: #F4F5F6;
    border-radius: 0 0 4px 4px;
}
.category-selector .search-options .field {
    float: left;
}
.category-selector .search-options .field > * {
    display: inline-block;
}
.category-selector .search-options .field .title {
    font-weight: bold;
    color: #4c4c4c;
}
.category-selector .search-options .btn-search {
    float: right;
    width: 220px;
    height: 50px;
    line-height: 50px;
    padding: 0;
    margin: 0;
}
.category-selector .search-options .btn-search .fa {
    font-weight: bold;
    font-size: 19px;
    margin-left: 0 !important;
}


select.landing {
    width: 220px;
    height: 50px;
    border-radius: 3px;
    /*font-size: 14px !important;*/
}
select.landing:not(:focus) {
    box-shadow: none;
    -webkit-box-shadow: none;
}

/* support two modes: with label and without. Make A/B testing. */
.field:not(.with-label) .title {
    display: none;
}
.field.with-label select.landing {
    width: 170px;
    height: 45px;
    margin-left: 10px;
}
.field:not(.with-label) select.landing .with-label-option {
    display: none;
}
.field.with-label select.landing .no-label-option {
    display: none;
}


.category-selector.four-items {
    max-width: 800px;
    margin: 0 auto;
    display: block;
}
.category-selector.four-items .type-selector .type i {
    margin-left: 55px;
    margin-right: 55px;
}
@media(max-width: 810px) {
    .category-selector.four-items .type-selector .type i {
        margin-left: 25px;
        margin-right: 25px;
    }
}

.category-selector.six-items {
    max-width: 776px;
    margin: 0 auto;
    display: block;
}
.category-selector.six-items .type-selector .type i {
    margin-left: 24px;
    margin-right: 24px;
}
@media(max-width: 830px) {
    .category-selector.six-items .type-selector .type i {
        margin-left: 9px;
        margin-right: 9px;
    }
    .category-selector .type .badge {
        right: 2px;
    }
}

/* desktop only: decrease bottom part for desktop version, it looks unproportional. Don't change for Mobile! */
@media(min-width: 1000px) {
    .category-selector .search-options {
        padding: 12px 15px;
    }
    select.landing {
        height: 44px;
    }
    .category-selector .search-options .btn-search {
        height: 44px;
        line-height: 44px;
    }
}

/* types breakpoint #1 (does not fit into 1 line): less spacing, box selection */
@media(max-width: 600px) {
    .category-selector .type-selector {
        padding-bottom: 10px;
    }
    .category-selector .type-selector .type {
        margin: 10px 0 0;
        padding: 6px 0 4px;
        border: 2px solid transparent;
        border-radius: 3px;
    }
    .category-selector .type-selector .type.selected {
        border-color: #009fe4;
        /*background-color: #f4fcff;*/
    }
    .category-selector .type-selector .type i {
        margin-left: 10px !important;
        margin-right: 10px !important;
    }
    .category-selector .type .badge {
        top: 0;
        right: 2px;
    }
    .category-selector .type .badge.slick {
        top: 2px;
        right: 2px;
    }
    .category-selector .type.selected .badge.digits {
        /*background-color: #f4fcff;*/
    }
    .category-selector .search-options select.landing,
    .category-selector .search-options .btn-search {
        width: 185px;
    }
}

/* types breakpoint #2: small icons for mobile */
@media(max-width: 480px) {
    section.main > .section-body {
        padding-left: 0;
        padding-right: 0;
        /*padding-bottom: 10px !important;*/
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }

    .category-selector .operation-tabs {
        margin-left: 6px;
    }
    .category-selector .operation-tabs .tab {
        font-size: 15px;
        padding: 0 14px;
        height: 42px;
        line-height: 42px;
    }
    /*alternate with uppercase*/
    .category-selector .operation-tabs.alt .tab {
        font-size: 13px;
        text-transform: uppercase;
        /*font-weight: normal !important;*/
    }
    .category-selector .tab .hot {
        top: 2px;
        right: 2px;
    }

    .category-selector .content,
    .category-selector .content > * {
        border-radius: 0;
        box-shadow: none;
    }

    .category-selector .type-selector {
        padding: 6px 12px 14px;
    }
    .category-selector .type-selector .type {
        font-size: 13px;
    }
    .category-selector .type-selector .type .ellipsis {
        width: 70px;
        margin-left: auto;
        margin-right: auto;
    }

    .category-selector .type-selector .type i {
        width: 60px;
        height: 44px;
        background-size: 610px 44px; /* x5 */
        margin: 0 9px 4px !important;
    }
    .category-selector .type-selector .type-dom i {
        background-position: -122px 0;
    }
    .category-selector .type-selector .type-dacha i {
        background-position: -183px 0;
    }
    .category-selector .type-selector .type-komnata i {
        background-position: -61px 0;
    }
    .category-selector .type-selector .type-nomer i {
        background-position: -488px 0;
    }
    .category-selector .type-selector .type-hostel i {
        background-position: -549px 0;
    }
    .category-selector .type-selector .type-kommer i {
        background-position: -244px 0;
    }
    .category-selector .type-selector .type-garazh i {
        background-position: -305px 0;
    }
    .category-selector .type-selector .type-zemlya i {
        background-position: -366px 0;
    }

    /* x6
    .category-selector .type-selector .type i {
        width: 50px;
        height: 33px;
        background-size: 101px 237px; / * x6 * /
        margin: 0 8px 6px;
    }
    .category-selector .type-selector .type span {
        width: 64px;
    }
    .category-selector .type-selector .type-kvartira i {
        background-position: -51px 0;
    }
    .category-selector .type-selector .type-dom i {
        background-position: -51px -34px;
    }
    .category-selector .type-selector .type-kommer i {
        background-position: -51px -68px;
    }
    .category-selector .type-selector .type-zemlya i {
        background-position: -51px -102px;
    }
    .category-selector .type-selector .type-dacha i {
        background-position: -51px -136px;
    }
    .category-selector .type-selector .type-komnata i {
        background-position: -51px -170px;
    }
    .category-selector .type-selector .type-garazh i {
        background-position: -51px -204px;
    }
    .category-selector .type-selector .type.selected {
        color: #009fe4;
        border-bottom-color: #009fe4;
    }
    .category-selector .type-selector .type.selected i {
        background-position-x: 0;
    }
    */

    .category-selector .operation-tabs .tab {
        border-radius: 3px 3px 0 0;
    }

    .category-selector .search-options {
        border-bottom: 1px solid #EBEBEB;
    }
    .category-selector .search-options > * {
        float: none !important;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 100% !important;
        max-width: 450px;
    }
    .category-selector .search-options > *:not(:last-child) {
        margin-bottom: 12px;
    }
    .category-selector .search-options select.landing {
        width: 100%;
    }
}

/* > 480px: make footer height smaller, because it looks non-proportional */
@media(min-width: 481px) {
    .category-selector.four-items .search-options {
        padding: 14px 15px;
    }
    .category-selector.four-items .search-options select.landing,
    .category-selector.four-items .search-options .btn-search {
        height: 42px;
        line-height: 42px;
    }
}

/* iPhone 5 (320px): make smaller margins to fit 4 items on one row */
@media(max-width: 359px) {
    .category-selector .type-selector .type i {
        margin-left: 4px !important;
        margin-right: 4px !important;
    }
}