/* Food / Eat section — scoped component sheet (eat- prefix).
   Loaded only by /food/<city>/ (the city list). There is no /food/ hub page:
   /food/ 301s to /food/hangzhou/, and cities are switched from the row at the
   top of each city page. Kept out of style.css so adding the section never
   bumps CSS_V, and the CSP stays style-src 'self'. Reads the site's own dark
   palette variables. Container width matches the home .wrap. */

/* ===== container + breadcrumb =====
   .eat-wrap matches .rs-wrap on the detail pages, so both pages put the
   breadcrumb the same distance below the sticky header. The breadcrumb lives
   here rather than in restaurant-page.css because every eat page loads this
   sheet — one definition, no drift between the two pages. The separator is a
   ::before on each item, not a span between them, so a wrapped line can never
   end with a dangling chevron. */
.eat-wrap{padding:28px 0 64px}
.rs-crumb{font-family:var(--sans);font-size:12.5px;line-height:1.4;color:var(--ink-3);margin:0 0 18px;display:flex;flex-wrap:wrap;align-items:center}
.rs-crumb a,.rs-crumb .cur{white-space:nowrap;text-decoration:none}
.rs-crumb a{color:var(--ink-2);transition:color .2s}
.rs-crumb a:hover{color:var(--gold)}
.rs-crumb .cur{color:var(--ink);min-width:0}
.rs-crumb > * + *{margin-left:9px}
.rs-crumb > * + *::before{content:"\203A";margin-right:9px;color:var(--ink-3);opacity:.5}
/* the site has no global focus ring; keyboard users need one on dark ink */
.eat-wrap a:focus-visible,.rs-wrap a:focus-visible,.rs-wrap button:focus-visible{
  outline:2px solid var(--gold);outline-offset:3px;border-radius:4px}
@media (max-width:600px){
  .rs-crumb{flex-wrap:nowrap}
  .rs-crumb .cur{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
}

/* ===== hero panel ===== */
.eat-hero{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:clamp(28px,4vw,48px) clamp(22px,4vw,52px);margin-bottom:28px;position:relative;overflow:hidden}
.eat-hero::before{content:"";position:absolute;top:-120px;right:-80px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle,rgba(200,162,76,.16),transparent 70%);pointer-events:none}
.eat-hero .eyebrow{font-family:var(--sans);font-size:12px;letter-spacing:2px;text-transform:uppercase;color:var(--gold);margin-bottom:14px}
.eat-hero h1{font-family:var(--serif);font-size:clamp(30px,4.4vw,50px);font-weight:500;line-height:1.08;letter-spacing:-.02em;color:var(--ink);margin-bottom:14px;text-wrap:balance}
.eat-hero p.lead{font-family:var(--sans);font-size:15.5px;line-height:1.7;color:var(--ink-2);max-width:62ch;margin-bottom:22px}

/* city page: the same panel, one notch tighter — the old version stacked a
   two-line title, a Chinese subtitle, a four-line lead and two buttons, which
   pushed the first card below the fold. */
.eat-hero-city{display:flex;align-items:flex-end;justify-content:space-between;gap:clamp(18px,4vw,52px);padding:clamp(20px,2.6vw,30px) clamp(20px,3vw,34px);margin-bottom:24px}
.eat-hero-city .eyebrow{margin-bottom:9px}
.eat-hero-city h1{font-size:clamp(25px,3.1vw,37px);line-height:1.1;margin-bottom:10px}
.eat-hero-city p.lead{font-size:14.2px;line-height:1.6;max-width:64ch;margin-bottom:0}
.eat-stat{flex:none;text-align:right;border-left:1px solid var(--line);padding-left:clamp(16px,2.4vw,30px);position:relative;z-index:1}
.eat-stat .n{font-family:var(--serif);font-size:42px;line-height:1;color:var(--gold)}
.eat-stat .u{font-family:var(--sans);font-size:10.5px;letter-spacing:1.5px;text-transform:uppercase;color:var(--ink-3);margin-top:7px;line-height:1.5}
.eat-stat a{display:inline-block;margin-top:13px;font-family:var(--sans);font-size:13px;font-weight:600;color:var(--gold);text-decoration:none;border-bottom:1px solid var(--gold);padding-bottom:1px}
.eat-stat a:hover{color:var(--ink);border-bottom-color:var(--ink)}
/* Food photos: discourage casual drag-to-desktop saving. The real protection is
   the "boltjourneys.com" watermark burned into every image by
   _design/optimize-food-images.py, so any copy that leaves the site is attributed. */
.eat-thumb img,.rs-gallery img,.rs-rel-img img,.rs-cuisine-note img,.rs-hero img{-webkit-user-drag:none;user-select:none}

/* ===== city switcher =====
   Sits under the breadcrumb on every city page. City names that have no page
   yet are plain text, not links: a dead link reads worse than "soon". */
.eat-switch{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 16px}
.eat-switch .lbl{font-family:var(--sans);font-size:10.5px;letter-spacing:1.7px;text-transform:uppercase;color:var(--ink-3);margin-right:5px}
.eat-switch a,.eat-switch .soon{font-family:var(--sans);font-size:12.5px;line-height:1;padding:6px 12px;border-radius:20px;border:1px solid var(--line);text-decoration:none;color:var(--ink-3)}
.eat-switch a.on{background:rgba(200,162,76,.14);border-color:rgba(200,162,76,.45);color:var(--gold);font-weight:600}
.eat-switch .soon{border-style:dashed;opacity:.62;cursor:default}

/* ===== restaurant list on city page =====
   Card rhythm copies the Guiyu detail hero: pill chips (rating / price /
   award) above the name, English name, Chinese name underneath, then
   cuisine · district, address, phone, and what to order. The photo keeps a
   fixed 4:3 box at every card height so a long address never stretches it. */
.eat-list{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch}
/* the list gets a real section heading so the page carries an H2 under the H1
   and the 16 restaurants read as a labelled set, not a bare grid */
.eat-list-h{font-family:var(--serif);font-size:clamp(19px,2.2vw,24px);font-weight:500;line-height:1.2;color:var(--ink);margin:0 0 16px;letter-spacing:-.01em}
.eat-rcard{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:border-color .2s,transform .2s,box-shadow .2s}
.eat-rcard:hover{border-color:var(--line-2);transform:translateY(-2px);box-shadow:0 12px 28px rgba(0,0,0,.22)}
/* thumbnail — real Amap photo when we have one, deep-gradient slot otherwise */
.eat-thumb{position:relative;flex:none;width:100%;aspect-ratio:16 / 9;display:block;overflow:hidden;background:var(--footer-bg)}
.eat-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s ease}
.eat-rcard:hover .eat-thumb img{transform:scale(1.045)}
.eat-ph{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(120% 120% at 30% 20%,#4A4032 0%,#332C22 55%,#241F19 100%);box-shadow:inset 0 0 0 1px rgba(245,240,230,.07)}
.eat-ph i{font-style:normal;font-family:var(--serif);font-size:34px;color:rgba(200,162,76,.55);user-select:none}
.eat-thumb-rank{position:absolute;top:8px;left:8px;background:rgba(28,24,19,.84);color:var(--gold);font-family:var(--sans);font-size:11.5px;font-weight:700;letter-spacing:.3px;padding:3px 8px;border-radius:6px;z-index:2}
.eat-thumb-rank.pick{background:var(--gold);color:#241F19}
.eat-rcard .rb-eat{flex:1;min-width:0;display:flex;flex-direction:column;padding:14px 15px 16px}

/* chips */
.eat-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.etag{font-family:var(--sans);font-size:10.5px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;padding:3px 9px;border-radius:20px;border:1px solid var(--line-2);color:var(--ink-2);white-space:nowrap}
.etag.rate{color:var(--gold);border-color:rgba(200,162,76,.42);background:rgba(200,162,76,.1)}
.etag.price{color:var(--ink);border-color:var(--line-2);background:rgba(245,240,230,.05);text-transform:none;letter-spacing:.02em;font-weight:500}
.etag.award{color:#F0A79E;border-color:rgba(224,56,42,.45);background:rgba(224,56,42,.14)}
.etag.pick{color:var(--gold);border-color:rgba(200,162,76,.42);background:rgba(200,162,76,.14)}

/* The card title is the obvious tap target, but a 16.5px line box is only
   ~22px tall. Padding lifts the hit area to 32px; the negative margins give
   the box its old footprint back, so nothing below shifts. */
.eat-rcard .rn{font-family:var(--serif);font-size:16.5px;line-height:1.3;color:var(--ink);text-decoration:none;padding-block:5px;margin:-5px 0 -1px;display:block;transition:color .2s}
a.rn:hover{color:var(--gold)}
.eat-rcard .rcn{font-family:var(--sans);font-size:12.5px;color:var(--ink-3);letter-spacing:.07em;margin-bottom:7px}
.eat-rcard .eat-where{font-family:var(--sans);font-size:12px;color:var(--ink-3);letter-spacing:.03em;margin-bottom:9px}
.eat-rcard .ra{font-family:var(--sans);font-size:13px;color:var(--ink-2);line-height:1.62;margin-bottom:5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
/* the dish-count line is the footer of the card: pushing it down keeps the
   dashed rule level across cards whose addresses run to different heights */
.eat-rcard .rdish{font-family:var(--sans);font-size:12px;color:var(--ink-3);line-height:1.55;margin:auto 0 10px;padding-top:9px;border-top:1px dashed var(--line-2)}
.eat-rcard .rdish b{color:var(--gold);font-weight:700;font-size:13px}
.eat-rcard .racts{display:flex;gap:8px;flex-wrap:wrap}
.eat-rcard .btn{font-family:var(--sans);font-size:12px;font-weight:600;text-decoration:none;padding:8px 14px;border-radius:6px}
.eat-rcard .btn.view{background:var(--accent);color:#fff}
.eat-rcard .btn.view:hover{background:var(--accent-d)}
.eat-rcard .btn.map{background:transparent;color:var(--ink);border:1px solid var(--line-2)}
.eat-rcard .btn.map:hover{border-color:var(--gold);color:var(--gold)}

.eat-rcard.pick{border-color:var(--gold)}

@media (max-width:860px){
  /* cities become a swipeable strip instead of a two-row wrap */
  .eat-switch{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:4px;margin-bottom:14px;
    -webkit-mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent);
    mask-image:linear-gradient(to right,#000 calc(100% - 22px),transparent)}
  .eat-switch::-webkit-scrollbar{display:none}
  .eat-switch a,.eat-switch .soon{flex:none;display:inline-flex;align-items:center;min-height:32px;padding:0 13px}
  .eat-switch .lbl{flex:none;position:sticky;left:0;z-index:1;background:var(--paper);padding-right:9px}
}
/* below 640 the hero stacks: the stat block drops under the copy and reads as
   a caption row instead of a squeezed right-hand column */
@media (max-width:640px){
  .eat-hero-city{flex-direction:column;align-items:stretch;gap:14px}
  .eat-stat{display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:10px;
    text-align:left;border-left:0;padding-left:0;border-top:1px solid var(--line);padding-top:13px}
  .eat-stat .n{font-size:28px}
  .eat-stat .u{margin-top:0;font-size:10px;letter-spacing:1.3px}
  .eat-stat a{grid-column:1 / -1;margin-top:10px;font-size:12px}
}
/* 3-up only holds above ~1150px; below that the cards go 2-up again, and
   1-up on phones. The name size steps back up when the card goes wider. */
@media (max-width:1150px){
  .eat-list{grid-template-columns:repeat(2,1fr);gap:18px}
  .eat-rcard .rb-eat{padding:16px 18px 18px}
  .eat-rcard .rn{font-size:18px}
  .eat-rcard .ra{font-size:13px}
}
@media (max-width:720px){
  .eat-list{grid-template-columns:1fr;gap:14px}
  .eat-hero-city h1{font-size:clamp(23px,6.4vw,30px)}
}
@media (max-width:480px){
  /* match .rs-wrap on the detail pages so both breadcrumbs sit at the same height */
  .eat-wrap{padding:20px 0 44px}
  .eat-rcard .rb-eat{padding:14px}
  .eat-rcard .rn{font-size:17px}
  .eat-rcard .ra{font-size:12.5px}
  .eat-rcard .etag{font-size:10px;padding:3px 8px}
  .eat-rcard .btn{padding:9px 14px}
}
