@import url("/redesign/a2/tokens.css?v=3");
/* A2: refinements on top of Option A's skin. Muted, calmer, more editorial. */

/* the map is coloured by its own palette now (see map.js), so drop A's blanket tint */
html[data-v="2"] #map .maplibregl-canvas, html[data-v="2"] #map .leaflet-tile-pane { filter: none; }

/* ===================== A2 tokens: calmer paper, brick instead of tomato, sand instead of mustard ===================== */
html[data-v="2"] {
  --paper: #f3ecdb; --sand: var(--hj-sand); --brick: #b4452d; --ink2: var(--hj-ink-soft); --rule: rgba(29, 27, 24, .16);
  --bg: var(--hj-bg); --card: var(--hj-card); --glass: rgba(248, 242, 227, .99); --ink: var(--hj-ink); --muted: var(--hj-muted); --seg-on: var(--hj-sand); --blue: #b4452d; --accent: #b4452d;
  --shadow: 4px 4px 0 rgba(29, 27, 24, .92); --soft: 3px 3px 0 rgba(29, 27, 24, .9);
}
html[data-v="2"] body { background-color: var(--hj-bg); background-image: radial-gradient(rgba(29, 27, 24, .055) 1px, transparent 1.2px); }
html[data-v="2"] .cta, html[data-v="2"] .h-btn, html[data-v="2"] .btn, html[data-v="2"] .act.primary, html[data-v="2"] .listbtn { box-shadow: 3px 3px 0 var(--brick); }
html[data-v="2"] .cta:hover, html[data-v="2"] .h-btn:hover, html[data-v="2"] .btn:hover { box-shadow: 5px 5px 0 var(--brick); }
html[data-v="2"] .hero h1 { text-shadow: clamp(4px, .7vw, 10px) clamp(4px, .7vw, 10px) 0 var(--brick); }
html[data-v="2"] .h-nav nav a[aria-current], html[data-v="2"] .herobar a[aria-current] { background: var(--sand); }
html[data-v="2"] .cr-ticker { color: var(--hj-ochre); border-bottom-color: var(--brick); }

/* selected states: sand with a brick underline instead of loud yellow */
html[data-v="2"] .seg button[aria-selected="true"], html[data-v="2"] .seg button[aria-pressed="true"], html[data-v="2"] .h-seg button[aria-pressed="true"] { background: var(--sand); box-shadow: inset 0 -3px 0 var(--brick); }
html[data-v="2"] .tchip[aria-pressed="true"], html[data-v="2"] .h-tag[aria-pressed="true"], html[data-v="2"] .h-pill[aria-pressed="true"], html[data-v="2"] .radius button[aria-pressed="true"] { background: var(--ink); color: #f3ecdb; }
html[data-v="2"] .seg, html[data-v="2"] .h-seg { border-width: 2px; } html[data-v="2"] .seg button, html[data-v="2"] .h-seg button { border-right-width: 1px; }

/* ===================== the map page ===================== */
html[data-v="2"] .panel, html[data-v="2"] .viewswitch, html[data-v="2"] .pincard { border-width: 2px; box-shadow: 5px 5px 0 rgba(29, 27, 24, .9); background: #f6f0e0; }
html[data-v="2"] .mylocate, html[data-v="2"] .mapback, html[data-v="2"] .ptoggle, html[data-v="2"] .leaflet-control-zoom a { border-width: 2px !important; background: #f6f0e0 !important; box-shadow: 2px 2px 0 rgba(29, 27, 24, .9); }
html[data-v="2"] .nav .title, html[data-v="2"] .panel .title { font-size: 40px; line-height: .95; margin: 2px 0 6px; letter-spacing: .01em; }
html[data-v="2"] .nav .sub, html[data-v="2"] .panel .sub { font: 400 11px/1.4 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-bottom: 10px; border-bottom: 3px double var(--ink); }

/* the list as an editorial index */
html[data-v="2"] .list { border-top: 0; }
html[data-v="2"] .row { padding: 13px 16px 13px 14px; gap: 14px; border-bottom: 1px solid var(--rule); transition: background .15s ease; }
html[data-v="2"] .row:hover { background: rgba(29, 27, 24, .05); box-shadow: inset 4px 0 0 var(--brick); }
html[data-v="2"] .rname { font: 800 17px/1.2 var(--font); letter-spacing: -.012em; color: var(--ink); }
html[data-v="2"] .rsub { margin-top: 4px; font: 400 10.5px/1.45 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html[data-v="2"] .row .ico { width: 36px; height: 36px; flex: none; border: 2px solid var(--ink) !important; box-shadow: 2px 2px 0 rgba(29, 27, 24, .85); }
html[data-v="2"] .row .chev { opacity: .45; }
html[data-v="2"] .legend, html[data-v="2"] .qexplain { font: 400 11px/1.4 var(--mono); letter-spacing: .05em; text-transform: uppercase; }

/* pins: restrained colour, a clear outline, and a different shape for each kind of place */
html[data-v="2"] .pin { width: 30px; height: 30px; border: 2.5px solid #f6f0e0; box-shadow: 0 0 0 2px var(--hj-ink), 0 4px 8px rgba(29, 27, 24, .4); transition: transform .15s ease, box-shadow .15s ease; }
html[data-v="2"] .pin[data-cat="drinks"] { border-radius: 9px; }
html[data-v="2"] .pin[data-cat="sweet"] { outline: 2px dashed #f6f0e0; outline-offset: -5px; }
html[data-v="2"] .pin.hl, html[data-v="2"] .pin.on { transform: scale(1.28); box-shadow: 0 0 0 3px var(--hj-ochre), 0 0 0 5px var(--hj-ink), 0 6px 12px rgba(29, 27, 24, .45); z-index: 1000; }
html[data-v="2"] .pin-cluster { background: #f6f0e0 !important; color: var(--hj-ink) !important; border: 2px solid var(--hj-ink); font-family: var(--disp); font-weight: 400; letter-spacing: .02em; box-shadow: 2px 3px 0 var(--hj-ink); }
html[data-v="2"] .leaflet-tooltip.tip { background: var(--hj-ink); color: #f3ecdb; border: 0; border-radius: 0; font: 400 12px var(--mono); letter-spacing: .04em; box-shadow: 3px 3px 0 rgba(0, 0, 0, .25); }
html[data-v="2"] .leaflet-tooltip.tip::before { display: none; }

/* a place, opened: a page from the journal */
html[data-v="2"] .detail .kind { display: flex; align-items: center; gap: 8px; margin: 16px 0 2px; font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
html[data-v="2"] .detail h2 { margin: 2px 0 12px; font-size: 50px; line-height: .92; text-wrap: balance; }
html[data-v="2"] .detail .story p { margin: 0 0 12px; padding: 2px 0 2px 16px; background: transparent !important; border: 0; border-left: 4px solid var(--brick); border-radius: 0 !important; box-shadow: none !important; font: 600 18px/1.55 var(--font); color: var(--ink); }
html[data-v="2"] .detail .story p::before, html[data-v="2"] .detail .story p::after { display: none !important; }
html[data-v="2"] .detail .where { padding-left: 20px; font: 400 11px/1.5 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
html[data-v="2"] .ptag { border: 1px solid var(--ink); border-radius: 0; background: transparent; font: 400 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
html[data-v="2"] .opencap { font: 700 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
html[data-v="2"] .detail .act { font-size: 12px; box-shadow: 3px 3px 0 var(--ink); }
html[data-v="2"] .detail .act.primary { box-shadow: 3px 3px 0 var(--brick); }
html[data-v="2"] .facts { margin-top: 18px; padding-top: 14px; border-top: 3px double var(--ink); }
html[data-v="2"] .opennow { font: 700 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
html[data-v="2"] .toprow { font: 400 13px var(--mono); letter-spacing: .04em; }
html[data-v="2"] .rate { color: #a8741a; font-weight: 700; }
html[data-v="2"] .summary { margin: 10px 0 14px; font: 400 15px/1.6 var(--font); color: var(--ink2); }
html[data-v="2"] .frow { display: grid; grid-template-columns: 78px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px dotted var(--rule); font-size: 14px; }
html[data-v="2"] .flabel { font: 700 10.5px/1.6 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
html[data-v="2"] .hours { font-size: 13px; color: var(--ink2); }
html[data-v="2"] .gcredit, html[data-v="2"] .gmlink { font: 400 11px var(--mono); letter-spacing: .05em; color: var(--muted); }
html[data-v="2"] .detail .story { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
html[data-v="2"] .detail .story::before, html[data-v="2"] .detail .story::after { display: none !important; }

/* ===================== recipes: a cookbook, easier on the eyes ===================== */
html[data-v="2"] .h-first { padding-top: clamp(26px, 4vw, 48px); }
html[data-v="2"] .h-title { font-size: clamp(44px, 6vw, 72px); line-height: .95; }
html[data-v="2"] .h-grid { gap: clamp(22px, 3vw, 34px); }
html[data-v="2"] .h-card { border-width: 2px; box-shadow: 4px 4px 0 rgba(29, 27, 24, .9); background: var(--hj-card); transition: transform .18s ease, box-shadow .18s ease; }
html[data-v="2"] .h-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 rgba(29, 27, 24, .9); }
html[data-v="2"] .h-cover { border-bottom: 2px solid var(--ink); filter: saturate(.95); }
html[data-v="2"] .h-body { padding: 20px 22px 24px; }
html[data-v="2"] .h-kind { font: 700 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--brick); }
html[data-v="2"] .h-ctitle { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.02; margin: 8px 0 10px; }
html[data-v="2"] .h-csum { font: 400 16px/1.6 var(--font); color: var(--ink2); margin: 0 0 12px; }
html[data-v="2"] .h-cmeta { font: 400 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* a recipe, opened */
html[data-v="2"] .h-sheet { background: var(--bg); }
html[data-v="2"] .h-sheetin { max-width: 880px; margin: 24px auto 60px; padding: clamp(20px, 4vw, 44px); border: 2px solid var(--ink); box-shadow: 6px 6px 0 rgba(29, 27, 24, .9); background: var(--hj-card); }
html[data-v="2"] .h-rcover { border-radius: 0; border: 2px solid var(--ink); margin-bottom: 26px; }
html[data-v="2"] .h-rhead h1, html[data-v="2"] .h-rhead h2 { font-size: clamp(42px, 6.4vw, 70px); line-height: .94; margin: 6px 0 14px; text-wrap: balance; }
html[data-v="2"] .h-rsum { max-width: 60ch; margin: 0 0 20px; padding-left: 16px; border-left: 4px solid var(--brick); font: 600 clamp(18px, 2vw, 21px)/1.55 var(--font); color: var(--ink); }
html[data-v="2"] .h-chips { gap: 8px; margin-bottom: 22px; }
html[data-v="2"] .h-chip { border: 1px solid var(--ink); border-radius: 0; background: transparent; padding: 6px 11px; font: 400 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
html[data-v="2"] .h-ctrls { margin: 0 0 26px; padding: 14px 0; border-top: 3px double var(--ink); border-bottom: 1px solid var(--rule); font: 400 13px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
html[data-v="2"] .h-step { border-radius: 0; border: 2px solid var(--ink); background: var(--hj-field); font-family: var(--mono); }
html[data-v="2"] .h-cols { gap: clamp(30px, 5vw, 64px); }
html[data-v="2"] .h-ing { font-size: 17px; line-height: 1.5; }
html[data-v="2"] .h-ing li { padding: 10px 0; border-bottom: 1px dotted var(--rule); }
html[data-v="2"] .h-ing .grp { margin: 22px 0 6px; padding: 0 0 6px; border-bottom: 3px double var(--ink); font: 400 24px/1 var(--disp); letter-spacing: .03em; text-transform: uppercase; color: var(--ink); }
html[data-v="2"] .h-ing .q { font: 700 14px var(--mono); color: var(--brick); }
html[data-v="2"] .h-ing input:checked ~ span { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--brick); }
html[data-v="2"] .h-ing input { accent-color: var(--brick); border-radius: 0; }
html[data-v="2"] .h-steps { counter-reset: st; padding: 0; margin: 0; list-style: none; }
html[data-v="2"] .h-steps li { position: relative; margin: 0; padding: 16px 0 16px 58px; border-bottom: 1px solid var(--rule); background: transparent !important; border-radius: 0; box-shadow: none; font: 400 18px/1.7 var(--font); max-width: 62ch; color: var(--ink); }
html[data-v="2"] .h-steps li::before { content: counter(st); counter-increment: st; position: absolute; left: 0; top: 10px; width: 44px; height: 44px; display: grid; place-items: center; background: transparent !important; border: 0 !important; border-radius: 0 !important; color: var(--brick) !important; font: 400 38px/1 var(--disp) !important; }
html[data-v="2"] .h-steps li.done { color: var(--muted); }
html[data-v="2"] .h-steps li.done::before { color: var(--muted) !important; }
html[data-v="2"] .h-notes { margin-top: 26px; padding: 16px 20px; border: 0; border-left: 4px solid var(--ink); border-radius: 0; background: var(--sand); font: 400 16px/1.7 var(--font); color: var(--ink2); }
html[data-v="2"] .h-sheetbar { background: var(--hj-bg); }
html[data-v="2"] .h-back, html[data-v="2"] .h-pill { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

/* calories and nutrition: a printed label */
html[data-v="2"] .c-box, html[data-v="2"] .c-res, html[data-v="2"] .c-cal { background: var(--hj-field); border: 2px solid var(--ink); border-top-width: 10px; border-radius: 0; box-shadow: 4px 4px 0 rgba(29, 27, 24, .9); }
html[data-v="2"] .c-total, html[data-v="2"] .c-num, html[data-v="2"] .c-pstat b, html[data-v="2"] .c-stat b { font-family: var(--disp); font-weight: 400; letter-spacing: .01em; color: var(--ink); }
html[data-v="2"] .c-per, html[data-v="2"] .c-sub, html[data-v="2"] .c-kick, html[data-v="2"] .c-pstat span, html[data-v="2"] .c-stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[data-v="2"] .c-stat, html[data-v="2"] .c-pstat { border-radius: 0; border: 0; border-top: 1px solid var(--rule); background: transparent; }
html[data-v="2"] .c-title { font-size: clamp(40px, 5.4vw, 64px); line-height: .95; }
html[data-v="2"] .c-li { border-bottom: 1px dotted var(--rule); }
html[data-v="2"] .c-chip { border-radius: 0; border: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; background: transparent; }
html[data-v="2"] .c-btns .h-btn, html[data-v="2"] .c-btns button { border-radius: 0; }
html[data-v="2"] .h-foot { border-top-width: 2px; }
html[data-v="2"] .h-steps { display: block; }
html[data-v="2"] .h-steps li { display: block !important; border: 0 !important; border-bottom: 1px solid var(--rule) !important; }
html[data-v="2"] .c-box { border-top-width: 2px; box-shadow: none; background: var(--hj-field); }
html[data-v="2"] .c-name, html[data-v="2"] .c-form input { background: var(--hj-field); border: 2px solid var(--ink); border-radius: 0; }
html[data-v="2"] .c-n { background: var(--brick); color: #f3ecdb; border-radius: 0; font-family: var(--mono); }

/* map page: Recent reviews, then the list at a glance */
html[data-v="2"] #glance .inner { width: min(1180px, 100% - 40px); margin: 0 auto; padding: clamp(40px, 6vw, 80px) 0; }
html[data-v="2"] #glance .sec { display: flex; align-items: center; gap: 16px; margin: 0 0 clamp(16px, 3vw, 30px); font: 400 clamp(32px, 5vw, 54px)/1 var(--disp); text-transform: uppercase; letter-spacing: .01em; color: var(--ink); }
html[data-v="2"] #glance .sec i { flex: 1; height: 0; border-top: 4px double var(--ink); }
html[data-v="2"] #glance { background: transparent; border: 0; }
html[data-v="2"] .connect .cn-wrap { color: var(--ink); }

.cr-ticker { max-width: 100%; contain: paint; }

/* phones: a slimmer hero above the map, so the map starts higher on the first screen */
@media (max-width: 560px) {
  html[data-v="2"] .hero { padding-top: 6px !important; padding-bottom: 14px !important; min-height: 0 !important; }
  html[data-v="2"] .hero h1 { font-size: 56px !important; line-height: .86 !important; margin: 4px 0 0 !important; }
  html[data-v="2"] .hero .lede, html[data-v="2"] .hero .hero-sub { margin-top: 8px !important; font-size: 15px !important; }
  html[data-v="2"] .hero form, html[data-v="2"] .hero .findbar { margin-top: 10px !important; }
}

/* phones: the list sheet stays inside the map area (it used to grow past it and cover the page header), never sits under the
   locate button, and has an easier-to-see handle: tap or swipe it, or tap "Map" in the search row, to put the list away. */
@media (max-width: 800px) {
  html[data-v="2"] .panel.open { height: min(56vh, calc(100% - 112px)); }
  html[data-v="2"] .panel.tall { height: calc(100% - 112px); }
  html[data-v="2"] .grab { height: 40px; }
  html[data-v="2"] .grab::before { top: 15px; width: 64px; height: 6px; margin-left: -32px; border-radius: 0; background: var(--ink); opacity: .8; }
  html[data-v="2"] .panel .nav .title { display: none; }
}

#map canvas.maplibregl-canvas { transition: opacity .4s ease; }
#map.hj-wait canvas.maplibregl-canvas { opacity: 0; }

/* Journal: how many entries match, and a button to see them on the map */
html[data-v="2"] .jfound { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
html[data-v="2"] .jtomap { padding: 10px 14px; border: 2px solid var(--ink); background: var(--ink); color: var(--hj-bg, #f1ead8); box-shadow: 3px 3px 0 var(--brick); font: 700 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; touch-action: manipulation; }
html[data-v="2"] .jtomap:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--brick); }

/* Phones: every field is at least 16px, so iPhones do not zoom the page in when you tap into one. */
@media (max-width: 900px) {
  html[data-v="2"] input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]), html[data-v="2"] textarea, html[data-v="2"] select { font-size: 16px !important; }
}

/* the "where are you?" suggestions drop down over the map instead of being cut off by the header */
html[data-v="2"] .hero { overflow: visible; z-index: 30; }
html[data-v="2"] .heroglobe { display: none; }

/* one master search: places, dishes, cities and "near me" all go through the search box (the old Near box and the category and vibe rows are gone) */
html[data-v="2"] #seg, html[data-v="2"] #tags { display: none !important; }
html[data-v="2"] .srow .locbtn { flex: none; width: 44px; height: 44px; border: 3px solid var(--ink); background: var(--hj-card); color: var(--ink); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
html[data-v="2"] .srow .locbtn svg { fill: none; stroke: var(--brick); stroke-width: 2; stroke-linecap: round; }
html[data-v="2"] .srow .locbtn.on { background: var(--brick); } html[data-v="2"] .srow .locbtn.on svg { stroke: #fff; }
@media (max-width: 800px) { html[data-v="2"] .srow .locbtn { display: none; } }

/* Phones: full-screen map */
.hj-fsbtn { display: none; }
@media (max-width: 800px) {
  html[data-v="2"] .hj-fsbtn { display: block; position: absolute; z-index: 8; right: 12px; top: 116px; padding: 10px 12px; border: 3px solid var(--ink); background: var(--hj-card); color: var(--ink); font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; box-shadow: 3px 3px 0 rgba(29, 27, 24, .9); touch-action: manipulation; }
  html.hj-fs { overflow: hidden; }
  html.hj-fs body { overflow: hidden; }
  html.hj-fs #explore { position: fixed !important; inset: 0; z-index: 4000; width: 100vw; height: 100vh !important; height: 100dvh !important; margin: 0; }
  html.hj-fs .hj-fsbtn { background: var(--ink); color: var(--hj-bg); top: calc(116px + env(safe-area-inset-top, 0px)); }
  html.hj-fs .viewswitch { top: calc(10px + env(safe-area-inset-top, 0px)); }
  html.hj-fs .cr-switch { display: none; }
}

/* Phones: a scroll-the-page strip on the map's right edge (the map itself still pans with one finger) */
.hj-scrollgutter { display: none; }
@media (max-width: 800px) {
  html[data-v="2"] .hj-scrollgutter { display: flex; flex-direction: column; justify-content: space-between; align-items: center; position: absolute; z-index: 7; top: 0; bottom: 0; right: 0; width: 26px; padding: 70px 0 150px; touch-action: pan-y; pointer-events: auto; background: repeating-linear-gradient(135deg, rgba(29, 27, 24, .10) 0 6px, rgba(29, 27, 24, .03) 6px 12px); border-left: 2px solid rgba(29, 27, 24, .35); }
  html[data-v="2"] .hj-scrollgutter i { font-style: normal; font-size: 10px; color: rgba(29, 27, 24, .55); }
  html.hj-fs .hj-scrollgutter { display: none !important; }
}
