
.filter-button {
    position: fixed;
    z-index: 99;
    left: 0;
    top: 396px;
    width: 40px;
    float: left;
    background-color: #404a59;
    background-size: 35px 100%;
    height: 160px;
    padding: 6px 0px;
    padding-left: 10px;
    cursor: pointer;
    font-size: 16px;
}

    .filter-button .text {
        color: #fff;
        -ms-transform: rotate(90deg);
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
        color: #fff;
        text-align: left;
        position: relative;
        left: -8px;
        white-space: nowrap;
        top: 10px;
    }


        .filter-button .text .icon-filter {
            background: url(../images/icon-filter.png)center center no-repeat;
            background-size: 20px 20px;
            display: block;
            height: 20px;
            width: 20px;
            float: left;
            top: 10px;
            margin-right: 8px;
        }

.filter-toption-box {
    height: auto;
    max-height: 82vh;
    overflow-x: hidden;
}

.filter-toption-box-open {
    height: auto;
    overflow-x: hidden;
}

.filter-toption-box--form-group {
    padding: 15px 23px 15px 15px;
    display: none;
}

    .filter-toption-box--form-group input {
        border-radius: 0;
    }

.cbp-spmenu .filter-toption-box--form-group label {
    padding: 0;
    padding-bottom: 5px;
    font-weight: 700;
}


/* General styles for all menus */
.cbp-spmenu {
    background: #f9f9fb;
    position: fixed;
}

    .cbp-spmenu h3 {
        color: #fff;
        font-size: 1.9em;
        padding: 20px;
        margin: 0;
        font-weight: bold;
       background: #404a59;
    } 

    
    .cbp-spmenu h4 {
        color: #fff;
        font-size: 1.2em;
        padding: 8px;
        margin: 0;
        font-weight: bold;
       background: #404a59;
       width: 300px;
    height: 100%;
        text-align: center;
    } 

    .cbp-spmenu a,
    .cbp-spmenu label {
        display: block;
        color: #000000;
        font-size: 14px;
        font-weight: 300;
        border-top: 1px solid #ccc;
        border-left: 4px solid #f9f9fb;
        padding: 15px 23px 15px 15px;
        text-decoration: none;
    }

    .cbp-spmenu label {
        border-width: 0;
    }


    .cbp-spmenu .accordion-heading a {
        font-weight: 700;
    }

    .cbp-spmenu .accordion-body .accordion-heading a {
        font-weight: normal;
    }

    .cbp-spmenu a input:checked + span {
        font-weight: 700;
    }


    .cbp-spmenu a:active,
    .cbp-spmenu a:hover {
        background: #ddecf8;
        border-left: 4px solid #2a85d7;
    }


    .cbp-spmenu .accordion-inner a {
        padding-left: 20px;
    }

    .cbp-spmenu .accordion-inner .accordion-inner a {
        padding-left: 55px;
    }

    /*.cbp-spmenu a > span:first-of-type {
    padding-left:15px;
}
    */

    .cbp-spmenu a > .glyphicon-chevron-right {
        transform: rotateZ(270deg);
        transform-origin: center;
        transition: .3s;
    }

    .cbp-spmenu a.collapsed > .glyphicon-chevron-right {
        transform: rotateZ(90deg);
    }

/* Orientation-dependent styles for the content of the menu */
.cbp-spmenu-vertical {
    width: 400px;
    height: 100%;
    top: 0;
    z-index: 400;
}

.cbp-spmenu-horizontal {
    width: 100%;
    height: 150px;
    left: 0;
    z-index: 100;
    overflow: hidden;
}

    .cbp-spmenu-horizontal h3 {
        height: 100%;
        width: 20%;
        float: left;
    }

    .cbp-spmenu-horizontal a {
        float: left;
        width: 20%;
        padding: 0.8em;
        border-left: 1px solid #258ecd;
    }

/* Vertical menu that slides from the left or right */

.cbp-spmenu-left {
    left: -400px;
}

.cbp-spmenu-right {
    right: -400px;
}

.cbp-spmenu-left.cbp-spmenu-open {
    left: 0px;
}

.cbp-spmenu-right.cbp-spmenu-open {
    right: 0px;
}

/* Horizontal menu that slides from the top or bottom */

.cbp-spmenu-top {
    top: -150px;
}

.cbp-spmenu-bottom {
    bottom: -150px;
}

.cbp-spmenu-top.cbp-spmenu-open {
    top: 0px;
}

.cbp-spmenu-bottom.cbp-spmenu-open {
    bottom: 0px;
}

/* Push classes applied to the body */

.cbp-spmenu-push {
    overflow-x: hidden;
    position: relative;
    left: 0;
}

.cbp-spmenu-push-toright {
    left: 240px;
}

.cbp-spmenu-push-toleft {
    left: -240px;
}

.cbp-spmenu-width-fixed {
   width: 320px;
}

.cbp-spmenu-width-fixed-ava-filter {
    width: 28%;
       position: sticky;
}

/* Transitions */

.cbp-spmenu,
.cbp-spmenu-push {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* Example media queries */

@media screen and (max-width: 55.1875em) {

    .cbp-spmenu-horizontal {
        font-size: 75%;
        height: 110px;
    }

    .cbp-spmenu-top {
        top: -110px;
    }

    .cbp-spmenu-bottom {
        bottom: -110px;
    }
}

@media screen and (max-height: 26.375em) {

    .cbp-spmenu-vertical {
        font-size: 90%;
        width: 190px;
    }

    .cbp-spmenu-left,
    .cbp-spmenu-push-toleft {
        left: -190px;
    }

    .cbp-spmenu-right {
        right: -190px;
    }

    .cbp-spmenu-push-toright {
        left: 190px;
    }
}


/* The Overlay (background) */
.overlay {
    /* Height & width depends on how you want to reveal the overlay (see JS below) */
    height: 100%;
    width: 0;
    position: fixed; /* Stay in place */
    z-index: 310; /* Sit on top */
    left: 0;
    top: 0;
    background-color: rgb(0,0,0); /* Black fallback color */
    background-color: rgba(0,0,0, 0.5); /* Black w/opacity */
    overflow-x: hidden; /* Disable horizontal scroll */
}

/* Position the content inside the overlay */
.overlay-content {
    position: relative;
    top: 25%; /* 25% from the top */
    width: 100%; /* 100% width */
    text-align: center; /* Centered text/links */
    margin-top: 30px; /* 30px top margin to avoid conflict with the close button on smaller screens */
}

/* The navigation links inside the overlay */
.overlay a {
    padding: 8px;
    text-decoration: none;
    font-size: 36px;
    color: #818181;
    display: block; /* Display block instead of inline */
    transition: 0.3s; /* Transition effects on hover (color) */
}

    /* When you mouse over the navigation links, change their color */
    .overlay a:hover, .overlay a:focus {
        color: #f1f1f1;
    }

/* Position the close button (top right corner) */
.overlay .closebtn {
    position: absolute;
    top: 20px;
    right: 45px;
    font-size: 60px;
}

/* Helper text when no results are found */
.filter-results_none--helper {
}

.ava-results_none--helper {
    
}

/* When the height of the screen is less than 450 pixels,
    change the font-size of the links and position the close button again, so they don't overlap */
@media screen and (max-height: 450px) {
    .overlay a {
        font-size: 20px;
    }

    .overlay .closebtn {
        font-size: 40px;
        top: 15px;
        right: 35px;
    }
}

/* Small devices (mobile, 767px and down) */
@media (max-width: 767px) {
    .filter-results_none--helper {
        margin-bottom: -18px;
    }

      .ava-results_none--helper {
        margin-bottom: -5px;
    }

    .filter-button {
        top: 0;
        border-radius: 0;
        border-top: 0;
        position: static;
        height: auto;
        padding: 10px 2px;
        display: block;
        width: auto;
        float: none;
        text-align: center;
        margin-bottom: 20px;
    }

        .filter-button .text {
            -ms-transform: none;
            -webkit-transform: none;
            transform: none;
            top: 0;
            left: 0;
            text-align: center;
            padding: 1px;
            font-size: 16px;
            position: static;
        }

            .filter-button .text .icon-filter {
                width: 16px;
                height: 20px;
                float: none;
                display: inline-block;
                vertical-align: middle;
                margin-right: 5px;
            }

    .cbp-spmenu-left.cbp-spmenu-open {
        width: 100%;
    }

    .filter-toption-box {
        max-height: 75vh;
    }

          .cbp-spmenu-width-fixed-ava-filter {
            width: 100%;
            position: sticky;
        }

    .cbp-spmenu h4 {
         width: 100%;
    }

    .cbp-spmenu .btn-dark-teal {
    width: 100%;
}
}

.cbp-spmenu .glyphicon-remove {
    font-size: 0.8em;
    cursor: pointer;
}

/* Small devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1199px) {
    .filter-button {
        border-radius: 0;
        border-top: 0;
        position: static;
        height: auto;
        padding: 10px 10px;
        top: 0;
        border-radius: 0;
        border-top: 0;
        display: inline-block;
        width: auto;
        float: none;
        margin-bottom: 0;
        padding-right: 20px;
        margin-top: 20px;
    }

        .filter-button .text {
            -ms-transform: none;
            -webkit-transform: none;
            transform: none;
            top: auto;
            left: auto;
        }

    .tile-result .box-title .box-text {
        display: block;
    }

          .cbp-spmenu-width-fixed-ava-filter {
            width: 100%;
            position: sticky;
        }

            .cbp-spmenu h4 {
         width: 100%;
    }
            .cbp-spmenu .btn-dark-teal {
    width: 100%;
}
}
