/* Fatty Uncle Brand Design System — Burgundy Primary / Navy Secondary */
:root {
  --primary: #7F1218;
  --secondary: #001D55;
  --navy: #001D55;
  --navy-soft: #0B2F70;
  --red: #7F1218;
  --red-dark: #650D12;
  --flame: #7F1218;
  --gold: #D4A434; /* 1px tick only — never a fill or canvas */
  --cream: #F6F0E4;
  --white: #FFFFFF;
  --ink: #151515;
  --ink-soft: #4B5563;
  --line: rgba(0,29,85,.14);
  --shadow-card: 0 1px 2px rgba(0,29,85,.06), 0 14px 34px -24px rgba(0,29,85,.34);
  --shadow-pop: 0 28px 64px -28px rgba(0,29,85,.48);
  --radius: 8px;
  --radius-lg: 12px;
  --max: 1280px;
  --display: 'Bai Jamjuree', 'Noto Sans Thai', Arial, sans-serif;
  --body: 'IBM Plex Sans Thai', 'Noto Sans Thai', Arial, sans-serif;
  --th: var(--body);
  --serif: var(--display);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: auto; }
body {
  font-family: var(--th);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button, select, input { font: inherit; color: inherit; }

/* topbar */
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 10px 16px; padding: 8px 24px;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
  transition: transform .25s ease;
  will-change: transform;
}
body.nav-hidden .topbar { transform: translateY(-100%); }
.brand {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 4px 12px 4px 6px;
  text-decoration: none; color: var(--white);
  background: var(--primary); border-radius: 8px;
}
.brand-seal {
  width: 44px; height: 44px; border-radius: 50%;
  box-shadow: 0 2px 8px rgba(184,36,44,.35), inset 0 0 0 1px var(--gold);
  background: var(--red);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.brand-mark { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.brand-tag { font-size: 11px; color: rgba(255,255,255,.76); margin-top: 2px; }
.topnav { display: flex; align-items: center; gap: 18px; }
.lang-toggle {
  display: inline-flex; padding: 3px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.lt {
  border: 0; background: transparent;
  padding: 5px 12px; border-radius: 999px; cursor: pointer;
  font-weight: 700; font-size: 12px; letter-spacing: .04em; color: var(--ink-soft);
}
.lt.active { background: var(--red); color: #fff8ed; }
.navlink {
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px;
  padding: 6px 10px; border-radius: 8px;
}
.navlink:hover { background: rgba(184,36,44,.08); color: var(--red-dark); }

/* hero */
.hero {
  position: relative; isolation: isolate;
  padding: 34px 24px 28px;
  background: linear-gradient(180deg, #2a0c10 0%, #4a0f15 60%, var(--red-dark) 100%);
  color: #fff8ed; overflow: hidden;
}
.hero-collage {
  position: absolute; inset: 0; z-index: 0;
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 4px;
  opacity: .35;
  filter: saturate(120%);
}
.hero-collage img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(60% 80% at 20% 30%, rgba(242,107,26,.28), transparent 70%),
    radial-gradient(70% 90% at 90% 90%, rgba(212,164,52,.24), transparent 65%),
    linear-gradient(180deg, rgba(20,5,7,.55), rgba(20,5,7,.85));
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto;
}
.eyebrow {
  font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cream); margin: 0 0 16px;
}
.hero h1 {
  font-family: var(--serif); font-style: italic; font-weight: 700;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.05;
  margin: 0 0 18px;
  color: #fff8ed;
  letter-spacing: -.01em;
}
.hero-flame { color: var(--flame); }
.lede { font-size: clamp(15px, 1.4vw, 18px); max-width: 640px; color: rgba(255,248,237,.82); margin: 0 0 4px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; }
.stat {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,248,237,.08);
  border: 1px solid rgba(255,248,237,.18);
  color: #fff8ed;
  padding: 8px 14px; border-radius: 999px;
  font-weight: 600; font-size: 14px;
  backdrop-filter: blur(4px);
}
.stat .num { color: var(--primary); font-variant-numeric: tabular-nums; }

/* controls */
.controls {
  position: sticky; top: 64px; z-index: 30;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
  padding: 10px 24px 10px;
  transition: top .25s ease;
}
body.nav-hidden .controls { top: 0; }
.controls-row { max-width: var(--max); margin: 0 auto; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.controls-row.filter-pills-row { padding-bottom: 6px; }
.controls-row.journey { padding-top: 2px; justify-content: space-between; gap: 12px; }

.search {
  flex: 1 1 360px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 16px;
  box-shadow: var(--shadow-card);
  color: var(--ink-soft);
}
.search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(184,36,44,.12); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.search input::placeholder { color: var(--ink-soft); }

.view-toggle { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-card); }
.header-search { min-width: 0; }
.header-tabs .vt { padding: 7px 14px; }
.vt {
  border: 0; background: transparent;
  padding: 8px 18px; border-radius: 999px; cursor: pointer;
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
  box-shadow: none;
}
.vt.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px -4px rgba(127,18,24,.55);
}

.ctl { display: inline-flex; flex-direction: column; gap: 4px; min-width: 0; }
.ctl > span { font-size: 11px; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; text-transform: uppercase; }
.ctl select {
  appearance: none; -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%231B1110' d='M6 8 0 0h12z'/%3E%3C/svg%3E") right 14px center / 10px no-repeat;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 36px 9px 14px;
  font-weight: 500; font-size: 14px; min-width: 180px;
  cursor: pointer;
}
.ctl select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(184,36,44,.12); }

/* multi-select */
.multi { position: relative; }
.multi-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 14px;
  font-weight: 600; font-size: 14px; color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}
.multi-trigger:hover { border-color: var(--red); color: var(--red-dark); }
.multi-trigger[aria-expanded="true"] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(184,36,44,.12); }
.multi-trigger.has-selection { background: var(--ink); color: #fff8ed; border-color: var(--ink); }
.multi-trigger.has-selection:hover { background: #000; }
.multi-trigger svg { opacity: .5; }
.multi-label { font-weight: 600; }
.multi-count { font-weight: 500; opacity: .75; font-size: 13px; }
.multi-trigger.has-selection .multi-count { opacity: 1; color: var(--cream); }

.multi-pop {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 25;
  width: min(320px, 90vw);
  background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 20px 50px -16px rgba(27,17,16,.28), 0 6px 16px -8px rgba(27,17,16,.12);
  display: flex; flex-direction: column;
  max-height: min(440px, 70vh);
  overflow: hidden;
}
.multi-pop[hidden] { display: none; }
.multi-pop-head { padding: 12px 12px 8px; border-bottom: 1px solid var(--line); }
.multi-search {
  width: 100%; box-sizing: border-box;
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; font-size: 14px;
  background: var(--cream);
}
.multi-search:focus { outline: 0; border-color: var(--red); background: #fff; }
.multi-quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px 0; }
.quicklink {
  border: 1px solid var(--line); background: var(--cream);
  padding: 5px 10px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink);
}
.quicklink:hover { border-color: var(--red); color: var(--red-dark); background: #fff; }
.multi-pop-actions { display: flex; gap: 14px; padding: 8px 14px; border-bottom: 1px solid var(--line); }
.lnk {
  border: 0; background: transparent; cursor: pointer;
  font-size: 12px; font-weight: 700; color: var(--red-dark);
  text-decoration: underline; text-underline-offset: 2px;
  padding: 2px 0;
}
.lnk:hover { color: var(--red); }
.multi-list {
  overflow-y: auto; flex: 1;
  padding: 4px 0;
}
.cb {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 14px; cursor: pointer;
  font-size: 14px; line-height: 1.3;
}
.cb:hover { background: rgba(184,36,44,.06); }
.cb input { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; flex: 0 0 auto; }
.cb span { display: flex; flex-direction: column; gap: 1px; }
.cb b { font-weight: 600; color: var(--ink); }
.cb small { font-size: 11px; color: var(--ink-soft); }
.cb-empty { padding: 16px 14px; color: var(--ink-soft); font-size: 13px; text-align: center; }
.multi-pop-foot { padding: 8px 12px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.multi-done {
  border: 0; background: var(--red); color: #fff8ed;
  padding: 8px 18px; border-radius: 8px; cursor: pointer;
  font-weight: 700; font-size: 13px;
}
.multi-done:hover { background: var(--red-dark); }

.reset {
  border: 0; background: transparent; cursor: pointer;
  color: var(--ink-soft); font-weight: 600; font-size: 13px;
  padding: 9px 6px; margin-left: auto;
  text-decoration: underline; text-underline-offset: 3px;
}
.reset:hover { color: var(--red-dark); }

/* result bar */
.resultbar {
  max-width: var(--max); margin: 18px auto 6px; padding: 0 24px;
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px;
}
#resultCount { font-family: var(--serif); font-style: italic; font-size: 22px; }
.note { font-size: 12px; color: var(--ink-soft); }

/* grid */
.grid {
  max-width: var(--max); margin: 0 auto; padding: 6px 24px 40px;
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer;
  display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch;
  min-height: 128px;
  transition: transform .25s ease, box-shadow .25s ease;
  border: 1px solid var(--line);
  box-shadow: inset 1px 0 0 var(--gold), var(--shadow-card);
}
.card:hover { transform: translateY(-2px); box-shadow: inset 1px 0 0 var(--gold), var(--shadow-pop); }
.thumb {
  position: relative; flex: 0 0 128px; width: 128px; max-width: 140px; min-height: 128px;
  background: #1b1110; overflow: hidden;
}
.thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.card:hover .thumb img { transform: scale(1.06); }
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.45));
  pointer-events: none;
}
.tier-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--red); color: #fff8ed;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
  box-shadow: 0 4px 14px -4px rgba(184,36,44,.7);
}
.source-pill {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.6); color: #fff8ed;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 3px 8px; border-radius: 6px; text-transform: uppercase;
  backdrop-filter: blur(4px);
}
.source-pill.tt { background: rgba(254,44,85,.92); color: #fff; }
.source-pill.both { background: rgba(212,164,52,.95); color: #1b1110; }
.thumb-fallback {
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 120% at 30% 20%, rgba(242,107,26,.45), transparent 55%),
    radial-gradient(120% 140% at 80% 90%, rgba(212,164,52,.35), transparent 60%),
    linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff8ed;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 16px; text-align: center;
}
.thumb-fallback-mark { font-family: var(--serif); font-style: italic; font-size: 32px; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.thumb-fallback-tag { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.tier-badge.gold { background: var(--navy); color: var(--white); }
.tier-badge.flame { background: var(--flame); color: #fff8ed; }
.views-pill {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--primary); color: var(--white);
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.card-body { padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; justify-content: center; }
.card h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -.005em; }
.card-meta-line { font-size: 12px; color: var(--ink-soft); }
.trust-views { font: 700 14px/1.2 var(--display); color: var(--primary); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: 12px; color: var(--ink-soft); }
.meta-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(184,36,44,.08); color: var(--red-dark);
  padding: 3px 9px; border-radius: 999px;
  font-weight: 600; font-size: 11px;
}
.meta-pill.type { background: rgba(212,164,52,.18); color: #6b520f; }
.menu-line { font-size: 13px; color: var(--ink); }
.menu-line strong { color: var(--red-dark); font-weight: 700; }
.desc { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 7px 12px; border-radius: 10px; cursor: pointer;
  font-weight: 600; font-size: 13px; text-decoration: none;
  transition: all .15s ease;
}
.btn:hover { border-color: var(--red); color: var(--red-dark); }
.btn.primary { background: var(--red); color: #fff8ed; border-color: var(--red); }
.btn.primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff8ed; }
.btn.dark { background: var(--ink); color: #fff8ed; border-color: var(--ink); }
.btn.dark:hover { background: #000; color: #fff8ed; }
.btn.quiet {
  background: #fff; color: var(--ink-soft);
  border: 1px solid var(--line); box-shadow: none;
}
.btn.quiet:hover { border-color: var(--navy); color: var(--navy); background: #fff; }
.btn.tiktok { background: #FE2C55; color: #fff; border-color: #FE2C55; }
.btn.tiktok:hover { background: #d3284a; color: #fff; border-color: #d3284a; }
.modal-hero-fallback {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 28px; text-align: center;
  background:
    radial-gradient(80% 80% at 30% 20%, rgba(242,107,26,.45), transparent 55%),
    radial-gradient(90% 100% at 80% 90%, rgba(212,164,52,.35), transparent 60%),
    linear-gradient(160deg, var(--red) 0%, var(--red-dark) 100%);
  color: #fff8ed;
}
.modal-hero-fallback span { font-family: var(--serif); font-style: italic; font-size: 56px; font-weight: 700; line-height: 1; }
.modal-hero-fallback small { font-size: 12px; letter-spacing: .08em; color: var(--cream); max-width: 360px; line-height: 1.5; }
.hashtags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 0 0 16px;
}
.tag-chip {
  border: 1px solid var(--line); background: var(--cream);
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 600; color: var(--ink-soft);
  font-family: inherit; line-height: 1.3;
  transition: all .15s ease;
}
.tag-chip:hover { border-color: var(--red); color: var(--red-dark); background: #fff; }
.active-tag-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: var(--red); color: #fff8ed;
  padding: 4px 10px; border-radius: 999px; cursor: pointer;
  font-size: 12px; font-weight: 700; font-family: inherit;
  margin-left: 6px;
}
.active-tag-pill:hover { background: var(--red-dark); }

/* load more */
.loadmore { display: flex; justify-content: center; padding: 20px 0 60px; }
.more-btn {
  border: 1px solid var(--line); background: #fff;
  padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 14px; cursor: pointer;
  box-shadow: var(--shadow-card);
}
.more-btn:hover { border-color: var(--red); color: var(--red-dark); }
.more-btn[hidden] { display: none; }

/* map */
.content { display: none; }
.content.active { display: block; }
#map { width: 100%; height: calc(100vh - 220px); min-height: 480px; overflow: hidden; }
.leaflet-container { background: #fff; overflow: hidden; }
.leaflet-tile-loaded { opacity: 1 !important; }
.fu-marker {
  width: 26px; height: 26px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--flame), var(--red) 60%, var(--red-dark) 100%);
  border: 2px solid #fff8ed;
  box-shadow: 0 4px 12px -3px rgba(184,36,44,.7);
}
.fu-user-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); border: 3px solid var(--white);
  box-shadow: 0 0 0 3px rgba(0,29,85,.22);
}
.fu-locate-wrap a.fu-locate {
  width: 34px; height: 34px;
  display: flex !important; align-items: center; justify-content: center;
  color: var(--navy); background: #fff; line-height: 0;
}
.fu-locate-wrap a.fu-locate.locating { opacity: .5; }
.closed-badge {
  display: inline-flex; margin-left: 6px;
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  color: var(--white); background: var(--ink-soft);
  padding: 1px 7px; border-radius: 4px; text-transform: uppercase;
}
.ed-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ed-chip {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 6px; white-space: nowrap;
}
.ed-chip.ed-tier { background: rgba(127,18,24,.1); color: var(--primary); }
.ed-chip.ed-tier.gold { background: var(--navy); color: var(--white); }
.ed-chip.ed-tier.flame { background: var(--primary); color: var(--white); }
.ed-chip.ed-src { background: rgba(0,29,85,.08); color: var(--navy); }
.ed-chip.ed-src.tt { background: #FE2C55; color: #fff; }
.ed-chip.ed-src.both { background: rgba(127,18,24,.12); color: var(--primary); }
.meta-pill.views { background: rgba(127,18,24,.1); color: var(--primary); }
.dist-chip {
  position: absolute; bottom: 12px; left: 12px; z-index: 2;
  background: rgba(0,29,85,.88); color: #fff;
  padding: 4px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.fu-marker.focus {
  width: 32px; height: 32px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 6px rgba(127,18,24,.22), 0 6px 16px -4px rgba(0,29,85,.55);
}
.leaflet-popup-content { font-family: var(--th); }

/* about */
.about { padding: 80px 24px 60px; background: #fff; border-top: 1px solid var(--line); }
.about-inner { max-width: 760px; margin: 0 auto; }
.about h2 { font-family: var(--serif); font-style: italic; font-weight: 700; font-size: clamp(28px, 4vw, 44px); margin: 0 0 16px; color: var(--red-dark); }
.about p { font-size: 16px; line-height: 1.7; color: var(--ink); margin: 0; }

footer {
  background: #1b1110; color: rgba(255,248,237,.7);
  padding: 28px 24px; font-size: 13px;
  display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
}
footer .dot { color: var(--cream); }

/* modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(20,5,7,.78);
  backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream); color: var(--ink);
  width: min(720px, 100%); max-height: calc(100vh - 48px);
  min-width: 0;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
}
.modal-hero {
  position: relative; aspect-ratio: 16/9; background: #1b1110;
  flex: 0 0 auto; min-height: 0;
}
.modal-hero img { width: 100%; height: 100%; object-fit: cover; }
.modal-hero::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.55) 70%, rgba(0,0,0,.85)); pointer-events: none; }
.hero-play {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: inherit;
}
.hero-play-icon {
  width: 76px; height: 76px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.6), 0 0 0 6px rgba(255,255,255,.14);
  position: relative;
  transition: transform .2s ease, background-color .2s ease;
}
.hero-play-icon::after {
  content: ""; position: absolute;
  top: 50%; left: 56%; transform: translate(-50%, -50%);
  width: 0; height: 0;
  border-left: 22px solid var(--ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
}
.hero-play:hover .hero-play-icon { transform: scale(1.08); background: #fff; }
.hero-play:hover .hero-play-icon::after { border-left-color: var(--red); }
.modal-title {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 22px 24px; color: #fff8ed;
}
.modal-title h2 { margin: 0 0 4px; font-family: var(--serif); font-style: italic; font-size: 32px; line-height: 1.1; }
.modal-title .sub { font-size: 13px; color: rgba(255,248,237,.85); }
.close {
  position: absolute; top: 12px; right: 12px; z-index: 4;
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: rgba(0,0,0,.55); color: #fff8ed;
  font-size: 22px; line-height: 1; cursor: pointer;
}
.close:hover { background: var(--red); }
.modal-body { padding: 22px 24px 24px; overflow-y: auto; overflow-x: hidden; min-height: 0; overscroll-behavior: contain; }
.modal-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px; margin: 0 0 10px;
}
.strip-thumb {
  position: relative; aspect-ratio: 16/9;
  border: 2px solid transparent; border-radius: 10px;
  background: #1b1110; padding: 0; cursor: pointer; overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.strip-thumb:hover { transform: translateY(-1px); }
.strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.strip-thumb.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(184,36,44,.15); }
.strip-note { font-size: 11px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.4; }
.modal-body p.lead { font-size: 15px; line-height: 1.65; color: var(--ink); margin: 0 0 18px; }
.story-box {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: #F6F0E4;
  border: 0;
  border-left: 3px solid #7F1218;
  color: var(--ink);
  font-size: 15px; line-height: 1.65;
}
.visit-timeline {
  margin: 0 0 16px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--line);
}
.visit-timeline h3 {
  margin: 0 0 8px;
  font: 700 .82rem/1.3 var(--display);
  letter-spacing: .06em; text-transform: uppercase; color: var(--navy);
}
.visit-timeline .visit-empty { margin: 0; font-size: 13px; color: var(--ink-soft); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
.detail {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 4px;
}
.detail small { font-size: 11px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.detail strong { font-size: 14px; color: var(--ink); font-weight: 600; line-height: 1.4; }
.modal .actions { gap: 8px; }

/* responsive */
@media (max-width: 720px) {
  .topbar {
    padding: 8px 12px;
    gap: 8px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand tabs"
      "search search";
  }
  .brand { grid-area: brand; min-width: 0; padding: 3px 7px 3px 4px; gap: 7px; }
  .brand-seal { width: 38px; height: 38px; flex: 0 0 38px; }
  .brand-copy { min-width: 0; }
  .header-search { grid-area: search; }
  .header-tabs { grid-area: tabs; }
  .header-tabs .vt { padding: 7px 10px; }
  .lang-toggle { display: none; }
  .brand-tag { display: none; }
  .topnav { gap: 4px; }
  .navlink { padding: 6px 8px; font-size: 13px; }
  .hero { padding: 28px 20px 24px; }
  .hero h1 { font-size: 34px; }
  .controls { padding: 10px 16px 10px; top: 108px; }
  .search { flex-basis: 100%; }
  .view-toggle { margin-left: auto; }
  .ctl select { min-width: 0; width: 100%; }
  .ctl { flex: 1 1 calc(50% - 5px); }
  .reset { margin-left: 0; }
  .grid { padding: 6px 16px 30px; gap: 10px; }
  .resultbar { padding: 0 16px; }
  .modal-overlay { padding: 0; }
  .modal { border-radius: 0; max-height: 100dvh; height: 100dvh; width: 100vw; max-width: 100vw; min-width: 0; }
  .close {
    position: fixed; top: 10px; right: 10px;
    width: 44px; height: 44px; background: rgba(0,29,85,.88);
  }
  .detail-grid { grid-template-columns: 1fr; }
  .about { padding: 56px 20px; }
}

/* hide visually but keep for assistive tech */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Approved brand-system application */
body { font-family: var(--body); }
:where(a, button, input, select, [role="button"]):focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 100;
  translate: 0 -200%;
  padding: .65rem 1rem; border-radius: .35rem;
  background: var(--white); color: var(--navy); font-weight: 700;
}
.skip-link:focus { translate: 0; }

.topbar { background: rgba(255,255,255,.96); }
.brand-seal { box-shadow: 0 3px 12px rgba(0,29,85,.2), inset 0 0 0 1px var(--gold); }
.brand-mark {
  max-width: 360px;
  font-family: var(--display); font-weight: 700;
  color: var(--white);
}
.lt.active { background: var(--red); color: var(--white); }
.navlink:hover { background: rgba(127,18,24,.08); color: var(--red); }

.hero {
  padding: 34px 24px 28px;
  background: var(--red); color: var(--white);
}
.hero-collage {
  inset: 0 0 0 45%;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  opacity: .34; filter: saturate(90%);
}
.hero-veil { background: rgba(127,18,24,.82); }
.hero-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) 148px;
  align-items: center; gap: clamp(1.5rem, 5vw, 4rem);
}
.eyebrow {
  width: fit-content;
  margin: 0 0 18px; padding-left: 12px;
  border-left: 4px solid var(--cream);
  font: 600 .86rem/1.35 var(--body);
  letter-spacing: .08em; text-transform: none;
  color: rgba(255,255,255,.8);
}
.hero h1 {
  display: flex; flex-direction: column;
  margin: 0 0 20px;
  font-family: var(--display); font-style: normal; font-weight: 700;
  line-height: 1.04; letter-spacing: -.02em;
  color: var(--white);
}
.hero-en { font-size: clamp(2.5rem, 4.3vw, 4.2rem); }
.hero-th {
  margin-top: .35rem;
  font-size: clamp(1.6rem, 2.7vw, 2.6rem);
  color: var(--cream);
}
.lede {
  max-width: 720px; margin: 0 0 8px;
  font: 600 clamp(1.05rem, 1.6vw, 1.35rem)/1.55 var(--body);
  color: var(--white); text-wrap: balance;
}
.hero-support { margin: 0 0 18px; color: rgba(255,255,255,.72); font-size: .92rem; }
.hero-emblem { display: grid; justify-items: center; gap: 14px; }
.hero-emblem img {
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--cream);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.28));
}
.hero-emblem span {
  font: 600 .88rem/1.4 var(--body);
  letter-spacing: .08em; color: var(--cream);
}
.stat {
  gap: 8px;
  padding: 8px 12px 8px 9px;
  border: 1px solid rgba(255,255,255,.5); border-radius: 8px;
  background: var(--cream); color: var(--navy);
  backdrop-filter: none;
}
.stat img { width: 22px; height: 22px; flex: 0 0 auto; }
.stat .num {
  color: var(--red);
  font: 700 1rem/1 var(--display);
  font-variant-numeric: tabular-nums;
}

.search:focus-within,
.ctl select:focus,
.multi-trigger[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(127,18,24,.12); }
.vt.active { box-shadow: 0 4px 14px -7px rgba(127,18,24,.55); }
.multi-trigger.has-selection { background: var(--navy); border-color: var(--navy); color: var(--white); }
.multi-trigger.has-selection:hover { background: var(--navy-soft); }
.multi-trigger.has-selection .multi-count { color: var(--cream); }
#resultCount {
  font: 700 1.35rem/1.35 var(--display);
  font-style: normal; color: var(--navy);
}

.card {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.card:hover { border-color: rgba(127,18,24,.28); }
.card:focus-visible { border-color: var(--primary); }
.card h3 { font-family: var(--display); }
.thumb, .modal-hero, .strip-thumb { background: var(--navy); }
.source-pill { background: rgba(0,29,85,.92); }
.views-pill { background: var(--primary); color: var(--white); }
.tier-badge { box-shadow: none; }
.tier-badge.gold { background: var(--navy); color: var(--white); }
.tier-badge.flame { background: var(--red); color: var(--white); }
.thumb-fallback,
.modal-hero-fallback { background: var(--navy); color: var(--white); }
.thumb-fallback-mark,
.modal-hero-fallback span { font-family: var(--display); font-style: normal; }
.thumb-fallback-tag,
.modal-hero-fallback small { color: var(--cream); }
.meta-pill.type { background: rgba(0,29,85,.08); color: var(--navy); }
.fu-marker {
  background: var(--red); border: 3px solid var(--white);
  box-shadow: 0 4px 12px -3px rgba(0,29,85,.55);
}

.about {
  padding: 84px 24px 72px;
  border-top: 8px solid var(--navy);
  background: var(--red); color: var(--white);
}
.about-inner {
  max-width: var(--max);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(2rem, 6vw, 6rem); align-items: start;
}
.about-copy { max-width: 720px; }
.about-kicker {
  margin: 0 0 12px !important;
  font: 600 .82rem/1.4 var(--body) !important;
  letter-spacing: .08em; color: rgba(255,255,255,.68) !important;
}
.about h2 {
  margin: 0 0 18px;
  font-family: var(--display); font-style: normal; font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1.15;
  color: var(--cream); text-wrap: balance;
}
.about p {
  margin: 0; font-size: 1.05rem; line-height: 1.75;
  color: rgba(255,255,255,.82); text-wrap: pretty;
}
.about-points { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.about-point {
  min-height: 138px; padding: 20px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  border-top: 4px solid var(--navy); border-radius: 8px;
  background: var(--cream); color: var(--navy);
}
.about-point img { width: 42px; height: 42px; }
.about-point span { font: 700 1rem/1.35 var(--display); }
footer { background: var(--navy); color: rgba(255,255,255,.78); }
footer .dot { color: var(--cream); }
.modal-overlay { background: rgba(0,29,85,.84); }

@media (max-width: 720px) {
  .navlink { display: none; }
  .brand-mark { max-width: 145px; font-size: .74rem; line-height: 1.2; }
  .hero { padding: 28px 20px 24px; }
  .hero-collage { inset: 0; grid-template-columns: repeat(3, 1fr); opacity: .22; }
  .hero-veil { background: rgba(127,18,24,.9); }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-emblem { display: none; }
  .hero-en { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .hero-th { font-size: clamp(1.45rem, 7vw, 2.2rem); }
  .hero-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { width: 100%; font-size: .82rem; }
  .about-inner { grid-template-columns: 1fr; gap: 32px; }
  .about-points { gap: 10px; }
  .about-point { min-height: 118px; padding: 16px; }
}

@media (max-width: 360px) {
  .topbar { padding-inline: 10px; }
  .brand { gap: 8px; }
  .brand-seal { width: 38px; height: 38px; }
  .brand-mark { max-width: 145px; font-size: .72rem; }
  .lt { padding-inline: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar, .controls, .card, .thumb img, .hero-play-icon { transition: none; }
}

/* Journey bar: sort chips + filter sheet */
.sort-pills {
  display: flex; align-items: center; gap: 8px;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none;
}
.sort-pills::-webkit-scrollbar { display: none; }
.sort-label {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-soft); white-space: nowrap;
}
.sort-pill {
  border: 1px solid var(--line); background: #fff;
  padding: 7px 12px; border-radius: 999px;
  font-weight: 600; font-size: 13px; color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
.sort-pill:hover { border-color: var(--red); color: var(--red-dark); }
.sort-pill.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}
.locate-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--navy);
  font-weight: 700; font-size: 13px; cursor: pointer;
  flex: 0 0 auto;
}
.locate-btn:hover { border-color: var(--navy); }
.locate-btn.locating { opacity: .6; }
.filter-open-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink);
  font-weight: 700; font-size: 13px; cursor: pointer;
  box-shadow: var(--shadow-card); flex: 0 0 auto;
}
.filter-open-btn:hover { border-color: var(--red); color: var(--red-dark); }
.filter-open-btn.has-selection,
.filter-open-btn[aria-expanded="true"] {
  background: var(--navy); border-color: var(--navy); color: var(--white);
}
.filter-count {
  min-width: 18px; padding: 1px 6px; border-radius: 999px;
  background: var(--red); color: #fff; font-size: 11px; font-weight: 800;
  text-align: center; line-height: 1.45;
}
.filter-open-btn.has-selection .filter-count { background: var(--cream); color: var(--navy); }

.active-chips {
  max-width: var(--max); margin: 8px auto 0;
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.active-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: var(--primary); color: var(--white);
  padding: 5px 10px; border-radius: 999px;
  font: 600 12px/1.3 var(--body); cursor: pointer;
}
.active-chip:hover { background: var(--navy-soft); }
.chip-reset { margin-left: 2px; }

.filter-sheet[hidden],
.filter-overlay[hidden],
.empty-state[hidden],
.grid[hidden],
.filter-count[hidden],
.active-chips[hidden],
.map-empty[hidden] { display: none !important; }

.filter-overlay {
  position: fixed; inset: 0; z-index: 1800;
  background: rgba(0,29,85,.46);
}
.filter-sheet {
  position: fixed; z-index: 1801;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(440px, 92vw); max-height: min(82vh, 760px);
  background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
  overflow: hidden;
}
body.filter-open { overflow: hidden; }
.filter-sheet-head,
.filter-sheet-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.filter-sheet-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.filter-sheet-head h2 {
  margin: 0; font: 700 1.1rem/1.3 var(--display); color: var(--navy);
}
.filter-sheet-done {
  border: 0; background: none; color: var(--red);
  font-weight: 800; font-size: 14px; cursor: pointer; padding: 4px 0;
}
.filter-sheet-body {
  overflow-y: auto; padding: 8px 0 16px; flex: 1;
}
.sheet-section { padding: 12px 18px 6px; }
.sheet-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin-bottom: 8px;
}
.sheet-section-head h3 {
  margin: 0; font-size: 12px; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft);
}
.sheet-count { font-size: 12px; font-weight: 700; color: var(--red-dark); }
.sheet-section.has-selection .sheet-count { color: var(--navy); }
.sheet-section .multi-search { margin-bottom: 8px; }
.sheet-actions { display: flex; gap: 14px; margin: 0 0 6px; }
.sheet-list { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.award-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.award-pill {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  border: 1px solid var(--line); background: #fff;
  padding: 8px 12px; border-radius: 12px;
  cursor: pointer; text-align: left; color: var(--ink);
}
.award-pill span { font-size: 13px; font-weight: 700; }
.award-pill small { font-size: 11px; color: var(--ink-soft); }
.award-pill:hover { border-color: var(--red); }
.award-pill.active {
  background: var(--primary); border-color: var(--primary); color: var(--white);
}
.award-pill.active small { color: rgba(255,255,255,.72); }
.filter-apply {
  border: 0; background: var(--red); color: #fff8ed;
  padding: 10px 16px; border-radius: 10px; cursor: pointer;
  font-weight: 800; font-size: 14px;
}
.filter-apply:hover { background: var(--red-dark); }
.filter-sheet-foot .reset { margin-left: 0; padding-left: 0; }

.card-journey {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}
.card-journey .btn { padding: 7px 11px; font-size: 12px; }
.empty-state {
  max-width: 520px; margin: 28px auto 64px; padding: 28px 24px;
  text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-card);
}
.empty-kicker {
  margin: 0 0 8px; font: 700 1rem/1.3 var(--display); color: var(--red);
}
.empty-title {
  margin: 0 0 8px; font: 700 1.35rem/1.3 var(--display); color: var(--navy);
}
.empty-body { margin: 0 0 18px; color: var(--ink-soft); }
.map-empty {
  position: absolute; left: 50%; top: 28%; transform: translateX(-50%);
  z-index: 5; width: min(360px, 90vw);
  padding: 22px 20px; border-radius: 14px;
  background: rgba(246,240,228,.96); text-align: center;
  box-shadow: var(--shadow-pop);
}
#mapView { position: relative; }

@media (max-width: 720px) {
  .controls-row.journey { flex-wrap: wrap; align-items: stretch; }
  .sort-pills { padding-bottom: 2px; flex: 1 1 100%; }
  .sort-label { display: none; }
  .locate-btn span { display: none; }
  .locate-btn { height: 36px; padding-inline: 10px; }
  .filter-open-btn { height: 36px; padding-inline: 12px; margin-left: auto; }
  .strip-reset { display: none; }
  .filter-sheet {
    left: 0; right: 0; top: auto; bottom: 0;
    transform: none; width: 100%; max-width: none;
    max-height: min(88vh, 720px);
    border-radius: 18px 18px 0 0;
  }
  .sheet-list { max-height: 180px; }
  .card-journey .btn { flex: 1 1 auto; justify-content: center; }
  .grid { grid-template-columns: 1fr; gap: 12px; }
  .card { min-height: 112px; }
  .thumb { flex: 0 0 112px; flex-basis: 112px; width: 112px; max-width: 112px; min-height: 112px; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-sheet, .filter-overlay { animation: none; }
}

/* ——— Dee FAIL lock (wins cascade) ——— */
.card {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
}
.card > .thumb {
  flex: 0 0 128px !important;
  width: 128px !important;
  max-width: 140px !important;
  min-height: 128px;
}
.card > .card-body { flex: 1 1 auto; min-width: 0; }
.card-clip {
  align-self: flex-start;
  margin-top: 2px;
  padding: 5px 10px;
  font-size: 12px;
}
.trust-views { color: #7F1218 !important; }
.views-pill,
.sort-pill.active {
  background: #7F1218 !important;
  border-color: #7F1218 !important;
  color: #fff !important;
}
.vt.active {
  background: #7F1218 !important;
  color: #fff !important;
}
.card-journey .btn[data-act="map"],
.btn.quiet {
  background: #fff !important;
  color: var(--ink-soft) !important;
  border: 1px solid var(--line) !important;
}

body.view-map {
  display: flex;
  flex-direction: column;
  height: 100dvh;
  overflow: hidden;
}
body.view-map .hero,
body.view-map .about,
body.view-map footer { display: none !important; }
body.view-map .topbar,
body.view-map .controls { flex: 0 0 auto; position: sticky; }
body.view-map.nav-hidden .topbar { transform: none; }
body.view-map #content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.view-map #mapView.active {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}
body.view-map #map {
  flex: 1 1 auto;
  width: 100%;
  height: 100% !important;
  min-height: 0 !important;
}
.fu-marker { cursor: pointer; }

body.map-focus .controls-row.filter-pills-row,
body.map-focus .hero,
body.map-focus .about,
body.map-focus footer { display: none !important; }

.admin-gate {
  border: 0; background: none; color: rgba(255,255,255,.55);
  font: 600 12px/1.3 var(--body); cursor: pointer; padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
.admin-gate:hover { color: #fff; }
.admin-lock {
  position: fixed; inset: 0; z-index: 1900;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,29,85,.72); padding: 24px;
}
.admin-lock[hidden] { display: none !important; }
.admin-lock-card {
  width: min(420px, 92vw);
  background: var(--cream); color: var(--ink);
  border-radius: 12px; padding: 22px 22px 18px;
  box-shadow: var(--shadow-pop);
}
.admin-lock-card h2 { margin: 0 0 8px; font: 700 1.2rem/1.3 var(--display); }
.admin-lock-card p { margin: 0 0 16px; color: var(--ink-soft); }

.filter-pills {
  display: flex; align-items: center; gap: 8px;
  width: 100%; overflow-x: auto; scrollbar-width: none;
}
.filter-pills::-webkit-scrollbar { display: none; }
.facet-pill {
  flex: 0 0 auto;
  border: 1px solid var(--line); background: #fff;
  padding: 6px 12px; border-radius: 999px;
  font-weight: 600; font-size: 13px; color: var(--ink);
  cursor: pointer; white-space: nowrap;
}
.facet-pill:hover { border-color: var(--red); color: var(--red-dark); }
.facet-pill.active {
  background: #7F1218; border-color: #7F1218; color: #fff;
}
.strip-reset { margin-left: 0; }

@media (max-width: 720px) {
  .card > .thumb {
    flex: 0 0 112px !important;
    width: 112px !important;
    max-width: 112px !important;
    min-height: 112px;
  }
  .grid { grid-template-columns: 1fr !important; }
}

/* Compact atlas intro: keep Fatty Uncle's voice without pushing the guide below the fold. */
.hero { padding: 18px 24px 16px; }
.sheet-section[data-key="tier"], .sheet-section[data-key="source"] { display: none; }
.discovery-category { display: grid; gap: 8px; padding: 16px 18px 8px; font-weight: 600; }
.discovery-category select { width: 100%; min-width: 0; padding: 10px 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.place-image-placeholder { height: 100%; min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #eeeae1; color: var(--ink-soft); font-size: 12px; }
.place-image-placeholder img { width: 32px; height: 32px; opacity: .5; }
.card .thumb::after { display: none; }
.image-unavailable { background: #eeeae1; }
.image-unavailable::before { content: 'รอภาพร้าน'; display: grid; place-items: center; height: 100%; color: var(--ink-soft); font-size: 12px; }
.modal-title { z-index: 2; font-style: normal; }
.modal-title h2 { font-style: normal; }
.hero-inner { grid-template-columns: minmax(0, 1fr) 96px; gap: clamp(1rem, 3vw, 2.5rem); }
.eyebrow { margin-bottom: 8px; }
.hero h1 {
  flex-direction: row; flex-wrap: wrap; align-items: baseline;
  gap: 4px 14px; margin-bottom: 7px;
}
.hero-en { font-size: clamp(2.2rem, 3.3vw, 3.35rem); }
.hero-th { margin-top: 0; font-size: clamp(1.45rem, 2.1vw, 2.15rem); }
.lede { margin-bottom: 10px; font-size: clamp(.95rem, 1.2vw, 1.08rem); }
.hero-support, .hero-emblem span { display: none; }
.hero-emblem img { width: 88px; height: 88px; border-width: 2px; }
.stat { padding: 6px 10px 6px 7px; font-size: 12px; }
.stat img { width: 19px; height: 19px; }

@media (max-width: 720px) {
  .hero { padding: 16px; }
  .hero-inner { grid-template-columns: minmax(0,1fr); }
  .hero h1 { gap: 2px 10px; }
  .hero-en { font-size: clamp(2rem, 10vw, 2.8rem); }
  .hero-th { font-size: clamp(1.35rem, 6.5vw, 1.9rem); }
  .lede { margin-bottom: 10px; }
}
:root .source-review { margin:16px 0; padding:12px; border:1px solid #ddd4c6; border-radius:8px; overflow-wrap:anywhere; }
:root .source-review p { white-space:pre-line; font-size:13px; }
:root .source-caveat { font-size:13px; color:#555; overflow-wrap:anywhere; }
:root .map-coverage { margin:0; padding:8px 14px; background:#fff8e8; color:#503a20; font-size:12px; flex:0 0 auto; }

/* Map discovery: fixed upper map, independently scrollable restaurant results. */
body.view-map #content { overflow:hidden; }
body.view-map #mapView.active { order:0; flex:0 0 50%; min-height:190px; max-height:50dvh; }
body.view-map #listView { order:1; flex:1 1 0; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:0 24px 24px; }
body.view-map .resultbar { position:sticky; top:0; background:var(--cream); z-index:2; padding:12px 0; margin:0; }
body.view-map .resultbar .note { display:none; }
body.view-map .grid { margin:0 auto; max-width:var(--max); }
body.view-map .card { position:relative; }
body.view-map .card.map-selected { outline:3px solid var(--red); outline-offset:-3px; background:#fff7f3; }
body.view-map .card-pin { align-self:start; margin:8px 0 0; font-size:14px; min-height:40px; }
.card-pin:disabled { opacity:.7; cursor:default; }
.map-card-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:8px; }
.identity-review { border-left:3px solid #7F1218; background:#fff0e8; color:#64201a; padding:8px 10px; font-size:14px; line-height:1.5; }
body.view-map .map-card-actions .btn { margin:0; min-height:40px; font-size:14px; padding:7px 10px; }
.map-actions { position:absolute; z-index:500; top:12px; left:60px; right:12px; display:flex; justify-content:center; gap:8px; pointer-events:none; }
.map-actions button { pointer-events:auto; box-shadow:0 2px 8px #0002; font-size:14px; min-height:44px; }
.map-actions button[hidden] { display:none; }
.map-results-tools { display:flex; align-items:center; justify-content:space-between; background:#fff; border-block:1px solid var(--line); flex:0 0 auto; gap:8px; padding:6px 14px; }
:root .map-results-tools .map-coverage { padding:0; font-size:14px; background:none; color:var(--ink); }
.map-results-tools button { font-size:14px; flex-shrink:0; min-height:40px; }
.fu-cluster { display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:#7F1218; color:white; border:3px solid white; box-shadow:0 2px 7px #0004; font:600 14px var(--body); }
.map-empty { pointer-events:none; }
.map-empty button { pointer-events:auto; }
body.view-map .controls { position:static; padding-block:8px; }
body.view-map .sort-pills { flex-wrap:nowrap; overflow:auto; }
body.view-map .sort-pill { white-space:nowrap; }
@media (max-width:720px) {
  body.view-map .topbar { padding-block:6px; gap:6px; }
  body.view-map .controls-row.journey { flex-wrap:nowrap; gap:6px; }
  body.view-map .sort-pills { flex:1; min-width:0; }
  body.view-map .sort-label, body.view-map .locate-btn, body.view-map .strip-reset { display:none; }
  body.view-map .filter-open-btn { flex:0 0 auto; }
  body.view-map #mapView.active { flex-basis:50%; }
  body.view-map #listView { padding:0 12px 20px; }
  .map-results-tools { padding:6px 8px; align-items:center; }
  :root .map-results-tools .map-coverage { font-size:12px; line-height:1.5; }
  .map-results-tools button { font-size:12px; max-width:132px; padding:6px; }
  body.view-map .card-pin { margin:8px 0 0; }
}
@media (max-height:600px) {
  body.view-map #mapView.active { min-height:120px; flex-basis:46%; }
  .map-results-tools { padding-block:2px; }
}
