/* ─── Mint District , Premium Design System ─────────────────────────────────
   Pinterest-inspired, scroll-first, editorial layout.
   ──────────────────────────────────────────────────────────────────────────── */

/* ── Design tokens ─────────────────────────────────────────────────────────── */
:root {
  --bg:             #faf9f7;
  --fg:             #1a1a1a;
  --card:           #ffffff;
  --border:         #e8e6e3;
  --muted:          #6b6966;
  --sage:           hsl(155 28% 48%);
  --sage-light:     hsl(155 20% 93%);
  --sage-dark:      hsl(155 35% 32%);
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:      0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
  --shadow-lg:      0 12px 40px rgba(0,0,0,0.1), 0 2px 8px rgba(0,0,0,0.04);
  --radius:         12px;
  --radius-lg:      16px;
  --ease:           cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.5;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* Shopping walks */
.shopping-walk-page {
  --walk-ink: #171412;
  --walk-paper: #fbfaf7;
  --walk-panel: #ffffff;
  --walk-line: rgba(23, 20, 18, 0.12);
  --walk-muted: #706a62;
  --walk-green: #2f6b59;
  --walk-blue: #274e68;
  --walk-rose: #9d4f45;
  --walk-gold: #b88738;
  background:
    linear-gradient(180deg, rgba(47, 107, 89, 0.10), rgba(251, 250, 247, 0) 420px),
    var(--walk-paper);
  color: var(--walk-ink);
  overflow-x: clip;
}

html:has(body.shopping-walk-page) {
  overflow-x: clip;
}

.walk-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 32px;
  align-items: end;
}

.walk-hero-copy {
  max-width: 760px;
}

.walk-kicker {
  margin: 0 0 14px;
  color: var(--walk-green);
  font-size: 0.78rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.walk-hero h1 {
  margin: 0;
  max-width: 780px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 4.25rem;
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: 0;
}

.walk-hero-copy > p:not(.walk-kicker) {
  max-width: 620px;
  margin: 24px 0 0;
  color: #504b46;
  font-size: 1.14rem;
  line-height: 1.75;
}

.walk-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.walk-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--walk-line);
  border-radius: 999px;
  color: var(--walk-ink);
  text-decoration: none;
  font-weight: 720;
  background: rgba(255, 255, 255, 0.72);
}

.walk-hero-actions a:first-child {
  background: var(--walk-ink);
  color: #fff;
  border-color: var(--walk-ink);
}

.walk-signal-card {
  border: 1px solid var(--walk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 24px 70px rgba(39, 78, 104, 0.12);
  padding: 24px;
}

.walk-signal-card > span {
  display: block;
  color: var(--walk-muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.walk-signal-card > strong {
  display: block;
  font-size: 1.35rem;
  line-height: 1.2;
  font-family: Georgia, 'Times New Roman', serif;
}

.walk-signal-card dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0 0;
}

.walk-signal-card dt {
  color: var(--walk-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.walk-signal-card dd {
  margin: 4px 0 0;
  font-weight: 780;
}

.walk-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 88px;
}

.walk-route-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--walk-line);
  border-bottom: 1px solid var(--walk-line);
  padding: 34px 0;
}

.walk-route-panel h2,
.walk-proof h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: 0;
  font-weight: 650;
}

.walk-route-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.walk-route-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--walk-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--walk-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 720;
}

.walk-route-links span {
  color: var(--walk-green);
  font-size: 0.76rem;
  font-weight: 800;
}

.walk-filter-panel {
  position: sticky;
  top: 72px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 0;
  background: rgba(251, 250, 247, 0.92);
  backdrop-filter: blur(16px);
}

.walk-filter {
  min-height: 82px;
  border: 1px solid var(--walk-line);
  border-radius: 8px;
  background: #fff;
  color: var(--walk-ink);
  text-align: left;
  cursor: pointer;
  padding: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.walk-filter:hover {
  transform: translateY(-2px);
}

.walk-filter.active {
  background: #18231f;
  color: #fff;
  border-color: #18231f;
}

.walk-filter span {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
}

.walk-filter small {
  display: block;
  margin-top: 6px;
  color: currentColor;
  opacity: 0.72;
  line-height: 1.35;
}

.walk-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 14px;
}

.walk-shop-card {
  display: grid;
  min-height: 620px;
  grid-template-rows: 220px 1fr;
  overflow: hidden;
  border: 1px solid var(--walk-line);
  border-radius: 8px;
  background: var(--walk-panel);
  box-shadow: 0 18px 50px rgba(23, 20, 18, 0.08);
  animation: walkCardIn 0.52s ease both;
}

.walk-shop-card[hidden] {
  display: none;
}

.walk-shop-card:nth-child(4n + 1) .walk-shop-window {
  background: linear-gradient(135deg, #173f35, #e7d7bd);
}

.walk-shop-card:nth-child(4n + 2) .walk-shop-window {
  background: linear-gradient(135deg, #243d53, #e6c8bd);
}

.walk-shop-card:nth-child(4n + 3) .walk-shop-window {
  background: linear-gradient(135deg, #7d3f3b, #ead9a7);
}

.walk-shop-card:nth-child(4n + 4) .walk-shop-window {
  background: linear-gradient(135deg, #3f352c, #b7d0c4);
}

.walk-shop-window {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.walk-shop-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
  font-size: 0.82rem;
}

.walk-shop-mark {
  position: relative;
  z-index: 2;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}

.walk-shop-mark img,
.walk-shop-mark span {
  max-width: 74px;
  max-height: 74px;
}

.walk-shop-mark span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--walk-green);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.55rem;
  font-weight: 750;
}

.walk-shop-nameplate {
  position: absolute;
  z-index: 2;
  left: 18px;
  right: 18px;
  bottom: 18px;
  color: rgba(255, 255, 255, 0.88);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.walk-shop-glass {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  pointer-events: none;
}

.walk-shop-glass::before,
.walk-shop-glass::after {
  content: "";
  position: absolute;
  background: rgba(255, 255, 255, 0.34);
}

.walk-shop-glass::before {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
}

.walk-shop-glass::after {
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
}

.walk-shop-body {
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.walk-shop-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--walk-muted);
  font-size: 0.78rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.walk-shop-body h2 {
  margin: 10px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.walk-shop-address {
  margin: 8px 0 0;
  color: var(--walk-muted);
  font-size: 0.92rem;
}

.walk-shop-window-copy {
  margin: 18px 0 0;
  color: #342f2b;
  line-height: 1.65;
}

.walk-shop-notes {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.walk-shop-notes div {
  border-top: 1px solid var(--walk-line);
  padding-top: 12px;
}

.walk-shop-notes dt {
  color: var(--walk-green);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.walk-shop-notes dd {
  margin: 5px 0 0;
  color: #403b36;
  line-height: 1.52;
}

.walk-shop-best {
  margin: 18px 0 0;
  padding: 12px;
  border-radius: 8px;
  background: rgba(47, 107, 89, 0.09);
  color: #20362f;
  font-weight: 720;
  line-height: 1.45;
}

.walk-shop-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.walk-shop-actions a {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--walk-line);
  border-radius: 999px;
  color: var(--walk-ink);
  text-decoration: none;
  font-weight: 800;
}

.walk-shop-actions a:first-child {
  background: var(--walk-ink);
  color: #fff;
  border-color: var(--walk-ink);
}

.walk-proof {
  margin-top: 48px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  border: 1px solid var(--walk-line);
  border-radius: 8px;
  background: #fff;
}

.walk-proof p:not(.walk-kicker) {
  margin: 16px 0 0;
  color: var(--walk-muted);
  line-height: 1.7;
  max-width: 680px;
}

.walk-source-list {
  display: grid;
  gap: 10px;
}

.walk-source-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--walk-line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--walk-ink);
  text-decoration: none;
  font-weight: 720;
}

@keyframes walkCardIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .walk-hero,
  .walk-route-panel,
  .walk-proof {
    grid-template-columns: 1fr;
  }

  .walk-hero h1 {
    font-size: 3rem;
    line-height: 1.03;
  }

  .walk-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .walk-filter-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: static;
  }
}

@media (max-width: 640px) {
  .walk-hero {
    width: min(100% - 24px, 1180px);
    padding: 44px 0 28px;
  }

  .walk-hero h1 {
    font-size: 2.35rem;
  }

  .walk-main {
    width: min(100% - 24px, 1180px);
    margin-bottom: 56px;
  }

  .walk-signal-card dl,
  .walk-route-links,
  .walk-filter-panel,
  .walk-shop-grid {
    grid-template-columns: 1fr;
  }

  .walk-shop-card {
    min-height: 0;
  }

  .walk-proof {
    padding: 22px;
  }
}

/* ── Site nav ──────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 249, 247, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: -0.03em;
  line-height: 1;
}

.site-logo:hover { opacity: 0.8; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--fg);
}

.site-logo:hover { opacity: 0.7; }

.browse-link {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}

.browse-link:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
  border-color: var(--sage);
}

/* ── Page wrapper ──────────────────────────────────────────────────────────── */
.district-page { min-height: 100vh; }

/* ── District hero (typographic , NO image overlay) ────────────────────────── */
.district-hero {
  max-width: 40rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 1rem;
  text-align: center;
}

.hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.hero-breadcrumb a:hover { color: var(--sage-dark); }

.hero-title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
  margin: 0 0 1rem;
}

.hero-intro {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 34rem;
}

@media (min-width: 640px) {
  .district-hero { padding: 4.5rem 1.5rem 2.5rem; }
}

/* ── District header card (Pinterest-style) ─────────────────────────────────── */
.district-card {
  border-radius: 1rem;
  overflow: hidden;
  max-width: 40rem;
  margin: -0.5rem auto 2.5rem;
}

.district-card__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background-size: cover;
  background-position: center top;
  background-color: var(--bg-card, #f5f4f2);
  display: flex;
  align-items: flex-end;
}

.district-card__photo-overlay {
  width: 100%;
  padding: 4rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.district-card__category {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.district-card__name {
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.district-card__share {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.district-card__share:hover {
  background: rgba(0,0,0,0.65);
}

@media (max-width: 480px) {
  .district-card { margin: 0 0.75rem 2rem; }
  .district-card__photo { aspect-ratio: 3 / 2; }
}

/* ── Brand list ────────────────────────────────────────────────────────────── */
.brand-list {
  max-width: 32rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* ── Brand card ────────────────────────────────────────────────────────────── */
.brand-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ── In-card carousel ──────────────────────────────────────────────────────── */
.card-media {
  position: relative;
  background: #f5f4f2;
  overflow: hidden;
}

.card-media:hover .slide-btn { opacity: 1; }

.carousel-track {
  display: flex;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: manipulation;
}

.carousel-track:active { cursor: grabbing; }
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  text-decoration: none;
  background: #f5f4f2;
}

.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}

.brand-card:hover .carousel-slide img {
  transform: scale(1.03);
}

/* Product name badge */
.product-badge {
  position: absolute;
  bottom: 0.55rem;
  left: 0.75rem;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  z-index: 2;
  pointer-events: none;
  white-space: nowrap;
  max-width: 60%;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.01em;
}

/* Prev/next arrow buttons */
.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border: none;
  color: var(--fg);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  opacity: 0;
  transition: opacity 0.25s, background 0.2s, transform 0.2s;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.slide-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.08);
}

.slide-btn:disabled { opacity: 0 !important; pointer-events: none; }

.slide-prev { left: 0.6rem; }
.slide-next { right: 0.6rem; }

/* ── Card body ─────────────────────────────────────────────────────────────── */
.card-body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.025em;
}

.brand-location {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.category-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.brand-tagline {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

/* ── Carousel dots ─────────────────────────────────────────────────────────── */
.carousel-dots {
  position: absolute;
  bottom: 0.55rem;
  right: 0.75rem;
  display: flex;
  gap: 0.3rem;
  z-index: 3;
  background: rgba(255,255,255,0.7);
  padding: 3px 7px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.2);
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.active {
  background: rgba(0,0,0,0.6);
  transform: scale(1.25);
}

/* ── Expandable story ──────────────────────────────────────────────────────── */
.story-expandable {
  position: relative;
  max-height: 3.2em;
  overflow: hidden;
  cursor: pointer;
  transition: max-height 0.35s ease;
}
.story-expandable.expanded {
  max-height: none;
}
.story-expandable.expanded .story-fade {
  display: none;
}
.story-preview {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.story-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.8em;
  background: linear-gradient(to bottom, transparent, var(--card, #fff));
  pointer-events: none;
}
.story-full {
  display: none;
}

.story-toggle {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--sage-dark);
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 0.7rem 0 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s;
  letter-spacing: 0.02em;
}

.story-toggle:hover { color: var(--sage); }

.story-body {
  display: none;
  padding: 0.5rem 0 0;
  animation: fadeIn 0.25s var(--ease);
}

.story-body.open { display: block; }

.story-body p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
  margin: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Card CTA ──────────────────────────────────────────────────────────────── */
.enter-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--sage-dark);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s var(--ease), transform 0.2s;
  align-self: flex-start;
  letter-spacing: 0.01em;
}

.enter-store-btn:hover {
  background: var(--sage);
  transform: translateY(-1px);
}

/* ── Related districts ─────────────────────────────────────────────────────── */
.related-section {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  border-top: 1px solid var(--border);
}

.related-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.85rem;
}

.related-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.related-pill {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  background: var(--sage-light);
  color: var(--sage-dark);
  border: 1px solid transparent;
  transition: all 0.2s var(--ease);
}

.related-pill:hover {
  background: var(--sage-dark);
  color: #fff;
}

/* ── Home page ─────────────────────────────────────────────────────────────── */
.home-hero {
  text-align: center;
  padding: 4rem 1.5rem 2.5rem;
  max-width: 40rem;
  margin: 0 auto;
}

.home-hero h1 {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--fg);
  margin: 0 0 0.75rem;
  line-height: 1.05;
}

.home-hero p {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.7;
}

.districts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

@media (max-width: 400px) {
  .districts-grid { grid-template-columns: 1fr; }
}

.district-tile {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.district-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tile-img-wrap {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #f5f4f2;
}

.tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.district-tile:hover .tile-img {
  transform: scale(1.05);
}

.tile-body {
  padding: 0.9rem 1rem;
}

.tile-category {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.2rem;
}

.tile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

/* ── Mobile ────────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .district-hero { padding: 2.5rem 1.25rem 1.5rem; }
  .card-body { padding: 1rem 1.15rem 1.15rem; }
  .slide-btn { display: none; }
  .home-hero { padding: 3rem 1.25rem 2rem; }
}

/* ── District Guide ────────────────────────────────────────────────────────── */
.district-guide {
  max-width: 620px;
  margin: 2.5rem auto;
  padding: 1.75rem 2rem;
  border-top: 2px solid var(--sage-light);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.district-guide h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 0.85rem;
}

.district-guide p {
  margin: 0;
  color: var(--muted);
}

/* ── FAQ Section ───────────────────────────────────────────────────────────── */
.faq-section {
  max-width: 620px;
  margin: 0 auto 3rem;
  padding: 0 2rem;
}

.faq-section h2 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin: 0 0 1rem;
}

.faq-section details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.faq-section details + details {
  margin-top: 0;
}

.faq-section summary {
  cursor: pointer;
  padding: 0.9rem 1.1rem;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--fg);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  user-select: none;
  -webkit-user-select: none;
}

.faq-section summary::-webkit-details-marker { display: none; }

.faq-section summary::after {
  content: '+';
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--sage);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.2s var(--ease);
}

.faq-section details[open] summary::after {
  transform: rotate(45deg);
  color: var(--sage-dark);
}

.faq-section details[open] summary {
  border-bottom: 1px solid var(--border);
}

.faq-section details p {
  margin: 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--muted);
}

/* ── Reduced motion ────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ─── NEW FEATURES , Production-readiness upgrade ────────────────────────── */

/* ── Logo wordmark ──────────────────────────────────────────────────────────── */
.logo-mark {
  color: var(--sage-dark);
  font-weight: 800;
  font-size: 1.1rem;
}
.logo-word {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  margin-left: 1px;
}

/* ── Nav actions ────────────────────────────────────────────────────────────── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s var(--ease);
}
.nav-btn:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
  border-color: var(--sage);
}
.picks-count {
  background: var(--sage-dark);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.1rem 0.4rem;
  min-width: 16px;
  text-align: center;
}

/* ── Search overlay ─────────────────────────────────────────────────────────── */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
}
.search-overlay[hidden] { display: none; }
.search-modal {
  width: min(640px, calc(100vw - 2rem));
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  background: transparent;
  color: var(--fg);
}
.search-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
}
.search-results { max-height: 400px; overflow-y: auto; }
.search-result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  color: var(--fg);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.search-result:hover { background: var(--sage-light); }
.sr-icon { font-size: 1rem; flex-shrink: 0; }
.sr-name { font-weight: 600; font-size: 0.9rem; }
.sr-sub { font-size: 0.78rem; color: var(--muted); margin-left: auto; }
.search-hint { padding: 1rem 1.25rem; color: var(--muted); font-size: 0.8rem; margin: 0; }
.search-empty { padding: 1.5rem; color: var(--muted); font-size: 0.9rem; text-align: center; }
.search-icon-inner { flex-shrink: 0; color: var(--muted); }

/* ── Save button ────────────────────────────────────────────────────────────── */
.save-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.2s, transform 0.25s;
  margin-left: auto;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}
.save-btn:hover {
  color: var(--sage-dark);
  transform: scale(1.15);
}
.save-btn:active {
  transform: scale(0.9);
}
.save-btn.saved { color: var(--sage-dark); }
.save-btn.saved svg { fill: var(--sage-dark); }

/* ── Category filter chips (home page) ──────────────────────────────────────── */
.category-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0 1.5rem 1.5rem;
  justify-content: center;
  max-width: 800px;
  margin: 0 auto;
}
.filter-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.filter-chip:hover {
  border-color: var(--sage);
  color: var(--sage-dark);
}
.filter-chip.active {
  background: var(--sage-dark);
  color: #fff;
  border-color: var(--sage-dark);
}
.chip-count {
  font-weight: 400;
  opacity: 0.7;
  margin-left: 0.25rem;
}

/* ── Home tile enhancements ──────────────────────────────────────────────────── */
.tile-img-wrap { position: relative; }
.tile-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.tile-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}
.home-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0.75rem auto 0;
}

/* ── Related district cards ──────────────────────────────────────────────────── */
.related-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2.5rem 1rem 4rem;
  border-top: 1px solid var(--border);
}
.related-heading {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}
.related-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 640px) {
  .related-cards { grid-template-columns: 1fr; }
}
.related-card {
  text-decoration: none;
  color: var(--fg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: block;
}
.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.related-card-img {
  aspect-ratio: 3/2;
  overflow: hidden;
}
.related-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.related-card-body { padding: 0.75rem; }
.related-card-cat {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.related-card-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.2rem 0 0;
}

/* ── Site footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 1.5rem 2rem;
  background: var(--card);
}
.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-brand { flex: 1; min-width: 200px; }
.footer-logo { margin-bottom: 0.75rem; display: inline-flex; }
.footer-tagline {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0.5rem 0 0;
}
.footer-nav { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.25rem;
}
.footer-nav a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-nav a:hover { color: var(--sage-dark); }
.footer-bottom {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 0.78rem; color: var(--muted); margin: 0; }
.footer-bottom a { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--sage-dark); }

/* ── Share button ────────────────────────────────────────────────────────────── */
.hero-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  gap: 0.75rem;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  letter-spacing: 0.01em;
}
.share-btn:hover {
  background: var(--sage-light);
  color: var(--sage-dark);
  border-color: var(--sage);
}

/* ── Lazy-hidden home tiles (infinite scroll) ────────────────────────────────── */
.lazy-hidden { display: none !important; }

/* ── Picks page ──────────────────────────────────────────────────────────────── */
.picks-grid {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.picks-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.picks-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.picks-brand-name { font-weight: 700; font-size: 1rem; margin: 0; }
.remove-pick {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.2rem;
  padding: 0;
  line-height: 1;
}
.remove-pick:hover { color: #c0392b; }
.picks-tagline { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.75rem; }
.picks-district-link {
  font-size: 0.8rem;
  color: var(--sage-dark);
  text-decoration: none;
  display: block;
  margin-top: 0.5rem;
}
.picks-empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }

/* Referral directory */
.referral-hero {
  max-width: 72rem;
  margin: 0 auto;
  padding: 3.7rem 1.5rem 1.7rem;
  text-align: center;
}
.referral-kicker {
  margin: 0 0 0.8rem;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.referral-hero h1 {
  max-width: 74rem;
  margin: 0 auto;
  color: #0b3a24;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 4vw, 3.55rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: 0;
}
.referral-hero > p:not(.referral-kicker) {
  max-width: 48rem;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
}
/* ── Referral stage (Pick / Codes / Done) ────────────────────────────── */
.referral-stage {
  padding: 0 1.5rem 2.5rem;
}
.stage-shell {
  max-width: 76rem;
  margin: 0 auto;
}

/* Pick stage */
.pick-stage[hidden],
.codes-stage[hidden],
.done-stage[hidden] {
  display: none;
}
/* Multi-rail layout (one row per category) */
.pick-rails {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.4rem;
}
.pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  min-width: 0;
}
.pick-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 0.15rem;
}
.pick-row-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  letter-spacing: 0;
  color: var(--fg);
}
.pick-row-count {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Horizontal Netflix-style rail */
.pick-rail-shell {
  position: relative;
  margin: 0 -1.5rem;
  padding: 0;
  min-width: 0;
  overflow: hidden;
}
.pick-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  padding: 0.75rem 1.5rem 2.6rem;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  transition: opacity 180ms ease;
}
.pick-rail::-webkit-scrollbar { display: none; }
.pick-rail.is-refreshing {
  opacity: 0;
}
.pick-rail-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffffee;
  backdrop-filter: blur(6px);
  color: var(--fg);
  font: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 22px rgba(18, 17, 15, 0.12);
  transition: transform 160ms ease, opacity 200ms ease;
}
.pick-rail-arrow:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05);
}
.pick-rail-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}
.pick-rail-arrow-prev { left: 0.5rem; }
.pick-rail-arrow-next { right: 0.5rem; }

.pick-card {
  position: relative;
  flex: 0 0 16rem;
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  align-content: center;
  gap: 0.5rem;
  aspect-ratio: 3 / 4;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(15, 90, 50, 0.045), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #ffffff 0%, #fdfaf3 100%);
  color: var(--fg);
  font: inherit;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 22px 38px -18px rgba(18, 17, 15, 0.18),
    0 6px 14px -6px rgba(18, 17, 15, 0.06);
  transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 240ms ease,
              box-shadow 240ms ease,
              opacity 240ms ease;
  animation: pickFadeIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 35ms);
}
.pick-card:hover {
  transform: translateY(-6px);
  border-color: var(--sage);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 36px 64px -22px rgba(15, 90, 50, 0.22),
    0 10px 22px -8px rgba(15, 90, 50, 0.1);
}
.pick-card:focus-visible {
  outline: 3px solid rgba(15, 90, 50, 0.32);
  outline-offset: 3px;
}
.pick-card.is-selected {
  border-color: var(--sage-dark);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(15, 90, 50, 0.12), rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #f4faf4 0%, #ecf6ee 100%);
  box-shadow:
    inset 0 0 0 2px var(--sage-dark),
    0 24px 44px -18px rgba(15, 90, 50, 0.28),
    0 8px 16px -8px rgba(15, 90, 50, 0.14);
}
.pick-card-check {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms ease, transform 240ms cubic-bezier(0.2, 1.4, 0.3, 1);
  box-shadow: 0 6px 14px rgba(15, 90, 50, 0.28);
}
.pick-card.is-selected .pick-card-check {
  opacity: 1;
  transform: scale(1);
}
.pick-card-logo {
  width: 7.4rem;
  height: 7.4rem;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 8px 22px rgba(18, 17, 15, 0.08);
  overflow: hidden;
}
.pick-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.7rem;
}
.pick-card-name {
  color: var(--fg);
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1.18;
  letter-spacing: 0;
  margin-top: 0.6rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pick-card-meta {
  color: var(--sage-dark);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.pick-card-tagline {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  letter-spacing: 0;
}

/* Sticky action bar (pinned bottom while user browses rails) */
.pick-actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  padding: 0.75rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(252, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -10px 26px rgba(18, 17, 15, 0.08);
  animation: actionbarSlideUp 320ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pick-actionbar[hidden] { display: none; }
.pick-actionbar-inner {
  max-width: 76rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}
body.has-actionbar { padding-bottom: 6.5rem; }
@keyframes actionbarSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* Pick tray (inside action bar) */
.pick-tray {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.6rem;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pick-tray::-webkit-scrollbar { display: none; }
.pick-tray-empty {
  color: var(--muted);
  font-size: 0.86rem;
  padding: 0 0.35rem;
}
.pick-tray-label {
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 0.35rem;
}
.pick-tray-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.1rem;
  padding: 0 0.5rem 0 0.3rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  animation: chipFadeIn 280ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.pick-tray-chip:hover {
  border-color: var(--sage);
}
.pick-tray-chip-logo {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg);
  overflow: hidden;
}
.pick-tray-chip-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.2rem;
}
.pick-tray-chip-name {
  max-width: 8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pick-tray-chip-remove {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.pick-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.pick-continue {
  min-height: 50px;
  padding: 0 1.5rem;
  border: none;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fff;
  font: inherit;
  font-weight: 850;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 90, 50, 0.22);
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 200ms ease;
}
.pick-continue:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 90, 50, 0.28);
}
.pick-continue:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}
.pick-search-link {
  border: none;
  background: none;
  padding: 0.4rem 0.2rem;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 0.25rem;
  cursor: pointer;
}
.pick-search-link:hover {
  color: var(--sage-dark);
}

/* Codes stage */
.codes-stage {
  max-width: 38rem;
  margin: 0 auto;
}
.codes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.codes-back {
  border: none;
  background: none;
  padding: 0.3rem 0;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}
.codes-back:hover {
  color: var(--sage-dark);
}
.codes-progress {
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.codes-stepper {
  display: grid;
}
.step-card {
  display: grid;
  gap: 1.1rem;
  padding: 1.75rem 1.6rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(18, 17, 15, 0.08);
  animation: pickFadeIn 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.step-card-head {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
}
.step-card-logo {
  width: 4.2rem;
  height: 4.2rem;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.step-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.45rem;
}
.step-card-titles h3 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: 0;
}
.step-card-titles p {
  margin: 0.25rem 0 0;
  color: var(--sage-dark);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}
.step-help {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  padding: 0.7rem 1rem;
}
.step-help summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--fg);
}
.step-help ol {
  margin: 0.6rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.step-actions {
  display: flex;
  gap: 0.75rem;
}
.step-open {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: 12px;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}
.step-open:hover {
  filter: brightness(1.05);
}
.step-field {
  display: grid;
  gap: 0.4rem;
}
.step-field > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step-field input,
.step-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem 0.9rem;
  font: inherit;
  line-height: 1.45;
  color: var(--fg);
  outline: none;
}
.step-field input {
  min-height: 46px;
}
.step-field textarea {
  min-height: 72px;
  resize: vertical;
}
.step-field input:focus,
.step-field textarea:focus {
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(15, 90, 50, 0.14);
}

.codes-nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.codes-prev,
.codes-skip,
.codes-next {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  padding: 0 1.1rem;
  min-height: 44px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.codes-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.codes-skip {
  justify-self: center;
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
}
.codes-skip:hover {
  color: var(--sage-dark);
}
.codes-next {
  background: var(--sage-dark);
  border-color: var(--sage-dark);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 90, 50, 0.22);
}
.codes-next:hover {
  filter: brightness(1.05);
}

/* Done stage */
.done-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 2.5rem;
  align-items: center;
}
.done-card {
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(18, 17, 15, 0.08);
}
.done-eyebrow {
  margin: 0 0 0.5rem;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.done-card h2 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0;
}
.done-card p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.done-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.done-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border-radius: 999px;
  background: var(--sage-dark);
  color: #fff;
  font-weight: 850;
  text-decoration: none;
  box-shadow: 0 14px 30px rgba(15, 90, 50, 0.22);
}
.done-primary:hover {
  filter: brightness(1.05);
}
.done-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.4rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--fg);
  font-weight: 800;
  cursor: pointer;
}
.done-secondary:hover {
  border-color: var(--sage);
}
.done-preview {
  display: grid;
  justify-content: center;
}

@keyframes pickFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes chipFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.phone-frame {
  width: min(100%, 19rem);
  border: 7px solid #111;
  border-radius: 2.15rem;
  background: #111;
  padding: 0.35rem;
  box-shadow: 0 22px 45px rgba(0,0,0,0.18);
}
.phone-screen {
  min-height: 31.5rem;
  border-radius: 1.65rem;
  background: #fffdf8;
  overflow: hidden;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.1rem 0;
  color: #111;
  font-size: 0.72rem;
  font-weight: 850;
}
.phone-screen-inner {
  padding: 1.65rem 1rem 1rem;
  text-align: center;
}
.phone-screen-inner h3 {
  margin: 0;
  color: #0b3a24;
  font-size: 1.45rem;
  line-height: 1.12;
  letter-spacing: 0;
}
.phone-subtitle {
  margin: 0.6rem 0 1rem;
  color: var(--muted);
  font-size: 0.76rem;
}
.phone-card-list {
  display: grid;
  gap: 0.8rem;
}
.phone-brand-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 0.8rem;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.phone-brand-head {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}
.phone-logo {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.phone-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.3rem;
}
.phone-brand-card h4 {
  margin: 0;
  font-size: 0.86rem;
  letter-spacing: 0;
}
.phone-brand-card .phone-brand-head p {
  margin: 0.12rem 0 0;
  color: #0f5a32;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.3;
}
.phone-note {
  margin: 0.65rem 0;
  color: var(--fg);
  font-size: 0.76rem;
  line-height: 1.45;
}
.phone-brand-card button {
  width: 100%;
  min-height: 34px;
  border: none;
  border-radius: 7px;
  background: var(--sage-dark);
  color: #fff;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
}
.phone-brand-card button:disabled {
  background: #e9e4da;
  color: var(--muted);
}
.phone-empty {
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
}
.phone-footer {
  display: inline-flex;
  margin-top: 1.2rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.35rem 0.7rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.directory-intro {
  max-width: 68rem;
  margin: 1.75rem auto 0;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
}
.directory-intro h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: 0;
}
.directory-intro p:not(.referral-kicker) {
  max-width: 38rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}
.directory-intro a {
  color: var(--sage-dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.referral-main {
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.referral-controls {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 14rem);
  gap: 0.75rem;
  padding: 1rem 0;
  background: rgba(250,249,247,0.96);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.referral-search-label,
.referral-select-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.referral-search-label span,
.referral-select-label span {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.referral-search-label input,
.referral-select-label select,
.referral-code-input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fff;
  color: var(--fg);
  padding: 0 0.85rem;
  font: inherit;
  outline: none;
}
.referral-search-label input:focus,
.referral-select-label select:focus,
.referral-code-input:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(73,140,105,0.12);
}
.referral-status-filters {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.1rem;
}
.referral-status-filters button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 650;
  font-size: 0.78rem;
  white-space: nowrap;
  cursor: pointer;
}
.referral-status-filters button.active {
  color: #fff;
  background: var(--fg);
  border-color: var(--fg);
}
.referral-result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.referral-result-row a {
  color: var(--sage-dark);
  font-weight: 700;
  text-decoration: none;
}
.referral-grid,
.referral-page-list {
  display: grid;
  gap: 1rem;
}
.referral-card,
.referral-page-card {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.referral-card-image,
.referral-page-image {
  min-height: 100%;
  background: #fff;
  border-right: 1px solid var(--border);
}
.referral-card-image img,
.referral-page-image img {
  width: min(74%, 7.2rem);
  height: min(74%, 7.2rem);
  object-fit: contain;
  display: block;
}
.referral-logo-placeholder {
  width: 3.2rem;
  height: 3.2rem;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #edf6f0;
  border: 1px solid #d7eadc;
  color: var(--sage-dark);
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1rem;
}
.referral-logo-placeholder:not(.visible) {
  display: none;
}
.referral-logo-placeholder.visible {
  display: grid;
}
.referral-card-body,
.referral-page-body {
  padding: 1.1rem;
  min-width: 0;
}
.referral-card-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.referral-card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.referral-card-title-row h2 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.2;
  letter-spacing: 0;
}
.referral-category,
.referral-status,
.referral-saved-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.35rem;
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
}
.referral-category {
  background: #f4f2ef;
  color: var(--muted);
}
.referral-status-verified {
  background: #e8f6ed;
  color: #21663c;
}
.referral-status-page_found {
  background: #e9f3fb;
  color: #246486;
}
.referral-status-needs_review {
  background: #fff4df;
  color: #8a5a16;
}
.referral-saved-badge {
  flex: 0 0 auto;
  background: #e8f6ed;
  color: #21663c;
}
.referral-tagline {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.referral-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
.referral-facts div,
.referral-steps li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.75rem;
}
.referral-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.referral-facts p {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  line-height: 1.45;
}
.referral-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}
.referral-steps li {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}
.referral-steps li span {
  display: inline-grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--sage-dark);
  font-weight: 800;
}
.referral-actions,
.referral-page-actions {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.9rem;
}
.referral-primary,
.referral-secondary,
.referral-save-btn {
  min-height: 42px;
  border-radius: 9px;
  padding: 0 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 750;
  font-size: 0.84rem;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.referral-primary,
.referral-save-btn {
  background: var(--sage-dark);
  color: #fff;
}
.referral-secondary {
  background: #fff;
  color: var(--fg);
  border-color: var(--border);
}
.referral-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.76rem;
}
.referral-source a,
.referral-source button {
  color: var(--muted);
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.referral-page-list {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}
.referral-page-card {
  grid-template-columns: 8rem minmax(0, 1fr);
}
.referral-page-body code {
  display: block;
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--fg);
  overflow-wrap: anywhere;
}
.referral-love-note {
  margin: 0.75rem 0 0;
  border-left: 3px solid var(--sage);
  padding: 0.15rem 0 0.15rem 0.75rem;
  color: var(--fg);
  font-size: 0.9rem;
  line-height: 1.55;
}
.referral-page-actions {
  grid-template-columns: repeat(3, auto);
  justify-content: start;
}
.referral-load-more {
  width: 100%;
  min-height: 46px;
  margin-top: 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.referral-load-more:hover {
  border-color: var(--sage);
}
@media (max-width: 1120px) {
  .pick-card {
    flex-basis: 14rem;
  }
  .done-stage {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .done-preview { order: -1; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .referral-hero {
    padding: 2rem 1rem 1rem;
  }
  .referral-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.7rem);
    line-height: 1.04;
  }
  .referral-hero > p:not(.referral-kicker) {
    font-size: 1rem;
    line-height: 1.45;
  }
  .referral-stage {
    padding: 0 1rem 2rem;
  }
  .pick-rail-shell {
    margin: 0 -1rem;
  }
  .pick-rail {
    gap: 0.75rem;
    padding: 0.5rem 1rem 1.25rem;
  }
  .pick-card {
    flex-basis: 11rem;
    padding: 1.25rem 0.85rem 1.1rem;
    border-radius: 16px;
    gap: 0.35rem;
  }
  .pick-card-logo {
    width: 5.4rem;
    height: 5.4rem;
    border-radius: 14px;
  }
  .pick-card-name {
    font-size: 0.98rem;
    margin-top: 0.4rem;
  }
  .pick-card-meta {
    font-size: 0.62rem;
  }
  .pick-rail-arrow {
    display: none;
  }
  .pick-card-check {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.85rem;
  }
  .pick-actionbar {
    padding: 0.6rem 0.85rem max(0.6rem, env(safe-area-inset-bottom));
  }
  .pick-actionbar-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem;
  }
  .pick-continue {
    min-height: 44px;
    padding: 0 1rem;
    font-size: 0.9rem;
  }
  .pick-search-link {
    display: none;
  }
  body.has-actionbar { padding-bottom: 5.5rem; }
  .pick-row-title { font-size: 1.3rem; }
  .codes-stage {
    max-width: none;
  }
  .step-card {
    padding: 1.35rem 1.15rem;
  }
  .step-card-head {
    grid-template-columns: 3.4rem minmax(0, 1fr);
    gap: 0.85rem;
  }
  .step-card-logo {
    width: 3.4rem;
    height: 3.4rem;
  }
  .codes-nav {
    grid-template-columns: 1fr 1fr;
  }
  .codes-skip {
    grid-column: 1 / -1;
    order: 3;
  }
  .done-card {
    padding: 1.5rem 1.25rem;
  }
  .directory-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.3rem;
  }
  .referral-controls { grid-template-columns: 1fr; top: 72px; }
  .referral-card,
  .referral-page-card { grid-template-columns: 1fr; }
  .referral-card-image,
  .referral-page-image {
    height: 8.5rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .referral-facts,
  .referral-steps,
  .referral-actions,
  .referral-page-actions { grid-template-columns: 1fr; }
  .referral-result-row { align-items: flex-start; flex-direction: column; }
}

/* Brand comparison pages */
.similar-brand-page .district-hero {
  max-width: 70rem;
  padding-top: 4.6rem;
  padding-bottom: 2.3rem;
}
.similar-brand-page .hero-title {
  max-width: 66rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 4.25rem;
  line-height: 1.02;
  letter-spacing: 0;
}
.similar-brand-page .hero-intro {
  max-width: 54rem;
  font-size: 1.13rem;
}
.similar-hero-note {
  max-width: 38rem;
  margin: 1.1rem auto 0;
  color: #7a4337;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.12rem;
  line-height: 1.55;
}
.similar-main {
  max-width: 84rem;
  margin: 0 auto;
  padding: 0 1.25rem 5rem;
}
.section-kicker {
  margin: 0 0 0.65rem;
  color: #8f5d4f;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.intent-picker,
.best-first-picks {
  margin-bottom: 2.6rem;
}
.intent-picker-head,
.best-first-head {
  max-width: 48rem;
  margin: 0 auto 1rem;
  text-align: center;
}
.intent-picker-head h2,
.best-first-head h2 {
  margin: 0;
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
}
.intent-picker-head p:not(.section-kicker) {
  max-width: 40rem;
  margin: 0.75rem auto 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.intent-lanes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.intent-lane {
  min-height: 13rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.intent-lane:hover {
  transform: translateY(-2px);
  border-color: #d6b0a3;
  box-shadow: var(--shadow-md);
}
.intent-lane h3 {
  margin: 0;
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.18;
  letter-spacing: 0;
}
.intent-lane p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}
.intent-lane div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.intent-lane span,
.intent-lane a {
  padding: 0.32rem 0.55rem;
  background: #f7f1ef;
  color: #7a4337;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
}
.intent-lane a:hover {
  background: #1a1a1a;
  color: #fff;
}
.best-pick-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.9rem;
}
.best-pick {
  position: relative;
  grid-column: span 2;
  min-height: 23rem;
  display: block;
  background: #171717;
  color: #fff;
  border-radius: var(--radius-lg);
  text-decoration: none;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.best-pick:first-child {
  grid-column: span 4;
  min-height: 30rem;
}
.best-pick:nth-child(2) {
  grid-column: span 2;
  min-height: 30rem;
}
.best-pick img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.best-pick:hover img {
  transform: scale(1.04);
}
.best-pick-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.82), rgba(0,0,0,0.22) 55%, rgba(0,0,0,0.08));
}
.best-pick-count {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #d8aa9b;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.4rem;
  line-height: 1;
}
.best-pick-copy {
  position: absolute;
  inset: auto 1.05rem 1.05rem;
  display: grid;
  gap: 0.45rem;
}
.best-pick-copy p {
  margin: 0;
  color: rgba(255,255,255,0.62);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.best-pick-copy h3 {
  margin: 0;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.12;
  letter-spacing: 0;
}
.best-pick:first-child .best-pick-copy {
  inset: auto 1.35rem 1.35rem;
  max-width: 30rem;
}
.best-pick:first-child .best-pick-copy h3 {
  font-size: 2.25rem;
}
.best-pick:first-child .best-pick-copy small {
  max-width: 26rem;
  font-size: 0.96rem;
}
.best-pick-copy small {
  color: rgba(255,255,255,0.76);
  font-size: 0.82rem;
  line-height: 1.45;
}
.best-pick:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.similar-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  gap: 2rem;
  align-items: start;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.similar-snapshot-head h2,
.similar-results-head h2,
.similar-comparison h2,
.similar-evidence h2,
.similar-guide h2 {
  margin: 0;
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.15;
}
.similar-snapshot-head p:not(.section-kicker) {
  max-width: 42rem;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.similar-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.similar-snapshot-grid div,
.similar-metrics div {
  min-height: 4.1rem;
  padding: 0.8rem;
  background: #f7f1ef;
  border: 1px solid #eadbd6;
  border-radius: 8px;
}
.similar-snapshot-grid span,
.similar-metrics span {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.similar-snapshot-grid strong,
.similar-metrics strong {
  color: var(--fg);
  font-size: 0.94rem;
  line-height: 1.25;
}
.similar-known-for {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.similar-known-for span {
  padding: 0.4rem 0.72rem;
  background: var(--sage-light);
  color: var(--sage-dark);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
}
.similar-caveats {
  grid-column: 1 / -1;
  margin: 0;
  padding: 0.9rem 0 0 1.15rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.similar-filter-row {
  position: sticky;
  top: 72px;
  z-index: 20;
  display: flex;
  gap: 0.55rem;
  margin: 1.25rem -1.25rem 0;
  padding: 0.9rem 1.25rem;
  overflow-x: auto;
  background: rgba(250, 249, 247, 0.94);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.similar-filter {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.similar-filter:hover {
  border-color: #c8917f;
  color: #7a4337;
}
.similar-filter.active {
  background: var(--fg);
  border-color: var(--fg);
  color: #fff;
}
.similar-results {
  padding-top: 2.2rem;
}
.similar-results-head {
  max-width: 42rem;
  margin-bottom: 1rem;
}
.similar-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.similar-card {
  display: grid;
  grid-template-columns: minmax(16rem, 0.44fr) minmax(0, 0.56fr);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  animation: similarFadeUp 0.7s var(--ease) both;
}
.similar-card[hidden] {
  display: none;
}
.similar-card-media {
  position: relative;
  min-height: 28rem;
  display: block;
  overflow: hidden;
  background: #eee7e1;
  text-decoration: none;
}
.similar-card-media img {
  width: 100%;
  height: 100%;
  min-height: 28rem;
  object-fit: cover;
  display: block;
}
.similar-match {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.42rem 0.72rem;
  background: rgba(26,26,26,0.78);
  color: #fff;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(6px);
}
.similar-card-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
}
.similar-card-top {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}
.similar-card-top > p {
  margin: 0.2rem 0 0;
  color: #a36a58;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.6rem;
  line-height: 1;
}
.similar-card-top h2 {
  margin: 0;
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.9rem;
  line-height: 1.08;
  letter-spacing: 0;
}
.similar-card-top span {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}
.similar-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}
.similar-friend-take {
  margin: 0;
  color: var(--fg);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.34rem;
  line-height: 1.42;
  letter-spacing: 0;
}
.similar-shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}
.similar-shop-grid div {
  padding: 0.85rem;
  background: #faf9f7;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.similar-shop-grid span {
  display: block;
  margin-bottom: 0.35rem;
  color: #8f5d4f;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.similar-shop-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.similar-reasons {
  display: grid;
  gap: 0.65rem;
  color: var(--fg);
}
.similar-reasons p,
.similar-caveat {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.similar-reasons strong,
.similar-caveat strong {
  color: var(--fg);
}
.similar-caveat {
  padding: 0.85rem 0 0;
  border-top: 1px solid var(--border);
}
.similar-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  margin-top: auto;
}
.similar-card-actions > a:not(.enter-store-btn) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: underline;
}
@keyframes similarFadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.best-pick,
.intent-lane {
  animation: similarFadeUp 0.72s var(--ease) both;
}
.best-pick:nth-child(2),
.intent-lane:nth-child(2),
.similar-card:nth-child(2) {
  animation-delay: 0.06s;
}
.best-pick:nth-child(3),
.intent-lane:nth-child(3),
.similar-card:nth-child(3) {
  animation-delay: 0.12s;
}
.best-pick:nth-child(4),
.intent-lane:nth-child(4),
.similar-card:nth-child(4) {
  animation-delay: 0.18s;
}
.best-pick:nth-child(5),
.intent-lane:nth-child(5),
.similar-card:nth-child(5) {
  animation-delay: 0.24s;
}
.best-pick:nth-child(6),
.intent-lane:nth-child(6),
.similar-card:nth-child(6) {
  animation-delay: 0.3s;
}
@media (prefers-reduced-motion: reduce) {
  .best-pick,
  .intent-lane,
  .similar-card {
    animation: none;
  }
  .best-pick,
  .best-pick img,
  .intent-lane {
    transition: none;
  }
}
.similar-comparison,
.similar-evidence,
.similar-guide,
.similar-source-links {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.comparison-table-wrap {
  margin-top: 1rem;
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.comparison-table {
  width: 100%;
  min-width: 58rem;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.comparison-table th,
.comparison-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.comparison-table thead th {
  background: #f7f1ef;
  color: var(--fg);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.comparison-table tbody th {
  color: var(--fg);
  font-weight: 800;
}
.comparison-table tbody tr:last-child th,
.comparison-table tbody tr:last-child td {
  border-bottom: none;
}
.similar-evidence ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.similar-evidence li {
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.similar-evidence strong,
.similar-evidence span {
  display: block;
}
.similar-evidence strong {
  margin-bottom: 0.35rem;
  color: var(--fg);
}
.similar-evidence span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}
.similar-guide {
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
}
.similar-guide section {
  margin-top: 1.45rem;
}
.similar-guide h3 {
  margin: 0 0 0.45rem;
  color: var(--fg);
  font-size: 1.05rem;
  letter-spacing: 0;
}
.similar-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}
.similar-source-links div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.similar-source-links a {
  color: var(--fg);
  font-size: 0.86rem;
  font-weight: 750;
}
.similar-source-links p:not(.section-kicker) {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
@media (max-width: 920px) {
  .similar-brand-page .hero-title {
    font-size: 2.65rem;
  }
  .intent-lanes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .best-pick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .best-pick,
  .best-pick:first-child,
  .best-pick:nth-child(2) {
    grid-column: auto;
    min-height: 22rem;
  }
  .best-pick:first-child .best-pick-copy h3 {
    font-size: 1.45rem;
  }
  .similar-snapshot,
  .similar-card {
    grid-template-columns: 1fr;
  }
  .similar-card-media,
  .similar-card-media img {
    min-height: 22rem;
  }
  .similar-metrics,
  .similar-shop-grid,
  .similar-evidence ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .similar-brand-page .district-hero {
    padding-top: 2.25rem;
    padding-bottom: 1.2rem;
  }
  .similar-brand-page .hero-title {
    font-size: 1.95rem;
    line-height: 1.08;
  }
  .similar-brand-page .hero-intro {
    font-size: 0.98rem;
    line-height: 1.62;
  }
  .similar-hero-note {
    margin-top: 0.85rem;
    font-size: 1rem;
    line-height: 1.48;
  }
  .similar-main {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }
  .similar-snapshot {
    padding: 1.2rem;
  }
  .similar-snapshot-head h2,
  .similar-results-head h2,
  .similar-comparison h2,
  .similar-evidence h2,
  .similar-guide h2 {
    font-size: 1.45rem;
  }
  .similar-snapshot-grid,
  .intent-lanes,
  .best-pick-grid,
  .similar-shop-grid,
  .similar-metrics,
  .similar-evidence ul {
    grid-template-columns: 1fr;
  }
  .best-pick,
  .best-pick:first-child,
  .best-pick:nth-child(2) {
    min-height: 18rem;
  }
  .similar-card-media,
  .similar-card-media img {
    min-height: 18rem;
  }
  .similar-card-body {
    padding: 1.15rem;
  }
  .similar-card-top {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .similar-card-top h2 {
    font-size: 1.55rem;
  }
}

/* Shopping walk brand rails */
.shopping-walk-hero {
  padding-bottom: 2rem;
}

.shopping-walk-page .walk-main {
  width: min(1240px, calc(100% - 32px));
}

.shopping-walk-card {
  margin-bottom: 2.75rem;
}

.walk-lanes {
  display: grid;
  gap: 3.3rem;
  padding-top: 1.25rem;
}

.walk-row {
  min-width: 0;
}

.walk-row[hidden] {
  display: none;
}

.walk-row-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0.9rem;
}

.walk-row-head h2 {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2rem;
  line-height: 1.08;
  letter-spacing: 0;
}

.walk-row-head p:not(.walk-kicker) {
  max-width: 42rem;
  margin: 0.55rem 0 0;
  color: var(--walk-muted);
  line-height: 1.6;
}

.walk-row-head > span {
  flex: 0 0 auto;
  color: var(--walk-muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.walk-rail-shell {
  position: relative;
  margin: 0 -1.5rem;
  overflow: hidden;
}

.walk-card-rail {
  display: flex;
  gap: 1.1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.85rem 1.5rem 2.4rem;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1.5rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.walk-card-rail::-webkit-scrollbar {
  display: none;
}

.walk-rail-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.9rem;
  height: 2.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #ffffffef;
  backdrop-filter: blur(8px);
  color: var(--fg);
  font: inherit;
  font-size: 1.65rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(18, 17, 15, 0.16);
  transition: transform 160ms ease, opacity 200ms ease;
}

.walk-rail-arrow:hover:not(:disabled) {
  transform: translateY(-50%) scale(1.05);
}

.walk-rail-arrow:disabled {
  opacity: 0;
  pointer-events: none;
}

.walk-rail-arrow-prev {
  left: 0.55rem;
}

.walk-rail-arrow-next {
  right: 0.55rem;
}

.walk-brand-card {
  flex: 0 0 clamp(20rem, 27vw, 24rem);
  scroll-snap-align: start;
  display: grid;
  grid-template-rows: 22rem 1fr;
  min-height: 41rem;
  border-radius: 16px;
  animation: walkCardIn 0.48s ease both;
  animation-delay: calc((var(--walk-order, 1) - 1) * 34ms);
}

.walk-brand-card[hidden] {
  display: none;
}

.walk-brand-card .card-media,
.walk-brand-card .carousel-track,
.walk-brand-card .carousel-slide {
  height: 100%;
  min-height: 0;
}

.walk-brand-card .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.walk-brand-card .card-body {
  min-height: 18.5rem;
}

.walk-brand-card .brand-location {
  max-width: 15rem;
}

.walk-brand-card .story-expandable {
  max-height: 4.8em;
}

.walk-brand-card .enter-store-btn {
  margin-top: auto;
}

@media (max-width: 820px) {
  .walk-row-head {
    align-items: start;
    flex-direction: column;
    gap: 0.6rem;
  }

  .walk-brand-card {
    flex-basis: 20rem;
  }
}

@media (max-width: 560px) {
  .shopping-walk-page .walk-main {
    width: min(100% - 24px, 1240px);
  }

  .walk-card-rail {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
    scroll-padding-left: 0.9rem;
  }

  .walk-rail-shell {
    margin-left: -0.9rem;
    margin-right: -0.9rem;
  }

  .walk-rail-arrow {
    display: none;
  }

  .walk-brand-card {
    flex-basis: min(20rem, calc(100vw - 3.25rem));
    grid-template-rows: 18.5rem 1fr;
    min-height: 38rem;
  }
}

/* Shopping walk map sidecar */
.walk-orientation-panel {
  display: block;
  margin-bottom: 1.5rem;
}

.walk-orientation-panel > div {
  max-width: 56rem;
}

.walk-orientation-panel p:not(.walk-kicker) {
  margin: 0.85rem 0 0;
  max-width: 48rem;
  color: var(--walk-muted);
  line-height: 1.65;
}

.walk-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(22rem, 28rem);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: 0.35rem;
}

.walk-stop-list {
  min-width: 0;
  display: grid;
  gap: clamp(1.25rem, 2.6vw, 2rem);
}

.walk-map-panel {
  position: relative;
  align-self: stretch;
  height: 100%;
}

.walk-map-card {
  position: sticky;
  top: 5.5rem;
  border: 1px solid var(--walk-line);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 20px 54px rgba(18, 17, 15, 0.1);
  backdrop-filter: blur(16px);
}

.walk-map-head h2 {
  margin: 0.2rem 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.walk-map-head p:not(.walk-kicker),
.walk-map-caption {
  margin: 0.65rem 0 0;
  color: var(--walk-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.walk-map-canvas {
  position: relative;
  min-height: 21rem;
  margin-top: 1rem;
  overflow: hidden;
  border: 1px solid rgba(23, 20, 18, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(47, 107, 89, 0.08), transparent 36%),
    linear-gradient(45deg, transparent 0 48%, rgba(23, 20, 18, 0.045) 48% 52%, transparent 52%),
    #f3eee6;
}

.walk-map-canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(23, 20, 18, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 20, 18, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.walk-mapbox {
  min-height: 24rem;
  background: #ebe6dc;
  isolation: isolate;
}

.walk-mapbox::before {
  display: none;
}

.walk-mapbox::after {
  content: "Loading the walk map";
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  background: rgba(235, 230, 220, 0.72);
  color: var(--walk-muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.walk-mapbox.is-ready::after {
  opacity: 0;
}

.walk-mapbox-unavailable::after {
  content: "Map unavailable";
}

.walk-mapbox .mapboxgl-canvas {
  border-radius: 16px;
}

.walk-mapbox .mapboxgl-control-container {
  font-family: inherit;
}

.walk-mapbox .mapboxgl-ctrl-logo,
.walk-mapbox .mapboxgl-ctrl-attrib {
  opacity: 0.72;
}

.walk-map-marker {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 20, 18, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--walk-ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(18, 17, 15, 0.18);
  transition: scale 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.walk-map-marker span {
  font-size: 0.62rem;
  font-weight: 900;
}

.walk-map-marker.active,
.walk-map-marker:hover {
  scale: 1.18;
  border-color: var(--walk-ink);
  background: var(--walk-ink);
  color: #fff;
  box-shadow: 0 14px 30px rgba(18, 17, 15, 0.28);
}

.walk-map-north {
  position: absolute;
  top: 0.7rem;
  left: 0.8rem;
  z-index: 3;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 20, 18, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--walk-muted);
  font-size: 0.68rem;
  font-weight: 850;
}

.walk-map-street {
  position: absolute;
  z-index: 1;
  color: rgba(23, 20, 18, 0.52);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.walk-map-street::before {
  content: "";
  position: absolute;
  background: rgba(23, 20, 18, 0.16);
  border-radius: 999px;
}

.walk-map-street-king {
  left: 45%;
  top: 12%;
  height: 76%;
  padding-left: 0.65rem;
  transform: rotate(4deg);
  writing-mode: vertical-rl;
}

.walk-map-street-king::before,
.walk-map-street-philip::before {
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
}

.walk-map-street-market {
  left: 22%;
  top: 64%;
  width: 58%;
  padding-bottom: 0.45rem;
}

.walk-map-street-market::before,
.walk-map-street-spring::before {
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
}

.walk-map-street-spring {
  left: 32%;
  top: 81%;
  width: 48%;
  padding-bottom: 0.45rem;
}

.walk-map-street-philip {
  left: 65%;
  top: 25%;
  height: 53%;
  padding-left: 0.6rem;
  transform: rotate(3deg);
  writing-mode: vertical-rl;
}

.walk-map-area {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -50%);
  color: rgba(23, 20, 18, 0.42);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.walk-map-pin {
  position: absolute;
  z-index: 4;
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 20, 18, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--walk-ink);
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(18, 17, 15, 0.14);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.walk-map-pin span {
  font-size: 0.62rem;
  font-weight: 900;
}

.walk-map-pin.active,
.walk-map-pin:hover {
  transform: translate(-50%, -50%) scale(1.14);
  border-color: var(--walk-ink);
  background: var(--walk-ink);
  color: #fff;
}

.walk-map-active {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
  border: 1px solid rgba(23, 20, 18, 0.1);
  border-radius: 12px;
  background: #fff;
}

.walk-map-active span {
  color: var(--walk-muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.walk-map-active strong {
  color: var(--walk-ink);
  font-size: 1rem;
}

.walk-map-active small {
  color: var(--walk-muted);
  line-height: 1.4;
}

.walk-map-list {
  display: grid;
  gap: 0.3rem;
  max-height: 9rem;
  margin-top: 0.75rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.walk-map-list-item {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.15rem 0.55rem;
  padding: 0.5rem 0.55rem;
  border-radius: 10px;
  color: var(--walk-ink);
  text-decoration: none;
}

.walk-map-list-item span {
  grid-row: span 2;
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47, 107, 89, 0.1);
  color: var(--walk-green);
  font-size: 0.62rem;
  font-weight: 900;
}

.walk-map-list-item strong {
  font-size: 0.82rem;
  line-height: 1.15;
}

.walk-map-list-item small {
  color: var(--walk-muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.walk-map-list-item.active,
.walk-map-list-item:hover {
  background: rgba(47, 107, 89, 0.08);
}

.walk-stop-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  grid-template-rows: none;
  min-height: min(48rem, calc(100vh - 5rem));
  scroll-margin-top: 1.5rem;
  border-radius: 18px;
  animation: walkCardIn 0.48s ease both;
  animation-delay: calc((var(--walk-order, 1) - 1) * 28ms);
}

.walk-stop-card .walk-stop-index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 6;
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(18, 17, 15, 0.12);
}

.walk-stop-index span,
.walk-stop-index small {
  line-height: 1;
  white-space: nowrap;
}

.walk-stop-index span {
  color: var(--walk-ink);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.walk-stop-index small {
  color: var(--walk-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.walk-stop-card .card-media {
  height: 100%;
  min-height: 28rem;
}

.walk-stop-card .card-body {
  min-height: 0;
  padding: clamp(1.45rem, 2.5vw, 2.1rem);
  justify-content: center;
  gap: 0.95rem;
}

.walk-stop-card .brand-name {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.walk-stop-place {
  margin: 0 0 0.25rem;
  color: var(--walk-green);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.walk-stop-card .brand-location {
  max-width: none;
  margin-top: 0.25rem;
  color: var(--walk-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.walk-stop-card .brand-tagline {
  color: var(--walk-ink);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.45;
}

.walk-stop-window {
  margin: 0;
  color: var(--walk-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.walk-stop-notes {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.walk-stop-notes div {
  display: grid;
  gap: 0.18rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--walk-line);
}

.walk-stop-notes dt {
  color: var(--walk-green);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.walk-stop-notes dd {
  margin: 0;
  color: var(--walk-ink);
  font-size: 0.88rem;
  line-height: 1.55;
}

.walk-stop-card .enter-store-btn {
  margin-top: 0.25rem;
}

@media (max-width: 1020px) {
  .walk-map-layout {
    grid-template-columns: 1fr;
  }

  .walk-map-panel {
    position: static;
    height: auto;
    order: -1;
  }

  .walk-map-card {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.85fr);
    gap: 1rem;
    align-items: start;
  }

  .walk-map-head,
  .walk-map-active,
  .walk-map-list,
  .walk-map-caption {
    grid-column: 2;
  }

  .walk-map-canvas {
    grid-row: 1 / span 4;
    min-height: 20rem;
    margin-top: 0;
  }

  .walk-stop-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .walk-map-card {
    display: block;
  }

  .walk-map-canvas {
    min-height: 19rem;
    margin-top: 1rem;
  }

  .walk-map-list {
    display: none;
  }

  .walk-stop-card {
    grid-template-columns: 1fr;
  }

  .walk-stop-card .card-media {
    min-height: 22rem;
  }

  .walk-stop-card .card-body {
    padding: 1.25rem;
  }

  .walk-stop-card .brand-name {
    font-size: clamp(1.65rem, 10vw, 2.35rem);
  }
}
