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

.local-contests {
    background: #000000 url("../img/layout/jeu9-desktop.jpg") bottom center no-repeat;
    background-size: cover;
}

.local-contests-container {
    @include outer-container;
}

.local-contests-wrapper {
    @include span-columns(10);
    @include shift(1);
    text-align: center;
}

.local-contests-btn-back {
    margin: 10px 0 40px 0;
}

.local-contests-title {
    color: white;
    text-align: center;
    text-transform: uppercase;
    margin-top: 40px;
}

.local-contests-subtitle {
    color: white;
    text-align: center;
    margin: 40px 0 90px 0;
}

.local-contests-map {
    width: 70%;
    float: left;
    overflow: hidden;
    border: 1px solid transparent;

    #contests-map {
        height: 680px;
    }
}

.local-contests-map-header {
    color: white;
    text-align: center;
    text-transform: uppercase;
    background-color: $color-black-light;
    font-family: "Lucien-regular";
    font-size: 1em;
    padding: 22px;
}

.local-contests-next {
    width: 30%;
    float: left;
    border: 1px solid $color-grey-border;
    margin-bottom: 40px;
    overflow: hidden;
    background-color: $color-black-light;
    max-height: 766px;
}

.local-contests-next-title {
    color: white;
    text-transform: uppercase;
    text-align: center;
    padding: 30px 0 30px 0;
    border-bottom: 1px solid $color-grey-border;
    background-color: black;
}

/* filters */

.local-contests-next-filters {
    transition: all 0.2s ease;
    overflow: hidden;
    height: 90px;
}

.local-contests-next-filters-btn {
    color: $color-grey-light;
    font-size: 1.2vw;
    padding: 30px 20px;
    border-bottom: 1px solid $color-grey-border;
    margin-bottom: 10px;
    text-align: left;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s ease;
    span {
        color: $color-golden;
        float: right;
    }
    &:hover {
        background-color: white;
        color: black;
    }
    &.open {
        color: $color-golden;
    }
}

.local-contests-next-filters-title {
    color: $color-grey-light;
    text-transform: uppercase;
    font-size: 0.9em;
    margin: 40px 0 40px 0;
}

.local-contests-next-filters-form {
    .form-group {
        text-align: left;
        padding: 0 20px 20px 20px;
        margin-bottom: 0;
        .form-inline {
            width: 50%;
            margin: 0;
            text-align: left;
            label {
                color: white;
                font-size: 0.75em;
                width: 140px;
                span {
                    color: $color-golden;
                }
                &:before {
                    float: right;
                    margin-right: 0;
                }
            }
        }
        .local-contests-next-filters-separator {
            border: none;
            height: 1px;
            width: 100%;
            background-color: $color-grey-border-light;
            margin-top: 20px;
        }
    }
    .filter-element-right {
        float: right;
        label {
            float: right;
        }
    }
}

/* tags */

.local-contests-next-tags {
    list-style-position: inside;
    text-align: left;
    margin-left: 10px;
    margin-bottom: 10px;
}

.local-contests-next-tags-item {
    display: inline-block;
    list-style: none;
    background-color: $color-grey-light;
    padding: 8px;
    margin:1px;
    position: relative;
    font-size: 0.75em;
    text-transform: uppercase;
    .close {
        display: inline-block;
        content: '';
        width: 8px;
        height: 8px;
        background: url("../img/svg/close-white.svg");
        margin-left: 8px;
        cursor:pointer;
    }
}

/* list results */

.local-contests-next-list {
    list-style-position: inside;
    padding: 0 10px 0 10px;
    height: 554px;
    overflow: scroll;
    overflow-x: hidden;
}

.local-contests-next-list-item {
    overflow: hidden;
    cursor: pointer;
    list-style: none;
    background-color: $color-grey-dark;
    margin-bottom: 10px;
    padding: 20px;
    text-align: left;
    position: relative;
    transition: all 0.2s ease;
    .local-contests-next-list-item-left-casino {
        a {
            color: white;
            transition: all 0.2s ease;
        }
    }
    &:hover {
        background-color: white;
        .local-contests-next-list-item-left-casino {
            color: black;
            a {
                color: black;
            }
        }
        .local-contests-next-list-item-right-show-casino {
            color: black;
        }
    }
}

.local-contests-next-list-item-left {
    display: inline-block;
    float: left;
    width: 60%;
}

.local-contests-next-list-item-left-title {
    color: $color-golden;
    text-transform: uppercase;
    font-size: 1.2vw;
}

.local-contests-next-list-item-left-date {
    color: $color-grey-light;
    font-size: 0.8vw;
    margin-bottom: 20px;
}

.local-contests-next-list-item-left-casino {
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1vw;
    transition: all 0.2s ease;
}

.local-contests-next-list-item-left-infos {
    color: $color-grey-light;
    font-size: 0.8vw;
}

.local-contests-next-list-item-right {
    display: inline-block;
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40%;
}

.local-contests-next-list-item-right-btn {
    width: 100%;
    margin-right: 10px;
    padding: 15px 0;
    background-color: white;
    color: $color-golden;
    font-size: 1.2vw;
    &:hover {
        padding: 15px 0;
        font-size: 1.2vw;
    }
}

.local-contests-next-list-item-right-show-casino {
    color: white;
    text-decoration: underline;
    float: right;
    margin-top: 10px;
    font-size: 0.8vw;
    transition: all 0.2s ease;
}

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

@include tablet-landscape-and-below {
    .local-contests-map {
        width: 100%;
    }

    .local-contests-next {
        width: 100%;
    }

    .local-contests-next-filters-btn {
        font-size: 1em;
    }

    .local-contests-next-list-item-left-title {
        font-size: 1.2em;
    }

    .local-contests-next-list-item-left-date {
        font-size: 0.8em;
    }

    .local-contests-next-list-item-left-casino {
        font-size: 1em;
    }

    .local-contests-next-list-item-left-infos {
        font-size: 0.8em;
    }

    .local-contests-next-list-item-right-btn {
        font-size: 1.2em;
        &:hover {
            font-size: 1.2em;
        }
    }

    .local-contests-next-list-item-right-show-casino {
        font-size: 0.8em;
    }
}

@include tablet-portrait-and-below {
    .local-contests-next {
        max-height: 580px;
    }
}

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

@include mobile-landscape-and-below {
    .local-contests-next-list-item-right-btn {
        font-size: 0.8em;
        &:hover {
            font-size: 0.8em;
        }
    }

    .local-contests-next-list-item-left-title {
        font-size: 1.1em;
    }

    .local-contests-next-list-item-left-date {
        font-size: 0.75em;
    }

    .local-contests-next-list-item-left-casino {
        font-size: 0.9em;
    }

    .local-contests-next-list-item-left-infos {
        font-size: 0.75em;
    }
}

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

@include desktop-xl {
    .local-contests-next-list-item-left-title {
        font-size: 1.2em;
    }

    .local-contests-next-list-item-left-date {
        font-size: 0.8em;
    }

    .local-contests-next-list-item-left-casino {
        font-size: 1em;
    }

    .local-contests-next-list-item-left-infos {
        font-size: 0.8em;
    }

    .local-contests-next-list-item-right-btn {
        font-size: 1em;
        &:hover {
            font-size: 1em;
        }
    }

    .local-contests-next-list-item-right-show-casino {
        font-size: 0.8em;
    }

    .local-contests-next-filters-btn {
        font-size: 1em;
    }
}