
/* hide real years */
.form-item-fromy { display: none; }
.form-item-toy { display: none; }

#slider { grid-area: slider; }
/* #fakestart { grid-area: fromy; }
#fakeend { grid-area: toy; } */
.fakes-wrapper { grid-area: fakes; }
.yearbtts { grid-area: yearbtts; }


/* global slider style */
#slider { 
    position: relative; 
    margin: 3.5rem 0 1rem 0;
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0 2rem 0 1rem;
}

#slider .noUi-handle {
    width: 16px;
    height: 16px;
    background-color: var(--main_blue);
    color: var(--main_blue);
    border-radius: 0;
    border: none;
    box-shadow: none;
    right: -6px;
    top: -1px;
    transform: translateY(-25%);
    cursor: pointer;
}
#slider .noUi-handle::before,
#slider .noUi-handle::after { display: none; }

#slider .noUi-base {
    height: 6px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--border_gray);
}
#slider .noUi-connect { background-color: var(--main_blue); }

#slider::before {
    content: 'Filter by Year';
    font-size: 16px;
    font-weight: 400;
    position: absolute;
    margin: 1rem 0;
    top: -3rem;
    left: 0;
    width: 100%;
}

/* fields style */
.fakes-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    position: relative;
}
.fakes-wrapper::before {
    content: '';
    width: .75rem;
    height: 4px;
    background-color: var(--main_blue);
    position: absolute;
    bottom: 1.5rem;
    left: calc(50% - .5rem);
    transform: translateX(-50%);
}

#fakestart::-webkit-inner-spin-button,
#fakestart::-webkit-outer-spin-button,
#fakeend::-webkit-inner-spin-button,
#fakeend::-webkit-outer-spin-button { 
    -webkit-appearance: none;
    -moz-appearance: textfield;
    appearance: none; 
}

#fakestart, #fakeend {
    max-width: 160px;
    height: fit-content;
    outline: none;
    background-color: transparent;
    color: var(--main_blue);
    font-weight: 500;
    font-size: 20px;
    border: none;
    border-bottom-color: currentcolor;
    border-bottom-style: none;
    border-bottom-width: medium;
    padding: 0 0 .5rem 0;
    border-bottom: 1px solid var(--border_gray);
    width: 90%;
    display: block;
}
#fakestart { 
    margin: auto 1.5rem .5rem 0;
    text-align: right; 
}
#fakeend {  margin: auto 1rem .5rem 1.5rem; }


.yearbtts { display: flex; flex-direction: row; }
.yearbtts button {
    width: fit-content;
    height: 3rem;
    background-color: var(--border_gray);
    margin: auto 1rem .5rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 1rem;
    font-size: 14px;
    border: none;
    color: var(--text_color);
    text-align: center;
    position: relative;
    cursor: pointer;
}


@media (max-width: 1023px) {
    .yearbtts { 
        width: calc(50% - 1rem); 
        justify-content: center;
    }
    
    #slider {
        width: calc(50% - 2rem);
        padding: 0 .5rem 0 .5rem;
    }

    .fakes-wrapper { width: calc(50% - 2rem); }
    .fakes-wrapper::before { left: calc(50%); }

    #fakestart, #fakeend {
        width: calc(25% - 1rem);
        position: relative;
        min-width: 120px;
        margin: auto 1.5rem .5rem 1.5rem;
    }
}


@media (min-width: 1024px) {
    .block.block-views.views-exposed-form.block-views-exposed-filter-blockevents-block-5 form > div:not(.num-total-active) {
        display: grid;
        grid-template-areas: 
            'search     search      search      empty_4     empty_4     empty_4     empty_4'
            'slider     slider      fakes       fakes       yearbtts    yearbtts    yearbtts'
            'sections   sections    sections    sections    sections    sections    sections'
            'type       type        type        type        type        empty_3     empty_3'
            'target     target      target      empty_1     location    location    empty_6'
            'hosted     hosted      empty_2     empty_2     buttons     buttons     buttons';
        grid-template-columns: repeat(7, 1fr);
    }

    
    #slider::before {
        font-size: 14px;
        font-weight: 700;
    }
    
}


@media (min-width: 1200px) {
    #slider .noUi-handle { top: -2px; }
    .yearbtts button { padding: 0 2rem; }
}


@media (min-width: 1400px) {
    .block.block-views.views-exposed-form.block-views-exposed-filter-blockevents-block-5 form > div:not(.num-total-active) {
        display: grid;
        grid-template-areas: 
            'search     search      search      search      search     empty_4     empty_4     void'
            'slider     slider      fakes       fakes       yearbtts    yearbtts    yearbtts    void'
            'sections   sections    sections    sections    sections    sections    sections    void'
            'type       type        type        type        type        empty_3     empty_3     void'
            'target     target      target      empty_1     location    location    empty_5     void'
            'hosted     hosted     empty_2     empty_2     empty_2     buttons     buttons     buttons';
        grid-template-columns: repeat(8, 1fr);
    }

    #slider .noUi-handle {
        width: 20px;
        height: 20px;
    }

}