/* The Events page's Tours tab: its own scroll container in place of #eventsContainer. */

html.giggly-tours-tab-open body:not(.feed-page) #eventsContainer,
html.giggly-tours-tab-open body:not(.feed-page) #feedContainer,
html.giggly-tours-tab-open body:not(.feed-page) #feedSearchNoResultsBanner {
    display: none !important;
}

/* The feed's own controls (layout, month, Show by, When) mean nothing here; search stays. */
html.giggly-tours-tab-open body:not(.feed-page) #filterSortBtn,
html.giggly-tours-tab-open body:not(.feed-page) #filterSortPanel,
html.giggly-tours-tab-open body:not(.feed-page) #feedMonthNav,
html.giggly-tours-tab-open body:not(.feed-page) .giggly-desktop-show-by,
html.giggly-tours-tab-open body:not(.feed-page) #gigglyEventsWhen,
html.giggly-tours-tab-open body:not(.feed-page) #gigglyEventsWhenSticky {
    display: none !important;
}

.giggly-tours-view {
    position: relative;
    z-index: 1;
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: none;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--giggly-chrome-max-width);
    margin: 0 auto;
    padding: 12px 20px calc(var(--bottom-bar-height, 70px) + 68px + env(safe-area-inset-bottom, 0px));
}

.giggly-tours-view[hidden],
html:not(.giggly-tours-tab-open) .giggly-tours-view,
body.feed-page .giggly-tours-view {
    display: none !important;
}

.giggly-tours-view__inner {
    max-width: 840px;
    margin: 0 auto;
}

/* Same look as the All Events "when" box above the feed. */
.giggly-tours-view__bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 6px 16px;
    padding: 10px;
    border: 1px solid var(--border, rgba(3, 25, 38, 0.14));
    border-radius: 22px;
}

.giggly-tours-view__bar-label {
    font-size: 15px;
    opacity: 0.78;
}

.giggly-tours-view__sorts {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--text, #031926) 7%, transparent);
}

.giggly-tours-view__sort {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--text, #031926);
    border-radius: 9px;
    padding: 8px 14px;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    opacity: 0.78;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tours-view__sort.is-active {
    background: var(--bg, #ffffff);
    opacity: 1;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(3, 25, 38, 0.18);
}

.giggly-tours-view__list {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 18px;
}

@media (min-width: 700px) {
    .giggly-tours-view__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.giggly-tours-view__empty {
    grid-column: 1 / -1;
    margin: 24px 0;
    text-align: center;
    color: var(--text-secondary, #475569);
}

.giggly-tours-view__retry {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    color: var(--brand-teal-deep, #468189);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

.giggly-tour-tile {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border, rgba(3, 25, 38, 0.14));
    border-radius: 16px;
    background: var(--bg, #ffffff);
}

.giggly-tour-tile__open {
    appearance: none;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tour-tile__flyer {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: color-mix(in srgb, var(--text, #031926) 6%, transparent);
    overflow: hidden;
}

.giggly-tour-tile__flyer img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.giggly-tour-tile__flyer--none {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
    padding: 16px;
    box-sizing: border-box;
    background: var(--brand-teal-deep, #468189);
    color: #ffffff;
    font-size: 26px;
    font-weight: 600;
    text-align: center;
}

.giggly-tour-tile__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px 12px;
}

.giggly-tour-tile__artist {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.2;
}

.giggly-tour-tile__title {
    font-size: 15px;
    line-height: 1.3;
    color: var(--text-secondary, #475569);
}

.giggly-tour-tile__guests {
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    margin-top: 2px;
}

.giggly-tour-tile__meta {
    font-size: 13px;
    color: var(--text-secondary, #475569);
    margin-top: 2px;
}

.giggly-tour-tile__bar {
    border-top: 1px solid var(--border, rgba(3, 25, 38, 0.14));
}

.giggly-tour-tile__details {
    appearance: none;
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text-secondary, #475569);
    font: inherit;
    font-size: var(--event-v2-footer-chip-font-size, 12px);
    font-weight: 600;
    line-height: 1;
    padding: 14px 0;
    text-align: center;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.giggly-tour-tile__details:active,
.giggly-tour-tile__open:active {
    opacity: 0.9;
}
