/* Highway restaurants — customer listing + details pages.
 * Tokens mirror highway-food.html / index.html so the pages feel native.
 * Mobile first; ≥768px widens the cards, ≥1024px adds the site header, the
 * filter sidebar (list) and the two-column layout (details). */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --pg-bg: #f7f7f6;
  --accent: #ff5a5f;
  --accent-strong: #db353b;
  --accent-soft: #fff1f1;
  --grad: linear-gradient(135deg, #ff6b6b 0%, #f2444d 100%);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ink: #0a0f1a;
  --ink-soft: #334155;
  --muted: #64748b;
  --surface: #ffffff;
  --line: rgba(15, 23, 42, 0.08);
  --border: 1px solid rgba(15, 23, 42, 0.06);
  --shadow-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --green: #15803d;
  --green-soft: #dcfce7;
  --red: #b91c1c;
  --red-soft: #fee2e2;
  --amber: #92400e;
  --amber-soft: #fef3c7;
  --radius-lg: 20px;
  --radius-md: 16px;
  --page-pad: 16px;
  --header-h: calc(56px + env(safe-area-inset-top, 0px));
}

html { background: var(--pg-bg); margin: 0; padding: 0; }
/* `clip` (not `hidden`) on html AND body: `hidden` on both turns <body> into a scroll
   container, which silently breaks every `position: sticky` descendant (.jump, .site-head,
   .side, .dt__side). `clip` still stops horizontal bleed but creates no scroll container.
   The `hidden` line is only the fallback for browsers without `clip` (Safari < 16). */
html, body { width: 100%; max-width: 100%; overflow-x: hidden; overflow-x: clip; }
html.no-scroll, html.no-scroll body { overflow: hidden; }
body {
  margin: 0;
  padding: 0 0 max(100px, calc(88px + env(safe-area-inset-bottom, 0px))) 0;
  font-family: var(--font);
  background: var(--pg-bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
body.has-cta { padding-bottom: max(96px, calc(84px + env(safe-area-inset-bottom, 0px))); }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(219, 53, 59, .55); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
svg { flex: none; }

.app-container { max-width: 480px; margin: 0 auto; background: var(--pg-bg); min-height: 100vh; position: relative; }
main { padding: 8px var(--page-pad) 24px; }

/* ── Desktop site header (≥1024px) ── */
.site-head { display: none; }

/* ── Hero (list page) ── */
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px;
  min-height: 150px;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(var(--page-pad), env(safe-area-inset-right, 0px)) 48px max(var(--page-pad), env(safe-area-inset-left, 0px));
  background: #ffe9dc;
}
/* Phones: warm gradient with a real food photo (CC0, see images/IMAGE-CREDITS.txt).
   Tablet/desktop: a real highway photo with a white fade so the title stays readable. */
.hero__art { position: absolute; inset: 0; z-index: -1; background: linear-gradient(115deg, #fff6f0 0%, #ffe6d9 100%); }
.hero__food {
  position: absolute; z-index: -1; right: -22px; top: 8px; width: 148px; height: 148px; border-radius: 50%; object-fit: cover;
  border: 5px solid rgba(255, 255, 255, .9); box-shadow: 0 10px 28px rgba(120, 53, 15, .25);
}
.hero__kicker { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.hero__pill { display: none; }
.hero__badge { display: none; flex: none; width: 52px; height: 52px; border-radius: 16px; background: #fff; color: var(--accent-strong); align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(219, 53, 59, .18); }
.hero__text { min-width: 0; max-width: calc(100% - 64px - 118px); }
.hero__title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.hero__sub { margin-top: 4px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.4; max-width: 30ch; }
.back-btn, .round-btn {
  flex: none; width: 44px; height: 44px; border: none; border-radius: 14px; background: var(--surface);
  color: var(--ink-soft); display: flex; align-items: center; justify-content: center; padding: 0; cursor: pointer;
  text-decoration: none; box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12); -webkit-tap-highlight-color: transparent;
}
.round-btn { border-radius: 50%; }
.back-btn:active, .round-btn:active { transform: scale(.93); opacity: .8; }

/* ── Bottom nav (same as the rest of the app) ── */
.bottom-nav {
  display: flex; justify-content: space-around; align-items: center; position: fixed; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 100%; background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 -1px 0 rgba(0, 0, 0, 0.06);
  padding: 8px 8px calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 100; max-width: 450px; margin: 0 auto;
}
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: #64748b; font-size: .7rem; font-weight: 500; flex: 1; min-width: 0; padding: 4px 2px; -webkit-tap-highlight-color: transparent; }
.nav-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 4px; line-height: 0; }
.nav-icon svg { display: block; width: 24px; height: 24px; }
.nav-item.active { color: #ff6b6b; }
body.has-cta .bottom-nav { display: none; }

/* ── Buttons, chips ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: 15px;
  cursor: pointer; text-decoration: none; color: var(--ink); -webkit-tap-highlight-color: transparent;
}
.btn--primary { background: var(--grad); border-color: transparent; color: #fff; font-weight: 800; box-shadow: 0 6px 16px rgba(242, 68, 77, .28); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn--wide { width: 100%; }
.btn:active { transform: scale(.98); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: #f1f5f9; display: inline-grid; place-items: center; cursor: pointer; }
.linkbtn { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 6px 0; color: var(--accent-strong); font-weight: 700; font-size: 13.5px; cursor: pointer; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: #ffb9bc; color: #a61e25; }
.chip:disabled { opacity: .4; cursor: default; }
.chip__n { font-size: 12px; font-weight: 700; opacity: .65; }

/* Veg / non-veg marker */
.fm { flex: none; display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1.5px solid; border-radius: 3px; vertical-align: -2px; background: #fff; }
.fm i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.fm--veg { color: #16a34a; }
.fm--egg { color: #d97706; }
.fm--nonveg { color: #dc2626; }

/* ── Intro + route picker ── */
.intro { padding: 8px 2px 14px; }
.intro__title { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.intro__text { color: var(--muted); margin-top: 4px; }
.route-list { display: grid; gap: 10px; }
.route-card {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border: var(--border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-soft); text-decoration: none; color: inherit; min-height: 68px;
}
.route-card[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.route-card__icon { flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.route-card__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.route-card__name { font-weight: 800; }
.route-card__sub { color: var(--muted); font-size: 13.5px; }

/* ── Route bar ── */
.routebar {
  display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 10px; padding: 10px 12px; text-align: left;
  background: var(--surface); border: var(--border); border-radius: 18px; box-shadow: var(--shadow-soft); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.routebar__icon { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }
.routebar__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.routebar__label { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.routebar__name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.routebar__chev { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-strong); }

/* ── Quick filters ── */
.toolbar { margin-top: 14px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.chip--tile {
  flex-direction: column; justify-content: center; gap: 6px; min-height: 70px; padding: 8px 2px; border-radius: 16px;
  font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; white-space: normal; box-shadow: var(--shadow-soft);
}
.chip--tile svg { color: var(--accent-strong); }
.chip--tile[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(242, 68, 77, .3); }
.chip--tile[aria-pressed="true"] svg { color: #fff; }
.chip--tile .fm { width: 18px; height: 18px; border-radius: 4px; }
.chip--tile .fm i { width: 8px; height: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip--pill { min-height: 40px; font-size: 13.5px; box-shadow: var(--shadow-soft); }
.chip--more { color: #4b3fa7; }
.chip--more .chip__n { background: #4b3fa7; color: #fff; opacity: 1; border-radius: 999px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: 11px; }
.chip--more[aria-pressed="true"] { background: #efecff; border-color: #cfc8ff; color: #4b3fa7; }

.listbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0 4px; }
.sortsel { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 12px; background: var(--surface); border: var(--border); border-radius: 14px; box-shadow: var(--shadow-soft); }
.sortsel__lbl { font-weight: 600; color: var(--ink-soft); font-size: 14px; }
.sortsel__select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; padding: 10px 22px 10px 0; font-weight: 800; font-size: 14px; cursor: pointer; min-width: 0; }
.sortsel svg { position: absolute; right: 10px; pointer-events: none; color: var(--ink-soft); }
.count { color: var(--muted); font-size: 13.5px; font-weight: 700; text-align: right; }
.count__tail { display: none; }
.note { margin: 8px 0; padding: 10px 12px; border-radius: 12px; background: #eef2f7; color: var(--ink-soft); font-size: 13.5px; }
.note--warn { background: var(--amber-soft); color: var(--amber); }

/* ── Restaurant cards ── */
.side { display: none; }
.cards { display: grid; gap: 12px; margin-top: 8px; }
.rc {
  position: relative; display: grid; grid-template-columns: 116px minmax(0, 1fr); grid-template-areas: "media body" "amen aside";
  gap: 10px 12px; padding: 12px; background: var(--surface); border: var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); content-visibility: auto; contain-intrinsic-size: auto 220px;
}
.rc__media { grid-area: media; position: relative; border-radius: 14px; overflow: hidden; min-height: 124px; background: #eceff3; }
.rc__media .ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; }
.ph { position: relative; width: 100%; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #eceff3, #f6f7f9); overflow: hidden; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s ease; }
.ph.is-loaded img { opacity: 1; }
.ph--empty { display: grid; place-items: center; color: #94a3b8; }
.rc__open, .rc__closed { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc__open { background: rgba(255, 255, 255, .94); color: #166534; }
.rc__closed { background: rgba(15, 23, 42, .8); color: #fff; }
.rc__body { grid-area: body; min-width: 0; display: grid; gap: 5px; align-content: start; }
.rc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.rc__name { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; min-width: 0; }
.rc__link { text-decoration: none; }
.rc__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.rc__ribbon { flex: none; max-width: 44%; background: #ffd84d; color: #4a3300; font-weight: 800; font-size: 12px; line-height: 1.15; padding: 5px 9px; border-radius: 10px; text-align: center; overflow-wrap: anywhere; }
.rc__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.rc__rate { display: inline-flex; align-items: center; gap: 5px; }
.rc__reviews { color: var(--muted); font-size: 12.5px; }
.rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: 13.5px; color: #b45309; }
.rating svg { fill: #f5a524; stroke: #f5a524; }
.rc__rate--lg .rating { font-size: 16px; }
.rc__rate--lg .rc__reviews { font-size: 14px; }
.verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--green); background: #e6f7ec; padding: 2px 8px 2px 6px; border-radius: 999px; }
.rc__loc { display: block; font-size: 13px; line-height: 1.4; color: var(--ink-soft); font-weight: 500; }
.rc__loc svg { display: inline-block; vertical-align: -2px; margin-right: 5px; color: var(--accent-strong); }
.rc__km-inline { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #eef2f7; color: var(--ink-soft); }
.tag--veg { background: #e3f6e8; color: #15803d; }
.tag--nonveg { background: #fde8e8; color: #b91c1c; }
.tag--diet { background: #fff0dd; color: #9a4a00; }
.tag--hot { background: var(--amber-soft); color: var(--amber); }
.rc__cuisines { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc__offer { display: flex; align-items: flex-start; gap: 8px; background: #e8f7ec; color: #14532d; border-radius: 12px; padding: 8px 10px; font-size: 13px; line-height: 1.35; }
.rc__offer svg { margin-top: 1px; color: #16a34a; }
.rc__offer b { font-weight: 800; }
.rc__amen { grid-area: amen; list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; align-self: center; }
.rc__am { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.rc__am svg { color: var(--ink-soft); }
.rc__am--more { color: var(--muted); }
.rc__aside { grid-area: aside; justify-self: end; align-self: center; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.rc__dist { display: none; }
.more { margin: 16px 0; }

/* ── States ── */
.state { text-align: center; padding: 36px 20px; display: grid; gap: 8px; justify-items: center; }
.state__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #eef2f7; color: #64748b; flex: none; }
.state__title { font-size: 18px; font-weight: 800; }
.state__text { color: var(--muted); max-width: 32ch; margin-bottom: 8px; }
.sk { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 12px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); overflow: hidden; }
.sk__img { aspect-ratio: 1; border-radius: 14px; background: linear-gradient(90deg, #eceff3 25%, #f6f7f9 50%, #eceff3 75%); background-size: 200% 100%; animation: sk 1.3s infinite; }
.sk__img--hero { aspect-ratio: 3 / 2; border-radius: 0; margin: 0 calc(-1 * var(--page-pad)); }
.sk__body { display: grid; gap: 10px; align-content: start; }
.sk__line { height: 14px; border-radius: 7px; background: #eceff3; }
.sk__line--s { width: 55%; }
.sk__line--m { width: 80%; }
.sk--detail { display: block; margin-top: 16px; }
.sk--detail .sk__line { margin-bottom: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .sk__img { animation: none; } .ph img { transition: none; } }

/* ── Sheet ── */
.sheet-back { position: fixed; inset: 0; z-index: 200; background: rgba(15, 23, 42, .45); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 520px; max-height: 88vh; max-height: 88dvh; background: var(--surface); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; outline: none; padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 8px; }
.sheet__title { font-size: 18px; font-weight: 800; }
.sheet__body { padding: 4px 16px 12px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet__foot { display: flex; gap: 10px; padding: 10px 16px 14px; border-top: 1px solid var(--line); }
.sheet__foot .btn--primary { flex: 1; }
.fgroup { margin-bottom: 18px; }
.fgroup__title { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* ── Details: floating bar, gallery ── */
.app-container--detail main { padding-top: 0; }
.float-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 30; display: flex; justify-content: space-between; padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 0; pointer-events: none; }
.float-bar > * { pointer-events: auto; }
.float-bar__actions { display: flex; gap: 10px; }
.crumbs { display: none; }
.gal { position: relative; margin: 0 calc(-1 * var(--page-pad)); background: #e9ecef; }
.gal__strip { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gal__strip::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: center; border: 0; padding: 0; background: none; cursor: zoom-in; display: block; }
.gal .ph { aspect-ratio: 3 / 2; border-radius: 0; }
.gal--empty .ph { aspect-ratio: 16 / 9; }
.gal__count { position: absolute; right: 12px; bottom: 36px; background: rgba(15, 23, 42, .75); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.gal__dots { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); display: flex; gap: 5px; }
.gal__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.gal__dots i.is-on { background: #fff; width: 16px; border-radius: 6px; }
.gal__all { display: none; }
.lb { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; color: #fff; outline: none; }
.lb__close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb__stage { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 0; position: relative; }
.lb__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb__nav--prev { left: 8px; }
.lb__nav--next { right: 8px; }
.lb__foot { padding: 10px 16px calc(14px + env(safe-area-inset-bottom, 0px)); text-align: center; font-size: 14px; }
.lb__pos { opacity: .7; font-size: 12px; display: block; }

/* ── Details: header ── */
.dt__side { display: none; }
.rd { position: relative; display: grid; gap: 10px; margin: -24px calc(-1 * var(--page-pad)) 0; padding: 20px var(--page-pad) 4px; background: var(--pg-bg); border-radius: 24px 24px 0 0; }
.rd__name { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.rd__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.rd__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rd__where { display: flex; align-items: flex-start; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink-soft); min-width: 0; }
.rd__where svg { margin-top: 2px; color: var(--accent-strong); }
.distbox { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 14px; background: #e9eefb; color: #25407a; }
.distbox span { display: flex; flex-direction: column; line-height: 1.15; }
.distbox b { font-size: 14px; font-weight: 800; }
.distbox small { font-size: 11.5px; font-weight: 600; opacity: .85; }
.tags--lg .tag { font-size: 12.5px; padding: 4px 11px; }
.rd__short { color: var(--muted); }
.rd__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: #eef2f7; color: var(--ink-soft); }
.pill--open { background: var(--green-soft); color: #166534; }
.pill--closed { background: var(--red-soft); color: var(--red); }
.rd__routes { display: flex; flex-wrap: wrap; gap: 8px; }
.route-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); text-decoration: none; }
.route-pill small { font-weight: 600; opacity: .85; }

/* Section tabs */
.jump { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 14; display: flex; margin: 8px calc(-1 * var(--page-pad)) 0; padding: 0 var(--page-pad); background: rgba(247, 247, 246, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: var(--border); overflow-x: auto; scrollbar-width: none; }
.jump::-webkit-scrollbar { display: none; }
.jump__link { flex: 1 0 auto; min-width: 64px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 10px 6px 8px; border-bottom: 3px solid transparent; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none; color: var(--muted); }
.jump__link[aria-current="true"] { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }

.sec { padding: 20px 2px 4px; scroll-margin-top: calc(64px + env(safe-area-inset-top, 0px)); }
.sec--first { padding-top: 16px; display: grid; gap: 18px; }
.sec__title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 12px; display: flex; align-items: baseline; gap: 8px; }
.sec__title small { font-size: 13px; color: var(--muted); font-weight: 600; }
.ov-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ov-head .sec__title { margin-bottom: 0; }

.bestoffer { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff0f0; border: 1px solid #ffd6d8; border-radius: 18px; }
.bestoffer__icon { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(242, 68, 77, .35); }
.bestoffer__main { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.bestoffer__label { font-size: 12px; font-weight: 800; color: var(--accent-strong); }
.bestoffer__title { font-size: 16px; font-weight: 800; line-height: 1.25; }
.bestoffer__sub { font-size: 12.5px; color: var(--ink-soft); }
.bestoffer__btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--accent-strong); font-weight: 800; font-size: 13px; cursor: pointer; }
.bestoffer__btn span { display: none; }

.hl { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.hl__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; background: var(--surface); border: var(--border); border-radius: 16px; box-shadow: var(--shadow-soft); font-size: 12.5px; font-weight: 700; text-align: center; line-height: 1.2; }
.hl__item svg { color: var(--green); }
.amen { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.amen__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 78px; padding: 10px 4px; background: var(--surface); border: var(--border); border-radius: 14px; font-size: 11.5px; font-weight: 700; text-align: center; line-height: 1.15; overflow-wrap: anywhere; }
.amen__item svg { color: var(--ink-soft); }
.pops { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(148px, 44%); gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x proximity; scrollbar-width: none; }
.pops::-webkit-scrollbar { display: none; }
.pop { scroll-snap-align: start; background: var(--surface); border: var(--border); border-radius: 16px; box-shadow: var(--shadow-soft); overflow: hidden; }
.pop__photo { aspect-ratio: 4 / 3; border-radius: 0; }
.pop__body { padding: 8px 10px 10px; display: grid; gap: 3px; }
.pop__name { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; font-weight: 800; line-height: 1.25; }
.pop__name .fm { margin-top: 2px; }
.pop__price { display: flex; align-items: baseline; gap: 6px; font-size: 14px; }
.pop__price b { color: var(--green); font-weight: 800; }
.pop__price s { color: var(--muted); font-size: 12.5px; }

/* Offers */
.offers { display: grid; gap: 10px; }
.offer { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: var(--border); border-radius: var(--radius-md); padding: 12px; box-shadow: var(--shadow-soft); }
.offer--later { opacity: .85; }
.offer__pill { flex: none; min-width: 72px; max-width: 110px; padding: 10px 8px; border-radius: 12px; text-align: center; font-weight: 800; font-size: 14px; background: var(--grad); color: #fff; line-height: 1.15; overflow-wrap: anywhere; }
.offer__main { display: grid; gap: 3px; min-width: 0; }
.offer__title { font-size: 16px; font-weight: 800; }
.offer__desc, .offer__line { font-size: 14px; color: var(--ink-soft); }
.offer__valid { font-size: 13px; color: var(--green); font-weight: 600; }
.offer--later .offer__valid { color: var(--muted); }
.offer__terms { font-size: 12.5px; color: var(--muted); }

/* Menu */
.menu__tools { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.searchbox { flex: 1; position: relative; display: flex; align-items: center; }
.searchbox svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.input { width: 100%; min-height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px 0 36px; font-size: 16px; }
.menu__tools .chip { min-height: 44px; }
.chips--scroll { margin-bottom: 6px; }
.cat { scroll-margin-top: calc(70px + env(safe-area-inset-top, 0px)); content-visibility: auto; contain-intrinsic-size: auto 400px; }
.cat__title { font-size: 16px; font-weight: 800; margin: 14px 0 6px; display: flex; gap: 8px; align-items: baseline; }
.cat__title small { color: var(--muted); font-weight: 600; font-size: 13px; }
.dishes { background: var(--surface); border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); overflow: hidden; }
.dish { display: flex; gap: 12px; padding: 14px; border-bottom: 1px solid var(--line); }
.dish:last-child { border-bottom: 0; }
.dish--off { opacity: .55; }
.dish__main { flex: 1; min-width: 0; display: grid; gap: 3px; align-content: start; }
.dish__head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dish__name { font-size: 15px; font-weight: 700; }
.dish__price { font-size: 14.5px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.dish__price b { color: var(--green); }
.dish__price s { color: var(--muted); }
.dish__desc { font-size: 13.5px; color: var(--muted); }
.dish__photo { flex: none; width: 92px; height: 92px; aspect-ratio: 1; border-radius: 14px; }

/* Ratings */
.revsum { display: flex; align-items: center; gap: 16px; padding: 16px; background: var(--surface); border: var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.revsum__avg { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.revsum--empty p { font-size: 14px; }
.stars { display: inline-flex; gap: 2px; color: #d4d9e1; }
.stars .is-on { color: #f5a524; }
.stars svg { fill: currentColor; stroke: currentColor; }

/* About */
.about { color: var(--ink-soft); margin-bottom: 14px; white-space: pre-line; }
.info-grid { display: grid; gap: 12px; }
.info { background: var(--surface); border: var(--border); border-radius: var(--radius-md); padding: 14px; display: grid; gap: 6px; box-shadow: var(--shadow-soft); align-content: start; }
.info__title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.hours { margin: 0; display: grid; gap: 2px; }
.hours__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 8px; border-radius: 8px; font-size: 14px; }
.hours__row dt, .hours__row dd { margin: 0; }
.hours__row.is-today { background: var(--accent-soft); font-weight: 700; }

/* Mobile call bar */
.cta-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 100; max-width: 480px; margin: 0 auto; padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 -1px 0 rgba(0, 0, 0, .06); }
.cta-bar .btn { min-height: 52px; font-size: 16px; border-radius: 16px; }

/* ── Sidebar cards (list sidebar + details sidebar) ── */
.sidecard { background: var(--surface); border: var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 16px; }
.sidecard__head { display: flex; align-items: center; justify-content: space-between; }
.sidecard__title { font-size: 16px; font-weight: 800; }
.sidecard__meta { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.sidecard__route { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-soft); }
.sidecard__route svg { margin-top: 2px; color: var(--accent-strong); }
.stops { display: grid; margin: 12px 0 8px; }
.stops__stop { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.stops__dot { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 3px solid var(--accent-strong); background: #fff; }
.stops__stop--end .stops__dot { background: var(--accent-strong); }
.stops__line { display: block; width: 2px; height: 22px; margin: 2px 0 2px 6px; background: repeating-linear-gradient(to bottom, #f0a0a3 0 4px, transparent 4px 8px); }
.sgroup { padding: 12px 0 4px; border-top: 1px solid var(--line); margin-top: 12px; }
.sgroup__title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.fopt { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.fopt input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; cursor: pointer; }
.fopt__box { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c3cbd6; background: #fff; display: grid; place-items: center; color: transparent; }
.fopt input:checked + .fopt__box { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.fopt input:focus-visible + .fopt__box { outline: 3px solid rgba(219, 53, 59, .55); outline-offset: 2px; }
.fopt__label { min-width: 0; }
.fopt__n { margin-left: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.fopt.is-off { opacity: .45; cursor: default; }
.qinfo { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 14px; }
.qinfo li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 600; }
.qinfo svg { color: var(--accent-strong); margin-top: 2px; }
.qinfo small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; }
.qinfo a { text-decoration: none; }
.sidecard--cta { display: grid; gap: 16px; }

/* ── Tablet ── */
@media (min-width: 768px) {
  :root { --page-pad: 24px; }
  .app-container { max-width: 760px; }
  /* Bottom bars follow the content column instead of staying phone-width (450/480px). */
  .bottom-nav, .cta-bar { max-width: 760px; }
  .hero { min-height: 170px; gap: 16px; }
  .hero__art { background: #cfe2f3 url(../images/highway-hero.webp) center 64% / cover no-repeat; }
  .hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, .94) 0%, rgba(255, 255, 255, .72) 36%, rgba(255, 255, 255, 0) 72%); }
  .hero__food, .hero__kicker { display: none; }
  .hero__text { max-width: none; }
  .hero__badge { display: inline-flex; }
  .hero__title { font-size: 32px; }
  .sheet-back { align-items: center; }
  .sheet { border-radius: 22px; }
  .rc { grid-template-columns: 220px minmax(0, 1fr) 190px; grid-template-areas: "media body aside" "media amen aside"; gap: 8px 18px; padding: 14px; }
  .rc__media { min-height: 168px; }
  .rc__body { gap: 6px; }
  .rc__name { font-size: 18px; }
  .rc__km-inline { display: none; }
  .rc__aside { align-self: stretch; justify-content: space-between; align-items: stretch; padding-top: 2px; }
  .rc__dist { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: #e9eefb; color: #25407a; }
  .rc__dist span { display: flex; flex-direction: column; line-height: 1.15; }
  .rc__dist b { font-size: 14px; font-weight: 800; }
  .rc__dist small { font-size: 11.5px; font-weight: 600; opacity: .85; }
  .rc__amen { align-self: end; }
  .count__tail { display: inline; }
  .amen { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bestoffer__btn { width: auto; height: auto; padding: 10px 14px; border-radius: 12px; background: var(--grad); color: #fff; }
  .bestoffer__btn span { display: inline; }
  .dishes { background: none; border: 0; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; overflow: visible; }
  .dish { background: var(--surface); border: var(--border); border-radius: 16px; box-shadow: var(--shadow-soft); }
  .dish:last-child { border-bottom: var(--border); }
  .pops { grid-auto-columns: calc(25% - 8px); }
  .info-grid { grid-template-columns: 1fr 1fr; }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
  :root { --page-pad: 0px; }
  html { background: #f4f5f7; }
  body { padding-bottom: 56px; }
  body.has-cta { padding-bottom: 56px; }
  .bottom-nav, .cta-bar { display: none; }
  .app-container { max-width: 1240px; padding: 0 32px; background: transparent; }
  .site-head { display: block; position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: var(--border); }
  .site-head__in { max-width: 1240px; margin: 0 auto; padding: 0 32px; height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .site-head__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; letter-spacing: -.04em; color: #0b1a30; text-decoration: none; }
  .site-head__brand img { width: 28px; height: 28px; border-radius: 7px; display: block; object-fit: cover; }
  .site-head__nav { display: flex; align-items: stretch; align-self: stretch; gap: 6px; }
  .site-head__nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 0 16px; font-size: 12.5px; font-weight: 600; color: #475569; text-decoration: none; border-bottom: 3px solid transparent; }
  .site-head__nav a:hover { color: var(--ink); }
  .site-head__nav a.is-active { color: var(--accent-strong); border-bottom-color: var(--accent-strong); }
  main { padding: 18px 0 0; }

  .hero { margin-top: 20px; padding: 30px 40px 72px; min-height: 200px; border-radius: 26px; }
  .hero .back-btn { display: none; }
  .hero__badge { width: 60px; height: 60px; border-radius: 18px; }
  .hero__title { font-size: 38px; }
  .hero__sub { font-size: 16px; max-width: none; }

  .routebar { display: none; }
  .hr-grid { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 6px; }
  .side { display: grid; gap: 14px; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding: 2px; scrollbar-width: thin; }
  .toolbar { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 8px; }
  .tiles, .pills { display: contents; }
  .chip--tile { flex-direction: row; min-height: 42px; padding: 0 13px; gap: 7px; border-radius: 999px; font-size: 14px; box-shadow: none; white-space: nowrap; }
  .chip--tile .fm { width: 15px; height: 15px; border-radius: 3px; }
  .chip--tile .fm i { width: 7px; height: 7px; }
  .chip--pill { box-shadow: none; }
  .listbar { margin-top: 18px; }
  .cards { gap: 14px; }

  .app-container--detail { padding-top: 0; }
  .float-bar { display: none; }
  .crumbs { display: block; padding: 20px 0 14px; font-size: 13.5px; }
  .crumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
  .crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
  .crumbs a { color: var(--muted); text-decoration: none; font-weight: 600; }
  .crumbs a:hover { color: var(--accent-strong); }
  .crumbs li[aria-current] { color: var(--ink); font-weight: 700; }
  .dt { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }
  .dt__side { display: block; position: sticky; top: 90px; }
  .gal { margin: 0; border-radius: 22px; overflow: hidden; }
  .gal__strip { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 440px; overflow: hidden; scroll-snap-type: none; }
  .gal__slide { width: 100%; height: 100%; flex: none; overflow: hidden; }
  .gal__slide:first-child { grid-row: span 2; }
  .gal__slide:nth-child(n+4) { display: none; }
  .gal .ph { aspect-ratio: auto; height: 100%; }
  .gal--n1 .gal__strip { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 440px; }
  .gal--n2 .gal__slide:nth-child(2) { grid-row: span 2; }
  .gal__count, .gal__dots { display: none; }
  .gal__all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; border-radius: 12px; background: rgba(15, 23, 42, .78); color: #fff; font-weight: 700; font-size: 13px; cursor: pointer; }
  .rd { margin: 0; padding: 22px 0 4px; background: none; border-radius: 0; }
  .rd__name { font-size: 32px; }
  .jump { top: 66px; margin: 10px 0 0; padding: 0; background: rgba(244, 245, 247, .96); }
  .jump__link { flex-direction: row; justify-content: center; flex: 1; gap: 8px; font-size: 14.5px; padding: 14px 8px; }
  .sec { scroll-margin-top: 130px; }
  .cat { scroll-margin-top: 130px; }
  .hl { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .hl__item { flex-direction: row; justify-content: center; font-size: 13.5px; padding: 14px 10px; }
  .gal ~ .rd .rd__routes { margin-top: 2px; }
}

/* ── Desktop, narrow (1024–1279px): give the card body room ──
   Content is only ~960px wide here. With the default 290px filter column and the 220/190px
   card columns the restaurant name was squeezed to ~170px (three-line titles). */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hr-grid { grid-template-columns: 262px minmax(0, 1fr); gap: 22px; }
  .rc { grid-template-columns: 188px minmax(0, 1fr) 150px; gap: 8px 14px; }
  .rc__media { min-height: 156px; }
  .rc__name { font-size: 17px; }
  .rc__dist { padding: 8px 10px; gap: 8px; }
}

/* ── Touch targets (phones and tablets): ~44px minimum ──
   Visible size is kept where it would crowd the layout; small inline links grow an invisible
   hit area instead (the ::after below never extends over a neighbouring control: row gaps are ≥ 8px). */
@media (max-width: 1023px) {
  .chip { min-height: 44px; }
  .icon-btn { width: 44px; height: 44px; }
  .sortsel { min-height: 44px; }
  .sortsel__select { padding-top: 12px; padding-bottom: 12px; }
  .fopt { padding: 12px 0; }
  .bestoffer__btn { width: 44px; height: 44px; }
  .linkbtn, .route-pill { position: relative; }
  .linkbtn::after, .route-pill::after { content: ""; position: absolute; left: -2px; right: -2px; top: -6px; bottom: -6px; }
  /* Stacked route pills sit 8px apart: 36px + 4px each side = 44px with no overlap. */
  .route-pill { min-height: 36px; }
  .route-pill::after { top: -4px; bottom: -4px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .bestoffer__btn { width: auto; min-height: 44px; }
}

/* ══ Customer redesign: route finder, filter bar, cards ═════════════════════
   Mobile first. The finder floats over the bottom of the hero; its height is
   reserved before the routes arrive so nothing jumps. */
.finder { position: relative; z-index: 3; margin-top: -32px; padding: 0 var(--page-pad); min-height: 136px; }
.finder[hidden] { display: none; }
.finder__card {
  display: grid; grid-template-columns: minmax(0, 1fr) 48px; grid-template-areas: "route swap" "go go"; gap: 10px;
  padding: 12px; background: var(--surface); border: var(--border); border-radius: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}
.finder .ff--route { grid-area: route; }
.finder__swap { grid-area: swap; }
.finder__go { grid-area: go; min-height: 50px; border-radius: 14px; }
.ff--from, .ff--to { display: none; }
.finder .routebar { margin: 0; min-height: 52px; padding: 6px 8px; border-radius: 14px; box-shadow: none; border: 1px solid var(--line); min-width: 0; }
.finder .routebar__name { flex: 1; min-width: 0; font-size: 16px; }
.finder .routebar--static { cursor: default; }
.finder__swap {
  width: 48px; height: 52px; border-radius: 14px; border: 1.5px solid #ffc7c9; background: var(--accent-soft); color: var(--accent-strong);
  display: grid; place-items: center; cursor: pointer; padding: 0; -webkit-tap-highlight-color: transparent;
}
.finder__swap:disabled { opacity: .4; cursor: default; }
.finder__swap:not(:disabled):active { transform: scale(.94); }
.ff__lbl { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.ff__box { position: relative; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ff__box > svg:first-child { color: var(--accent-strong); }
.ff__box > svg:last-child { color: var(--muted); pointer-events: none; }
.ff__select { flex: 1; min-width: 0; appearance: none; -webkit-appearance: none; border: 0; background: transparent; font-weight: 700; font-size: 16px; padding: 14px 0; cursor: pointer; text-overflow: ellipsis; }
.ff__box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 95, .18); }
.ff__select:focus-visible { outline: none; }

/* Filter chips: coloured icons like the reference */
.toolbar { margin-top: 16px; }
.chip--tile[data-chip="offers"] svg { color: #f59e0b; }
.chip--tile[data-chip="open"] svg { color: #16a34a; }
.chip--tile[aria-pressed="true"] svg, .chip--tile[aria-pressed="true"] .fm { color: #fff; }
.chip--tile[aria-pressed="true"] .fm { background: transparent; }
.chip--diet svg { color: var(--accent-strong); }
.chip--diet[aria-pressed="true"] { background: var(--accent-soft); }

/* Cards */
.rc--offer .rc__head { padding-right: 96px; }
.rc__ribbon {
  position: absolute; top: 12px; right: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px;
  max-width: 34%; pointer-events: none;
}
.rc__ribbon svg { display: none; }

@media (min-width: 768px) {
  .finder { margin-top: -40px; min-height: 96px; padding: 0 24px; }
  .finder__card {
    grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr) 190px; grid-template-areas: "from swap to go";
    align-items: end; gap: 12px; padding: 16px 18px;
  }
  .finder .ff--route { display: none; }
  .ff--from, .ff--to { display: block; min-width: 0; }
  .ff--from { grid-area: from; }
  .ff--to { grid-area: to; }
  .finder__swap { width: 52px; height: 52px; border-radius: 50%; }
  .finder__go { min-height: 52px; }
  .rc--offer .rc__head { padding-right: 0; }
  .rc__ribbon {
    top: 22px; left: 22px; right: auto; max-width: 190px; padding: 5px 12px 5px 9px; border-radius: 999px;
    background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(242, 68, 77, .35); font-size: 12.5px;
  }
  .rc__ribbon svg { display: block; }
}

@media (min-width: 1024px) {
  .finder { margin-top: -44px; padding: 0 36px; min-height: 100px; }
  .chip--more { display: inline-flex; }
  /* Sort sits at the right end of the filter bar; the count drops under it. */
  .hr-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-content: start; }
  .hr-main > * { grid-column: 1 / -1; }
  .toolbar { grid-column: 1; grid-row: 1; margin-top: 0; }
  .listbar { display: contents; }
  .sortsel { grid-column: 2; grid-row: 1; align-self: start; }
  .count { grid-column: 1 / -1; grid-row: 2; text-align: left; margin: 16px 0 4px; }
  .hr-grid { margin-top: 18px; }
  .site-head__profile { display: inline-grid; }
}
.site-head__profile { display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f1f5f9; color: var(--ink-soft); text-decoration: none; flex: none; }
.site-head__profile:hover { background: var(--accent-soft); color: var(--accent-strong); }

/* ══ Customer redesign: restaurant details ═══════════════════════════════════ */
.rd__title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.rd__title .verified { font-size: 12.5px; padding: 3px 10px 3px 7px; }
.rd .bestoffer { margin-top: 2px; }
.toast {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 400; transform: translate(-50%, 12px);
  max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px; background: rgba(15, 23, 42, .92); color: #fff;
  font-size: 14px; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.sec__title { letter-spacing: -.015em; }
.sidecard--cta .btn { min-height: 48px; }
.sidecard--cta .btn--primary { min-height: 52px; font-size: 16px; }

@media (min-width: 1024px) {
  .rd__title { gap: 10px 14px; }
  .rd .bestoffer { margin-top: 6px; }
  .sidecard--cta { padding: 20px; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

@media (max-width: 389px) {
  .finder .routebar__icon { display: none; }
  .finder .routebar__name { font-size: 15px; }
  .hero__sub { max-width: 26ch; }
}

@media (min-width: 1024px) {
  /* One row for All / Offers / Veg / Non-Veg / Open now / More Filters beside Sort at 1280px. */
  .chip--tile { padding: 0 12px; font-size: 13.5px; gap: 6px; }
  .chip--pill { padding: 0 12px; font-size: 13.5px; }
}

/* ══ Visual refinement pass (matches the reference designs) ══════════════════ */
:root { --shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .07); --purple: #4b3fa7; }

/* Hero details */
.hero__badge { background: #ffe4e6; box-shadow: none; }
.hero__title { font-size: 27px; letter-spacing: -.025em; }

/* Route finder: pill + round swap (phone), single white bar (desktop) */
.finder__card { border-radius: 24px; box-shadow: 0 12px 32px rgba(15, 23, 42, .12); border: 0; }
.finder .routebar { border-radius: 18px; min-height: 54px; background: #fff; }
.finder .routebar__icon { background: transparent; color: var(--purple); width: 36px; }
.finder .routebar__chev { background: transparent; color: var(--ink-soft); }
.finder__swap { height: 54px; width: 54px; border-radius: 50%; background: #fff; border: 1.5px solid #ffc7c9; box-shadow: 0 2px 8px rgba(15, 23, 42, .06); }
.finder__go { min-height: 52px; border-radius: 16px; font-size: 16px; box-shadow: 0 8px 18px rgba(242, 68, 77, .3); }

/* Filter tiles: coloured icons, softer cards */
.tiles { gap: 10px; }
.chip--tile { min-height: 78px; border: 1px solid rgba(15, 23, 42, .05); border-radius: 18px; font-size: 12.5px; font-weight: 600; box-shadow: var(--shadow-card); }
.chip--tile[data-chip="offers"] svg { color: #f97316; }
.chip--tile[data-chip="veg"] svg { color: #16a34a; }
.chip--tile[data-chip="nonveg"] svg { color: #ea580c; }
.chip--tile[data-chip="open"] svg { color: var(--accent-strong); }
.chip--tile[aria-pressed="true"] svg { color: #fff !important; }
.chip--filter { display: none; }
.chip--pill { min-height: 46px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-card); }
.chip--more { background: #f1eefe; border-color: #e1dbff; color: var(--purple); }
.chip--diet[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); }
.chip--ic-dumbbell svg { color: #92400e; }
.chip--ic-drop svg { color: var(--accent-strong); }
.chip--ic-leaf svg { color: #16a34a; }
.sortsel { border-radius: 16px; box-shadow: var(--shadow-card); }
.sortsel__lbl { font-weight: 600; }
.sortsel__lbl::after { content: ":"; }
.count { font-size: 14px; color: #64748b; font-weight: 700; }

/* Cards (phone) */
.rc { border-radius: 20px; box-shadow: var(--shadow-card); gap: 10px 12px; padding: 12px; border: 0; }
.rc__media { border-radius: 14px; }
.rc__name { font-size: 17.5px; }
.rc__ribbon { border-radius: 10px; font-size: 12.5px; padding: 6px 10px; }
.verified--head { display: none; }
.rc { grid-template-columns: 116px minmax(0, 1fr) auto; grid-template-areas: "media body body" "amen amen aside"; }
.rc__amen { align-self: center; gap: 4px 12px; }
.rc__aside { align-self: center; }
.rc__am { font-size: 12.5px; }
.rc__am:nth-child(3) { display: none; }
.rc__am--more { display: none; }
.rc__am--more-m { display: inline-flex; }
.tag { padding: 4px 11px; font-size: 12px; }
.tag--nonveg { background: #fde8ea; color: #be123c; }
.tag--diet { background: #fff1de; color: #9a4a00; }

/* Bottom navigation */
.bottom-nav { border-radius: 24px 24px 0 0; box-shadow: 0 -8px 28px rgba(15, 23, 42, .08); background: rgba(255, 255, 255, .98); padding-top: 10px; }
.nav-item { font-size: .75rem; font-weight: 600; }
.nav-item.active { color: var(--accent-strong); font-weight: 700; }

/* Detail: bottom bar, sheet radius */
.cta-bar { gap: 10px; border-radius: 22px 22px 0 0; box-shadow: 0 -8px 28px rgba(15, 23, 42, .08); }
.cta-bar .btn { flex: 1; }
.rd { border-radius: 28px 28px 0 0; }
.rd__name { letter-spacing: -.025em; }
.bestoffer { border-radius: 20px; }
.hl__item, .amen__item { border-radius: 16px; box-shadow: var(--shadow-card); border: 0; }

@media (min-width: 768px) {
  .rc__am:nth-child(3) { display: inline-flex; }
  .rc__am--more-m { display: none; }
  .rc__am--more { display: inline-flex; }
  .verified--head { display: inline-flex; }
  .verified--meta { display: none; }
  .rc__head { align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 6px 10px; }
  .rc { grid-template-columns: 232px minmax(0, 1fr) 196px; grid-template-areas: "media body aside" "media amen aside"; gap: 8px 20px; padding: 12px; border-radius: 20px; }
  .rc__media { min-height: 152px; border-radius: 16px; }
  .rc__name { font-size: 20px; }
  .rc__ribbon { top: 22px; left: 22px; padding: 6px 13px 6px 10px; font-size: 13px; font-weight: 800; background: linear-gradient(135deg, #ff4d4f, #e11d48); box-shadow: 0 6px 14px rgba(225, 29, 72, .35); }
  .rc__aside { align-self: stretch; justify-content: space-between; gap: 12px; padding: 4px 4px 4px 0; }
  .rc__dist { background: #eef0f9; border-radius: 14px; padding: 9px 14px; }
  .rc__tags-gap { display: none; }
  .tag { font-size: 12.5px; padding: 4px 12px; }
  .rc__am { font-size: 13px; }
  .rc__amen { gap: 6px 20px; align-self: end; }
  .hero__pill {
    position: absolute; top: 34px; right: 40px; display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px;
    border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 22px rgba(15, 23, 42, .14);
    font-size: 15px; font-weight: 600; color: var(--ink);
  }
  .hero__pill i { font-style: normal; opacity: .55; }
  .hero__pill svg { color: #92400e; }
  /* Reference shows From | swap | To | Search with no labels above the fields. */
  .ff__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: 0; }
  .finder__card { align-items: center; padding: 14px 16px; }
  .ff__box { min-height: 56px; background: #fafafa; border-radius: 16px; }
  .ff__select { font-size: 16.5px; font-weight: 600; }
  .finder__swap { width: 46px; height: 46px; box-shadow: none; }
  .finder__go { min-height: 56px; border-radius: 16px; font-size: 16.5px; }
  .finder { min-height: 92px; }
}

@media (min-width: 1024px) {
  .hero { padding: 34px 44px 76px; min-height: 212px; }
  .hero__badge { width: 64px; height: 64px; border-radius: 18px; }
  .hero__title { font-size: 38px; }
  .hero__sub { font-size: 17px; margin-top: 2px; }
  .finder { margin-top: -52px; padding: 0 28px; min-height: 92px; }
  .chip--filter { display: inline-flex; min-height: 46px; padding: 0 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 600; box-shadow: var(--shadow-card); }
  .chip--filter .chip__n--dot { background: var(--accent-strong); color: #fff; opacity: 1; border-radius: 999px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; font-size: 11px; }
  .toolbar { gap: 10px; align-items: center; }
  /* Pastel chips like the reference; selected = solid. */
  .chip--tile { min-height: 46px; box-shadow: none; border-color: transparent; background: #fff; border: 1px solid var(--line); font-weight: 600; }
  .chip--tile[data-chip="veg"] { background: #e8f7ec; border-color: #cdeed7; color: #14532d; }
  .chip--tile[data-chip="nonveg"] { background: #fdeaec; border-color: #f9ccd1; color: #9f1239; }
  .chip--tile[data-chip="nonveg"] svg { color: #e11d48; }
  .chip--tile[aria-pressed="true"] { background: var(--grad); border-color: transparent; color: #fff; }
  .chip--pill { min-height: 46px; box-shadow: none; }
  .chip--ic-dumbbell { background: #fff3e0; border-color: #fde0b8; }
  .chip--ic-drop { background: #fff1f2; border-color: #fcd9dd; }
  .chip--ic-leaf { background: #e8f7ec; border-color: #cdeed7; }
  .chip--more { background: #fff; border-color: var(--line); color: var(--ink); }
  .chip--more svg { color: var(--ink-soft); }
  .sortsel { min-height: 46px; box-shadow: none; border: 1px solid var(--line); }
  .sortsel__lbl::after { content: " by"; }
  .count { font-size: 17px; font-weight: 800; color: var(--ink); margin: 20px 0 14px; }
  .cards { gap: 16px; margin-top: 0; }

  .sidecard { border-radius: 20px; box-shadow: var(--shadow-card); border: 0; padding: 18px; }
  .sidecard__title { font-size: 17px; }
  .sgroup { border-top: 0; margin-top: 8px; padding: 6px 0 2px; }
  .sgroup__title { margin: 0; }
  .sgroup__toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 8px 0; cursor: pointer; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); text-align: left; }
  .sgroup__toggle svg { color: var(--ink-soft); transform: rotate(180deg); transition: transform .15s ease; }
  .sgroup.is-folded .sgroup__toggle svg { transform: none; }
  .fopt { gap: 10px; padding: 7px 0; font-size: 14.5px; }
  .fopt > svg { color: #475569; }
  .fopt__n { margin-left: 2px; font-size: 13px; }
  .fopt__n::before { content: "("; }
  .fopt__n::after { content: ")"; }
  .fopt__label { flex: none; }
  .stops__dot { width: 16px; height: 16px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .rc { grid-template-columns: 200px minmax(0, 1fr) 168px; gap: 8px 16px; }
  .rc__name { font-size: 18px; }
  .hero__pill { display: none; }
}
@media (max-width: 389px) {
  .hero__food { width: 124px; height: 124px; right: -26px; }
  .hero__text { max-width: calc(100% - 64px - 96px); }
  .rc { grid-template-columns: 104px minmax(0, 1fr) auto; }
}

/* refinement tweaks (round 2) */
.hero__food { width: 120px; height: 120px; right: -26px; top: 14px; }
.hero__text { max-width: calc(100% - 64px - 94px); }
.hero__title { font-size: 26px; white-space: nowrap; }
@media (min-width: 768px) { .hero__title { white-space: normal; } }
@media (min-width: 1024px) {
  .toolbar { gap: 8px; }
  .chip--tile, .chip--pill, .chip--filter { padding-left: 13px; padding-right: 13px; font-size: 14px; gap: 7px; }
  .chip--tile { flex-direction: row; min-height: 46px; }
}
@media (min-width: 1280px) {
  .chip--tile, .chip--pill, .chip--filter { padding-left: 11px; padding-right: 11px; font-size: 13.5px; gap: 6px; }
  .toolbar { gap: 6px; }
}

@media (max-width: 1023px) { .cta-bar { display: flex; } }
@media (max-width: 389px) {
  .rc__amen { gap: 4px 8px; }
  .rc__am { font-size: 12px; gap: 4px; }
  .rc__open { font-size: 10px; padding: 3px 5px; left: 5px; bottom: 5px; max-width: calc(100% - 10px); letter-spacing: -.01em; }
}

/* ══ Header: one navigation system ═══════════════════════════════════════════
   Desktop (≥1024px): the global header with Hotels / Homes / Buses / Highway stops / Trip plans,
   Highway stops highlighted. Phones and tablets: a compact bar with the logo and the profile
   icon only (the bottom navigation already covers the app sections), so the listing starts
   high on the screen. The detail page keeps its own photo header. */
@media (max-width: 1023px) {
  .site-head--compact { display: block; position: sticky; top: 0; z-index: 60; background: #fff;
    padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 1px 0 rgba(15, 23, 42, .06); }
  .site-head--compact .site-head__in { height: 52px; max-width: 480px; margin: 0 auto; display: flex; align-items: center;
    justify-content: space-between; padding: 0 max(var(--page-pad), env(safe-area-inset-right, 0px)) 0 max(var(--page-pad), env(safe-area-inset-left, 0px)); }
  .site-head--compact .site-head__brand { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 800;
    letter-spacing: -.04em; color: #0b1a30; text-decoration: none; min-height: 44px; padding-right: 8px; }
  .site-head--compact .site-head__brand img { width: 26px; height: 26px; border-radius: 7px; display: block; object-fit: cover; }
  .site-head--compact .site-head__nav { display: none; }
  .site-head--compact .site-head__profile { display: inline-grid; width: 44px; height: 44px; }
  .site-head--compact + .app-container .hero { padding-top: 12px; min-height: 140px; }
  .site-head--compact + .app-container .hero__text { max-width: calc(100% - 104px); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .site-head--compact .site-head__in { max-width: 760px; }
}
@media (min-width: 1024px) {
  /* The profile icon (as on the home page) sits at the right end of the global header. */
  .site-head .site-head__profile { display: inline-grid; }
}

/* ══ Highway Stops UI improvement: route dropdown, filter chips, card actions ═══
   Mobile first. Placed last on purpose: it refines the earlier passes. ═══════════ */

/* ── Route dropdown (the single "Route" control shown below 768px) ── */
.rdrop { position: relative; min-width: 0; }
.rdrop .routebar { width: 100%; }
.rdrop.is-open .routebar { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 90, 95, .16); }
.routebar__chev svg { transition: transform .15s ease; }
.rdrop.is-open .routebar__chev svg { transform: rotate(180deg); }
.rdrop__list {
  position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; right: -64px; margin: 0; padding: 6px; list-style: none;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--surface); border-radius: 18px; box-shadow: 0 18px 44px rgba(15, 23, 42, .2), 0 0 0 1px rgba(15, 23, 42, .06);
}
.rdrop--up .rdrop__list { top: auto; bottom: calc(100% + 8px); }
.rdrop__opt {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 10px; border-radius: 14px; cursor: pointer;
  -webkit-tap-highlight-color: transparent; outline: none;
}
.rdrop__opt:hover, .rdrop__opt:focus-visible { background: #f4f5f8; }
.rdrop__opt:focus-visible { box-shadow: inset 0 0 0 2px rgba(219, 53, 59, .55); }
.rdrop__opt.is-selected { background: var(--accent-soft); }
.rdrop__opt > svg:last-child { color: var(--accent-strong); margin-left: auto; }
.rdrop__icon { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #efecff; color: var(--purple); }
.rdrop__opt.is-selected .rdrop__icon { background: #fff; color: var(--accent-strong); }
.rdrop__main { min-width: 0; display: flex; flex-direction: column; }
.rdrop__name { font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rdrop__sub { font-size: 12.5px; font-weight: 600; color: var(--muted); }

@media (max-width: 767px) {
  /* The choice applies at once on phones, so Search Stops is not needed. */
  .finder { min-height: 80px; }
  .finder__card { grid-template-columns: minmax(0, 1fr) 54px; grid-template-areas: "route swap"; padding: 12px; }
  .finder__go { display: none; }
}

/* ── Filter chips: primary tiles + secondary pills (phones and tablets) ── */
.chip--tone-all { --c: #f2444d; --cr: 242, 68, 77; }
.chip--tone-offers { --c: #f59e0b; --cr: 245, 158, 11; }
.chip--tone-veg { --c: #16a34a; --cr: 22, 163, 74; }
.chip--tone-nonveg { --c: #dc2626; --cr: 220, 38, 38; }
.chip--tone-protein { --c: #2563eb; --cr: 37, 99, 235; }
.chip--tone-balanced { --c: #0d9488; --cr: 13, 148, 136; }
.chip--tone-diabetic { --c: #db2777; --cr: 219, 39, 119; }
.chip--tone-lowcarb { --c: #65a30d; --cr: 101, 163, 13; }
.chip--tile[data-chip] svg, .chip--diet svg { color: var(--c); }
.chip--tile[aria-pressed="true"], .chip--diet[aria-pressed="true"] {
  background: var(--c); border-color: transparent; color: #fff; box-shadow: 0 6px 14px rgba(var(--cr), .32);
}
.chip--tone-all[aria-pressed="true"] { background: var(--grad); }
.chip--tile[aria-pressed="true"] svg, .chip--diet[aria-pressed="true"] svg { color: #fff !important; }
.chip--diet[aria-pressed="true"] { box-shadow: 0 6px 14px rgba(var(--cr), .32); }
.chip--tile:disabled, .chip--diet:disabled { opacity: .45; box-shadow: none; }

@media (max-width: 1023px) {
  .toolbar { margin-top: 12px; }
  /* One row of six; on narrower phones it scrolls sideways and the cut-off chip shows there is more. */
  .tiles {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    margin: 0 calc(-1 * var(--page-pad)); padding: 4px var(--page-pad) 10px; scroll-padding-inline: var(--page-pad);
  }
  .tiles::-webkit-scrollbar, .pills::-webkit-scrollbar { display: none; }
  .chip--tile {
    flex: 1 0 56px; min-height: 66px; padding: 8px 2px; gap: 5px; border-radius: 16px;
    font-size: 11.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15;
  }
  .chip--tile svg { width: 22px; height: 22px; }
  .pills {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; gap: 8px; margin-top: 0;
    margin-left: calc(-1 * var(--page-pad)); margin-right: calc(-1 * var(--page-pad));
    padding: 2px var(--page-pad) 10px; scroll-padding-inline: var(--page-pad);
  }
  /* Compact enough that Diabetic Friendly + Low Carb + More Filters share one row from ~380px. */
  .chip--pill { flex: none; min-height: 44px; padding: 0 9px; gap: 4px; font-size: 11.5px; font-weight: 600; }
  .chip--pill svg { width: 15px; height: 15px; }
  .chip--more { margin-left: auto; }
  /* Under 400px the dropdown chevron goes so all three pills fit on one row. */
  .pills { gap: 6px; }
  .chip--more > svg:last-child:not(:first-child) { display: none; }
}
@media (min-width: 400px) and (max-width: 1023px) {
  .chip--pill { padding: 0 12px; font-size: 12.5px; }
  .pills { gap: 8px; }
  .chip--more > svg:last-child:not(:first-child) { display: inline-block; }
}

/* ── Restaurant card: two actions in one row under the details ── */
.rc__actions {
  grid-area: actions; position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 10px; margin-top: 2px;
}
.rc__btn {
  min-width: 0; min-height: 46px; padding: 0 10px; gap: 7px; border-radius: 14px; font-size: 14px; font-weight: 800;
  white-space: nowrap; letter-spacing: -.005em;
}
.rc__btn svg { width: 17px; height: 17px; }
.rc__btn-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rc__btn--menu { background: #fff; border: 1.5px solid var(--accent); color: var(--accent-strong); }
.rc__btn--deal:disabled { background: #e9ecf1; color: #8b95a5; box-shadow: none; }
.rc__btn--menu:disabled { background: #fff; border-color: #dfe3ea; color: #9aa4b2; }
.rc__btn:disabled { cursor: default; }
.rc__btn:disabled:active { transform: none; }

@media (max-width: 767px) {
  .rc { grid-template-columns: 116px minmax(0, 1fr); grid-template-areas: "media body" "amen amen" "actions actions"; }
  .rc__aside { display: none; }
}
@media (max-width: 389px) {
  .rc { grid-template-columns: 104px minmax(0, 1fr); }
}
@media (max-width: 359px) {
  .rc__actions { gap: 8px; }
  .rc__btn { padding: 0 6px; gap: 5px; font-size: 13px; }
  .rc__btn svg { width: 16px; height: 16px; }
}
@media (min-width: 768px) {
  .rc { grid-template-areas: "media body aside" "media amen aside" "media actions aside"; }
  .rc__aside { align-self: start; justify-content: flex-start; }
  .rc__actions { max-width: 440px; margin-top: 6px; }
  .rc__btn { min-height: 46px; font-size: 14.5px; }
  .rc__amen { align-self: start; }
}

/* Route selector label: keep the whole "From → To" visible on phones (full text is in the list and the title). */
@media (max-width: 430px) {
  .rdrop .routebar { padding: 6px 6px; gap: 4px; }
  .rdrop .routebar__icon { width: 30px; }
  .rdrop .routebar__name { font-size: 15px; letter-spacing: -.02em; }
}
@media (max-width: 359px) {
  .rdrop .routebar__name { font-size: 14px; }
}

/* Narrow phones: a long single-line cuisine list must truncate inside the card, not push the offer box and text past its edge. */
.rc > * { min-width: 0; }
.rc__body { grid-template-columns: minmax(0, 1fr); }
.rc__cuisines { overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 359px) {
  .rdrop .routebar__name { font-size: 13.5px; letter-spacing: -.03em; }
  .rdrop .routebar__chev { width: 26px; height: 26px; }
  .rdrop .routebar { padding: 6px 4px 6px 8px; gap: 2px; }
}

/* Tablet / small laptop (768-1099px): the card's third column (distance) is only 168-196px wide and often empty, so the
   action row sat in the narrow middle column and clipped "Get Deal Card" / "View Menu". Let the actions span the
   middle and right columns; the distance block keeps the two rows above it. 1100px+ and phones are untouched. */
@media (min-width: 768px) and (max-width: 1099px) {
  .rc { grid-template-areas: "media body aside" "media amen aside" "media actions actions"; }
}

/* ══ Phone restaurant card: full-width photo with the details underneath ═════════════════════════════════
   Below 768px ONLY. Tablet (768px+) and desktop keep the side-photo card exactly as before: every rule
   that changes the card is inside the max-width: 767px query; the one rule outside it hides the new
   schedule line, which only phones print. ═══════════════════════════════════════════════════════════════ */
.rc__when { display: none; }

@media (max-width: 767px) {
  .rc {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "media" "body" "amen" "actions";
    gap: 12px; padding: 12px; contain-intrinsic-size: auto 470px;
  }
  /* 16:9 photo, full card width. The ratio reserves the space, so nothing jumps when the image arrives.
     Portrait cover photos keep their upper part, where the shop sign usually is. */
  .rc__media { aspect-ratio: 16 / 9; min-height: 0; border-radius: 16px; }
  .rc__photo img { object-position: 50% 35%; }
  .rc__open, .rc__closed { left: 10px; bottom: 10px; max-width: calc(100% - 20px); font-size: 12px; padding: 4px 10px; letter-spacing: 0; }

  /* The offer badge sits on the photo (top left). It is not a link; taps go through to the card. */
  .rc--offer .rc__head { padding-right: 0; }
  .rc__ribbon svg { display: block; flex: none; }
  .rc__ribbon {
    position: absolute; top: 22px; left: 22px; right: auto; z-index: 2; max-width: calc(100% - 44px); pointer-events: none;
    display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px 6px 9px; border-radius: 999px;
    background: linear-gradient(135deg, #ff4d4f, #e11d48); color: #fff; font-size: 13px; line-height: 1.1;
    box-shadow: 0 6px 14px rgba(225, 29, 72, .35); text-align: left; overflow-wrap: normal;
  }
  .rc__head { display: block; }

  /* Offer box: the title and condition, then the configured schedule on its own line. */
  .rc__offer { padding: 10px 12px; }
  .rc__offer > span { min-width: 0; }
  .rc__ofwhen { display: none; }
  .rc__when {
    display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; margin-top: 5px;
    font-size: 12.5px; font-weight: 600; color: #166534;
  }
  .rc__when svg { margin-top: 0; color: #166534; flex: none; }
  .rc__when-days { position: relative; padding-left: 9px; }
  .rc__when-days::before { content: ""; position: absolute; left: 0; top: 12%; bottom: 12%; width: 1px; background: rgba(22, 101, 52, .35); }

  /* Loading placeholder matches the new card. */
  .sk { grid-template-columns: minmax(0, 1fr); }
  .sk__img { aspect-ratio: 16 / 9; }
}
/* From 390px the amenities row has room for three names plus the count. */
@media (min-width: 390px) and (max-width: 767px) {
  .rc__am:nth-child(3) { display: inline-flex; }
  .rc__am--more { display: inline-flex; }
  .rc__am--more-m { display: none; }
}
