/* ==========================================================================
   Fittbird — app-style discovery UI
   Search-forward, category bar, product cards. Warm palette, real photos.
   Fraunces for the wordmark + a few headlines; Inter does the product work.
   ========================================================================== */

:root {
  --paper:  #ffffff;   /* clean app ground */
  --surface:#ffffff;   /* cards / bars */
  --paper2: #f2f2f3;
  --ink:    #17171a;
  --stone:  #6b6b72;   /* muted body */
  --stone2: #97979e;
  --line:   #ececee;
  --line2:  #dddde0;
  --wash:   #f7f7f8;   /* faint section separation */

  --amber:  #c15a2b;   /* accent */
  --amber-600: #a44a22;
  --amber-soft: #f3e3d4;

  --dusk:   #1c1626;
  --cream:  #fdf6ec;
  --cream-60: rgba(253,246,236,.72);
  --cream-40: rgba(253,246,236,.5);

  --star:   #e0932b;
  --heart:  #e0553a;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --maxw: 1220px;
  --appbar-h: 66px;
  --r: 16px;
  --r-sm: 12px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow-1: 0 2px 12px rgba(27,25,23,.06);
  --shadow-2: 0 12px 34px rgba(27,25,23,.14);
  --shadow-3: 0 24px 60px rgba(20,16,31,.28);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-wrap: pretty; overflow-x: hidden;
}
h1,h2,h3,h4 { margin: 0 0 .4em; line-height: 1.08; letter-spacing: -.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
::selection { background: color-mix(in srgb, var(--amber) 24%, transparent); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { max-width: var(--maxw); margin: 0 auto; padding: 30px 28px; }

/* headings do the product work in Inter; Fraunces stays on the wordmark */
.serif { font-family: var(--font-body); font-weight: 700; letter-spacing: -.02em; }
.serif em { font-style: normal; color: var(--amber); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 14.5px; padding: 12px 20px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background .18s, color .18s, border-color .18s, box-shadow .18s;
}
.btn svg { width: 17px; height: 17px; }
.btn-amber { background: var(--amber); color: #fff; }
.btn-amber:hover { background: var(--amber-600); transform: translateY(-1px); box-shadow: 0 12px 26px rgba(193,90,43,.32); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: #000; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn-outline { border-color: var(--line2); color: var(--ink); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(253,246,236,.5); color: var(--cream); background: transparent; }
.btn-ghost-light:hover { background: rgba(253,246,236,.1); border-color: var(--cream); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; }

/* ==========================================================================
   App bar (sticky search header)
   ========================================================================== */
.appbar {
  position: sticky; top: 0; z-index: 90; height: var(--appbar-h);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.appbar-in { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 28px; display: flex; align-items: center; gap: 18px; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: 6px; color: var(--ink); }
.brand svg { color: var(--amber); }
.brand span { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: -.01em; }

/* header search pill */
.hsearch {
  flex: 1; max-width: 440px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line2);
  border-radius: 999px; padding: 8px 8px 8px 18px; box-shadow: var(--shadow-1);
  transition: box-shadow .2s, border-color .2s;
}
.hsearch:focus-within { box-shadow: var(--shadow-2); border-color: var(--line2); }
.hsearch svg { color: var(--stone2); flex: none; }
.hsearch input { flex: 1; border: 0; background: none; outline: none; font: inherit; font-size: 14.5px; color: var(--ink); min-width: 0; }
.hsearch .go { flex: none; width: 34px; height: 34px; border-radius: 999px; border: 0; background: var(--amber); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .18s; }
.hsearch .go:hover { background: var(--amber-600); }

.appbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.iconbtn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; transition: border-color .18s, background .18s; }
.iconbtn:hover { border-color: var(--ink); }
.iconbtn svg { width: 17px; height: 17px; }
.iconbtn.round { padding: 9px; border-radius: 999px; }
.menu-btn { display: none; }

/* ==========================================================================
   Category bar (horizontal scroll)
   ========================================================================== */
.catbar-wrap { position: sticky; top: var(--appbar-h); z-index: 80; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.catbar { max-width: var(--maxw); margin: 0 auto; padding: 6px 28px; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.cat {
  flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 14px 8px; color: var(--stone); cursor: pointer;
  border-bottom: 2px solid transparent; transition: color .18s, border-color .18s, opacity .18s;
  opacity: .72;
}
.cat svg { width: 22px; height: 22px; }
.cat span { font-size: 12px; font-weight: 600; white-space: nowrap; }
.cat:hover { opacity: 1; color: var(--ink); }
.cat.active { opacity: 1; color: var(--ink); border-bottom-color: var(--ink); }

/* ==========================================================================
   Hero — compact, search-forward
   ========================================================================== */
.hero { position: relative; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,31,.62) 0%, rgba(20,16,31,.5) 42%, rgba(20,16,31,.72) 100%); }
.hero-in { position: relative; z-index: 2; max-width: 860px; margin: 0 auto; padding: 72px 28px 78px; text-align: center; color: var(--cream); }
.hero-eyebrow { font-family: var(--font-body); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: #ffd9a8; margin-bottom: 12px; }
.hero h1 { font-weight: 700; font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -.025em; color: var(--cream); margin: 0 0 10px; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero h1 em { font-style: normal; color: #ffd9a8; }
.hero-sub { color: var(--cream-60); font-size: 17px; max-width: 46ch; margin: 0 auto 26px; }

/* big hero search */
.bigsearch {
  display: flex; align-items: center; gap: 8px; background: var(--surface);
  border-radius: 999px; padding: 8px 8px 8px 8px; box-shadow: var(--shadow-3);
  max-width: 620px; margin: 0 auto;
}
.bigsearch .seg { display: flex; align-items: center; gap: 10px; padding: 8px 16px; flex: 1; }
.bigsearch .seg svg { color: var(--amber); flex: none; }
.bigsearch input { border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); width: 100%; }
.bigsearch .go { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; background: var(--amber); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; transition: background .18s; }
.bigsearch .go:hover { background: var(--amber-600); }
.hero-quick { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.hero-quick a { background: rgba(253,246,236,.14); border: 1px solid rgba(253,246,236,.4); color: var(--cream); padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: background .18s; }
.hero-quick a:hover { background: rgba(253,246,236,.24); }

/* ==========================================================================
   Section headers
   ========================================================================== */
.rowhead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.rowhead h2 { font-weight: 700; font-size: clamp(21px, 3vw, 28px); letter-spacing: -.025em; }
.rowhead .sub { color: var(--stone); font-size: 14px; margin-top: 2px; }
.seeall { color: var(--ink); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; border-bottom: 1.5px solid transparent; transition: border-color .18s; white-space: nowrap; }
.seeall:hover { border-color: var(--ink); }
.seeall svg { width: 15px; height: 15px; }

/* ==========================================================================
   Month rail (races by month) + region tiles
   ========================================================================== */
.monthrail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.monthrail::-webkit-scrollbar { display: none; }
.month { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 76px; padding: 11px 16px; border: 1px solid var(--line2); border-radius: 14px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .16s var(--ease), background .16s, color .16s; }
.month:hover { border-color: var(--ink); }
.month.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.month b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.month span { font-size: 11.5px; color: var(--stone2); }
.month.active span { color: var(--cream-60); }

.regiongrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.regiontile { position: relative; display: block; aspect-ratio: 16/10; border-radius: var(--r); overflow: hidden; color: var(--cream); }
.regiontile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.regiontile:hover img { transform: scale(1.05); }
.regiontile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,16,31,0) 34%, rgba(20,16,31,.68) 100%); }
.regiontile .rt-in { position: absolute; left: 16px; bottom: 14px; z-index: 2; }
.regiontile .rt-in b { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.regiontile .rt-in span { font-size: 13px; color: var(--cream-60); }

/* ==========================================================================
   Product cards
   ========================================================================== */
.grid { display: grid; gap: 26px 22px; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr)); }

.xcard { position: relative; display: block; color: var(--ink); }
.xmedia { position: relative; aspect-ratio: 20/19; border-radius: var(--r); overflow: hidden; background: var(--paper2); }
.xmedia img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.xcard:hover .xmedia img { transform: scale(1.05); }
.xbadge { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(253,246,236,.92); backdrop-filter: blur(6px); color: var(--ink); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.xbadge.adv { background: rgba(27,22,38,.6); color: var(--cream); border: 1px solid rgba(253,246,236,.35); }
.xbadge.camp { background: rgba(193,90,43,.92); color: #fff; }
.save { position: absolute; top: 9px; right: 9px; z-index: 3; width: 34px; height: 34px; border: 0; border-radius: 999px; background: rgba(27,22,38,.34); backdrop-filter: blur(4px); display: grid; place-items: center; cursor: pointer; transition: transform .16s var(--ease), background .18s; }
.save:hover { transform: scale(1.1); background: rgba(27,22,38,.5); }
.save svg { width: 19px; height: 19px; fill: rgba(255,255,255,.15); stroke: #fff; stroke-width: 2; transition: fill .18s, stroke .18s; }
.save.on svg { fill: var(--heart); stroke: var(--heart); }

.xbody { padding: 12px 2px 0; }
.xtop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.xname { font-weight: 600; font-size: 15.5px; letter-spacing: -.01em; }
.xrate { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; flex: none; }
.xrate svg { width: 14px; height: 14px; fill: var(--star); }
.xnew { flex: none; font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--amber-600); background: var(--amber-soft); padding: 3px 8px; border-radius: 999px; }
.xplace { color: var(--stone); font-size: 14px; margin-top: 2px; display: flex; align-items: center; gap: 5px; }
.xplace svg { flex: none; width: 14px; height: 14px; color: var(--stone2); }
.xmeta2 { color: var(--stone2); font-size: 13px; margin-top: 2px; }
.xprice { margin-top: 7px; font-size: 14.5px; }
.xprice b { font-weight: 700; }

/* ==========================================================================
   How it works (compact app strip)
   ========================================================================== */
.hiw { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hiw-in { max-width: var(--maxw); margin: 0 auto; padding: 44px 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.hiw-step .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--amber-soft); color: var(--amber-600); display: grid; place-items: center; margin-bottom: 12px; }
.hiw-step .ic svg { width: 21px; height: 21px; }
.hiw-step h4 { font-size: 16px; margin: 0 0 4px; }
.hiw-step p { color: var(--stone); font-size: 13.5px; margin: 0; }

/* ==========================================================================
   Browse toolbar
   ========================================================================== */
.browse-head { padding-top: 28px; }
.browse-head h1 { font-weight: 700; font-size: clamp(26px, 4vw, 38px); letter-spacing: -.025em; margin: 0 0 4px; }
.browse-head .count { color: var(--stone); font-size: 14.5px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 20px 0 26px; }
.filterchips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-weight: 500; font-size: 13.5px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--stone); cursor: pointer; transition: all .15s; white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.facet { display: flex; align-items: center; gap: 8px; }
.facet .flab { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone2); font-weight: 700; }
.empty { padding: 60px; text-align: center; color: var(--stone); border: 1px dashed var(--line2); border-radius: var(--r); background: var(--surface); }
.empty h3 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--ink); }

/* ==========================================================================
   Event / listing detail
   ========================================================================== */
.listing { max-width: 1080px; margin: 0 auto; padding: 26px 28px 90px; }
.crumb { display: inline-flex; align-items: center; gap: 7px; color: var(--stone); font-weight: 600; font-size: 14px; margin-bottom: 16px; }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 16px; height: 16px; }
.listing-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.listing-head h1 { font-weight: 700; font-size: clamp(28px, 4.4vw, 44px); letter-spacing: -.025em; margin: 0 0 8px; }
.listing-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--stone); font-size: 14.5px; }
.listing-meta .dot { color: var(--line2); }
.listing-meta .rate { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 600; }
.listing-meta .rate svg { width: 15px; height: 15px; fill: var(--star); }
.listing-actions { display: flex; gap: 8px; }
.gallery { position: relative; margin: 20px 0 34px; border-radius: 20px; overflow: hidden; aspect-ratio: 21/9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .badge { position: absolute; top: 16px; left: 16px; background: rgba(253,246,236,.92); backdrop-filter: blur(6px); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 7px 13px; border-radius: 999px; }

.listing-grid { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 52px; align-items: start; }
.listing-grid aside { position: sticky; top: calc(var(--appbar-h) + 20px); }
.listing-grid h2 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.listing-grid p.lead { color: var(--stone); font-size: 16px; line-height: 1.7; }
.highlights { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.highlights li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-size: 14.5px; }
.highlights li svg { flex: none; width: 20px; height: 20px; color: var(--amber); margin-top: 1px; }
.factgrid { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-top: 28px; }
.fact { background: var(--surface); padding: 16px 18px; }
.fact .k { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--stone2); font-weight: 700; }
.fact .v { font-weight: 600; font-size: 17px; margin-top: 3px; }

.book { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow-1); }
.book .price { display: flex; align-items: baseline; gap: 7px; }
.book .price b { font-weight: 700; font-size: 28px; letter-spacing: -.02em; }
.book .price span { color: var(--stone); font-size: 14px; }
.book .rrow { display: flex; align-items: center; gap: 6px; margin: 6px 0 16px; color: var(--stone); font-size: 14px; }
.book .rrow .rate { color: var(--ink); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.book .rrow .rate svg { width: 14px; height: 14px; fill: var(--star); }
.book .field { border: 1px solid var(--line2); border-radius: 12px; padding: 11px 14px; margin-bottom: 10px; }
.book .field .k { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--stone2); font-weight: 700; }
.book .field .v { font-weight: 600; font-size: 15px; margin-top: 1px; }
.book .diffbar { display: flex; gap: 4px; margin: 3px 0 0; }
.book .diffbar span { flex: 1; height: 6px; border-radius: 3px; background: var(--line2); }
.book .diffbar span.on { background: var(--amber); }
.book .note { font-size: 12.5px; color: var(--stone2); text-align: center; margin: 12px 0 0; }
.book .rrow .muted, .listing-meta .muted { color: var(--stone2); }

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews { max-width: 760px; margin: 46px 0 0; border-top: 1px solid var(--line); padding-top: 30px; }
.reviews h2 { font-weight: 700; font-size: 22px; letter-spacing: -.02em; margin: 0 0 14px; }
.rv-summary { display: flex; align-items: center; gap: 10px; color: var(--stone); font-size: 15px; margin-bottom: 20px; }
.rv-summary .rate { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); font-weight: 700; font-size: 18px; }
.rv-summary .rate svg { width: 17px; height: 17px; fill: var(--star); }
.rv-none { color: var(--stone); font-size: 15px; margin: 0 0 22px; }
.rv-list { display: grid; gap: 16px; margin-bottom: 30px; }
.review { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.rv-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rv-top b { font-weight: 600; font-size: 15px; }
.rv-stars { display: inline-flex; gap: 2px; flex: none; }
.rv-stars svg { width: 14px; height: 14px; fill: var(--line2); }
.rv-stars svg.on { fill: var(--star); }
.rv-date { color: var(--stone2); font-size: 12.5px; margin-top: 2px; }
.review p { margin: 8px 0 0; color: var(--ink); font-size: 14.5px; line-height: 1.6; }

.rv-form { background: var(--wash); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.rv-cta { margin-bottom: 12px; }
.rv-cta b { display: block; font-size: 16px; }
.rv-cta span { color: var(--stone); font-size: 13.5px; }
.rv-stars-input { display: flex; gap: 4px; margin-bottom: 12px; }
.rv-star { width: 36px; height: 36px; border: 0; background: none; cursor: pointer; padding: 0; display: grid; place-items: center; }
.rv-star svg { width: 27px; height: 27px; fill: var(--line2); transition: fill .12s; }
.rv-star:hover svg, .rv-star.on svg { fill: var(--star); }
.rv-input { width: 100%; border: 1px solid var(--line2); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 14.5px; color: var(--ink); background: var(--surface); margin-bottom: 10px; outline: none; }
.rv-input:focus { border-color: var(--ink); }
textarea.rv-input { resize: vertical; }
.rv-err { color: #c0392b; font-size: 13px; margin: 4px 0 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.foot { background: var(--wash); border-top: 1px solid var(--line); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 48px 28px 34px; }
.foot-cols { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 32px; }
.foot-cols p { color: var(--stone); font-size: 14px; max-width: 32ch; margin: 12px 0 0; }
.foot-cols h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--stone2); margin: 0 0 14px; font-weight: 700; }
.foot-cols a { display: block; color: var(--ink); font-size: 14px; padding: 5px 0; }
.foot-cols a:hover { color: var(--amber); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--stone2); }

/* ==========================================================================
   Reveal + mobile drawer
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.drawer { display: none; position: fixed; inset: var(--appbar-h) 0 auto 0; z-index: 89; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); }
.drawer.open { display: block; }
.drawer a { display: block; padding: 14px 28px; font-size: 15px; font-weight: 500; border-top: 1px solid var(--line); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 820px) {
  .hsearch { display: none; }
  .appbar-actions .iconbtn.saved-btn { display: none; }
  .menu-btn { display: inline-flex; }
  .listing-grid { grid-template-columns: 1fr; gap: 30px; }
  .listing-grid aside { position: static; }
  .hiw-in { grid-template-columns: 1fr 1fr; gap: 26px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .section { padding: 32px 20px; }
  .catbar { padding: 6px 20px; }
  .appbar-in { padding: 0 20px; }
  .bigsearch { flex-direction: column; padding: 12px; gap: 6px; border-radius: 22px; }
  .bigsearch .seg { width: 100%; }
  .bigsearch .go { width: 100%; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px 14px; }
  .hiw-in { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; }
  .gallery { aspect-ratio: 4/3; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
