///////////////////////////////////////////////////////////////
// Device: Desktop
///////////////////////////////////////////////////////////////

.spectacle-filter-container {
    margin: 80px auto;
    padding: 0 10px;
}

.spectacle-filter-keywords-list-wrapper, .spectacle-filter-city-list-wrapper {
    @include outer-container;
}

.spectacle-filter-city-list {
    list-style-type: none;
    clear: both;
}

.spectacle-filter-keywords-list {
    display: flex;
        align-items: stretch;
    list-style-type: none;
}

.spectacle-filter-keyword-item {
    background-color: $color-grey-background;
    border-right: 1px solid $color-white;
    display: flex;
        align-items: center;
        justify-content: flex-start;
    flex-basis: 0;
    flex-grow: 1;
    flex-shrink: 1;
    margin-bottom: 1px;
    padding: 6px 8px;

    &:last-child {
        border-right: none;
    }

    input[type="radio"]
    {
        margin: 0 0 2px;

        & + label
        {
            line-height: 1;
            margin: 0 0 0 8px;
            width: 100%;
        }
    }

    input[type=checkbox] {
        display: none;
    }

    input[type=checkbox] + label {
        font-family: 'Lucien-book';
        font-size: 0.88em;
        width: 100%;
        padding: 20px 0px;
        display: inline-block;
        text-transform: uppercase;
        outline: none;
        position: relative;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        transition: all 0.3s;
        background: $color-grey-background;
        color: $color-grey-light;
        -webkit-transition: none;
        -moz-transition: none;
        transition: none;
        border: none;
        cursor: pointer;
        text-align: center;
        margin-bottom: 0;
    }

    input[type=checkbox] + label:hover, input[type=checkbox]:checked + label {
        background-color: $color-golden;
        color: $color-white;
    }

}

.spectacle-filter-city-list {
    margin-top: 20px;
}

.spectacle-filter-city-item {
    float: left;
    width: 8.33333333333%; // 100% / 12 items
    background-color: $color-grey-background;
    border-right: 1px solid $color-white;
    margin-bottom: 1px;
    padding: 0;
    height: 50px;
    display: table;

    &:last-child {
        border-right: none;
    }

    .input {
        display: none;
        position: absolute;
        opacity: 0;
    }

    .input + label {
        font-family: 'Lucien-book';
        font-size: 0.7em;
        width: 100%;
        display: table-cell;
        vertical-align: middle;
        text-transform: uppercase;
        outline: none;
        position: relative;
        -webkit-transition: all 0.3s;
        -moz-transition: all 0.3s;
        transition: all 0.3s;
        background: $color-grey-background;
        color: $color-grey-light;
        -webkit-transition: none;
        -moz-transition: none;
        transition: none;
        border: none;
        cursor: pointer;
        text-align: center;
        margin-bottom: 0;
    }

    .input + label:hover, .input:checked + label {
        background-color: $color-golden;
        color: $color-white;
    }

}

.spectacle-filter-search-toolbar {
    @include outer-container;
    margin-top: 20px;
}

.spectacle-filter-search-toolbar-menu {
    @include span-columns(5);

    border-left: 1px solid $color-grey-border-lighter;
    display: flex !important;
        align-items: center;
    min-height: 65px;
}

.spectacle-filter-search-toolbar-menu-title {
    padding: 0 4em;
    text-align: center;
    font-family: 'Lucien-bold';
}

.spectacle-filter-search-toolbar-menu-date,
.spectacle-filter-search-toolbar-menu-price,
.spectacle-filter-search-toolbar-menu-city {
    text-align: center;
    font-family: 'Lucien-book';

    a {
        display: block;
        padding: 0 2em;
        position: relative;

        &:hover, &.active {
            color: $color-golden;
        }

        &::before
        {
            background: $color-grey-border-lighter;
            content: "";
            display: block;
            height: 30px;
            width: 1px;

            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
        }
    }
}

.spectacle-filter-search-toolbar-input {
    @include span-columns(7);
    @include omega();
    position: relative;

    .form-search {
        font-family: 'Lucien-book';
        width: 100%;
        outline: none;
        border-radius: 20px;
        border: 1px solid $color-grey-border-light;
        padding: 7px 40px;
        margin-top: 16px;
    }

    .icon-svg {

        position: absolute;
        top: 26px;
        right: 10px;

        svg {
            width: 15px;
            height: 15px;
        }

    }

}

.spectacle-filter-search-toolbar-national {
    .spectacle-filter-search-toolbar-menu {
        @include span-columns(7);
    }
    .spectacle-filter-search-toolbar-input {
        @include span-columns(5);
    }
}

.spectacle-filter-date-range, .spectacle-filter-price-range {
    @include outer-container;
    margin-top: 20px;
    background-color: $color-grey-background;
    padding: 10px 40px 20px 40px;
}

.spectacle-filter-date-range, .spectacle-filter-price-range, .spectacle-filter-city-list {
    display: none;
    &.active {
        display: block;
    }
}

.spectacle-filter-price-range {
    .irs-grid-text {
        display: none;
    }

}

.spectacle-filter-selected-list {
    @include outer-container;
    margin-top: 40px;
    list-style-type: none;
}

.spectacle-filter-selected-item {
    position: relative;
    display: inline-block;
    border: 1px solid $color-grey-light;
    padding: 30px 60px 30px 20px;
    margin-right: 5px;

    &:not(.active) {
        display: none;
    }

    .label {
        text-transform: uppercase;

        .light {
            font-family: 'Lucien-book';
            color: $color-grey-light;
        }

    }

    .close {
        display: block;
        position: absolute;
        top: 50%;
        margin-top: -15px;
        right: 15px;
        content: '';
        width: 30px;
        height: 30px;
        background: url("../img/svg/close-black.svg");
    }

}

.spectacle-filter-selected-item-label {
    font-size: 1.1vw;
}

/* CUSTOMIZE RANGE */
.irs-grid {
    .irs-grid-pol {
        display: none;
    }
}

.irs-min, .irs-max {
    display: none !important;
}

.irs-line-left, .irs-line-mid, .irs-line-right {
    background-color: #cdcccc;
}

///////////////////////////////////////////////////////////////
// Device: Desktop XL
///////////////////////////////////////////////////////////////

@include desktop-xl {
    .spectacle-filter-container {
        padding: 0;
    }
    .spectacle-filter-selected-item-label {
        font-size: 1em;
    }
}

///////////////////////////////////////////////////////////////
// Device: Tablet
///////////////////////////////////////////////////////////////

@include tablet-landscape-and-below {

    .spectacle-filter-keywords-list {
        flex-wrap: wrap;
    }
    .spectacle-filter-keyword-item {
        flex-basis: percentage(1/3);
        flex-grow: 0;
        flex-shrink: 0;

        &:last-child {
            border-right: 1px solid $color-white;
        }

        .input + label {
            font-size: 0.7em;
        }
    }

    .spectacle-filter-city-item {
        width: 14.28571428571429%; // 100% / 7 items

        .input + label {
            font-size: 0.7em;
        }

        &:last-child {
            border-right: 1px solid $color-white;
        }
    }

    .spectacle-filter-search-toolbar-menu {
        @include span-columns(12);
        @include omega();

        border-left: none;
    }

    .spectacle-filter-search-toolbar-menu-title {
        padding: 0 2em;
    }

    .spectacle-filter-search-toolbar-menu-date,
    .spectacle-filter-search-toolbar-menu-price,
    .spectacle-filter-search-toolbar-menu-city {

        a
        {
            padding: 0 1em;
        }
    }

    .spectacle-filter-search-toolbar-input {
        @include span-columns(12);
        @include omega();

    }

    .spectacle-filter-selected-item-label {
        font-size: 1.4vw;
    }

    .spectacle-filter-selected-item {
        padding: 20px 50px 20px 20px;
        .close {
            height: 20px;
            width: 20px;
            margin-top: -12px;
        }
    }

}

@include tablet-portrait-and-below {
    .spectacle-filter-keyword-item {
        flex-basis: 50%;
    }
    .spectacle-filter-city-item {
        width: 25%; // 100% / 5 items
    }
    .spectacle-filter-selected-item-label {
        font-size: 1.6vw;
    }
    .spectacle-filter-selected-item {
        padding: 15px 40px 15px 20px;
        .close {
            height: 12px;
            width: 12px;
            margin-top: -6px;
        }
    }
    .spectacle-filter-search-toolbar-menu {
        justify-content: flex-start;
        width: 100% !important;
    }
    .spectacle-filter-search-toolbar-menu-title {
        flex-basis: 0;
        flex-grow: 1.5;
        flex-shrink: 1.5;
    }
    .spectacle-filter-search-toolbar-menu-date,
    .spectacle-filter-search-toolbar-menu-price,
    .spectacle-filter-search-toolbar-menu-city {

        flex-basis: 0;
        flex-grow: 1;
        flex-shrink: 1;
    }
    .spectacle-filter-search-toolbar-input {
        width: 100% !important;
    }

    .spectacle-filter-search-toolbar-loc {
        .spectacle-filter-search-toolbar-menu-title {
            width: 36% !important;
        }
        .spectacle-filter-search-toolbar-menu-date,
        .spectacle-filter-search-toolbar-menu-price {
            width: 30% !important;
        }
        .spectacle-filter-search-toolbar-menu {
            width: 100% !important;
        }
        .spectacle-filter-search-toolbar-input {
            width: 100% !important;
        }
    }
}

///////////////////////////////////////////////////////////////
// Device: Mobile
///////////////////////////////////////////////////////////////

@include mobile-landscape-and-below {
    .spectacle-filter-search-toolbar-menu-title {
        padding: 0 1em;
    }
    .spectacle-filter-keyword-item {
        width: 50%;
    }
    .spectacle-filter-city-item {
        width: 50%;
    }
    .spectacle-filter-selected-item {
        width: 100%;
        margin-bottom: 10px;
    }
    .spectacle-filter-selected-item-label {
        font-size: 3.2vw;
    }
    .spectacle-filter-date-range, .spectacle-filter-price-range {
        //    padding: 10px 40px;
    }
    .irs-grid-text {
        display: none;
    }
}