﻿/*
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:#0c4f7f;
    color: #fff;
    line-height:40px;
    padding:0 10px;
    font-weight: bold;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    margin-bottom: 2px;
    letter-spacing: 1px;
}
.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: #fff;
}
.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 #d9e4ea;
        max-height: 5000px;
        background: white;
        border-top: 0;
        padding: 5px 10px 0;
        border-radius: 0 0 5px 5px;
    }
    .filter.filter-collapse-invert .filter-body { 
        background: transparent;
    }
    .filter.filter-collapse-invert .filter-header {
        border-bottom-left-radius: 5px;
        border-bottom-right-radius: 5px;
    }
    .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;
    margin-bottom: 1em;
}
/* 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:1px solid #777;
    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: '';
}
#sb-filter-container input[type='checkbox']:hover + label:before{/*hover icon*/
	content: "\e013";
    color:#ccc;
}
#sb-filter-container input[type='checkbox']:checked + label:before{/*checked icon*/
	content: "\e013";
    color:#337ab7;
}
#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:16px;height:16px;
        line-height: 14px;
        font-size:10px;
    }
    #sb-filter-container label{
        padding-left: 22px !important;
        margin:1px 0 !important;
        height:16px;
        line-height: 16px;
        color: #0c4f7f;
        font-weight: bold;
    }
    .with-max-height {
        max-height: 225px;
    }
}
/* END filter checkbox styles */

/* START CATEGORY tree styles */
#category-body li {
    color: #3590d1;
    font-weight: bold;
    font-size: 12px;
}
#category-body li a {
    line-height:22px;
    color: #0c4f7f;
    font-weight: bold;
    font-size: 14px;
}
#category-body li span {
    line-height:22px;
    color: #0c4f7f;
    font-weight: normal !important;
    font-style: italic;
    font-size: 14px;
}

/* 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 */

/* Ui */
.listing-title-underline {
    color: #666;
    font-size: 14px;
}
.listing-title-underline > span {
    padding-top: 6px;
    display: inline-block;
}
.firstitemnum ,.lastitemnum, .totalitemnum {
    font-style: italic;
    font-weight: bold;
    color: #537e9a;
}
.SortingDropdown .btn-default, .SortingDropdown .btn-default:hover, .SortingDropdown .btn-default:focus,
.SortingDropdown .btn-default:active:hover, .SortingDropdown .btn-default.active:hover, 
.SortingDropdown.open > .dropdown-toggle.btn-default:hover, .SortingDropdown.open > .dropdown-toggle.btn-default:focus,
.SortingDropdown .btn-default:active:focus, .sb-listing-showall, .sb-listing-showall:hover, .sb-listing-showall:focus,
.add-filters {
    color: #6496b7;
    background-color: #ffffff99;
    border: 1px solid #cedfea !important;
    box-shadow: none;
    outline: none;
}
.SortingDropdown .btn-default:hover, .SortingDropdown .btn-default:focus, .sb-listing-showall:hover, .sb-listing-showall:focus,
.btn-group.open .dropdown-toggle, .add-filters:hover, .add-filters:focus , .add-filters:active , .add-filters:active:hover, .add-filters:active:focus { 
    background-color: #ffffff;
    color: #537e9a;
    box-shadow: none;
    outline: none;
}
.SortingDropdown .dropdown-menu {
    background-color: #fff;
    border: 1px solid #cedfea !important;
}
.SortingDropdown .dropdown-menu a {
    color: #6496b7;
    cursor: pointer;
}
.SortingDropdown .dropdown-menu a:hover, .SortingDropdown .dropdown-menu a:focus {
    color: #537e9a;
}
.filter-icon {
    background: #3590d1;
    padding: 7px 7px 5px 7px;
    border-radius: 3px;
    color: white;
    margin-right: 5px;
}
/*  */
@media (max-width: 991px) {
    .filter-form .filter-header {
        border-radius: 5px;
    }
    .filter-form .filter-body {
        border-radius: 0 0 5px 5px;
        background-color: white;
    }
}
@media (max-width: 767px) {
    #sb-listing-active-filters {
        margin-top: 1em;
    }
}
@media (max-width: 480px) {
    .sb-listing-item {
        width: 100%;
    }
}
