/* App-style menu, in the same visual language as the home page: cream, square corners, printed-menu rules */
.app main { max-width: 1060px; margin: 0 auto; padding: 0 16px 56px; }

/* Bar under the site navigation: back or hint, language, category tabs */
.menu-bar { position: sticky; top: var(--nav-h); z-index: 5; background: var(--cream); border-bottom: 4px double #d9cdb8; }
.menu-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px; max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.menu-hint, .back { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; text-decoration: none; }
.chips { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.chips[hidden] { display: none; }
.chips a { flex: none; font: 700 19px/1 var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--sage-text); padding: 10px 0 9px; border-bottom: 3px solid transparent; }
.chips a[aria-current] { color: var(--leather, #7a4a2b); border-color: var(--leather, #7a4a2b); }

.view { animation: view-in .3s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } }

.pic { position: relative; display: block; overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.pic.empty { background: var(--cream) url("../assets/tovaglia.webp") center / 420px; }
.pic.empty img { position: absolute; inset: 12%; width: 76%; height: 76%; object-fit: contain; background: var(--cream); padding: 6%; }
.pic small { position: absolute; left: 50%; bottom: 4px; translate: -50% 0; width: max-content; max-width: calc(100% - 8px); background: var(--cream); color: var(--ink); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-align: center; line-height: 1.2; padding: 3px 6px; }

/* Categories: a 2 x 3 grid in the first screen, business lunch as the sixth box */
.tiles { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 3px; margin: 0 -16px; padding-top: 3px; height: calc(100svh - 125px); min-height: 420px; max-height: 760px; }
.tile { position: relative; display: block; min-height: 0; overflow: hidden; text-decoration: none; color: var(--cream); background: var(--ink); }
.tile .pic { position: absolute; inset: 0; }
.tile .pic img { transition: scale .5s; }
.tile:hover .pic img { scale: 1.04; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(20 17 8 / .85) 0, rgb(20 17 8 / .45) 40%, rgb(20 17 8 / .05) 75%); }
.tile-label { position: absolute; z-index: 1; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 0 14px 14px; }
.tile-label strong { font: 700 clamp(26px, 8vw, 40px)/1 var(--display); letter-spacing: .07em; text-transform: uppercase; }
.tile-lunch { background: var(--yellow); color: var(--olive); }
.tile-lunch::after { content: none; }
.tile-lunch .tile-label span { font-size: 13px; line-height: 1.35; color: var(--ink); }
.tile-lunch:hover .tile-label strong { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 14px 16px 2px; }
.filters button { flex: none; font: 700 11px var(--text); letter-spacing: .1em; text-transform: uppercase; background: none; color: var(--olive); border: 1px solid var(--olive); min-height: 36px; padding: 8px 12px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--olive); color: var(--cream); }
.diet-note { font-size: 12.5px; font-weight: 700; background: #fde7bf; padding: 10px 14px; margin-top: 12px; }

/* Dishes: slim rows divided by hairlines, like the printed menu */
.cards { display: grid; padding-top: 6px; }
.cards li { border-bottom: 1px solid #e4ded4; }
.card { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; height: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; padding: 12px 0; cursor: pointer; }
.card:active { background: #f6efe4; }
.card > .pic { width: 96px; height: 96px; }
.card > .pic img { position: absolute; }
.card > .pic.empty img { inset: 10px 10px 22px; width: calc(100% - 20px); height: calc(100% - 32px); padding: 4px; }
.card-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card .name { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; line-height: 1.4; text-transform: uppercase; }
.card-desc { font-size: 13.5px; font-weight: 300; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding-top: 2px; }
.card-price { font-weight: 700; font-size: 14px; color: var(--olive); }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .04em; background: #fde7bf; padding: 3px 7px; }
.badge.diet { background: var(--yellow); line-height: 1.35; }
/* Must be seen before ordering: solid olive, unlike the other labels */
.badge.booking, .notice.booking { background: var(--olive); color: var(--cream); }
.card.muted .name, .card.muted .card-price { color: #756f66; }

/* List-only categories: one cover image, then plain rows */
.banner { margin: 14px auto 0; max-width: 720px; }
.banner .pic { aspect-ratio: 3 / 2; }
.rows { max-width: 720px; margin: 6px auto 0; }
.row { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid #e4ded4; padding: 16px 0; cursor: pointer; }
.row .card-text { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; }
.row .name { font-size: 13px; font-weight: 700; letter-spacing: .07em; line-height: 1.4; text-transform: uppercase; }
.row .card-desc { grid-column: 1; grid-row: 2; display: block; font-size: 14.5px; margin-top: 2px; }
.row .card-foot { grid-column: 2; grid-row: 1; margin: 0; padding: 0; }
.sheet.no-photo .sheet-body { clear: both; padding-top: 24px; }

/* Bottom sheet */
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; margin: auto auto 0; padding: 0; border: 0; background: var(--cream); color: var(--ink); overflow-y: auto; overscroll-behavior: contain; }
.sheet[open] { animation: sheet-up .35s cubic-bezier(.2, .8, .2, 1); }
.sheet::backdrop { background: rgb(0 0 0 / .55); }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet-close { position: sticky; top: 10px; z-index: 2; float: right; width: 40px; height: 40px; margin: 10px 10px -50px 0; font-size: 16px; background: var(--cream); color: var(--ink); border: 1px solid var(--olive); cursor: pointer; }
.sheet-photo .pic { aspect-ratio: 6 / 5; clear: both; }
.sheet-photo .pic.empty img { inset: 12% 24%; width: 52%; height: 76%; padding: 3%; }
.sheet-photo .pic small { font-size: 11px; bottom: 10px; }
.sheet-body { padding: 18px 20px 28px; }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; }
.sheet h2 { font-size: 32px; line-height: 1; letter-spacing: .05em; color: var(--olive); }
.sheet-price { font-weight: 700; white-space: nowrap; }
.sheet-desc { font-size: 17px; font-weight: 300; margin-top: 10px; }
.sheet-info { border-top: 4px double #d9cdb8; margin-top: 18px; padding-top: 14px; }
.sheet-info h3 { font-size: 20px; letter-spacing: .1em; color: var(--sage); margin-bottom: 10px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 13px; border: 1px solid var(--olive); padding: 5px 10px; }
.notice { display: inline-block; font-size: 13px; font-weight: 700; background: #fde7bf; padding: 8px 12px; margin-top: 8px; }
.without { font-size: 14px; margin-top: 12px; }
.ask { font-size: 12px; color: #5f6652; margin-top: 14px; }

@media (min-width: 760px) {
  .tiles { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; grid-auto-rows: clamp(200px, calc((100svh - 190px) / 2), 320px); max-width: 1028px; margin: 0 auto; padding-top: 18px; gap: 8px; height: auto; min-height: 0; max-height: none; }
  .tile-label { padding: 0 24px 22px; }
  .filters { flex-wrap: wrap; justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .sheet { margin: auto; }
  .chips { justify-content: center; gap: 40px; }
}
/* Desktop: no category screen to go back to, so only the tabs remain */
@media (min-width: 880px) {
  .menu-tools { display: none; }
  .chips { align-items: flex-end; min-height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .view, .sheet[open] { animation: none; }
}
