/* CLEHappyHour.com — styles
   "Retro Cleveland postcard": parchment, lake teal, terracotta stamp.
   Mobile-first, no external fonts, no build step.
   Spacing scale: 4px base. Type scale: ~1.25. */

:root {
  --parchment: #f5ecd7;
  --parchment-2: #ede1bf;
  --header-bg: #f8eed5;
  --navy: #2d5a6b;        /* surface teal (command bar, stamps) */
  --navy-2: #456e7e;
  --accent-ink: #2d5a6b;  /* teal as TEXT on light surfaces */
  --sunset: #c4634a;      /* terracotta surface accents */
  --sunset-2: #dd8566;
  --sunset-deep: #a04631; /* terracotta with 4.5:1 on cream */
  --sunset-ink: #9c4630;  /* terracotta as small text on parchment */
  --mustard: #c79a3a;
  --cream: #faf3e0;
  --ink: #3a2817;
  --ink-2: #6b5a45;
  --rule: #d4c9ae;
  --card: #f7efd9;
  --card-2: #f1e6c9;
  --shadow: 0 1px 1px rgba(58, 40, 23, 0.08), 0 3px 10px rgba(58, 40, 23, 0.06);
  --radius: 6px;
  --radius-lg: 10px;
  --maxw: 1240px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.22  0 0 0 0 0.15  0 0 0 0 0.08  0 0 0 0.05 0'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

@media (prefers-color-scheme: dark) {
  :root {
    --parchment: #211c13;
    --parchment-2: #191510;
    --header-bg: #262017;
    --navy: #24414d;
    --navy-2: #36586a;
    --accent-ink: #93c2d4;
    --sunset: #b35a41;
    --sunset-2: #c97757;
    --sunset-deep: #a04631;
    --sunset-ink: #e2926e;
    --mustard: #d2a94f;
    --cream: #f5eedc;
    --ink: #ece0c8;
    --ink-2: #b5a585;
    --rule: #4a4030;
    --card: #2b2418;
    --card-2: #332b1d;
    --shadow: 0 1px 1px rgba(0, 0, 0, 0.3), 0 3px 10px rgba(0, 0, 0, 0.25);
    --grain: none;
  }
}

* { box-sizing: border-box; }

html { scroll-padding-top: 132px; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--parchment);
  background-image: var(--grain);
  background-repeat: repeat;
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent-ink); text-decoration-color: var(--sunset-2); text-underline-offset: 2px; }
a:hover { color: var(--sunset-ink); }

:focus-visible {
  outline: 2px solid var(--sunset-deep);
  outline-offset: 2px;
  border-radius: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* --- Compact header ------------------------------------------------- */

.site-header {
  position: relative;
  background: var(--header-bg);
  border-bottom: 2px double var(--rule);
  padding: 14px 0 34px;
  overflow: hidden;
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  pointer-events: none;
  opacity: 0.8;
  background-repeat: repeat-x;
  background-position: center bottom;
  background-size: auto 100%;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 180' preserveAspectRatio='xMidYMax meet'><g fill='%232d5a6b'><polygon points='0,180 0,150 30,150 30,130 80,130 80,150 110,150 110,120 150,120 150,140 185,140 185,110 225,110 225,130 250,130 250,180'/><polygon points='250,180 250,100 280,100 290,70 310,70 320,100 345,100 345,60 370,60 375,40 395,40 400,60 425,60 425,100 445,100 445,80 475,80 475,180'/><polygon points='475,180 475,95 500,95 500,40 525,40 525,20 545,20 545,0 560,0 575,20 595,20 595,40 620,40 620,95 645,95 645,180'/><polygon points='645,180 645,110 670,110 680,80 700,80 710,110 735,110 735,90 760,90 760,130 790,130 790,180'/><polygon points='790,180 790,140 830,140 870,95 910,140 950,140 950,180'/><polygon points='950,180 950,130 985,130 985,110 1010,110 1010,130 1045,130 1045,150 1080,150 1080,135 1115,135 1115,155 1160,155 1160,180'/><polygon points='1160,180 1160,155 1200,155 1200,180'/></g></svg>");
}
.header-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-header h1 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.005em;
  color: var(--accent-ink);
  line-height: 1.1;
}
.site-header .heart { display: inline-block; transform: translateY(1px) rotate(-6deg); }
.site-header .tagline {
  font-family: var(--serif);
  font-style: italic;
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}
.page-nav {
  font-family: var(--serif);
  font-size: 0.95rem;
}
.page-nav a {
  color: var(--accent-ink);
  text-decoration: none;
  border-bottom: 1.5px solid var(--sunset-2);
  padding-bottom: 1px;
  font-weight: 600;
}
.page-nav a:hover { color: var(--sunset-ink); border-bottom-color: var(--sunset); }

/* --- Sticky command bar ---------------------------------------------- */

.command-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--navy);
  color: var(--cream);
  padding: 6px 0 8px;
  border-bottom: 2px solid var(--sunset);
  box-shadow: 0 1px 0 var(--mustard);
}
.cb-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cb-top { min-height: 30px; }
.cb-time {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
}
.cb-spacer { flex: 1; }
.cb-icon {
  background: transparent;
  border: 1px solid rgba(250, 243, 224, 0.25);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1;
  padding: 5px 8px;
  cursor: pointer;
  color: var(--cream);
}
.cb-icon:hover { border-color: rgba(250, 243, 224, 0.55); }
.cb-icon.is-active {
  background: var(--sunset-deep);
  border-color: var(--sunset-deep);
}
.cb-filters {
  background: transparent;
  border: 1px solid rgba(250, 243, 224, 0.4);
  border-radius: 999px;
  color: var(--cream);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cb-filters:hover { border-color: rgba(250, 243, 224, 0.7); }
.filter-count-badge:empty { display: none; }
.filter-count-badge {
  background: var(--sunset-deep);
  color: var(--cream);
  border-radius: 999px;
  font-size: 0.72rem;
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cb-seg { margin-top: 7px; }
.seg-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(250, 243, 224, 0.45);
  border-radius: 999px;
  color: var(--cream);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 4px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.seg-btn:hover { border-color: rgba(250, 243, 224, 0.8); }
.seg-btn.is-active {
  background: var(--sunset-deep);
  border-color: var(--sunset-deep);
}
.seg-count:empty { display: none; }
.seg-count {
  background: rgba(250, 243, 224, 0.22);
  border-radius: 999px;
  font-size: 0.74rem;
  min-width: 19px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  font-variant-numeric: tabular-nums;
}
.live-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #8fd18a;
  animation: pulse 2.2s infinite;
}
.seg-btn.is-active .live-dot { background: var(--cream); animation: none; }
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.cb-hoods {
  margin-top: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: 6px;
}
.cb-hoods::-webkit-scrollbar { display: none; }
.hood-pill {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid rgba(250, 243, 224, 0.3);
  border-radius: 999px;
  color: #e8eff3;
  font: inherit;
  font-size: 0.8rem;
  padding: 3px 11px;
  cursor: pointer;
  white-space: nowrap;
}
.hood-pill:hover { border-color: rgba(250, 243, 224, 0.65); }
.hood-pill.is-active {
  background: rgba(250, 243, 224, 0.92);
  border-color: rgba(250, 243, 224, 0.92);
  color: #1d3b47;
  font-weight: 600;
}

.cb-search { margin-top: 8px; }
.cb-search input[type="search"] {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(250, 243, 224, 0.4);
  background: rgba(250, 243, 224, 0.95);
  color: #2a2417;
}
.cb-search input[type="search"]:focus {
  outline: 2px solid var(--mustard);
  outline-offset: 1px;
}

/* --- Sections --------------------------------------------------------- */

.hh-section { margin: 22px 0 12px; }

.lede {
  margin: 4px 0 12px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 70ch;
}
.lede strong { color: var(--ink); font-weight: 600; }

.trust-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 28px;
  margin-bottom: 12px;
}
.trust-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-2);
}
.trust-note time { font-weight: 600; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.section-head h2 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  margin: 0;
  color: var(--accent-ink);
  letter-spacing: -0.005em;
}
.section-note {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--ink-2);
}

/* --- Status groups ----------------------------------------------------- */

.vgroup { margin: 0 0 18px; }
.group-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.group-head .live-dot { background: #4c8f46; }
.group-head.g-now { color: var(--sunset-ink); }
.group-count {
  font-family: system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--card-2);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 1px 9px;
  font-variant-numeric: tabular-nums;
}

details.vgroup > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card-2);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink-2);
}
details.vgroup > summary::-webkit-details-marker { display: none; }
details.vgroup > summary .chev {
  margin-left: auto;
  transition: transform 0.15s ease;
  font-size: 0.8rem;
  color: var(--ink-2);
}
details.vgroup[open] > summary { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
details.vgroup[open] > summary .chev { transform: rotate(180deg); }
details.vgroup > .grid { margin-top: 12px; }

/* --- Card grid + cards -------------------------------------------------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 12px;
}
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  border-left: 3px solid var(--rule);
  padding: 10px 14px 11px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 3px;
  position: relative;
  min-height: 96px;
  content-visibility: auto;
  contain-intrinsic-size: auto 120px;
  cursor: default;
}
.card.active-now { border-left-color: var(--sunset); }
.card.starting-soon { border-left-color: var(--navy-2); }

.card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.card-top .window { color: var(--ink-2); }
.card.active-now .card-top .window { color: var(--sunset-ink); }
.card.starting-soon .card-top .window { color: var(--accent-ink); }
.card-top .perks {
  font-weight: 400;
  letter-spacing: 0.12em;
  white-space: nowrap;
  font-size: 0.82rem;
}
.card-top .dist {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  margin-right: 4px;
}

.card .venue-name {
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.card .venue-name a { color: var(--accent-ink); text-decoration: none; }
.card .venue-name a:hover { color: var(--sunset-ink); text-decoration: underline; }

.card .meta {
  font-size: 0.85rem;
  color: var(--ink-2);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card.expanded .meta { -webkit-line-clamp: unset; display: block; }
.card .meta .hood-name { font-weight: 600; color: var(--ink); }

.card .stamps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.stamp {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.stamp.today-only {
  background: #f4dc7a;
  color: #5a4310;
  border: 1.5px solid #c79a3a;
  transform: rotate(-1.5deg);
}
.stamp.rare-find {
  background: var(--card-2);
  color: var(--sunset-ink);
  border: 1.5px solid var(--sunset-2);
  transform: rotate(1deg);
}

.card.surprise-picked {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.card.skeleton {
  min-height: 120px;
  background: linear-gradient(100deg, var(--card) 40%, var(--card-2) 50%, var(--card) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-left-color: var(--rule);
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

.empty {
  background: var(--card-2);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  color: var(--ink-2);
  padding: 22px 16px;
  text-align: center;
  font-size: 0.95rem;
}

/* --- Browse layout + map ------------------------------------------------ */

.browse-layout { display: block; }
.map-panel { display: none; }
.browse-map {
  width: 100%;
  height: 62vh;
  min-height: 320px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--card-2);
}
body.map-open .map-panel {
  display: block;
  margin-bottom: 16px;
}

@media (min-width: 1100px) {
  .browse-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 20px;
    align-items: start;
  }
  .map-panel {
    display: block;
    position: sticky;
    top: 130px;
  }
  .browse-map { height: calc(100vh - 150px); min-height: 420px; }
  .cb-map-toggle { display: none; }
}

.map-fallback {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.map-fallback p { margin: 0; }
.map-retry {
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--cream);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 18px;
  cursor: pointer;
}
.map-retry:hover { background: var(--navy-2); }

.leaflet-popup-content-wrapper {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.leaflet-popup-tip { background: var(--card); }
.leaflet-popup-content { font-family: system-ui, sans-serif; font-size: 0.85rem; margin: 10px 14px; }
.leaflet-popup-content .popup-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  color: var(--accent-ink);
  text-decoration: none;
}
.leaflet-popup-content .popup-name:hover { color: var(--sunset-ink); }
.leaflet-popup-content .popup-hood { color: var(--ink-2); font-size: 0.78rem; margin-top: 1px; }
.leaflet-popup-content .popup-deal { margin: 6px 0 0; }
.leaflet-container a.leaflet-popup-close-button { color: var(--ink-2); }

/* --- Newly opened -------------------------------------------------------- */

.new-section {
  border-top: 2px double var(--rule);
  padding-top: 22px;
  margin-top: 34px;
}
.btn-new-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--sunset-ink);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 4px 13px;
  cursor: pointer;
}
.btn-new-toggle:hover { border-color: var(--sunset-2); }

.new-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.mini-card {
  flex: 0 0 158px;
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 104px;
}
.mini-card .opened-when { margin: 0; }
.mini-card .venue-name {
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}
.mini-card .venue-name a { color: var(--accent-ink); text-decoration: none; }
.mini-card .venue-name a:hover { color: var(--sunset-ink); }
.mini-card .hood { font-size: 0.78rem; color: var(--ink-2); margin: 0; }
.hh-cross {
  margin-top: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-ink);
}

.opened-when {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sunset-ink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.new-grid .card { border-left: 3px solid var(--sunset-2); cursor: default; }
.new-grid .card .hood { font-size: 0.85rem; color: var(--ink-2); margin: 0; }
.new-grid .card .concept { font-size: 0.9rem; color: var(--ink); margin: 0; line-height: 1.4; }
.menu-link {
  align-self: flex-start;
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 4px 12px;
  background: var(--card-2);
}
.menu-link:hover {
  background: var(--navy);
  color: var(--cream);
  border-color: var(--navy);
}
.new-foot {
  margin-top: 10px;
  font-style: italic;
  color: var(--ink-2);
  font-size: 0.82rem;
}

/* --- All-venues text index (SEO + no-JS fallback) -------------------------- */

.all-venues {
  border-top: 2px double var(--rule);
  padding-top: 18px;
  margin-top: 30px;
}
.all-venues summary {
  cursor: pointer;
  list-style: none;
}
.all-venues summary::-webkit-details-marker { display: none; }
.all-venues summary h2 {
  display: inline;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-ink);
}
.all-venues summary::after {
  content: " ▾";
  color: var(--ink-2);
}
.all-venues details[open] summary::after { content: " ▴"; }
.all-venues .hood-block { margin: 14px 0 0; }
.all-venues h3 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--ink);
}
.all-venues ul { margin: 0 0 8px; padding-left: 18px; }
.all-venues li { font-size: 0.9rem; margin: 2px 0; color: var(--ink-2); }
.all-venues li a { font-weight: 600; }

/* --- Tips CTA + footer ----------------------------------------------------- */

.tips-cta {
  margin-top: 40px;
  background: var(--parchment-2);
  border-top: 2px double var(--rule);
  padding: 26px 0;
  text-align: center;
}
.tips-cta-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--accent-ink);
}
.tips-cta-body {
  max-width: 520px;
  margin: 0 auto 14px;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.btn-tip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: var(--cream);
  border-radius: 999px;
  padding: 9px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.btn-tip:hover, .btn-tip:focus-visible { background: var(--navy-2); color: var(--cream); }

.site-footer {
  padding: 24px 0 38px;
  background: var(--parchment-2);
  color: var(--ink-2);
  font-size: 0.9rem;
  font-family: var(--serif);
}
.site-footer p { margin: 4px 0; font-style: italic; }
.site-footer .fine { font-size: 0.8rem; color: var(--ink-2); font-style: normal; }

/* --- Filter dialog ------------------------------------------------------ */

.filter-dialog {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--parchment);
  color: var(--ink);
  padding: 0;
  max-width: 420px;
  width: calc(100vw - 40px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}
.filter-dialog::backdrop { background: rgba(30, 22, 12, 0.45); }
.filter-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 0;
}
.filter-dialog-head h3 {
  font-family: var(--serif);
  margin: 0;
  font-size: 1.15rem;
  color: var(--accent-ink);
}
.dialog-close {
  background: transparent;
  border: 0;
  font-size: 1rem;
  cursor: pointer;
  color: var(--ink-2);
  padding: 6px;
}
.filters { padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.filters fieldset { border: 0; margin: 0; padding: 0; }
.filter-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 8px;
  padding: 0;
}
.filter-days { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-days .filter-label { width: 100%; }
.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 0 12px;
  height: 32px;
  cursor: pointer;
  font-size: 0.88rem;
  background: var(--card);
  position: relative;
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--sunset-2); }
.chip:has(input:focus-visible) { outline: 2px solid var(--sunset-deep); outline-offset: 2px; }
.chip:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--cream);
  font-weight: 600;
}
.chip-day { min-width: 38px; justify-content: center; }
.chip-day.is-today::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--sunset);
}
.filter-perks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.filter-perks .filter-label { width: 100%; }
.filter-perks label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.92rem;
  cursor: pointer;
}
.filter-perks input[type="checkbox"] {
  width: 17px; height: 17px;
  accent-color: var(--navy);
}
.filter-row { display: flex; justify-content: space-between; gap: 10px; }
.btn-reset {
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  font: inherit;
  font-size: 0.88rem;
  padding: 7px 16px;
  cursor: pointer;
}
.btn-reset:hover { border-color: var(--sunset-2); color: var(--sunset-ink); }
.btn-apply {
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 999px;
  color: var(--cream);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 20px;
  cursor: pointer;
}
.btn-apply:hover { background: var(--navy-2); }

/* --- Mobile tweaks --------------------------------------------------------- */

@media (max-width: 520px) {
  .wrap { padding: 0 14px; }
  html { scroll-padding-top: 124px; }
  .site-header { padding: 12px 0 30px; }
  .site-header::after { height: 22px; opacity: 0.7; }
  .page-nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hh-section { margin-top: 16px; }
  .trust-row { flex-wrap: wrap; min-height: 24px; }
  .cb-time { font-size: 0.78rem; }
  .seg-btn { font-size: 0.82rem; padding: 4px 11px; }
  .browse-map { height: 56vh; }
}

/* --- Option A: postcard-modernized cards ---------------------------------- */

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.status-chip .live-dot { width: 7px; height: 7px; flex: none; }
.s-now  { background: #e0edcd; color: #3b6d11; }
.s-now .live-dot { background: #4c8f46; }
.s-soon { background: #dde9ee; color: #24586b; }
.s-later { background: var(--card-2); color: var(--ink-2); }
.s-off  { background: var(--card-2); color: var(--ink-2); }

.card .deal-headline {
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--sunset-ink);
  margin: 5px 0 1px;
  line-height: 1.3;
}
.card .venue-line {
  font-family: var(--serif);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}
.card .venue-line a { color: var(--accent-ink); text-decoration: none; }
.card .venue-line a:hover { color: var(--sunset-ink); text-decoration: underline; }
.card .venue-line .hood-tag {
  font-family: system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.card .meta { margin-top: 2px; }

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}
.day-dots { display: inline-flex; gap: 3px; }
.day-dots .dd {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  background: var(--card-2);
  color: #8a7a5e;
}
.day-dots .dd.on { background: var(--sunset); color: var(--cream); }

.stamp-mini {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sunset-ink);
  border: 1.5px solid var(--sunset-2);
  border-radius: 3px;
  padding: 0 5px;
  transform: rotate(-2deg);
  white-space: nowrap;
  opacity: 0.85;
}

.venue-detail .stamp-mini, .trust-note .stamp-mini { font-size: 0.72rem; }

@media (prefers-color-scheme: dark) {
  .s-now  { background: rgba(113, 173, 38, 0.16); color: #a3cd7f; }
  .s-now .live-dot { background: #8fd18a; }
  .s-soon { background: rgba(147, 194, 212, 0.14); color: #93c2d4; }
  .day-dots .dd { color: #8a8074; }
  .day-dots .dd.on { color: #2b2418; }
}
