/* Lime & Dine web app on a desktop (1024px and wider; linked with media="(min-width: 1024px)").
   On a phone nothing here applies. The phone column becomes a full-width page: the tab bar
   moves up into the header, the home tiles sit in one row, lists become grids of cards,
   and a listing puts its picture beside its details. */

:root { --desk: 1200px; --gutter: max(24px, calc((100vw - var(--desk)) / 2)); }

body { background: #f4f4f6; }
.app { max-width: none; box-shadow: none; background: #f4f4f6; }
.app--tabbar { padding-bottom: 0; }

/* Header: logo left, the tab bar on the right, across the whole page */
.bar {
    height: 76px;
    padding: 0 var(--gutter);
    grid-template-columns: auto auto 1fr;
    gap: 16px;
    border-bottom: 1px solid #e6e6e8;
}
.bar__logo { justify-self: start; }
.bar__logo img { height: 52px; }
.bar > .bar__btn--blue, .bar > span:first-child:empty { display: none; }
.bar--title { grid-template-columns: 48px 1fr; }

.tabbar--main {
    position: fixed;
    top: 0;
    left: auto;
    right: var(--gutter);
    bottom: auto;
    transform: none;
    width: auto;
    max-width: none;
    height: 76px;
    padding: 0;
    z-index: 20;
    display: flex;
    gap: 4px;
    background: transparent;
    border: 0;
}
.tabbar--main .tabbar__tab {
    flex-direction: row;
    gap: 8px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 999px;
    margin: 16px 0;
}
.tabbar--main .tabbar__tab .ic { font-size: 17px; width: 18px; }
.tabbar--main .tabbar__tab:hover { background: #f1f1f3; color: #222; }
.tabbar--main .tabbar__tab.is-on { background: #e8f0ff; }
.bar--title { padding-right: calc(var(--gutter) + 480px); }

main, .list, .shelf, .saved { max-width: var(--desk); margin: 0 auto; }

/* Home: the search wide and centred, the edition beside the tiles */
.home { padding: 28px 24px 48px; }
.search { max-width: 640px; margin: 0 auto 28px; padding: 0; }
.search__box { height: 54px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.home [data-home-content] {
    display: grid;
    grid-template-columns: 340px 1fr;
    grid-template-rows: auto auto 1fr;
    gap: 0 24px;
}
.home .install { grid-column: 1 / -1; margin: 0 0 20px; }
.home .banner {
    grid-column: 1; grid-row: 2;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 28px 24px;
    border: 0;
    border-radius: 16px 16px 0 0;
    text-align: center;
}
.home .banner__cover { width: 72%; margin: 0 auto; }
.home .banner__text { text-align: center; }
.home .shelf-link { grid-column: 1; grid-row: 3; align-self: start; border: 0; border-radius: 0 0 16px 16px; }
.home .tiles {
    grid-column: 2; grid-row: 2 / span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-content: start;
}
.home .tile { aspect-ratio: 16 / 9; border-radius: 16px; }
.home .tile:last-child { grid-column: 1 / -1; aspect-ratio: 32 / 9; }
.results { background: #fff; border-radius: 16px; max-width: 780px; margin: 0 auto; overflow: hidden; }

/* A category: cards in a grid, on the category's colour */
.list { min-height: calc(100vh - 76px); padding: 24px; border-radius: 0; max-width: none; }
.list__items {
    max-width: var(--desk);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 14px;
}
.list__item {
    border: 0;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    padding: 16px;
    min-height: 96px;
}
.list__item:hover { background: rgba(255, 255, 255, 0.22); }
.listbar { max-width: var(--desk); margin: 0 auto 16px; border-radius: 14px; }
.listmap { max-width: var(--desk); margin: 0 auto; height: 70vh; border-radius: 14px; }

/* A listing: the picture on the left (stays in view), everything else on the right */
.detail {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    grid-auto-flow: row dense;
    gap: 0 32px;
    padding: 28px 24px 48px;
    align-items: start;
}
.detail > * { grid-column: 2; background: #fff; }
.detail > .detail-bar { grid-column: 1 / -1; border: 0; border-radius: 16px; margin-bottom: 24px; box-shadow: none; }
.detail > .photo {
    grid-column: 1;
    grid-row: 2 / span 8;
    position: sticky;
    top: 100px;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}
.detail > .photo--card { aspect-ratio: 4 / 3; }
.detail > .quick { border-radius: 16px 16px 0 0; padding-top: 22px; }
.detail > .detail-text { padding: 22px 26px 8px; }
.detail > .open { padding: 16px 26px 4px; }
.detail > .reach-wrap { border-radius: 0 0 16px 16px; margin-bottom: 24px; }
.detail > .map { border-radius: 16px; height: 300px; }
.detail .actions__btn { background: rgba(255, 255, 255, 0.25); }

/* The calendar: the week across the top, the day and what's coming up side by side */
.cal {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 0 28px;
    padding: 28px 24px 48px;
    align-items: start;
}
.cal > .week { grid-column: 1 / -1; border-radius: 16px; margin-bottom: 20px; border: 0; background: #fff; padding: 16px 8px; }
.cal > .week__label:not(.week__label--soon), .cal > .events, .cal > .empty { grid-column: 1; background: #fff; }
.cal > .week__label:not(.week__label--soon) { border-radius: 16px 16px 0 0; padding: 18px 20px 4px; }
.cal > .events, .cal > .empty { border-radius: 0 0 16px 16px; padding-bottom: 8px; }
.cal > .week__label--soon { grid-column: 2; grid-row: 2; background: #fff; border-radius: 16px 16px 0 0; padding: 18px 20px 4px; margin: 0; }
.cal > .soon { grid-column: 2; grid-row: 3 / span 3; background: #fff; border-radius: 0 0 16px 16px; display: grid; grid-template-columns: 1fr 1fr; }

/* An event: its venue across the top, the card on the left, how to get there on the right */
.event {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 0 28px;
    padding: 28px 24px 48px;
    align-items: start;
}
.event > .venue { grid-column: 1 / -1; background: #fff; border-radius: 16px; margin-bottom: 20px; padding: 14px 20px; }
.event > .venue .venue__name { border: 0; }
.event > .card { grid-column: 1; margin: 0; border-radius: 16px; box-shadow: none; }
.event > .reach-wrap { grid-column: 2; background: #fff; border-radius: 16px; padding-top: 4px; }

/* Saved: the rows in two columns, on a white card */
.saved { background: #fff; border-radius: 16px; margin: 28px auto 48px; padding: 20px 8px 12px; }
.saved__title { padding: 4px 16px 12px; }
.saved__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }

/* The editions: a wider shelf */
.shelf { background: #fff; border-radius: 16px; margin: 28px auto 48px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); padding: 28px; gap: 28px 22px; }
.shelf__item img { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.shelf__item a:hover img { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }

/* Search results: two columns of rows */
.results { padding: 8px 8px 16px; }
.results:not([hidden]) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.results__group, .results .empty { grid-column: 1 / -1; }

/* Not found, and other plain pages */
main.empty { background: #fff; border-radius: 16px; margin: 28px auto; padding: 32px; max-width: 640px; }

/* The home page's splash is a phone thing */
.splash-on .splash { display: none; }
.toast { bottom: 28px; }
