﻿/*
Compile-Minify: true
Compile-Area: everywhere
Compile-OutputGroup: headtag
Compile-Exports: listing-filters
Compile-Dependencies: bootstrap,site
*/

/* START OLD Styles */
.filter-form h5 {
    font-weight: bold;
    margin-top: 0px;
    margin-bottom: 0px;
    padding: 10px 5px;
}

.filter-form ul {
    list-style: none;
    padding-left: 5px;
}

.filter-form li {
    margin: 5px 0;
}

.filter-slant {
    border-bottom: 35px solid green;
    border-left: 15px solid transparent;
    float: right;
    margin-top: -33px;
    width: 0;
}
/* end not used */

a.filter-remove, #clear-filters, #add-filters {
    display: inline-block;
    margin: 0 4px 4px 0;
    font-size: 100%;
}

.add-filters {
    height: 33px;
}

a.filter-remove:hover, a.filter-remove:focus {
    text-decoration: line-through;
}

.filter-message {
    position:relative;
    padding:15px;
    margin:1em 0 3em;
    /*color:#fff;*/
    background: #ccc;

    margin: 0 0 25px 0;
    padding: 8px 10px;
    white-space: nowrap;
    font-weight:bold;
}
.filter-message:after {
    content:"";
    position:absolute;
    bottom:-15px; /* value = - border-top-width - border-bottom-width */
    left:15px; /* controls horizontal position */
    border-width:15px 15px 0; /* vary these values to change the angle of the vertex */
    border-style:solid;
    border-color:#ccc transparent;
    /* reduce the damage in FF3.0 */
    display:block;
    width:0;
}

/* CSS for show more in filters */
.filter-showmore {
    margin-bottom: 10px;
    margin-right: 5px;
    text-align: right;
    display: none;
}

.showmore-link {
    cursor: pointer;
}
/* end show more in filters */

/* END OLD styles */






/* START outer basic listing layout */
.listing-container{
}
#sb-listing-container:before, #sb-listing-container:after {
    content: " ";
    display: table;
}
#sb-listing-container:after {
    clear: both;
}
.listing-header{
    position: relative;
    min-height: 1px;
}
.listing-filters{
    max-height: 0;
    transition: max-height 0.20s ease-out;
    overflow: hidden;
}
.listing-body{
}
/* END outer basic listing layout */


/* START listing filter styles */
.filter {
    /*border: 1px solid #ccc;
    /-*padding: 5px 10px;*-/
    margin-bottom: -20px;
    padding-bottom: 15px;*/
}
.filter-header{
    position:relative;
    display:block;
    width:100%;
    background-color:#D1D3D4;
    color: #fff;
    line-height:40px;
    padding:0 10px;
    font-weight: bold;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    margin-bottom: 2px;
}
.filter-header:hover, .filter-header:active, .filter-header:visited{
    text-decoration: none;
    color: #fff;
}
.filter.filter-collapse-invert .filter-header{
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 0;
}
.filter-collapsed-state{
    height:40px;
    line-height:40px;
    padding-right: 5px;
    color: #666;
}
.filter-collapsed-state:before{
    /*content: "\e080";   /-* Chevron Right */
    content: "\e114";   /* Chevron Down */
}
.filter.filter-collapse-invert .filter-collapsed-state:before{
    content: "\e113";   /* Chevron Up */
}

.filter-body{
    max-height: 0;
    transition: max-height 0.20s ease-out;
    overflow: hidden;
}
.filter.filter-collapse-invert .filter-body{
    border: 1px solid #ccc;
    max-height: 5000px;
    transition: max-height 0.35s ease-in;
    margin-bottom:15px;
}
.filter-items{
    max-height: 305px;
    transition: max-height 0.20s ease-out;
    overflow: hidden;
    white-space:nowrap;
    text-overflow: ellipsis;
}
.filter.filter-expanded .filter-items{
    max-height: 4500px;
    transition: max-height 0.35s ease-in;
}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {
    .listing-container{
            
    }
    .listing-header{
        position: relative;
        min-height: 1px;
        width:75%;
        float:right;
        padding-left:15px;
        padding-right:15px;
    }
    .listing-filters{
        width:25%;
        float:left;
        max-height: none;
    }
    .listing-body{
        width:75%;
        float:right;
        padding-left:15px;
        padding-right:15px;
    }
    .filter{
        margin-right:15px;
        margin-bottom:15px;
    }
    .filter-header{
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        margin-bottom: 0;
    }
    .filter-collapsed-state:before{
    content: "\e113";   /* Chevron Up */
    }
    .filter.filter-collapse-invert .filter-collapsed-state:before{
    content: "\e114";   /* Chevron Down */
    }
    .filter.filter-default-collapsed .filter-collapsed-state:before{
    content: "\e114";   /* Chevron Down */
    }
    .filter.filter-default-collapsed.filter-collapse-invert .filter-collapsed-state:before{
    content: "\e113";   /* Chevron Up */
    }
    .filter-body{
        border: 1px solid #ccc;
        max-height: 5000px;
    }
    .filter.filter-collapse-invert .filter-header {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
    .filter.filter-collapse-invert .filter-body{
        max-height: 0px;
        transition: max-height 0.20s ease-out;
        margin-bottom:0;
        border:0 none;
    }
    .filter.filter-default-collapsed .filter-header {
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }
    .filter.filter-default-collapsed .filter-body {
        max-height: 0;
        transition: max-height 0.20s ease-out;
        border:0 none;
    }
    .filter.filter-default-collapsed.filter-collapse-invert .filter-header {
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
    }
    .filter.filter-default-collapsed.filter-collapse-invert .filter-body{
        max-height: 5000px;
        transition: max-height 0.35s ease-in;
        margin-bottom:15px;
    }
    .filter-items{
        max-height: 220px;
    }
}
.listing-filters.open {
    max-height: 5000px;
    transition: max-height 0.35s ease-in;
}
/* END listing filter styles */

/* START filter checkbox styles */
#sb-filter-container input[type='checkbox'] {
	visibility: hidden;
}
#sb-filter-container input[type='checkbox'] + label:before,
#sb-filter-container input[type='checkbox'] + label:after{
    position:absolute;left:0;
    width:24px;
    height:24px;
    margin-right:5px;
    border: .063rem solid #949494;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    font-size:16px;
    text-align:center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
#sb-filter-container input[type='checkbox'] + label:before{/*unchecked icon*/
    content: '';
    margin-right: .5rem;
}

#sb-filter-container input[type='checkbox']:hover + label:before{/*hover icon*/
	/* content: "\e013";
    color:#fff;
    background-color: #4aa629;
    display: flex;
    align-items: center;
    justify-content: center; */
}

#sb-filter-container input[type='checkbox']:checked + label:before{/*checked icon*/
	content: "\e013";
    color:#fff;
    background-color: #4aa629;
    display: flex;
    align-items: center;
    justify-content: center;
}
#sb-filter-container label{
    padding-left: 30px !important;
    margin:3px 0 !important;
    height:24px;
    line-height: 24px;
}
@media (min-width: 1025px) {
    #sb-filter-container input[type='checkbox'] + label:before,
    #sb-filter-container input[type='checkbox'] + label:after{
        width: 1.25rem;
        height:1.25rem;
    }
    #sb-filter-container label{
        display: flex;
        align-items: center;
        height:16px;
        line-height: 1.6;
        font-size: .875rem !important;
        color: #4d4d4d;
    }

    #sb-filter-container label:hover {
        color: #949494;
    }

    .with-max-height {
        max-height: 225px;
    }
}
/* END filter checkbox styles */

/* START CATEGORY tree styles */
#category-body a, #category-body span {
    line-height:22px;
}

/* Adding a GlyphIcon before LI items - too bad there are no useful tree branch glyphs.
ul.filter-items li.depth1:before {
    position: relative;
    top: 1px;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0 10px;
    content: "\e080";
} */
#category-body li.depth1 {
    background: transparent url('../images/blocks.png') no-repeat -5px -323px;
    padding: 0 0 0 22px;
}
#category-body li.depth2 {
    background: transparent url('../images/blocks.png') no-repeat +12px -323px;
    padding: 0 0 0 42px;
}
/*#category-body li[class*="depth"] {
    margin-top: 0px;
    margin-bottom: 0px;
}*/
/* END CATEGORY tree styles */