/***********
  Filter
************/

#filter {
    padding: 24px 15px 0;
}

#filterWrap {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#filterTop {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    margin-bottom: 12px;
}

.filterTopItem {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

#filterUpdated {
    text-align: center;
    margin: 0 auto 20px;
}

@media (max-width: 1000px) {
    #filterTop {
        flex-direction: column;
        width: 100%;
    }

    .filterTopItem {
        width: 100%;
    }
}


#filterBottom {
    margin-top: 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

#filterBottomView {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.filterBottomViewLabel {
    display: flex;
    width: 100%;
}

.filterBottomViewLabelInput {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.filterBottomViewLabelBody {
    width: 100%;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid transparent;
    color: var(--black);
    opacity: .7;
    cursor: pointer;
    transition: .3s ease;
}

.filterBottomViewLabelBody svg {
    height: 20px;
    width: auto;
}

.filterBottomViewLabelBody:hover {
    cursor: pointer;
}

.filterBottomViewLabelInput + .filterBottomViewLabelBody {
    transition: .5s ease;
}

.filterBottomViewLabelInput:checked + .filterBottomViewLabelBody {
    opacity: 1;
    border-bottom: 1px solid var(--black);
}

#filterBottomSort {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.filterBottomSortLabel {
    display: flex;
}

.filterBottomSortLabelInput {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.filterBottomSortLabelBody {
    width: 100%;
    padding: 8px 10px;
    display: flex;
    justify-content: center;
    gap: 6px;
    align-items: center;
    border-bottom: 1px solid transparent;
    color: var(--black);
    opacity: .7;
    cursor: pointer;
    transition: .3s ease;
}

.filterBottomSortLabelBody svg {
    height: 20px;
    width: auto;
}

.filterBottomSortLabelBody:hover {
    cursor: pointer;
}

.filterBottomSortLabelInput + .filterBottomSortLabelBody {
    transition: .5s ease;
}

.filterBottomSortLabelInput:checked + .filterBottomSortLabelBody {
    opacity: 1;
    border-bottom: 1px solid var(--black);

}


/***********
  Events
************/
#events {
    margin-top: 30px;
    padding: 30px 15px 60px;
}

/* GRID VIEW */
#eventsBody {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.eventsBodyEmpty {
    font-size: 24px;
    grid-column: span 3;
    font-weight: 500;
    text-align: center;
}

.eventsBodyItem {
    display: flex;
    flex-direction: column;
    background-color: white;
    border: 1px solid #f1f1f1;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.2);
    transition: .3s ease;
}

.eventsBodyItemInfoWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 432px;
}

.eventsBodyItem:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.eventsBodyItemWrap {
    overflow: hidden;
    height: 100%;
    width: 100%;
    display: flex;
}

.eventsBodyItemImg {
    width: 100%;
    aspect-ratio: 348/200;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.eventsBodyItem .eventsBodyItemImg {
    transition: .5s ease;

}

.eventsBodyItem:hover .eventsBodyItemImg {
    transform: scale(1.05);
    transition: .5s ease;
}

.eventsBodyItemInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 30px 24px;
    height: 100%;
    font-weight: 400;
}

.eventsBodyItemInfoTitle {
    font-size: 19px;
    font-weight: 500;
}

.eventsBodyItemInfoLocation {
    margin-top: 8px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    color: var(--red);
    font-size: 12px;
}

.eventsBodyItemInfoLocation:hover {
    text-decoration: underline;
}

.eventsBodyItemInfoLocationIcon {
    height: 16px;
    width: auto;
}

.eventsBodyItemInfoTags {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.eventsBodyItemInfoDesc {
    color: black;
    text-align: center;
    font-size: 12px;
    white-space: pre-wrap;
    margin-top: 4px;
    display: none;
}


.eventsBodyItemInfoRead {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 12px;
    margin-top: 4px;
    white-space: nowrap;
    gap: 2px;
    color: var(--red);
}

.eventsBodyItemInfoRead:hover {
    text-decoration: underline;
}

.eventsBodyItemInfoReadIcon {
    height: 12px;
    width: auto;
}

.eventsBodyItemInfoTagsItem {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    white-space: nowrap;
}

.eventsBodyItemInfoTagsItem svg {
    height: 17px;
    width: auto;
}

.eventsBodyItemLine {
    margin: 20px 0 15px;
}

/* showtime-picker component styling in grid view */
showtime-picker {
    margin-bottom: 12px;
}

.eventsBodyItemInfoDetails {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    font-size: 15px;
    color: var(--red);
    justify-content: center;
    font-weight: 300;
    margin-top: auto;

}

.eventsBodyItemInfoDetailsIcon {
    height: 16px;
    width: auto;
}

.eventsBodyItemInfoDetails:hover {
    text-decoration: underline;
}

.eventsBodyItemInfoOrder {
    display: none;
}


.eventsBodyItemInfoOrderLink {
    margin-top: 16px;
    border: 1px solid var(--red);
    border-radius: 3px;
    background-color: transparent;
    padding: 5px 15px;
    transition: .3s ease;
    width: fit-content;
}

.eventsBodyItemInfoOrderLink:hover {
    background-color: var(--red);
    color: white;
}

/* LIST VIEW */
#eventsBody.list {
    grid-template-columns: 1fr;
    gap: 10px;
}

#eventsBody.list .eventsBodyItemInfo {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
}

#eventsBody.list .eventsBodyItemInfoWrap {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

#eventsBody.list .eventsBodyItemImg {
    display: none;
}

#eventsBody.list .eventsBodyItemLine {
    display: none;
}

#eventsBody.list showtime-picker {
    margin: 12px 0 0;
}

#eventsBody.list showtime-picker .showtimePickerLinksContainer {
    align-items: flex-start;
}

#eventsBody.list .eventsBodyItemInfoDetails {
    margin-top: 0;
}

/* Detail View */
#eventsBody.detail {
    grid-template-columns: 1fr;
    gap: 10px;
}

#eventsBody.detail .eventsBodyItem {
    display: grid;
    grid-template-columns: 277px 1fr;
    padding: 15px 20px;
}

#eventsBody.detail .eventsBodyItemImg {
    object-fit: contain;
    object-position: top;
}

#eventsBody.detail .eventsBodyItem:hover .eventsBodyItemImg {
    transform: scale(1);
    transition: .5s ease;
}

#eventsBody.detail .eventsBodyItemInfo {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    padding: 15px 20px;
}

#eventsBody.list .eventsBodyItemImg {
    aspect-ratio: unset;
}

#eventsBody.detail .eventsBodyItemInfoWrap {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

#eventsBody.detail .eventsBodyItemLine {
    display: none;
}

#eventsBody.detail .eventsBodyItemInfoDesc {
    display: block;
    text-align: left;
}

#eventsBody.detail showtime-picker {
    margin: 12px 0 0;
}

#eventsBody.detail showtime-picker .showtimePickerLinksContainer {
    align-items: flex-start;
}

#eventsBody.detail .eventsBodyItemInfoDetails {
    display: none;
}

#eventsBody.detail .eventsBodyItemInfoOrder {
    display: flex;
    flex-direction: column;
}

@media (max-width: 1000px) {
    #events {
        margin-top: 0;
    }

    #eventsBody {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    #eventsBody.list {
        gap: 20px;
    }

    #eventsBody.list .eventsBodyItemInfo {
        flex-direction: column;
        gap: 20px;
    }

    #eventsBody.detail {
        gap: 20px;
    }

    #eventsBody.detail .eventsBodyItem {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    #eventsBody.detail .eventsBodyItemInfo {
        flex-direction: column;
        gap: 20px;
    }
}