:root {
  /* Southwest-modern palette — grounded, warm, Mountain West */
  --paper: #F6EFE3;            /* warm cream — primary surface */
  --paper-deep: #EADFC8;       /* one shade darker for depth */
  --ink: #1C1815;              /* warm near-black — body text */
  --ink-soft: rgba(28, 24, 21, 0.72);
  --ink-faint: rgba(28, 24, 21, 0.48);
  --sand: #E6DDCC;             /* neutral border / divider */
  --terracotta: #B94E29;       /* primary action — burnt orange-red */
  --terracotta-deep: #8F3A1E;  /* hover / emphasis */
  --rust-tint: #EBD5C7;        /* active pill background */
  --sage: #3B4A3A;             /* accent — deep forest */
  --sage-soft: rgba(59, 74, 58, 0.12);
  --mustard: #D89438;          /* traditional gold — stars */
  --marigold: #F3AC1F;         /* marigold pop — map pin accents, banner borders, squiggles, CTA */
  --marigold-pale: #FFF2B8;    /* pale companion — deal banner backgrounds, highlight surfaces */

  /* Back-compat aliases — legacy names still used inline across JS/HTML.
     Map them to the new palette so nothing breaks. */
  --primary: var(--terracotta);
  --primary-hover: var(--terracotta-deep);
  --secondary: var(--ink);
  --accent: var(--sage);
  --text-dark: var(--ink);
  --text-light: var(--paper);
  --bg-light: var(--paper);
  --bg-offwhite: var(--paper-deep);

  /* Typography */
  --font-display: 'Fraunces', 'Georgia', ui-serif, serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --border-radius: 10px;
  --border-radius-lg: 16px;
  --card-shadow: 0 2px 4px rgba(28, 24, 21, 0.04), 0 12px 28px -8px rgba(28, 24, 21, 0.12);
  --transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Base Reset & Typography */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}

h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.25rem; }

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 4rem 0;
}

/* Header */
header {
  background-color: var(--bg-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 0;
}

.logo {
  height: 28px;
  width: auto;
  max-width: none;
  object-fit: contain;
}

.logo-full {
  display: block;
}

.logo-icon {
  display: none;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--secondary);
}

.nav-links a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--secondary);
}

/* Hero Section — warm gradient mesh + grain, asymmetric editorial display type */
.hero {
  position: relative;
  color: var(--ink);
  padding: 4.5rem 0 5rem;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, #F0D5B0 0%, transparent 55%),
    radial-gradient(ellipse 70% 55% at 95% 95%, #E6A764 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 60% 50%, #F2E3C9 0%, transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-deep) 100%);
}

/* Noise / paper-grain overlay for warmth + depth — subtle, multiplied, non-interactive */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.9 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  opacity: 0.09;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

/* (The old decorative topo-curve that sat on the right is replaced by the live
   hero map — see .hero-map below.) */

/* ------------- HERO — text overlays a live Leaflet map on desktop; map
   becomes a short strip above the text on mobile. ------------- */

.hero {
  position: relative;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
}

.hero-map-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  cursor: pointer;
}

#hero-map-leaflet {
  position: absolute;
  inset: 0;
  background: var(--paper-deep);
}

/* Cream scrim: a slow diagonal fade originating from the top-left corner of
   the hero. Gradient angle 120deg means the gradient flows from top-left
   (solid cream) toward bottom-right (transparent), so the cream is densest
   where the eyebrow + headline sit and dissolves smoothly across the rest.
   Reaches fully transparent at 65% so the map's right ~third stays clean. */
.hero-map-scrim {
  position: absolute;
  inset: 0;
  z-index: 700; /* above Leaflet's marker pane (z-index: 600) */
  pointer-events: none;
  background: linear-gradient(
    120deg,
    var(--paper) 0%,
    rgba(246, 239, 227, 0.96) 12%,
    rgba(246, 239, 227, 0.86) 22%,
    rgba(246, 239, 227, 0.68) 33%,
    rgba(246, 239, 227, 0.45) 43%,
    rgba(246, 239, 227, 0.22) 53%,
    rgba(246, 239, 227, 0.06) 60%,
    rgba(246, 239, 227, 0) 65%
  );
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 520px;
  display: flex;
  align-items: center;
  pointer-events: none; /* let the map receive clicks except on interactive children */
  padding: 2.5rem 20px;
}

.hero-text {
  position: relative;
  pointer-events: auto;
  max-width: 540px;
}

/* Leaflet overrides — soften attribution so it doesn't clash with the hero */
.hero-map-wrap .leaflet-control-attribution {
  background: rgba(246, 239, 227, 0.7);
  color: var(--ink-faint);
  font-size: 10px;
  padding: 0 6px;
}
.hero-map-wrap .leaflet-control-attribution a {
  color: var(--terracotta-deep);
}

/* Hero map pins — custom divIcon wrapper (icons themselves are PNGs from
   assets/img/pins/ to match the /search icon vocabulary). */
.hero-map-pin-wrapper {
  cursor: pointer;
  transition: transform 0.15s ease-out;
}
.hero-map-pin-wrapper:hover {
  transform: scale(1.15);
  z-index: 1000;
}

@media (max-width: 899px) {
  /* Mobile mirrors the desktop pattern (text overlays a full-bleed map) but
     with a VERTICAL scrim instead of horizontal: cream from the top fades
     downward, so the headline sits on solid paper and the map reveals into
     Colorado as the fade clears. */
  .hero {
    min-height: 600px;
    padding: 0;
    display: block;
  }
  .hero-map-wrap {
    position: absolute;
    inset: 0;
    height: auto;
  }
  .hero-inner {
    position: relative;
    z-index: 1;
    min-height: 600px;
    padding: 2.25rem 20px 0;
    align-items: flex-start;
  }
  .hero-text {
    max-width: none;
  }
  .hero-lede-desktop-tail {
    /* On mobile we end the lede at "mapped in real time." — drop the trailing
       ", right where you are" fragment so the paragraph fits two lines. */
    display: none;
  }
  .hero-map-scrim {
    /* 180deg = top→bottom. Begins fading almost immediately so the map shows
       through behind the headline; reaches fully transparent by ~55%, leaving
       the bottom ~45% as clean map. */
    background: linear-gradient(
      180deg,
      var(--paper) 0%,
      rgba(246, 239, 227, 0.96) 14%,
      rgba(246, 239, 227, 0.82) 26%,
      rgba(246, 239, 227, 0.55) 38%,
      rgba(246, 239, 227, 0.22) 48%,
      rgba(246, 239, 227, 0) 55%
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-map-pin-wrapper {
    transition: none;
  }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  animation: hero-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s both;
}

.hero-eyebrow::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--terracotta);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(185, 78, 41, 0.5);
  animation: hero-ping 2.2s ease-in-out infinite;
}

.hero h1,
.hero-headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  max-width: 920px;
  margin-bottom: 1.25rem;
  font-variation-settings: "SOFT" 60, "WONK" 0, "opsz" 144;
  animation: hero-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.15s both;
}

.hero-headline em,
.hero h1 em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  position: relative;
  white-space: nowrap;
}

/* Hand-drawn-style underline sweep under the italic word */
.hero-headline em::after,
.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.18em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M2 12 Q 30 4 70 10 T 140 8 T 198 12' stroke='%23F3AC1F' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: hero-underline 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s forwards;
}

.hero p,
.hero-lede {
  font-size: 1.125rem;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 0;
  animation: hero-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.25s both;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 1.5rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(2px);
  animation: hero-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

.hero-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  flex-shrink: 0;
  animation: hero-live-pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes hero-live-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(185, 78, 41, 0.55);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(185, 78, 41, 0);
    transform: scale(1.12);
  }
}

.hero-stamp-text strong {
  color: var(--ink-soft);
  font-weight: 700;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: hero-fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hero-underline {
  to { transform: scaleX(1); }
}

@keyframes hero-ping {
  0%, 100% { box-shadow: 0 0 0 0 rgba(185, 78, 41, 0.4); }
  50%      { box-shadow: 0 0 0 7px rgba(185, 78, 41, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero h1,
  .hero-headline,
  .hero p,
  .hero-lede,
  .hero-stamp,
  .hero-cta-group,
  .hero-pulse-dot {
    animation: none;
  }
  .hero-headline em::after,
  .hero h1 em::after {
    transform: scaleX(1);
    animation: none;
  }
  .hero-eyebrow::before {
    animation: none;
  }
}

/* UI Mockup */
.ui-mockup-section {
  background-color: var(--bg-offwhite);
  padding: 2rem 0;
  overflow: hidden;
}

.mockup-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.map-split-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 992px) {
  .map-split-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .mockup-container {
    overflow-y: auto;
    padding-right: 15px;
    /* Custom scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #eee;
  }

  .mockup-container::-webkit-scrollbar {
    width: 6px;
  }

  .mockup-container::-webkit-scrollbar-track {
    background: #eee;
    border-radius: 4px;
  }

  .mockup-container::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 4px;
  }
}

.map-container {
  flex: 1;
  height: 400px;
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--card-shadow);
}

@media (min-width: 992px) {
  .map-container {
    height: 600px;
    position: sticky;
    top: 90px;
  }
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
  /* Keep map below sticky header */
}

.deal-card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  padding: 1rem;
  width: 100%;
  border-left: 5px solid var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.deal-card:hover,
.deal-card.active-card {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.deal-card.active-card {
  border-color: var(--accent);
}

.deal-bg {
  height: 120px;
  background-color: #eee;
  margin-bottom: 1rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
}

.deal-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.deal-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.deal-loc {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.deal-btn {
  display: block;
  text-align: center;
  background: var(--bg-offwhite);
  color: var(--secondary);
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: #FDFAF3;
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  text-align: center;
  border: 1px solid var(--sand);
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--terracotta);
  box-shadow: 0 4px 6px rgba(28, 24, 21, 0.04), 0 18px 40px -10px rgba(185, 78, 41, 0.22);
}

.feature-icon {
  font-size: 2rem;
  color: var(--terracotta);
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-icon svg {
  width: 40px;
  height: 40px;
}

/* Contact Form */
.form-group {
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(185, 78, 41, 0.18);
}

.contact-form input:invalid:not(:placeholder-shown),
.contact-form textarea:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button[type="submit"] {
  width: 100%;
  border: none;
}

.contact-form button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn-secondary {
  background-color: white;
  color: var(--primary);
  border: 2px solid white;
}

.btn-dark {
  background-color: var(--secondary);
  color: white;
}

.btn-submit {
  background-color: var(--secondary);
  color: white;
  font-size: 1.1rem;
  margin-top: 1rem;
}

.btn-submit:hover {
  background-color: #000;
}

/* Footer */
footer {
  background-color: var(--secondary);
  color: white;
  padding: 3rem 0;
  margin-top: auto;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-links a {
  color: #D9D2C5;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #F0D5B0;
}

/* Responsive */
@media (max-width: 899px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2rem;
  }

  #map-legend {
    display: none !important;
  }
}
.inline-pin { 
  display: inline-block;
  height: 1.2em; 
  width: auto; 
  vertical-align: text-bottom; 
  margin-right: 0.2em; 
}
.feature-icon .inline-pin {
  margin-right: 0;
}

.footer-logo {
  height: 48px;
  width: auto;
  opacity: 0.8;
  transition: opacity 0.2s;
  display: block;
}

.footer-logo-link {
  display: block;
}
.footer-logo-link:hover .footer-logo {
  opacity: 1.0;
}
.footer-copyright {
  text-align: center;
  color: rgba(246, 239, 227, 0.5);
  font-size: 0.85rem;
}
/* Pull the copyright line close to the disclaimer above it
   (the footer container's 1.5rem flex gap is too wide between these two). */
.footer-disclaimer + .footer-copyright {
  margin-top: -1.75rem;
}
.footer-copyright a {
  text-decoration: underline;
}
.footer-copyright a:hover {
  color: white;
}

/* ------------- NAV SEARCH BAR ------------- */
.nav-search-wrapper {
  flex: 1;
  max-width: 1000px;
  margin: 0 1rem;
  display: none; /* hidden on small mobile */
}

@media (min-width: 900px) {
  .nav-search-wrapper {
    display: flex;
  }
}

.nav-search-inner {
  display: flex;
  width: 100%;
  background: white;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #e2e2e6;
  padding: 4px;
  align-items: center;
  overflow: hidden;
}

.nav-search-filters {
  display: flex;
  padding: 0 0.5rem;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  min-width: 0;
  flex-shrink: 1;
}
.nav-search-filters::-webkit-scrollbar {
  display: none; /* Chrome */
}

.nav-filter-btn {
  background: transparent;
  border: none;
  border-radius: 20px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.nav-filter-btn:hover {
  background: #f0f0f0;
  color: #333;
}

.nav-filter-btn.active {
  background: var(--terracotta);
  color: #fff;
}

.nav-filter-btn.active img {
  filter: brightness(0) invert(1);
}

.nav-search-divider {
  width: 1px;
  height: 24px;
  background-color: #ddd;
  margin: 0 0.5rem;
}

.nav-search-name {
  flex: 1.4;
  min-width: 140px;
  position: relative;
  display: flex;
}

#nav-name-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem;
  color: #333;
  background: transparent;
}

.nav-search-location {
  flex: 1;
  min-width: 130px;
  position: relative;
  display: flex;
}

#nav-location-input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1rem;
  padding: 0.5rem;
  color: #333;
  background: transparent;
}

.nav-search-submit {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.nav-search-submit:hover {
  background: var(--primary-hover);
}

.location-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: -20px;
  right: -55px;
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  border-radius: 8px;
  overflow: hidden;
  z-index: 1000;
  border: 1px solid #eee;
}

.location-dropdown.hidden {
  display: none;
}

.dropdown-item {
  padding: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--secondary);
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #f8f8f8;
}

.dropdown-item .icon {
  font-size: 1.2rem;
}

/* ------------- SIDEBAR BUBBLE FILTERS ------------- */
.filter-group {
  width: 100%;
}

.filter-group-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.4rem;
  display: block;
}

.filter-bubbles {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-bubble {
  flex: 1;
  min-width: 0;
  padding: 0.4rem;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.day-bubble {
  /* Tighter padding because there are 7 of them */
  padding: 0.35rem 0;
  font-size: 0.75rem;
}

.filter-bubble:hover {
  background: #f5f5f5;
  border-color: #ccc;
}

.filter-bubble.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.filter-bubble.active img {
  filter: brightness(0) invert(1);
}

/* ------------- STEP NUMBERS (How It Works) ------------- */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

/* ------------- CATEGORY GRID (Homepage) ------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.2rem 0.5rem;
  background: #FDFAF3;
  border-radius: 14px;
  border: 1px solid var(--sand);
  transition: var(--transition);
  text-decoration: none;
  color: var(--ink);
}

.category-card:hover {
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(28, 24, 21, 0.04), 0 14px 30px -8px rgba(185, 78, 41, 0.2);
  transform: translateY(-3px) scale(1.02);
  border-color: var(--terracotta);
}

.category-card:hover .category-icon {
  transform: scale(1.08);
}

.category-icon {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.category-card span {
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.2;
}

.category-icon {
  width: 40px;
  height: 40px;
}

.category-icon-happy-hour {
  position: relative;
  left: 3px;
}

@media (max-width: 600px) {
  .category-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }
  .category-card {
    padding: 0.8rem 0.25rem;
  }
  .category-icon {
    width: 32px;
    height: 32px;
  }
  .category-card span {
    font-size: 0.75rem;
  }
}

/* ------------- MOBILE NAV SEARCH ------------- */
.mobile-topbar {
  position: sticky;
  top: 0;
  /* High z-index to win against any in-card element that ends up in a
     promoted stacking layer (Fraunces serif title, anchor + image
     combos in .city-card-head have shown bleed-through at z-index 999). */
  z-index: 1500;
  background: var(--bg-light);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  isolation: isolate;
}

/* Two-row grid: logo (col 1) | input (col 2) | trailing button (col 3).
   When data-expanded="true", the grid has a second row for the name input,
   and the logo cell spans both rows so the icon sits vertically centered. */
.mobile-search-stack {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo location submit";
  align-items: center;
  column-gap: 0.5rem;
  row-gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 20px;
  background: var(--bg-light);
  border-bottom: 1px solid #eee;
}
.mobile-search-stack > .mobile-nav-brand { grid-area: logo; }
.mobile-search-stack > #mobile-location-input { grid-area: location; }
.mobile-search-stack > #mobile-search-btn { grid-area: submit; }

.mobile-search-stack > #mobile-name-input,
.mobile-search-stack > #mobile-name-collapse-btn {
  display: none;
}
.mobile-search-stack[data-expanded="true"] {
  grid-template-areas:
    "logo location submit"
    "logo name     collapse";
  grid-template-rows: auto auto;
}
.mobile-search-stack[data-expanded="true"] > #mobile-name-input {
  grid-area: name;
  display: block;
}
.mobile-search-stack[data-expanded="true"] > #mobile-name-collapse-btn {
  grid-area: collapse;
  display: inline-flex;
}

.mobile-search-stack input {
  width: 100%;
  border: 1px solid #e2e2e6;
  border-radius: 50px;
  padding: 0.55rem 1rem;
  /* 16px is the iOS-zoom-on-focus floor — anything smaller and Safari
     auto-zooms when the input is tapped, which knocks the orange search
     button off the right edge of narrow screens. */
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  background: #f9f9f9;
  color: var(--ink);
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.mobile-search-stack input:focus {
  border-color: var(--terracotta);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 78, 41, 0.12);
}
.mobile-search-stack input::placeholder {
  color: var(--ink-faint);
}

.mobile-name-collapse {
  background: transparent;
  border: 1px solid #e2e2e6;
  border-radius: 50px;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--ink-faint);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(28, 24, 21, 0.1);
}
.mobile-name-collapse:hover {
  color: var(--ink);
  background: #fff;
}

.mobile-search-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
}
.mobile-search-modal[hidden] { display: none; }

.mobile-search-modal-header {
  display: flex;
  align-items: center;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--sand);
  background: var(--paper);
  gap: 0.5rem;
}
.modal-action-cancel,
.modal-action-apply {
  background: none;
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.5rem 0.5rem;
  color: var(--ink);
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(185, 78, 41, 0.18);
}
.modal-action-cancel { padding-left: 0; }
.modal-action-apply {
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 50px;
  padding: 0.5rem 1.25rem;
}
.modal-action-apply:hover { background: var(--terracotta-deep); }

.modal-logo {
  height: 22px;
  margin: 0 auto;
  display: block;
}

.mobile-search-modal-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.modal-input-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.modal-input-row svg {
  color: var(--ink-faint);
  flex-shrink: 0;
}
.modal-input-row input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-body);
  padding: 0;
}
.modal-input-row input::placeholder {
  color: var(--ink-faint);
}
.modal-input-row:focus-within {
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(185, 78, 41, 0.12);
}

body.mobile-search-modal-open {
  overflow: hidden;
}

.mobile-search-stack .mobile-search-submit {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.mobile-search-stack .mobile-search-submit:hover {
  background: var(--primary-hover);
}

.mobile-filter-row {
  display: flex;
  width: 100%;
  padding: 0.5rem 12px;
  background: var(--bg-light);
  border-bottom: 1px solid #eee;
  gap: 0.4rem;
}

.mobile-filter-btn {
  background: #fff;
  border: 1px solid #e2e2e6;
  border-radius: 22px;
  padding: 0.5rem 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  /* Each chip takes an equal share of the row; shrink below content width
     if needed so all five always fit without horizontal scroll. */
  flex: 1 1 0;
  min-width: 0;
  color: #666;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow: hidden;
}

.mobile-filter-btn:hover {
  background: #f0f0f0;
}

.mobile-filter-btn.active {
  background: var(--terracotta);
  color: #fff;
  border-color: var(--terracotta);
}

.mobile-filter-btn.active img {
  filter: brightness(0) invert(1);
}

.mobile-filter-btn img {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.mobile-filter-btn .label-short {
  display: none;
}

@media (max-width: 580px) {
  .mobile-filter-btn .label-full {
    display: none;
  }
  .mobile-filter-btn .label-short {
    display: inline;
  }
  .mobile-filter-btn {
    padding: 0.45rem 0.3rem;
    font-size: 0.82rem;
    gap: 4px;
  }
  .mobile-filter-btn img {
    width: 16px;
    height: 16px;
  }
  .mobile-filter-row {
    padding: 0.45rem 10px;
    gap: 0.3rem;
  }
}

.mobile-time-row {
  display: flex;
  width: 100%;
  padding: 0.4rem 12px;
  background: var(--bg-light);
  border-bottom: 1px solid #eee;
  gap: 0.4rem;
  align-items: center;
}

/* Let time chips grow equally to fill remaining width next to the day
   dropdown (which keeps its natural width). */
.mobile-time-row .filter-bubble,
.filter-row-compact .filter-bubble,
.restaurant-time-row .filter-bubble {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.4rem 0.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.mobile-time-row .day-dropdown,
.filter-row-compact .day-dropdown,
.restaurant-time-row .day-dropdown {
  flex-shrink: 0;
}

/* Keep the in-sidebar filter bar (time + admin rows) pinned as the deal
   list scrolls — on mobile it sticks just below the sticky .mobile-topbar
   (search + category row). On desktop it sticks at top:0 within the
   side-by-side layout.
   Mobile `top` is intentionally a few pixels LESS than the mobile-topbar's
   actual height so the bars overlap slightly. Both share var(--bg-light)
   so the overlap is invisible, but it prevents a sub-pixel gap from
   flickering between them during iOS scroll momentum. */
.sidebar-filter-bar {
  position: sticky;
  top: 100px;
  z-index: 498; /* below .mobile-topbar (z-index 999) so topbar overlays scroll */
  background: var(--bg-light);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
@media (min-width: 768px) {
  .sidebar-filter-bar {
    top: 0;
    z-index: 500;
  }
}

/* At >=900px the desktop header is visible (80px tall) and mobile-topbar
   is hidden, so the filter bar must sit below the header. */
@media (min-width: 900px) {
  .sidebar-filter-bar {
    top: 80px;
  }
}

@media (min-width: 900px) {
  .mobile-topbar,
  .mobile-search-bar,
  .mobile-filter-row {
    display: none;
  }
}

@media (max-width: 899px) {
  .nav-container {
    height: 48px;
    justify-content: center;
  }
  .nav-container > nav {
    display: none !important;
  }
  .logo-full {
    display: none !important;
  }
  .logo-icon {
    display: block !important;
    height: 28px;
    width: auto;
    max-width: none;
    flex-shrink: 0;
  }
  .mobile-nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
  }
  .mobile-search-bar {
    padding-left: 12px;
  }
  /* Hide header on pages that have a mobile search bar */
  .has-mobile-search > header {
    display: none;
  }
}

/* Extra breathing room for narrow phones so text doesn't touch the edges */
@media (max-width: 480px) {
  .container {
    padding: 0 24px;
  }
  .section-padding {
    padding: 3rem 0;
  }
  .about {
    padding: 0 24px;
  }
}

/* ------------- DAY DROPDOWN ------------- */
.day-dropdown {
  appearance: none;
  -webkit-appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 0.4rem 1.8rem 0.4rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  flex-shrink: 0;
}

.day-dropdown:focus {
  outline: none;
  border-color: var(--primary);
}

/* ------------- TIME FILTER ICONS ------------- */
.time-filter-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.time-btn-icon {
  padding: 0.3rem 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Morning/afternoon/evening render as small CIRCLES (matching the mobile
   app), giving the Now/Any-time text pills more horizontal room.
   Applied in the compact time-row layout only. */
.mobile-time-row .time-btn-icon,
.filter-row-compact .time-btn-icon,
.restaurant-time-row .time-btn-icon {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

/* ------------- ADMIN BUTTON ANIMATIONS ------------- */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.btn-spinning img {
  animation: spin 0.8s linear infinite;
}

.btn-success-flash {
  background: #2e7d32 !important;
  transition: background 0.3s;
}

.btn-error-flash {
  background: #c62828 !important;
  transition: background 0.3s;
}

/* Questionable banner */
details summary {
  padding: 0;
  margin: 0;
  list-style: none;
}
details summary::-webkit-details-marker {
  display: none;
}

/* Questionable banner caret */
details summary .q-caret {
  display: inline-block;
  transition: transform 0.2s;
  font-size: 0.7em;
  margin-right: 4px;
}
details[open] summary .q-caret,
.q-caret-open {
  transform: rotate(180deg);
}

/* Leaflet popup overrides */
.leaflet-popup-content {
  margin: 8px 10px !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

/* Map Marker Icons (Leaflet divIcon override) */
.custom-map-marker {
  background: transparent !important;
  border: none !important;
}

/* --- Map marker clusters (Leaflet.markercluster) ----------------------
   Colors are set by the later .mapela-cluster rule (black, like the
   multi-deal pin). */
.mapela-cluster-wrapper {
  background: transparent !important;
  border: none !important;
}

.mapela-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--marigold);
  border: 3px solid var(--marigold-pale);
  color: var(--terracotta-deep);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 4px rgba(28, 24, 21, 0.08), 0 6px 14px -4px rgba(28, 24, 21, 0.28);
  transition: transform 0.18s ease;
  cursor: pointer;
  font-variation-settings: "SOFT" 40, "opsz" 24;
}

.mapela-cluster:hover {
  transform: scale(1.08);
}

.mapela-cluster-sm { width: 36px; height: 36px; font-size: 0.85rem; }
.mapela-cluster-md { width: 44px; height: 44px; font-size: 0.95rem; }
.mapela-cluster-lg { width: 54px; height: 54px; font-size: 1.1rem; }

/* Disable the default markercluster spiderfy polygon — reads clinical */
.leaflet-cluster-anim .leaflet-marker-icon,
.leaflet-cluster-anim .leaflet-marker-shadow {
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}

/* ============================================================
   ABOUT PAGE — editorial, typography-driven, long-form
   ============================================================ */
.about-page main {
  position: relative;
  isolation: isolate;
  padding: 4rem 0 6rem;
  background:
    radial-gradient(ellipse 60% 40% at 10% 5%, #F0D5B0 0%, transparent 55%),
    radial-gradient(ellipse 45% 35% at 95% 30%, #EBD5C7 0%, transparent 60%),
    radial-gradient(ellipse 35% 30% at 50% 85%, #F2E3C9 0%, transparent 60%);
}

.about-page main::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11  0 0 0 0 0.09  0 0 0 0 0.08  0 0 0 0.85 0'/></filter><rect width='220' height='220' filter='url(%23n)'/></svg>");
  opacity: 0.08;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
}

.about {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Hero -------------------------------------------------- */
.about-hero {
  padding: 1.5rem 0 3rem;
  border-bottom: 1px solid var(--sand);
  margin-bottom: 3.5rem;
  animation: about-fade-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.about-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: 1.25rem;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  color: var(--ink);
}

.about-title em {
  font-style: italic;
  color: var(--terracotta);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
}

.about-dek {
  font-family: var(--font-body);
  font-size: 1.15rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 2rem;
}

.about-mark {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(2px);
}

.about-mark-dot {
  color: var(--terracotta);
  font-size: 0.6em;
  line-height: 1;
}

/* --- Sections --------------------------------------------- */
.about-section {
  margin-bottom: 3rem;
}

.about-section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-variation-settings: "SOFT" 50, "opsz" 64;
  position: relative;
  padding-left: 1.25rem;
}

.about-section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.7rem;
  height: 2px;
  background: var(--terracotta);
}

.about-section p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  margin-bottom: 1rem;
}

.about-section p strong {
  font-weight: 700;
  color: var(--ink);
}

.about-section a {
  color: var(--terracotta);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.about-section a:hover {
  color: var(--terracotta-deep);
}

/* Drop cap on the first paragraph of The Story */
.has-dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "SOFT" 60, "opsz" 144;
  font-size: 4.2em;
  line-height: 0.85;
  margin: 0.08em 0.12em 0 0;
  color: var(--terracotta);
}

/* --- Pull quote ------------------------------------------- */
.about-quote {
  margin: 4rem auto;
  padding: 2.25rem 1rem;
  border-top: 1px solid var(--sand);
  border-bottom: 1px solid var(--sand);
  text-align: center;
  position: relative;
}

.about-quote::before,
.about-quote::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--terracotta);
  border-radius: 50%;
  transform: translateX(-50%);
}

.about-quote::before { top: -3.5px; }
.about-quote::after  { bottom: -3.5px; }

.about-quote p {
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 144;
  margin: 0;
}

.about-quote em {
  color: var(--terracotta);
  position: relative;
  display: inline-block;
  font-style: italic;
}

.about-quote em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.04em;
  height: 0.16em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M2 12 Q 30 4 70 10 T 140 8 T 198 12' stroke='%23F3AC1F' stroke-width='3' fill='none' stroke-linecap='round'/></svg>") no-repeat center / 100% 100%;
  z-index: -1;
}

/* --- "How to use" steps ----------------------------------- */
.about-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1rem 0 0;
}

.about-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  margin-bottom: 1.1rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  min-height: 2.25rem;
  /* Normal text flow: the bold label and its sentence wrap as one line
     (a flex row split them into two columns, 2026-11-13). The padding
     centers the first line on the number circle. */
  padding-top: 0.3rem;
}

.about-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  font-variation-settings: "SOFT" 50, "opsz" 24;
}

/* --- FAQ -------------------------------------------------- */
.about-faq details {
  border-bottom: 1px solid var(--sand);
  padding: 1.1rem 0;
}

.about-faq details:first-of-type {
  border-top: 1px solid var(--sand);
}

.about-faq summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0;
  user-select: none;
}

.about-faq summary::-webkit-details-marker,
.about-faq summary::marker {
  display: none;
  content: "";
}

.about-faq summary::after {
  content: "+";
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--terracotta);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
}

.about-faq details[open] summary::after {
  transform: rotate(45deg);
}

.about-faq details p {
  margin: 0.85rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* --- Closing CTA ------------------------------------------ */
.about-cta {
  margin-top: 4rem;
  padding: 2.75rem 2rem;
  background: var(--marigold-pale);
  border: 1px solid var(--marigold);
  border-radius: var(--border-radius-lg);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about-cta::before {
  content: "";
  position: absolute;
  top: -30%;
  right: -10%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(243, 172, 31, 0.3) 0%, transparent 68%);
  pointer-events: none;
}

.about-cta::after {
  content: "";
  position: absolute;
  bottom: -40%;
  left: -8%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(243, 172, 31, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.about-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
  font-variation-settings: "SOFT" 60, "opsz" 72;
  letter-spacing: -0.01em;
  position: relative;
}

.about-cta p {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
  position: relative;
}

.about-cta-btn {
  background: var(--terracotta);
  color: white !important;
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  position: relative;
  transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 2px 0 var(--terracotta-deep);
}

.about-cta-btn:hover {
  background: var(--terracotta-deep);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 var(--terracotta-deep);
}

.about-cta-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 0 var(--terracotta-deep);
}

@keyframes about-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero {
    animation: none;
  }
  .about-faq summary::after {
    transition: none;
  }
}

@media (max-width: 640px) {
  .about-page main {
    padding: 2.5rem 0 4rem;
  }
  .about-hero {
    padding: 1rem 0 2rem;
    margin-bottom: 2.5rem;
  }
  .about-section {
    margin-bottom: 2.25rem;
  }
  .about-quote {
    margin: 2.5rem 0;
    padding: 1.75rem 0.5rem;
  }
  .about-cta {
    padding: 2rem 1.25rem;
  }
  .has-dropcap::first-letter {
    font-size: 3.4em;
  }
  .about-steps li {
    padding-left: 2.75rem;
    padding-top: 0.1rem;
  }
  .about-steps li::before {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 0.9rem;
  }
}

/* ---------- Buy Me a Coffee ---------- */
.bmc-footer-link {
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.bmc-footer-link:hover { text-decoration: underline; }

.bmc-callout {
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.75rem;
  max-width: 520px;
  background: #FFFBEA;
  border: 1px solid #FFDD00;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.bmc-callout p {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: #333;
  line-height: 1.45;
}
.bmc-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: #FFDD00;
  color: #1A1A1A;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.bmc-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.bmc-btn:focus-visible {
  outline: 2px solid #1A1A1A;
  outline-offset: 2px;
}

/* ---------- Deal Report (per-deal flag button + modal) ---------- */
.report-flag-btn {
  background: var(--mustard);
  color: #1A1A1A;
  border: none;
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.85em;
  line-height: 1.2;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease;
}
.report-flag-btn:hover { background: #c78830; }
.report-flag-btn:focus-visible { outline: 2px solid var(--mustard); outline-offset: 2px; }
.report-flag-btn.is-reported {
  background: #2e7d32;
  color: #fff;
  cursor: default;
}
.report-flag-btn.is-reported:hover { background: #2e7d32; }

.report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 24, 21, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}
.report-modal-overlay.is-open { display: flex; }
.report-modal {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--border-radius-lg);
  width: min(420px, 100%);
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: var(--card-shadow);
  font-family: var(--font-body);
  position: relative;
}
.report-modal h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.2rem;
}
.report-modal .report-subtitle {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 0.9rem;
  word-break: break-word;
}
.report-modal label {
  display: block;
  font-size: 0.85rem;
  margin: 0.55rem 0 0.25rem;
  font-weight: 600;
}
.report-modal select,
.report-modal textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--sand);
  border-radius: var(--border-radius);
  font: inherit;
  background: #fff;
  color: var(--ink);
  box-sizing: border-box;
}
.report-modal textarea {
  min-height: 70px;
  resize: vertical;
}
.report-modal .report-counter {
  text-align: right;
  font-size: 0.72rem;
  color: var(--ink-faint);
  margin-top: 2px;
}
.report-modal .report-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.report-modal-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.9rem;
}
.report-modal-actions button {
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--sand);
  background: #fff;
  color: var(--ink);
}
.report-modal-actions .report-submit {
  background: var(--mustard);
  border-color: var(--mustard);
  color: #1A1A1A;
  font-weight: 600;
}
.report-modal-actions .report-submit:hover {
  background: #c78830;
  border-color: #c78830;
}
.report-modal-actions button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.report-modal-status {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  min-height: 1.1rem;
}
.report-modal-status.is-error { color: var(--terracotta); }
.report-modal-status.is-success { color: #2e7d32; }

/* ------------- Newsletter signup (in footer) ------------- */
.newsletter-signup {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(246, 239, 227, 0.12);
}
.newsletter-headline {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 0.85rem;
  color: rgba(246, 239, 227, 0.92);
  font-family: var(--font-display);
}
.newsletter-fields {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}
.newsletter-fields input {
  /* font-size: 16px is the iOS-zoom-on-focus floor. Smaller and the
     phone auto-zooms when the user taps in. */
  font-size: 16px;
  line-height: 1.4;
  padding: 0.65rem 0.85rem;
  border: 1px solid rgba(246, 239, 227, 0.18);
  border-radius: 6px;
  background: rgba(246, 239, 227, 0.96);
  color: var(--ink);
  font-family: var(--font-body);
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.newsletter-fields input:focus {
  outline: 2px solid var(--marigold);
  outline-offset: 1px;
}
.newsletter-fields input[name="email"] { flex: 2 1 220px; }
.newsletter-fields input[name="zip"] { flex: 0 0 84px; text-align: center; }
.newsletter-fields button {
  flex: 0 0 auto;
  padding: 0.65rem 1.25rem;
  font-size: 15px;
  white-space: nowrap;
}
.newsletter-fineprint {
  font-size: 0.78rem;
  color: rgba(246, 239, 227, 0.5);
  margin: 0.7rem 0 0;
  line-height: 1.4;
}
.newsletter-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media (max-width: 540px) {
  .newsletter-fields {
    flex-direction: column;
    gap: 0.5rem;
  }
  /* Specificity has to match the desktop attribute-selector rules above
     (`.newsletter-fields input[name="email"]` etc., specificity 0,2,1).
     A bare `.newsletter-fields input` rule loses, and the desktop
     `flex: 2 1 220px` keeps applying — which becomes a 220px basis on
     the *vertical* axis once we flip to flex-direction:column,
     blowing up the email box on mobile. */
  .newsletter-fields input[name="email"],
  .newsletter-fields input[name="zip"],
  .newsletter-fields button {
    width: 100%;
    flex: 0 0 auto;
  }
  .newsletter-fields input[name="zip"] { text-align: left; }
}

/* ==========================================================================
   PER-RESTAURANT PAGE  (restaurant.html → assets/js/restaurant.js)
   Mirrors the mobile app's restaurant detail screen — name + rating, action
   buttons, in-page filters (deal type / day / time), then a day-grouped
   deal list with today first.
   ========================================================================== */

.restaurant-detail { padding: 1.25rem 0 3rem; }

.restaurant-back-link {
  display: inline-block;
  margin: 0 0 1rem;
  font: 600 0.9rem/1 var(--font-body);
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s;
}
.restaurant-back-link:hover { color: var(--terracotta-deep); }

/* ----- Header ----- */
.restaurant-header {
  border-bottom: 1px solid var(--sand);
  padding-bottom: 1.25rem;
  margin-bottom: 1rem;
}
.restaurant-header-top {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.4rem;
}
.restaurant-favicon-link {
  flex: 0 0 auto;
  line-height: 0;
  display: inline-block;
}
.restaurant-favicon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  border: 1px solid var(--sand);
  box-sizing: border-box;
  object-fit: contain;
}
.restaurant-name {
  font: 700 2rem/1.15 var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.01em;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.restaurant-rating {
  font: 500 0.95rem/1 var(--font-body);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.restaurant-star { color: #D89438; font-size: 1rem; }
.restaurant-rating-num { font-weight: 600; color: var(--ink); }
.restaurant-rating-count { color: var(--ink-faint); font-size: 0.85rem; }

.restaurant-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.restaurant-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  font: 600 0.95rem/1 var(--font-body);
  text-decoration: none;
  flex: 1 1 0;
  min-width: 100px;
  transition: opacity 0.15s, background-color 0.15s;
}
.restaurant-action-primary   { background: var(--terracotta); color: var(--paper); }
.restaurant-action-secondary { background: var(--sage); color: var(--paper); }
.restaurant-action-tertiary  { background: transparent; color: var(--ink); border: 1px solid var(--sand); }
.restaurant-action:hover { opacity: 0.85; }
.restaurant-action-tertiary:hover { background: var(--paper-deep); }

/* ----- Filters ----- */
.restaurant-filters { margin: 1.25rem 0 0.75rem; }
.restaurant-filter-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
  align-items: center;
}
/* Single-line pills (icon + label inline), scrolling sideways on narrow
   screens like the header chips — they used to wrap the label under the
   icon and leave "Events" alone on a second row. */
.restaurant-type-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.restaurant-type-row::-webkit-scrollbar { display: none; }
.restaurant-type-row .filter-bubble {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.restaurant-type-row .filter-bubble img { margin-right: 0 !important; }
.restaurant-report-btn {
  flex: 0 0 auto;
  margin-left: auto;
  background: none;
  border: 0;
  padding: 0.1rem 0.2rem;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.55;
}
.restaurant-report-btn:hover { opacity: 1; }
.restaurant-report-btn[disabled] { cursor: default; opacity: 0.8; }
.restaurant-deal-now-pill + .restaurant-report-btn { margin-left: 0.35rem; }
/* Time row: no wrap, all chips share remaining width like the map's
   .mobile-time-row pattern (the actual flex/sizing rules live further
   down in the file alongside .mobile-time-row). */
.restaurant-time-row { flex-wrap: nowrap; width: 100%; }
.restaurant-time-row .time-filter-icon { width: 18px; height: 18px; vertical-align: middle; }
/* Every chip keeps its natural width and the row scrolls sideways when it
   doesn't fit ("Any time" was clipping to "ny tim" on 390px phones). */
.restaurant-time-row { overflow-x: auto; scrollbar-width: none; }
.restaurant-time-row::-webkit-scrollbar { display: none; }
.restaurant-time-row > * { flex: 0 0 auto !important; }
.restaurant-time-row .time-btn:not(.time-btn-icon) {
  white-space: nowrap;
  padding-left: 0.8rem;
  padding-right: 0.8rem;
}

/* ----- "DEALS HERE (n)" label ----- */
.restaurant-deals-label {
  font: 600 0.7rem/1 var(--font-body);
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
  margin: 1.5rem 0 0.75rem;
}

/* ----- Empty states ----- */
.restaurant-empty {
  background: var(--paper-deep);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  color: var(--ink-soft);
}
.restaurant-empty p { margin: 0 0 0.75rem; font: 500 0.95rem/1.4 var(--font-body); }
.restaurant-clear-btn {
  background: transparent;
  border: 1px solid var(--sand);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font: 600 0.85rem/1 var(--font-body);
  color: var(--ink);
  cursor: pointer;
}
.restaurant-clear-btn:hover { background: var(--paper); }

/* ----- Day sections ----- */
.restaurant-day-section { margin-top: 1.5rem; }
.restaurant-day-section:first-of-type { margin-top: 0.5rem; }
.restaurant-day-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.restaurant-day-name {
  font: 600 1.15rem/1.2 var(--font-display);
  color: var(--ink);
  margin: 0;
}
.restaurant-today-pill {
  background: var(--marigold-pale);
  border: 1px solid var(--marigold);
  color: var(--terracotta-deep);
  font: 700 0.65rem/1 var(--font-body);
  letter-spacing: 0.08em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
}

/* ----- Deal card ----- */
.restaurant-deal-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--sand);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
}
.restaurant-deal-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.restaurant-deal-icon { flex: 0 0 auto; margin-top: 0.1rem; }
.restaurant-deal-title {
  flex: 1;
  font: 600 1rem/1.3 var(--font-display);
  color: var(--ink);
  word-break: break-word;
}
.restaurant-deal-now-pill {
  background: var(--marigold-pale);
  border: 1px solid var(--marigold);
  color: var(--terracotta-deep);
  font: 700 0.6rem/1 var(--font-body);
  letter-spacing: 0.08em;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  flex: 0 0 auto;
  white-space: nowrap;
  margin-top: 0.15rem;
}
.restaurant-deal-meta {
  margin-top: 0.3rem;
  padding-left: 1.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.75rem;
}
.restaurant-fav-btn {
  margin-left: auto;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--sand);
  background: #fff;
  color: var(--ink-faint);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.restaurant-fav-btn.is-fav { color: var(--terracotta); border-color: var(--terracotta); }
.restaurant-week-strip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.restaurant-week-chip {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: 600 0.6rem/1 var(--font-body);
  color: var(--ink-faint);
  background: var(--paper-deep);
}
.restaurant-week-chip.is-on {
  background: var(--marigold-pale);
  color: var(--terracotta-deep);
}
.restaurant-week-chip.is-today { box-shadow: inset 0 0 0 1.5px var(--terracotta-deep); }
.restaurant-week-label {
  margin-left: 0.35rem;
  font: 600 0.75rem/1 var(--font-body);
  color: var(--ink-soft);
}
.restaurant-deal-time {
  font: 500 0.8rem/1 var(--font-body);
  color: var(--sage);
}
.restaurant-deal-desc {
  margin: 0.5rem 0 0 1.85rem;
  font: 400 0.85rem/1.45 var(--font-body);
  color: var(--ink-soft);
  white-space: pre-line;
}

/* ----- Error / not-found ----- */
.restaurant-error {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-soft);
}
.restaurant-error h1 {
  font: 600 1.5rem/1.2 var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.restaurant-error p { margin: 0 0 1.25rem; font: 400 0.95rem/1.45 var(--font-body); }

@media (max-width: 600px) {
  .restaurant-name { font-size: 1.6rem; }
  .restaurant-actions { gap: 0.4rem; }
  .restaurant-action { padding: 0.6rem 0.75rem; font-size: 0.85rem; min-width: 0; }
  .restaurant-day-name { font-size: 1.05rem; }
}

/* ----- Admin mode (restaurant.html?admin=1) -----
   Status-driven left border + tint mirrors the admin map's sidebar cards.
   Buttons match the admin sidebar palette so muscle memory carries over. */
.restaurant-page-admin .restaurant-name::before {
  content: 'ADMIN';
  display: inline-block;
  background: #1976d2;
  color: #fff;
  font: 700 0.6rem/1 var(--font-body);
  letter-spacing: 0.08em;
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.6rem;
  vertical-align: middle;
}
.restaurant-deal-card.admin-status-default      { border-left: 4px solid var(--ink-faint); }
.restaurant-deal-card.admin-status-qc           { border-left: 4px solid #28A745; background: rgba(212, 237, 218, 0.35); }
.restaurant-deal-card.admin-status-questionable { border-left: 4px solid var(--marigold); background: rgba(255, 242, 184, 0.45); }
.restaurant-deal-card.admin-status-quarantined  { border-left: 4px solid #DC3545; background: rgba(248, 215, 218, 0.45); }

.restaurant-admin-row {
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--sand);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.restaurant-admin-id {
  font: 600 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-faint);
}
.restaurant-admin-buttons {
  display: flex;
  gap: 0.3rem;
  margin-left: auto;
}
.admin-btn {
  border: none;
  border-radius: 4px;
  padding: 0.3rem 0.55rem;
  font-size: 0.95rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
}
.admin-btn-flag       { background: #1976d2; font-weight: 700; }
.admin-btn-tempclose  { background: #6a1b9a; }
.admin-btn-quarantine { background: #c62828; }
.admin-btn-qc         { background: #2e7d32; }
.admin-btn:hover      { opacity: 0.85; }

.restaurant-admin-questionable {
  flex: 1 0 100%;
  margin-top: 0.3rem;
  padding: 0.4rem 0.55rem;
  background: #fff9c4;
  border: 1px solid #fff176;
  border-radius: 4px;
  color: #f57f17;
}
.restaurant-admin-questionable-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 700 0.8rem/1 var(--font-body);
}
.restaurant-admin-questionable-reason {
  margin-top: 0.25rem;
  font: 400 0.8rem/1.35 var(--font-body);
}

/* ==========================================================================
   PER-CITY PAGE  (in/<city-slug>.html → generated by prerender.py)
   Lists every restaurant with deals in a given city, grouped by deal type.
   Internal-link flywheel for SEO: each restaurant links to its own page,
   and a "Browse other cities" footer cross-links sibling city pages.

   Body class `city-page` lets CSS break out of restaurant.html's narrow
   container constraint so the hero map can go full-bleed (matches the
   homepage's hero treatment).
   ========================================================================== */

body.city-page main > article > .container {
  /* Override restaurant.html's inline `style="max-width: 760px;"` for the
     city pages — the hero needs to span full viewport width like the
     homepage's hero. Width-constrained sections inside (mood grid, body)
     use their own .container wrappers. */
  max-width: none !important;
  padding: 0 !important;
}
body.city-page .restaurant-back-link { display: none; }
.city-page main { padding: 0; }

/* "What are you in the mood for?" heading on city pages — same treatment
   as the homepage's mood-grid heading (centered, slightly displayed). */
.city-mood {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}
.city-mood-title {
  text-align: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.city-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--sand);
}
.city-eyebrow {
  display: inline-block;
  font: 600 0.7rem/1 var(--font-body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 0.6rem;
}
.city-name {
  font: 600 clamp(2.25rem, 5vw, 3rem)/1.05 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.city-dek {
  font: 400 1.05rem/1.55 var(--font-body);
  color: var(--ink-soft);
  max-width: 600px;
  margin: 0;
}

.city-pills {
  max-width: 760px;
  margin: 1.5rem auto 0.5rem;
  padding: 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.city-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--paper-deep);
  border: 1px solid var(--sand);
  border-radius: 999px;
  font: 600 0.9rem/1 var(--font-body);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}
.city-pill:hover {
  background: var(--marigold-pale);
  border-color: var(--marigold);
}
.city-pill-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--terracotta-deep);
  background: var(--paper);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.city-map-cta {
  display: block;
  max-width: 760px;
  margin: 1.5rem auto;
  padding: 0.85rem 1.25rem;
  background: var(--terracotta);
  color: var(--paper);
  border-radius: 12px;
  font: 600 1rem/1 var(--font-body);
  text-align: center;
  text-decoration: none;
}
.city-map-cta:hover { background: var(--terracotta-deep); }

.city-section {
  max-width: 760px;
  margin: 2.5rem auto 0;
  padding: 0 1.25rem;
}
.city-section-title {
  font: 600 1.4rem/1.2 var(--font-display);
  color: var(--ink);
  margin: 0 0 0.85rem;
  letter-spacing: -0.01em;
}
.city-rest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--sand);
}
.city-rest-item {
  border-bottom: 1px solid var(--sand);
}
/* Whole row is the link so the tap target is the full width of the line —
   gives the row an iOS-list-cell feel: chevron at right, press feedback. */
.city-rest-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.25rem 0.85rem 0.5rem;
  text-decoration: none;
  color: var(--ink);
  transition: background-color 0.1s;
  margin: 0 -0.5rem;
  border-radius: 6px;
}
.city-rest-link:hover,
.city-rest-link:active {
  background: var(--paper-deep);
}
.city-rest-text {
  flex: 1;
  min-width: 0;
  font: 400 0.95rem/1.4 var(--font-body);
  color: var(--ink-soft);
}
.city-rest-name {
  font: 600 1rem/1.3 var(--font-display);
  color: var(--ink);
}
.city-rest-summary { color: var(--ink-soft); }
.city-rest-extra {
  font-size: 0.8rem;
  color: var(--ink-faint);
  white-space: nowrap;
}
.city-rest-chevron {
  flex: 0 0 auto;
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 300;
  color: var(--ink-faint);
  margin-left: 0.5rem;
}
.city-section-cta {
  display: inline-block;
  margin-top: 1rem;
  font: 600 0.9rem/1 var(--font-body);
  color: var(--terracotta);
  text-decoration: none;
}
.city-section-cta:hover { color: var(--terracotta-deep); text-decoration: underline; }

.city-other {
  max-width: 760px;
  margin: 3.5rem auto 4rem;
  padding: 1.5rem 1.25rem;
  background: var(--paper-deep);
  border-radius: 12px;
}
.city-other-title {
  font: 600 1.1rem/1.2 var(--font-display);
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.city-other-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.4rem 1rem;
}
.city-other-list li {
  font: 500 0.9rem/1.3 var(--font-body);
}
.city-other-list a {
  color: var(--ink);
  text-decoration: none;
}
.city-other-list a:hover { color: var(--terracotta-deep); }
.city-other-count {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

/* Written intro under the city/neighborhood hero + the FAQ under the cards. */
.city-intro {
  max-width: 760px;
  margin: 1.75rem auto 0;
  padding: 0 1.25rem;
}
.city-intro p {
  margin: 0;
  font: 400 1rem/1.6 var(--font-body);
  color: var(--ink-soft);
}
.city-intro a, .city-faq a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--ink-faint);
  text-underline-offset: 2px;
}
.city-intro a:hover, .city-faq a:hover { color: var(--terracotta-deep); }
.city-faq {
  max-width: 760px;
  margin: 3rem auto 0;
  padding: 0 1.25rem;
}
.city-faq-title {
  font: 600 1.25rem/1.25 var(--font-display);
  color: var(--ink);
  margin: 0 0 0.5rem;
}
.city-faq h3 {
  font: 600 1rem/1.35 var(--font-body);
  color: var(--ink);
  margin: 1.25rem 0 0.35rem;
}
.city-faq p {
  margin: 0;
  font: 400 0.95rem/1.6 var(--font-body);
  color: var(--ink-soft);
}

@media (max-width: 600px) {
  .city-hero { padding: 1.5rem 1rem 1.25rem; }
  .city-pills, .city-section, .city-map-cta, .city-other { padding-left: 1rem; padding-right: 1rem; }
  .city-name { font-size: 2rem; }
  .city-section-title { font-size: 1.2rem; }
}


/* ==========================================================================
   CITY PAGE — faceted layout (parent /in/<city> + 4 type subpages).

   Structure:
     hero · mood grid · time filter · list section · browse other cities

   The mood grid is the type-navigation (clicks navigate to /in/<city>/<type>);
   the time filter is JS-only (Now / Any / Morning / Afternoon / Evening) and
   hides cards in place. Pagination is JS-only — every card is in the HTML
   for crawlers; .is-page-hidden controls what humans see.
   ========================================================================== */

/* Mood-grid active state — the card matching the current page's filter
   gets an outline + warmer background so it reads as "you are here". The
   homepage's .category-card already styles the base look; we only override
   the active visual. */
.category-card.is-active {
  border: 2px solid var(--terracotta);
  background: rgba(241, 168, 65, 0.08);
  box-shadow: 0 4px 12px rgba(185, 78, 41, 0.12);
}
.category-card.is-active span {
  color: var(--terracotta-deep);
  font-weight: 600;
}

/* Time filter section — width-constrained to match the mood grid above
   (which is `max-width: 700px` on .category-grid). Sits between mood
   grid and list. */
.city-time-filter-section {
  margin: 0.5rem auto 0;
  padding: 0 1.25rem;
}
.city-time-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--sand);
  max-width: 700px;
  margin: 0 auto;
  /* .filter-bubble and .time-btn are styled in the search.html section
     above — we reuse them here so the chips look identical to the map's
     list-view filter bar. */
}
/* Morning/afternoon/evening icons sit inline with their text labels here
   (the global .time-filter-icon rule defaults to display:block, which
   would push the label below the icon). */
.city-time-filter .time-filter-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  width: 16px;
  height: 16px;
}

/* List section — wraps the h2, the card list, and the pagination shell. */
.city-list-section {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}
.city-list-empty {
  text-align: center;
  color: var(--ink-faint);
  font: 500 0.95rem/1.4 var(--font-body);
  padding: 1.5rem 1rem;
  background: var(--paper-deep);
  border-radius: 8px;
  margin: 1rem 0;
}

/* Card list — vertical stack of restaurant cards. */
.city-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Restaurant card — matches the rich layout of search.html's list view:
   favicon + name + rating header, action chip row, stacked deal pills. */
.city-card {
  background: var(--paper);
  border: 1px solid var(--sand);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  transition: box-shadow 0.15s, border-color 0.15s;
  /* Confine card contents to their own stacking layer so the rest-name
     anchor + favicon header can't bleed above the sticky mobile-topbar
     while scrolling. */
  position: relative;
  z-index: 0;
  isolation: isolate;
}
.city-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: var(--ink-faint);
}

/* Card head row */
.city-card-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.city-card-favicon-link {
  flex: 0 0 auto;
  display: block;
  line-height: 0;
}
.city-card-favicon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  vertical-align: middle;
}
.city-card-head-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem;
}
.city-card-rest-name {
  font: 700 1.05rem/1.3 var(--font-display);
  color: var(--secondary);
  text-decoration: none;
}
.city-card-rest-name:hover {
  text-decoration: underline;
}
.city-card-rating {
  white-space: nowrap;
  font-size: 0.8rem;
  color: #333;
}
.city-card-stars {
  color: #D89438;
  letter-spacing: -1px;
  margin-right: 2px;
}
.city-card-rating-num {
  font-weight: 600;
}
.city-card-review-count {
  color: #888;
  font-size: 0.75rem;
}

/* Action chip row — phone / site / maps */
.city-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.6rem;
}
.city-card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid #eee;
  border-radius: 4px;
  color: #555;
  text-decoration: none;
  font: 500 0.78rem/1 var(--font-body);
  white-space: nowrap;
  background: #fafafa;
  transition: background 0.1s, color 0.1s;
}
.city-card-action:hover {
  background: #f0e6d6;
  color: var(--ink);
}
.city-card-action img {
  height: 14px;
  width: 14px;
  object-fit: contain;
  vertical-align: middle;
}
.city-card-action-glyph {
  font-size: 0.85em;
  line-height: 1;
}

/* Deals stacked inside the card */
.city-card-deals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.city-card-deal {
  /* Each deal occupies its own row with the yellow pill on top and the
     description below — same vertical pattern as search.html. */
}
.city-card-deal-pill {
  /* Grid: icon | title on row 1, time spans width on row 2 below the title.
     Mirrors the restaurant-detail .restaurant-deal-head + -meta two-row
     pattern so the title flows naturally and the time stays on its own
     line (never split or word-mashed). */
  display: grid;
  grid-template-columns: 16px 1fr;
  grid-template-areas:
    "icon title"
    ".    time";
  align-items: start;
  column-gap: 0.4rem;
  row-gap: 0.15rem;
  padding: 0.3rem 0.6rem;
  background: #FFF2B8;
  border: 1px solid #F3AC1F;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #B94E29;
}
.city-card-deal-icon {
  grid-area: icon;
  width: 16px;
  height: 16px;
  margin-top: 0.15rem;
}
.city-card-deal-title {
  grid-area: title;
  font-weight: 700;
  min-width: 0;
}
.city-card-deal-time {
  grid-area: time;
  font-weight: 500;
  font-size: 0.85em;
  white-space: nowrap;
}
.city-card-deal-desc {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

/* JS-controlled visibility — both classes hide the element. Two classes
   instead of one so the JS can independently track filter-hidden vs
   page-hidden state without losing the other's intent. */
.city-card.is-filter-hidden,
.city-card.is-page-hidden,
.city-card-deal.is-filter-hidden {
  display: none !important;
}

/* Pagination shell — centered row, button + counter + button */
.city-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
}
.city-pagination[hidden] {
  display: none;
}
.city-pagination-btn {
  appearance: none;
  border: 1px solid var(--sand);
  background: var(--paper);
  color: var(--ink);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font: 600 0.85rem/1 var(--font-body);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
}
.city-pagination-btn:hover:not(:disabled) {
  background: var(--paper-deep);
  border-color: var(--ink-faint);
}
.city-pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.city-pagination-counter {
  font: 500 0.85rem/1 var(--font-body);
  color: var(--ink-soft);
  min-width: 8rem;
  text-align: center;
}

@media (max-width: 600px) {
  .city-list-section,
  .city-time-filter-section { padding-left: 1rem; padding-right: 1rem; }
  .city-card { padding: 0.7rem 0.8rem; }
  .city-card-rest-name { font-size: 1rem; }
  .city-pagination-counter { min-width: 6rem; font-size: 0.8rem; }
}

/* ---- City discovery links (footer, restaurant pages, /colorado index) ---- */
.footer-cities {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  max-width: 760px;
  font-size: 0.9rem;
  text-align: center;
}
.footer-cities-label {
  color: rgba(246, 239, 227, 0.65);
}
.footer-cities a {
  color: #D9D2C5;
  transition: color 0.2s ease;
}
.footer-cities a:hover,
.footer-cities a.footer-cities-all {
  color: #F0D5B0;
}

.restaurant-city-link {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin: 2.5rem 0 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--paper-deep);
  border-radius: 12px;
  font: 500 0.9rem/1.3 var(--font-body);
}
.restaurant-city-link a {
  color: var(--ink);
  text-decoration: none;
}
.restaurant-city-link a:hover { color: var(--terracotta-deep); }
.restaurant-city-link .restaurant-city-link-main {
  flex-basis: 100%;
  font: 600 1.05rem/1.2 var(--font-display);
  color: var(--terracotta);
}

.state-index-hero {
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 0.5rem;
}
.state-index-title {
  font: 600 clamp(2rem, 5vw, 3rem)/1.05 var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}
.state-index-sub {
  color: var(--ink-faint);
  max-width: 560px;
  margin: 0 auto;
}
.state-index-hero + .city-mood { margin-top: 1.5rem; }
.city-body .city-other + .city-other { margin-top: 0; }

/* --- Phone-width map bottom sheet (assets/js/deal-sheet.js) -----------
   Replaces the Leaflet popup below 768px: the tapped restaurant's tile,
   then a scrollable "Nearby deals" list. */
.deal-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1400; /* above the topbar (999) and List toggle (1000), below modals */
  background: var(--paper);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 24px rgba(28, 24, 21, 0.22);
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  transform: translateY(105%);
  transition: transform 0.22s ease-out;
  visibility: hidden;
}
.deal-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
}
.deal-sheet-handle {
  /* Big drag target across the top of the sheet; the close button sits over its right end. */
  margin: -10px -16px 0;
  padding: 10px 60px 10px;
  cursor: grab;
  touch-action: none;
}
.deal-sheet-handle:focus-visible { outline: none; }
.deal-sheet-handle:focus-visible .deal-sheet-grip { background: var(--ink); }
.deal-sheet-grip {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: rgba(28, 24, 21, 0.22);
  margin: 0 auto;
}
.deal-sheet-scroll { transition: height 0.24s ease-out; }
.deal-sheet.is-dragging .deal-sheet-scroll { transition: none; }
.deal-sheet.is-dragging .deal-sheet-handle { cursor: grabbing; }
.deal-sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: var(--paper); /* hides list rows scrolling underneath */
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  z-index: 1;
}
.deal-sheet-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
/* Leave room for the close button next to the restaurant name. */
.deal-sheet-tile > div > div:first-child {
  padding-right: 36px;
}
.deal-sheet-nearby {
  padding-bottom: 8px;
}
.deal-sheet-nearby-title {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--ink);
  margin: 10px 0 6px;
}
.deal-sheet-card {
  margin-bottom: 10px;
  cursor: pointer;
}
@media (min-width: 768px) {
  .deal-sheet {
    display: none;
  }
}

/* Deal title / description linked to the source page (linkToSource). */
/* Keep the text's own color; Leaflet colors every link in the map
   (.leaflet-container a) blue. */
.deal-source-link,
.leaflet-container a.deal-source-link {
  color: inherit;
  text-decoration: none;
}
.deal-source-link:hover {
  text-decoration: underline;
}
.deal-source-arrow {
  font-size: 0.8em;
  opacity: 0.6;
}

/* ==========================================================================
   DESIGN REFRESH (2026-11) — one type system, one accent, one card.
   Everything below overrides earlier rules; delete this block to revert.
   ========================================================================== */
:root {
  --surface: #FFFDF8;                       /* card surface on the cream page */
  --line: rgba(28, 24, 21, 0.09);           /* hairline borders / dividers */
  --line-strong: rgba(28, 24, 21, 0.16);
  --shadow-1: 0 1px 2px rgba(28, 24, 21, 0.04), 0 8px 20px -12px rgba(28, 24, 21, 0.22);
  --shadow-2: 0 2px 4px rgba(28, 24, 21, 0.05), 0 16px 34px -16px rgba(28, 24, 21, 0.32);
}

/* ---- Type: form controls inherit Manrope (they fell back to Arial), and
   Poppins (never loaded) is gone. ---- */
button, input, select, textarea { font-family: inherit; }
::placeholder { color: var(--ink-faint); opacity: 1; }
.step-number { font-family: var(--font-body); }
.deal-sheet-nearby-title { font: 600 1.05rem/1.2 var(--font-display); }

/* ---- Header: hairline instead of drop shadow; quieter search pill ---- */
body > header, .mobile-topbar { box-shadow: none; border-bottom: 1px solid var(--line); }
/* City cards use <header> too; keep them out of the site-header rules. */
.city-card-head { background: none; position: static; z-index: auto; box-shadow: none; border-bottom: 0; }
.nav-search-inner {
  background: var(--surface);
  border-color: var(--line-strong);
  box-shadow: 0 1px 2px rgba(28, 24, 21, 0.04);
}
.nav-filter-btn { color: var(--ink-soft); font-size: 0.88rem; }
.nav-filter-btn:hover { background: var(--paper); color: var(--ink); }
.nav-search-divider { background-color: var(--line-strong); }
#nav-name-input, #nav-location-input { color: var(--ink); font-size: 0.95rem; }
.dropdown-item .icon { display: inline-flex; color: var(--terracotta); }

/* ---- Chips ---- */
.filter-bubble,
.mobile-filter-btn {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-soft);
}
.filter-bubble:hover,
.mobile-filter-btn:hover { background: #fff; border-color: var(--ink-faint); color: var(--ink); }
.filter-bubble.active,
.mobile-filter-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: #fff; }

/* ---- Category tiles ---- */
.category-card { background: var(--surface); border-color: var(--line); }
.category-card:hover {
  background: #fff;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
  transform: translateY(-2px);
}
.category-card:hover .category-icon { transform: none; }
.category-card.is-active {
  border: 1px solid var(--terracotta);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--terracotta);
}

/* ---- Hero: solid cream under the headline so the map's Utah labels
   don't show through the text; the map reads on the right only. ---- */
@media (min-width: 900px) {
  .hero-map-scrim {
    background: linear-gradient(
      90deg,
      var(--paper) 0%,
      var(--paper) 34%,
      rgba(246, 239, 227, 0.9) 42%,
      rgba(246, 239, 227, 0.55) 50%,
      rgba(246, 239, 227, 0.18) 58%,
      rgba(246, 239, 227, 0) 64%
    );
  }
}

/* ---- Deal card (map list, popup, phone sheet) — search.js mp* builders ---- */
.deal-card.mp-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
  padding: 14px 16px 12px;
}
.deal-card.mp-card:hover,
.deal-card.mp-card.active-card {
  transform: none;
  border-color: var(--line-strong);
  box-shadow: var(--shadow-1);
}
.mp-card-head { display: flex; align-items: center; gap: 12px; }
.mp-card-logo {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
  object-fit: contain;
}
.mp-card-logo-blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--rust-tint);
  color: var(--terracotta-deep);
  font: 600 1.05rem/1 var(--font-display);
}
.mp-card-id { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.mp-card-name {
  font: 600 1.06rem/1.25 var(--font-display);
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
a.mp-card-name:hover { color: var(--terracotta-deep); }
.mp-card-rating { font: 500 0.8rem/1.3 var(--font-body); color: var(--ink-soft); }
.mp-star { color: var(--mustard); margin-right: 3px; }
.mp-muted { color: var(--ink-faint); }

.mp-deals { margin-top: 10px; display: flex; flex-direction: column; }
.mp-deal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.mp-deal-icon { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 1px; }
.mp-deal-main { flex: 1; min-width: 0; }
.mp-deal-title { font: 700 0.95rem/1.3 var(--font-body); color: var(--ink); overflow-wrap: anywhere; }
.mp-deal-time {
  margin-top: 3px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font: 500 0.82rem/1.3 var(--font-body);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.mp-now,
.restaurant-deal-now-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 7px;
  border: 0;
  border-radius: 999px;
  background: rgba(185, 78, 41, 0.1);
  color: var(--terracotta-deep);
  font: 700 0.66rem/1.4 var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mp-now::before,
.restaurant-deal-now-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracotta);
}
.mp-deal-desc {
  margin: 4px 0 0;
  font: 400 0.84rem/1.45 var(--font-body);
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.mp-actions { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.mp-action,
.city-card-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 600 0.8rem/1 var(--font-body);
  color: var(--ink-soft);
  white-space: nowrap;
}
.mp-action:hover { color: var(--ink); }
.mp-ico { flex: 0 0 auto; }
.mp-more,
.city-card-more {
  font: 700 0.8rem/1 var(--font-body);
  color: var(--terracotta);
  white-space: nowrap;
}
.mp-more:hover,
.city-card-more:hover { color: var(--terracotta-deep); }

/* Leaflet paints every popup link blue; keep the card's own colors. */
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-2); }
.leaflet-popup-content { font-family: var(--font-body); min-width: 260px; }
.leaflet-popup-content .mp-card { padding: 4px 2px 0; }
.leaflet-container .mp-card a.mp-card-name { color: var(--ink); }
.leaflet-container .mp-card a.mp-action { color: var(--ink-soft); }
.leaflet-container .mp-card a.mp-more { color: var(--terracotta); }

/* Report flag: a quiet line icon, not a mustard button. */
.report-flag-btn,
.restaurant-report-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  border-radius: 6px;
  padding: 4px;
  margin-top: -2px;
  line-height: 0;
  color: var(--ink-faint);
  opacity: 1;
  cursor: pointer;
}
.report-flag-btn:hover,
.restaurant-report-btn:hover { background: var(--paper); color: var(--terracotta); }
.report-flag-btn.is-reported,
.report-flag-btn.is-reported:hover,
.restaurant-report-btn[disabled] { background: transparent; color: var(--sage); cursor: default; }

/* ---- City / state list cards (prerender.py) — same look as .mp-card ---- */
.city-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px 12px;
}
.city-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.city-card-head { gap: 12px; margin-bottom: 0; }
.city-card-favicon {
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 4px;
  object-fit: contain;
}
.city-card-head-text { flex-direction: column; align-items: flex-start; gap: 1px; }
.city-card-rest-name { font: 600 1.06rem/1.25 var(--font-display); color: var(--ink); }
.city-card-rest-name:hover { text-decoration: none; color: var(--terracotta-deep); }
.city-card-rating { font: 500 0.8rem/1.3 var(--font-body); color: var(--ink-soft); }
.city-card-rating::before { content: "★"; color: var(--mustard); margin-right: 3px; }
.city-card-stars { display: none; }
.city-card-rating-num { font-weight: 500; }
.city-card-review-count { color: var(--ink-faint); font-size: inherit; }
.city-card-deals { margin-top: 10px; gap: 0; }
.city-card-deal { border-top: 1px solid var(--line); padding: 10px 0; }
.city-card-deal-pill {
  grid-template-columns: 20px 1fr;
  column-gap: 10px;
  row-gap: 3px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font-size: 0.95rem;
}
.city-card-deal-icon { width: 20px; height: 20px; margin-top: 1px; }
.city-card-deal-title { font: 700 0.95rem/1.3 var(--font-body); }
.city-card-deal-time {
  font: 500 0.82rem/1.3 var(--font-body);
  color: var(--ink-soft);
  white-space: normal;
  font-variant-numeric: tabular-nums;
}
.city-card-deal-desc {
  margin: 4px 0 0 30px;
  font: 400 0.84rem/1.45 var(--font-body);
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.city-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}
.city-card-action-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.city-card-action { padding: 0; border: 0; background: none; border-radius: 0; }
.city-card-action:hover { background: none; color: var(--ink); }
.restaurant-city-link,
.city-list-empty { background: var(--surface); border: 1px solid var(--line); }

/* ---- Restaurant page ---- */
.restaurant-action-secondary,
.restaurant-action-tertiary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.restaurant-action:hover { opacity: 1; }
.restaurant-action-primary:hover { background: var(--terracotta-deep); }
.restaurant-action-secondary:hover,
.restaurant-action-tertiary:hover { background: #fff; border-color: var(--ink-faint); }
.restaurant-deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}
.restaurant-deal-head { align-items: center; }
.restaurant-deal-title { font: 700 1rem/1.3 var(--font-body); }
.restaurant-deal-time { font: 600 0.85rem/1.3 var(--font-body); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
/* Week strip: seven day letters on the right of the hours line. Deal days
   are filled, the rest fade back, and today carries a dot underneath. The
   text label ("Tue–Sun") stays for screen readers only. */
.restaurant-deal-meta { gap: 0.4rem 0.75rem; }
.restaurant-week-strip { position: relative; margin-left: auto; gap: 4px; }
.restaurant-week-chip {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: transparent;
  color: rgba(28, 24, 21, 0.3);
  font: 700 0.62rem/1 var(--font-body);
}
.restaurant-week-chip.is-on { background: var(--rust-tint); color: var(--terracotta-deep); }
.restaurant-week-chip.is-today { box-shadow: none; }
.restaurant-week-chip.is-today::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--terracotta);
}
.restaurant-week-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.restaurant-deal-meta { padding-left: 2.15rem; }
.restaurant-deal-desc { margin-left: 2.15rem; }
.restaurant-today-pill {
  background: none;
  border: 0;
  padding: 0;
  color: var(--ink-faint);
  font: 700 0.66rem/1 var(--font-body);
  letter-spacing: 0.1em;
}
.restaurant-fav-btn { background: var(--surface); border-color: var(--line-strong); }

/* ---- Homepage: "Happening now" row (main.js initFeaturedDeals) ---- */
.featured-section { padding-top: 2.75rem; padding-bottom: 1rem; }
.featured-section[hidden] { display: none; }
.featured-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.featured-title { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
.featured-all { font: 700 0.9rem/1 var(--font-body); color: var(--terracotta); white-space: nowrap; }
.featured-all:hover { color: var(--terracotta-deep); }
.featured-links { display: flex; align-items: baseline; gap: 1rem; }
.featured-locate {
  padding: 0;
  border: 0;
  background: none;
  font: 600 0.9rem/1 var(--font-body);
  color: var(--ink-soft, rgba(28,24,21,0.72));
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.featured-locate:hover { color: var(--terracotta-deep); }
.featured-locate[hidden] { display: none; }
@media (max-width: 600px) {
  .featured-head { flex-wrap: wrap; row-gap: 0.4rem; }
  .featured-locate { font-size: 0.85rem; }
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.featured-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 158px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.featured-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.featured-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.featured-card .mp-card-logo { width: 32px; height: 32px; flex-basis: 32px; border-radius: 8px; padding: 3px; }
.featured-card-city {
  font: 700 0.66rem/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-card-deal { display: flex; align-items: center; gap: 7px; font: 700 1rem/1.25 var(--font-body); }
.featured-card-deal img { width: 18px; height: 18px; flex: 0 0 18px; }
.featured-card-name {
  font: 600 1rem/1.25 var(--font-display);
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-card-time {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
  font: 500 0.82rem/1.3 var(--font-body);
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.featured-card.is-skeleton {
  background: linear-gradient(90deg, var(--surface) 0%, #fff 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: mp-shimmer 1.4s ease-in-out infinite;
}
@keyframes mp-shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .featured-card.is-skeleton { animation: none; }
}
@media (max-width: 1000px) {
  .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* Phone: one swipeable row with the next card peeking in. */
  .featured-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin: 0 -20px;
    padding: 2px 20px 8px;
    scroll-padding-left: 20px;
  }
  .featured-grid::-webkit-scrollbar { display: none; }
  .featured-card { flex: 0 0 74%; scroll-snap-align: start; }
  .featured-all { font-size: 0.85rem; }
}

/* Support note (replaces the yellow Buy Me a Coffee box) */
.support-note { text-align: center; padding-top: 1.5rem; padding-bottom: 4rem; }
.support-note p { max-width: 560px; margin: 0 auto; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; }
.support-note a {
  color: var(--terracotta);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.bmc-callout { background: var(--surface); border: 1px solid var(--line); box-shadow: none; }
.bmc-callout p { color: var(--ink-soft); }
.bmc-btn { background: var(--ink); color: var(--paper); box-shadow: none; }
.bmc-btn:hover { box-shadow: none; background: #000; }
.success-icon { display: flex; justify-content: center; color: var(--terracotta); margin-bottom: 1rem; }

/* ---- Footer ---- */
footer { padding: 3.5rem 0 2.5rem; }
.footer-logo { height: 24px; filter: invert(1); opacity: 0.8; }
.footer-copyright {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  font-size: 0.82rem;
}
.footer-copyright a { text-decoration: none; }
.footer-copyright a:hover { color: var(--paper); text-decoration: none; }
.footer-disclaimer + .footer-copyright { margin-top: -1rem; }

/* Phone time chips: one line each (Manrope is wider than the old fallback). */
@media (max-width: 600px) {
  .city-time-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
  .city-time-filter::-webkit-scrollbar { display: none; }
  .city-time-filter .filter-bubble {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.78rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }
  .city-time-filter .filter-bubble svg,
  .city-time-filter .time-filter-icon { width: 14px; height: 14px; }
}
@media (max-width: 600px) {
  .restaurant-week-strip { gap: 2px; }
  .restaurant-week-chip { width: 18px; height: 18px; font-size: 0.56rem; }
  .restaurant-deal-meta { column-gap: 0.5rem; }
}

/* ==========================================================================
   RESTAURANT PAGE: day bar, live/ended status, info panel (2026-11)
   restaurant.js renderDeals / buildDayBar / buildDayList / buildInfoCard.
   ========================================================================== */
.restaurant-meta { flex-wrap: wrap; row-gap: 0.25rem; margin-bottom: 0.35rem; }
.restaurant-meta-dot { color: var(--ink-faint); margin: 0 0.1rem; }
.restaurant-price { letter-spacing: 0.04em; }
.restaurant-open-status {
  font: 500 0.92rem/1.3 var(--font-body);
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.restaurant-open-status.is-open strong { color: #2f7d4f; }
.restaurant-open-status.is-closed strong { color: var(--terracotta-deep); }

.restaurant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}
.restaurant-side { position: sticky; top: 96px; }
@media (max-width: 899px) {
  .restaurant-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .restaurant-side { position: static; }
}

.restaurant-deals-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0.25rem 0 0.75rem; }
.restaurant-deals-heading h2 { font-size: 1.45rem; margin: 0; }
.restaurant-checked { margin: 0; font: 500 0.82rem/1.3 var(--font-body); color: var(--ink-faint); }

/* Day bar: one segmented row instead of a strip on every card */
.restaurant-day-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: none;
}
.restaurant-day-bar::-webkit-scrollbar { display: none; }
.restaurant-day-seg {
  flex: 1 0 auto;
  min-width: 46px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 7px 8px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 0.85rem/1.1 var(--font-body);
  cursor: pointer;
}
.restaurant-day-seg:hover { background: rgba(28, 24, 21, 0.05); }
.restaurant-day-seg.is-week { padding-left: 12px; padding-right: 12px; }
.restaurant-day-seg.is-empty { color: rgba(28, 24, 21, 0.32); }
.restaurant-day-seg-today {
  font: 700 0.58rem/1 var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.restaurant-day-seg.is-selected { background: var(--ink); color: var(--paper); }
.restaurant-day-seg.is-selected .restaurant-day-seg-today { color: #F3C9B5; }
.restaurant-filters { margin: 0.75rem 0 0.5rem; }

/* Live / starts later / ended */
.restaurant-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px 2px 7px;
  border-radius: 999px;
  font: 700 0.68rem/1.4 var(--font-body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.restaurant-status.is-live { background: rgba(185, 78, 41, 0.1); color: var(--terracotta-deep); }
.restaurant-status.is-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--terracotta); }
.restaurant-status.is-soon { background: rgba(28, 24, 21, 0.06); color: var(--ink-soft); }
.restaurant-status.is-ended { background: rgba(28, 24, 21, 0.06); color: var(--ink-faint); }
.restaurant-deal-card.is-ended { opacity: 0.7; }
.restaurant-deal-ended {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 10px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--ink-faint);
  font: 500 0.88rem/1.3 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.restaurant-deal-ended img { opacity: 0.55; flex: 0 0 auto; }
.restaurant-deal-ended-title { flex: 1; min-width: 0; color: var(--ink-soft); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.restaurant-deal-ended-time { flex: 0 0 auto; font-variant-numeric: tabular-nums; }
.restaurant-deal-ended:hover { border-color: var(--ink-faint); }

.restaurant-source-note {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font: 400 0.84rem/1.55 var(--font-body);
  color: var(--ink-faint);
}
.restaurant-source-note a { color: var(--terracotta); font-weight: 600; white-space: nowrap; }

/* Info panel */
.restaurant-info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.restaurant-mini-map { height: 170px; background: var(--rust-tint); }
.restaurant-mini-map.is-link { cursor: pointer; }
.restaurant-mini-map-pin img { width: 34px; height: auto; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.35)); }
.restaurant-info-rows { padding: 4px 16px; }
.restaurant-info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font: 500 0.9rem/1.4 var(--font-body);
  color: var(--ink-soft);
}
.restaurant-info-row:first-child { border-top: 0; }
.restaurant-info-row > svg { flex: 0 0 auto; margin-top: 2px; color: var(--ink-faint); }
.restaurant-info-row a { color: var(--ink); overflow-wrap: anywhere; }
.restaurant-info-row a:hover { color: var(--terracotta-deep); }
.restaurant-hours { display: block; }
.restaurant-hours summary { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; list-style: none; }
.restaurant-hours summary::-webkit-details-marker { display: none; }
.restaurant-hours summary > svg { flex: 0 0 auto; margin-top: 2px; color: var(--ink-faint); }
.restaurant-hours summary::after { content: "▾"; margin-left: auto; color: var(--ink-faint); }
.restaurant-hours[open] summary::after { content: "▴"; }
.restaurant-hours strong.is-open { color: #2f7d4f; }
.restaurant-hours strong.is-closed { color: var(--terracotta-deep); }
.restaurant-hours table { width: 100%; margin: 8px 0 2px; border-collapse: collapse; font-size: 0.86rem; }
.restaurant-hours th { text-align: left; font-weight: 500; color: var(--ink-faint); padding: 3px 0 3px 26px; }
.restaurant-hours td { text-align: right; color: var(--ink-soft); padding: 3px 0; font-variant-numeric: tabular-nums; }
.restaurant-hours tr.is-today th, .restaurant-hours tr.is-today td { color: var(--ink); font-weight: 700; }
.restaurant-day-seg .seg-short { display: none; }
@media (max-width: 600px) {
  .restaurant-day-bar { gap: 2px; padding: 3px; }
  .restaurant-day-seg { flex: 1 1 0; min-width: 0; padding: 7px 2px; font-size: 0.8rem; }
  .restaurant-day-seg.is-week { padding-left: 4px; padding-right: 4px; }
  .restaurant-day-seg .seg-long { display: none; }
  .restaurant-day-seg .seg-short { display: inline; }
  .restaurant-day-seg-today { font-size: 0.5rem; letter-spacing: 0.04em; }
}

/* ---- Hover helpers for filter buttons (main.js initHoverTips) ---- */
.mp-tip {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  max-width: 300px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #1C1815;
  color: #F6EFE3;
  font: 500 0.78rem/1.35 var(--font-body, system-ui, sans-serif);
  white-space: pre-line;
  box-shadow: 0 6px 18px -6px rgba(28, 24, 21, 0.45);
  pointer-events: none;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}
.mp-tip.is-on { opacity: 1; transform: none; }
.mp-tip::after {
  content: "";
  position: absolute;
  left: var(--arrow-x, 50%);
  width: 8px;
  height: 8px;
  margin-left: -4px;
  background: inherit;
  transform: rotate(45deg);
}
.mp-tip[data-side="top"]::after { bottom: -4px; }
.mp-tip[data-side="bottom"]::after { top: -4px; }
@media (prefers-reduced-motion: reduce) { .mp-tip { transition: none; } }

/* Offer lines ("$6 drafts" / "$7 wells"): short, so show up to four. */
.mp-deal-desc.mp-deal-offers, .city-card-deal-desc.deal-offers { -webkit-line-clamp: 4; }

/* ==========================================================================
   v2 THEME (2026-11-05): palette E + Geist, matching the new homepage
   (assets/css/home.css). Burgundy chrome, deep-turquoise actions, rust
   prices, blush-cream paper. Redefines the tokens above, then restyles the
   shared header and footer; everything built on the tokens follows.
   ========================================================================== */
:root {
  --paper: #FDF8F3;
  --paper-deep: #EDE2DC;
  --ink: #29272B;
  --ink-soft: #4F4744;
  --ink-faint: #8C817C;
  --sand: #E8DDD7;
  --terracotta: #2F7383;        /* primary action: deep turquoise */
  --terracotta-deep: #245E6C;
  --rust-tint: #E3EEF1;         /* active pill background */
  --sage: #C9431B;              /* accent: burgundy */
  --sage-soft: rgba(201, 67, 27, 0.1);
  --marigold: #2F7383;          /* pin accents, banner borders */
  --marigold-pale: #E3EEF1;
  --burgundy: #C9431B;
  --burgundy-deep: #A3360F;
  --rust: #C9431B;              /* prices */
  --turq: #2F7383;
  --surface: #FFFCFA;
  --line: rgba(41, 39, 43, 0.09);
  --line-strong: rgba(41, 39, 43, 0.16);
  --font-display: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-variation-settings: normal;
  font-weight: 650;
  letter-spacing: -0.025em;
}
h1 em, h2 em, h3 em { font-style: normal; color: inherit; }

/* Header: burgundy bar, white logo, cream links. */
header { background-color: var(--burgundy); box-shadow: none; }
header .logo, header .logo-icon, header .mobile-nav-brand img { filter: brightness(0) invert(1); }
header a, header .nav-links a { color: rgba(253, 248, 243, 0.9); }
header a:hover, header .nav-links a:hover { color: #fff; }
header input[type="text"], header input[type="search"] {
  background: #fff; color: var(--ink); border-color: transparent;
}
header .mapela-account-btn {
  background: transparent; color: rgba(253, 248, 243, 0.92);
  border-color: rgba(253, 248, 243, 0.4);
}
header .mapela-account-btn:hover { background: rgba(253, 248, 243, 0.12); }

/* Footer: light, like the homepage's. */
footer { background-color: var(--paper); color: var(--ink-soft); border-top: 1px solid var(--line); }
footer a, .footer-links a, .footer-cities a { color: var(--ink-soft); }
footer a:hover, .footer-links a:hover, .footer-cities a:hover { color: var(--burgundy); }
footer p, .footer-disclaimer, .footer-copyright, .footer-cities-label { color: var(--ink-faint) !important; }
footer h3, .newsletter-headline { color: var(--ink); }
.footer-logo { filter: none; }

/* Buttons and links. */
.btn { border-radius: 999px; }
.btn-primary { background-color: var(--terracotta); }
.btn-primary:hover { background-color: var(--terracotta-deep); }

/* v2 cleanup: drop the v1 ornaments (italic accent words, squiggles, glows,
   drop cap, tracked all-caps eyebrows). Type and color carry the page. */
.hero-headline em, .hero h1 em, .about-title em, .about-quote em {
  font-style: normal; font-variation-settings: normal; color: var(--burgundy);
}
.hero-headline em::after, .hero h1 em::after, .about-quote em::after { display: none; }
.hero, .about-page main {
  background: var(--paper);
}
.about-cta::before, .about-cta::after { display: none; }
.has-dropcap::first-letter {
  float: none; font-size: inherit; line-height: inherit; margin: 0; padding: 0;
  font-weight: inherit; color: inherit; font-family: inherit;
}
.hero-eyebrow, .about-eyebrow, .city-eyebrow {
  text-transform: none; letter-spacing: 0; font-size: 0.95rem; font-weight: 600; color: var(--burgundy);
}
.hero-eyebrow::before { display: none; }
.about-section-title::before { display: none; }
.about-section-title { padding-left: 0; }
.about-mark, .about-marks { text-transform: none; letter-spacing: 0; }
/* Selected day: same deep turquoise as every other selected control. */
.restaurant-day-seg.is-selected {
  background: var(--terracotta); color: #fff;
}
/* Phone header: same burgundy bar as desktop. */
.mobile-search-stack { background: var(--burgundy); border-bottom: 0; }
.mobile-search-stack .logo-icon, .mobile-search-stack .mobile-nav-brand img { filter: brightness(0) invert(1); }
.mobile-search-stack .mapela-account-btn {
  background: transparent; color: rgba(253, 248, 243, 0.92); border-color: rgba(253, 248, 243, 0.4);
}

/* Map page result cards with a photo (Yelp-style). Stacked photo in the
   results column (2/5 of the screen) and on phones; photo beside the text
   only once that column is wide (1500px+ screens, ~600px column). */
.mp-card.has-photo { overflow: hidden; }
.mp-card-photo { display: block; margin: -2px -2px 12px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--paper-deep); }
.mp-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mp-card-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; font: 500 0.8rem/1.3 var(--font-body); color: var(--ink-soft); }
.mp-card-extra + .mp-card-extra::before, .mp-card-rating + .mp-card-extra::before { content: "·"; margin-right: 8px; color: var(--ink-faint); }
@media (min-width: 1500px) {
  #deals-list { padding: 1.25rem 1.75rem; }
  .mp-card.has-photo { display: grid; grid-template-columns: 220px 1fr; gap: 20px; align-items: start; }
  .mp-card-photo { margin: 0; aspect-ratio: 4 / 3; }
  .mp-card.has-photo .mp-card-head .mp-card-logo { display: none; }
  .mp-card-name { font-size: 1.2rem; letter-spacing: -0.02em; }
}
@media (min-width: 1100px) {
  .sidebar-filter-bar .mobile-time-row { justify-content: flex-start; gap: 8px; padding-left: 1.75rem !important; }
  .sidebar-filter-bar .time-btn { flex: 0 0 auto; }
  .sidebar-filter-bar .time-btn:not(.time-btn-icon) { padding-left: 14px; padding-right: 14px; }
}

.mobile-view-toggle { background: var(--burgundy) !important; color: #fff !important; }

/* Restaurant page photo banner. */
.restaurant-photo { display: none; }
.restaurant-photo.is-loaded {
  display: block; height: clamp(180px, 28vw, 300px); margin: 0 0 18px;
  border-radius: 16px; overflow: hidden; background: var(--paper-deep);
}
.restaurant-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* City page restaurant cards with a photo. */
.city-card.has-photo { overflow: hidden; }
.city-card-photo { display: block; aspect-ratio: 16 / 9; margin: 0 0 12px; border-radius: 12px; overflow: hidden; background: var(--paper-deep); }
.city-card-photo:empty { display: none; }
.city-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (min-width: 760px) {
  .city-card.has-photo { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
  .city-card-photo { margin: 0; aspect-ratio: 4 / 3; }
  .city-card-photo:empty { display: block; }
}
footer .footer-cities a.footer-cities-all { color: var(--burgundy); }
footer input[type="email"], footer input[name="zip"] { background: #fff; border: 1px solid var(--sand); }

/* Headings in Catamaran (the wordmark's face); body text stays Geist. */
:root { --font-display: 'Catamaran', 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
.hero h1, .hero-headline, .restaurant-name, .about-title { font-weight: 800; letter-spacing: -0.015em; }
h2, .city-mood-title { font-weight: 700; }
.mp-card-name { font-weight: 700; letter-spacing: -0.005em; }

/* Bar-tile pattern (assets/img/pattern), faint cream on the burgundy
   header. Same image as the homepage. */
body > header, .mobile-search-stack {
  background-image: url("/assets/img/pattern/bar-tile-cream.png");
  background-size: auto 200px;
  background-position: center 46%;
  background-repeat: repeat-x;
}

/* Modernize (preview): deal filters in a light row under the burgundy bar,
   Map / Cities links in the bar, line icons, drop pins. */
header .nav-filter-row {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
header .nav-filter-row .container { display: flex; padding-top: 10px; padding-bottom: 10px; }
header .nav-filter-row .nav-search-filters { display: flex; gap: 8px; flex-wrap: wrap; }
header .nav-filter-row .nav-filter-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--line); color: var(--ink);
  font: 500 0.92rem/1 var(--font-body);
}
header .nav-filter-row .nav-filter-btn img { width: 17px !important; height: 17px !important; margin: 0 !important; filter: none; }
header .nav-filter-row .nav-filter-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: #FFFFFF; }
header .nav-filter-row .nav-filter-btn.active img { filter: brightness(0) invert(1); }
header .top-links { display: flex; gap: 22px; margin-left: 18px; }
header .top-links a { color: rgba(253, 248, 243, 0.9); font-weight: 600; text-decoration: none; }
header .top-links a:hover { color: #FFFFFF; }
.mobile-filter-row { background: var(--paper); border-bottom: 1px solid var(--line); }
.mobile-filter-btn img { filter: none; }
.mobile-filter-btn.active img { filter: brightness(0) invert(1); }
/* Restaurant pages have their own deal filters above the list. */
.restaurant-page header .nav-filter-row, .restaurant-page .mobile-filter-row { display: none; }

/* Featured (paid) restaurants: arrowhead badge, burgundy card edge, pin on top. */
.mp-featured-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px 3px 7px; border-radius: 999px;
  background: var(--burgundy); color: #FFFFFF;
  font: 600 0.75rem/1.2 var(--font-body); white-space: nowrap; vertical-align: middle;
}
.mp-card.is-featured { position: relative; border: 2px solid var(--burgundy); box-shadow: 0 0 0 4px rgba(232, 174, 72, 0.35); }
.mp-card.is-featured > .mp-featured-badge { position: absolute; top: 12px; right: 12px; z-index: 2; }
.restaurant-header-top .mp-featured-badge { margin-left: 4px; flex: none; }

/* Palette v3 (2026-11-05): gold for highlights. */
:root { --gold: #E8AE48; }
/* Number bubbles: black with a white ring and numerals, like the multi-deal
   pin (pins/v7/multi.svg): black = lots of deals here. */
.mapela-cluster { background: #29272B; border-color: #FFFFFF; color: #FFFFFF; }

/* Light top bar on every page (2026-11-05), matching the homepage: cream bar,
   dark logo and links, white search pill with a hairline edge. Overrides the
   burgundy header above. */
body > header, .mobile-search-stack {
  background-color: #FDF8F3;
  background-image: none;
  border-bottom: 1px solid rgba(41, 39, 43, 0.08);
}
header .logo, header .logo-icon, header .mobile-nav-brand img,
.mobile-search-stack .logo-icon, .mobile-search-stack .mobile-nav-brand img { filter: none; }
header a, header .nav-links a, header .top-links a { color: #29272B; }
header a:hover, header .nav-links a:hover, header .top-links a:hover { color: #C9431B; }
header .nav-filter-row .nav-filter-btn.active { color: #FFFFFF; }
.nav-search-inner { border: 1px solid rgba(41, 39, 43, 0.14); box-shadow: 0 2px 10px rgba(41, 39, 43, 0.06); }
header input[type="text"], header input[type="search"] { color: #29272B; }
header .mapela-account-btn, .mobile-search-stack .mapela-account-btn {
  background: #FFFFFF; border: 1px solid rgba(41, 39, 43, 0.2); color: #29272B;
}
header .mapela-account-btn.is-signed-in, .mobile-search-stack .mapela-account-btn.is-signed-in {
  background: #C9431B; border-color: #C9431B; color: #FFFFFF;
}
.mobile-search-stack input[type="text"] { border: 1px solid rgba(41, 39, 43, 0.14); }
header .nav-filter-row, .mobile-filter-row { border-top: 1px solid rgba(41, 39, 43, 0.08); }

/* Same top bar as the homepage on every page (home.css .top): logo, deal-type
   links with icons, Saved, burgundy map button, account. The search box and
   the deal filters sit in the light row underneath. */
header > .top.nav-container {
  display: flex; align-items: center; gap: 28px;
  height: auto; max-width: none; margin: 0;
  padding: 14px max(clamp(16px, 4vw, 56px), calc((100% - 1320px) / 2));   /* same as home.css */
  background: #FDF8F3;
}
header > .top .brand { display: flex; align-items: center; }
header > .top .brand .logo { height: 40px; width: auto; filter: none; }
header .top-cats { display: flex; gap: 26px; margin-left: auto; }
header .top-cats a, header .top-saved {
  display: inline-flex; align-items: center; gap: 8px;
  color: #29272B; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
}
header .top-cats a:hover, header .top-saved:hover { color: #C9431B; }
header .top-saved { padding-left: 22px; border-left: 1px solid rgba(41, 39, 43, 0.15); }
header .top-map {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: #C9431B; color: #FFFFFF; font-weight: 700; text-decoration: none; white-space: nowrap;
}
header .top-map:hover { background: #A3360F; color: #FFFFFF; }
header > .top .mapela-account-btn { margin-left: 0; }
header .nav-filter-row .container { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
header .nav-filter-row .nav-search-wrapper { flex: 1 1 420px; max-width: 620px; margin: 0; }
@media (max-width: 1100px) {
  header .top-cats { display: none; }
  header .top-saved { margin-left: auto; border-left: 0; padding-left: 0; }
}
/* Phones: the same compact bar as the homepage above the phone search block,
   which loses its own logo and account button. */
@media (max-width: 900px) {
  .has-mobile-search > header { display: block; position: static; }
  .has-mobile-search > header .nav-filter-row { display: none; }
  header > .top.nav-container { gap: 14px; padding: 10px clamp(16px, 4vw, 56px); }
  header > .top .brand .logo { height: 32px; }
  header .top-saved { font-size: 0; gap: 0; }
  header .top-map { width: 40px; height: 40px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  header .top-map svg { width: 20px; height: 20px; }
  .mobile-search-stack .mobile-nav-brand, .mobile-search-stack .mapela-account-btn { display: none; }
}
/* Phones: heart and map pin are plain icons; the account is the one circle
   (same as home.css). */
@media (max-width: 900px) {
  header .top-map, header .top-map:hover { width: 36px; height: 36px; background: none; color: #C9431B; }
  header .top-map svg { width: 24px; height: 24px; }
  header .top-saved img { width: 24px; height: 24px; }
  header > .top .mapela-account-btn { width: 38px; height: 38px; }
}

/* Restaurant page breadcrumb (prerender.py): Colorado › City › Restaurant. */
.restaurant-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; font-size: 0.9rem; color: #6B6266; }
.restaurant-breadcrumb a { color: #C9431B; font-weight: 600; text-decoration: none; }
.restaurant-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.restaurant-breadcrumb .sep { color: #A39A9D; }
.restaurant-breadcrumb [aria-current] { color: #29272B; font-weight: 500; }

/* ---- Map: "find me" button, the visitor's blue dot, and its message ---- */
.mp-locate .mp-locate-btn {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; color: var(--ink); background: #fff; cursor: pointer;
}
.mp-locate .mp-locate-btn:hover { background: #f4f4f4; }
.mp-locate .mp-locate-btn.is-on { color: #2F80ED; }
.mp-locate .mp-locate-btn.is-busy svg { animation: mp-locate-spin 1s linear infinite; }
@keyframes mp-locate-spin { to { transform: rotate(360deg); } }
.mp-me span {
  display: block; width: 20px; height: 20px; border-radius: 50%;
  background: #2F80ED; border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.mp-me span::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(47, 128, 237, 0.5); animation: mp-me-pulse 2s ease-out infinite;
}
@keyframes mp-me-pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 128, 237, 0.45); } 100% { box-shadow: 0 0 0 16px rgba(47, 128, 237, 0); } }
.mp-locate-msg {
  position: absolute; left: 50%; top: 12px; z-index: 1001; transform: translate(-50%, -8px);
  max-width: min(340px, calc(100% - 100px)); padding: 9px 14px; border-radius: 12px;
  background: rgba(28, 24, 21, 0.9); color: #fff; font: 500 0.85rem/1.35 var(--font-body, sans-serif);
  text-align: center; opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s;
}
.mp-locate-msg.is-on { opacity: 1; transform: translate(-50%, 0); }
.mp-card-dist { font-weight: 600; color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .mp-me span::after, .mp-locate .mp-locate-btn.is-busy svg { animation: none; }
}

/* Started from a city guess: a soft pulse on the find-me button. */
.mp-locate .mp-locate-btn.is-hint { color: #286A79; animation: mp-locate-hint 1.6s ease-in-out 4; }
@keyframes mp-locate-hint { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 115, 131, 0); } 50% { box-shadow: 0 0 0 6px rgba(47, 115, 131, 0.35); } }
@media (prefers-reduced-motion: reduce) { .mp-locate .mp-locate-btn.is-hint { animation: none; } }

/* ---- Restaurant page: written summary, nearby deals, raw-HTML facts
   (prerender.py). Facts sit inside #restaurant-container and are replaced
   by restaurant.js's info panel for visitors with JavaScript. ---- */
.restaurant-facts { list-style: none; margin: 0.75rem 0 1rem; padding: 0; display: grid; gap: 4px; font: 400 0.92rem/1.45 var(--font-body); color: var(--ink-soft); }
.restaurant-facts strong { color: var(--ink); font-weight: 600; }
.restaurant-about,
.restaurant-nearby {
  margin: 2rem 0 0;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.restaurant-about h2,
.restaurant-nearby h2 { margin: 0 0 0.5rem; font: 700 1.1rem/1.25 var(--font-display); color: var(--ink); }
.restaurant-about p { margin: 0; font: 400 0.95rem/1.6 var(--font-body); color: var(--ink-soft); }
.restaurant-nearby ul { list-style: none; margin: 0; padding: 0; }
.restaurant-nearby li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.restaurant-nearby li:first-child { border-top: 0; padding-top: 2px; }
.restaurant-nearby a { font: 600 0.95rem/1.3 var(--font-body); color: var(--ink); text-decoration: none; }
.restaurant-nearby a:hover { color: var(--terracotta-deep); text-decoration: underline; text-underline-offset: 3px; }
.restaurant-nearby span { font: 400 0.85rem/1.3 var(--font-body); color: var(--ink-faint); }
.restaurant-about + .restaurant-nearby { margin-top: 1rem; }
.restaurant-nearby + .restaurant-city-link { margin-top: 1rem; }

/* ---- Map listings: homepage deal accents (home.css .dc-offers). Prices
   lead in burgundy in one shared column, so the words line up; the live pill
   is turquoise with a pulsing dot. ---- */
.mp-deal-offers {
  list-style: none; margin: 5px 0 0; padding: 0;
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 3px;
  font: 400 0.86rem/1.4 var(--font-body);
}
.mp-deal-offers li { display: contents; }
.mp-deal-offers b { color: var(--burgundy, #C9431B); font-weight: 700; white-space: nowrap; }
.mp-deal-offers span { color: var(--ink-soft); }
.mp-deal-offers li.plain span { grid-column: 1 / -1; }
.mp-deal-offers li.more span { color: var(--ink-faint); font-size: 0.8rem; }
.mp-deal a.deal-source-link:has(> .mp-deal-offers) { display: block; }
.mp-deal a.deal-source-link:hover .mp-deal-offers span { text-decoration: underline; text-underline-offset: 2px; }
.mp-now,
.restaurant-deal-now-pill { background: #E3EEF1; color: #286A79; }
.mp-now::before,
.restaurant-deal-now-pill::before { background: #2F7383; animation: mp-now-pulse 1.8s ease-in-out infinite; }
@keyframes mp-now-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) {
  .mp-now::before, .restaurant-deal-now-pill::before { animation: none; }
}

/* Restaurant page deal cards: same offer column as the map and homepage,
   indented under the deal title like the old description. */
.restaurant-deal-offers { margin: 6px 0 0 2.15rem; }
.restaurant-deal-offers a.deal-source-link { display: block; color: inherit; text-decoration: none; }
.restaurant-deal-offers a.deal-source-link:hover span { text-decoration: underline; text-underline-offset: 2px; }
.restaurant-deal-offers .mp-deal-offers { margin-top: 0; font-size: 0.92rem; }

/* ==========================================================================
   City pages (prerender.py render_city_body): photo hero, "On now" photo
   cards in the homepage's style, then the map in its own section.
   ========================================================================== */
.place-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(420px, 62vh, 620px);
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg, #C9431B 0%, #4A1D2C 100%);
  color: #fff;
}
.place-hero-media { position: absolute; inset: 0; z-index: -2; }
.place-hero-img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transform: scale(1.04); animation: place-hero-zoom 14s ease-out forwards;
}
@keyframes place-hero-zoom { to { transform: scale(1); } }
.place-hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 14, 16, 0.15) 0%, rgba(20, 14, 16, 0.25) 40%, rgba(20, 14, 16, 0.82) 100%),
    linear-gradient(90deg, rgba(20, 14, 16, 0.45) 0%, rgba(20, 14, 16, 0) 60%);
}
.place-hero-inner { padding-top: 6rem; padding-bottom: 2.75rem; width: 100%; }
.place-hero .hero-eyebrow {
  display: inline-flex; color: #fff; background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28); backdrop-filter: blur(6px);
  padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; margin: 0 0 0.9rem;
}
.place-hero h1 {
  margin: 0 0 1rem; max-width: 820px; color: #fff;
  font: 800 clamp(2.4rem, 6vw, 4.6rem)/1.02 var(--font-display);
  letter-spacing: -0.02em; text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.place-hero h1 em { font-style: normal; color: #5FE3DC; }
.place-hero .hero-stamp {
  display: inline-flex; align-items: center; gap: 8px; color: #fff;
  background: rgba(20, 14, 16, 0.45); border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 7px 14px; border-radius: 999px; font-size: 0.9rem; backdrop-filter: blur(6px);
}
.place-hero .hero-stamp-text strong { color: #5FE3DC; }
.place-hero .hero-pulse-dot { background: #3FE0D0; }
.place-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.4rem; }
.place-hero-btn {
  display: inline-flex; align-items: center; padding: 12px 20px; border-radius: 999px;
  background: #2F7383; color: #fff; text-decoration: none; font: 700 0.98rem/1 var(--font-body);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25); transition: transform 0.15s ease, background 0.15s ease;
}
.place-hero-btn:hover { background: #245E6C; transform: translateY(-1px); color: #fff; }
.place-hero-btn.is-ghost { background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.45); box-shadow: none; backdrop-filter: blur(6px); }
.place-hero-btn.is-ghost:hover { background: rgba(255, 255, 255, 0.24); }
.place-hero-credit {
  position: absolute; right: 10px; bottom: 6px; z-index: 1; max-width: 60%;
  font: 400 0.68rem/1.3 var(--font-body); color: rgba(255, 255, 255, 0.7); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.place-hero-credit:hover { color: #fff; text-decoration: underline; }
body.city-page .place-hero + * { margin-top: 0; }

/* "On now" photo cards — homepage .dcard look. */
.city-spotlight { padding-top: 2rem; }
.spot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.spot-all { font: 600 0.92rem/1 var(--font-body); color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.spot-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.spot-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: var(--surface, #FFFCFA); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.spot-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(41, 39, 43, 0.12); color: var(--ink); }
.spot-top { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #E3EEF1, #EDE2DC); }
.spot-top img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.spot-card:hover .spot-top img { transform: scale(1.04); }
.spot-top::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(to bottom, rgba(20, 16, 18, 0), rgba(20, 16, 18, 0.78)); pointer-events: none; }
.spot-over { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: #fff; }
.spot-name { font: 700 1.15rem/1.2 var(--font-display); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.spot-meta { margin-top: 2px; font-size: 0.85rem; opacity: 0.92; }
.spot-body { padding: 14px 16px 16px; flex: 1; }
.spot-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spot-hours { display: inline-flex; align-items: center; gap: 6px; font: 600 0.85rem/1 var(--font-body); color: #C9431B; border: 1.5px solid currentColor; border-radius: 8px; padding: 4px 8px 4px 6px; white-space: nowrap; }
.spot-hours img { width: 16px; height: 16px; }
.spot-state { font: 600 0.8rem/1 var(--font-body); color: var(--ink-faint); background: #F7E7D6; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.spot-state.is-live { color: #286A79; background: #E3EEF1; }
.spot-state.is-live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2F7383; margin-right: 6px; vertical-align: 1px; animation: mp-now-pulse 1.8s ease-in-out infinite; }
.spot-state.is-soon { color: #C9431B; background: rgba(201, 67, 27, 0.08); }
.spot-title { margin: 10px 0 0; font: 650 1rem/1.3 var(--font-body); }
.spot-card:hover .spot-title { color: #C9431B; }
.spot-deal .mp-deal-offers { margin-top: 6px; }
@media (max-width: 1000px) { .spot-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .spot-cards { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 24px; gap: 14px; margin: 0 -24px; padding: 2px 24px 10px; scrollbar-width: none; }
  .spot-cards::-webkit-scrollbar { display: none; }
  .spot-card { flex: 0 0 84%; scroll-snap-align: start; }
  .place-hero { min-height: 480px; }
  .place-hero-inner { padding-bottom: 2.25rem; }
  .place-hero-credit { max-width: 80%; }
}

/* Map, in its own section under the cards (main.js mounts it). */
.city-map-section { padding-top: 2rem; }
.city-map-inline {
  position: relative; inset: auto; height: clamp(320px, 46vh, 460px);
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line); cursor: pointer;
}
.city-map-inline #hero-map-leaflet { position: absolute; inset: 0; }
.city-map-open { display: inline-block; margin-top: 10px; font: 600 0.95rem/1 var(--font-body); color: #286A79; text-decoration: none; }
.city-map-open:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Statewide pages: photo card per town (prerender.py render_state_city_cards). */
.state-towns { padding-top: 2rem; }
.town-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.town-card {
  position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, #2F7383, #16384A);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.town-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }
.town-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to bottom, rgba(20, 16, 18, 0) 35%, rgba(20, 16, 18, 0.8)); pointer-events: none; }
.town-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(41, 39, 43, 0.16); color: #fff; }
.town-card:hover img { transform: scale(1.05); }
.town-over { position: absolute; left: 14px; right: 14px; bottom: 12px; display: flex; flex-direction: column; gap: 3px; }
.town-name { font: 800 1.25rem/1.15 var(--font-display); text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35); }
.town-meta { font: 600 0.85rem/1.2 var(--font-body); opacity: 0.92; }
@media (max-width: 1000px) { .town-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .town-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .town-over { left: 10px; right: 10px; bottom: 9px; }
  .town-name { font-size: 1.05rem; }
  .town-meta { font-size: 0.76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .place-hero-img { animation: none; transform: none; }
  .spot-card, .spot-top img, .town-card, .town-card img { transition: none; }
}

/* City pages already know the city: no "City or Zip Code" row on phones
   (the header, deal-type chips and the hero's map button stay). */
body.city-page .mobile-search-stack { display: none; }

/* 2026-11-10 refresh: Nunito (the rounded face of the new wordmark) for headings and text. */
:root {
  --font-display: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body { font-family: var(--font-body); }
h1, h2, h3 { font-family: var(--font-display); }
header > .top .brand .logo { height: 36px; }
@media (max-width: 860px) { header > .top .brand .logo { height: 30px; } }

/* Restaurant, city and info pages: the homepage's floating white header card
   with plain-text tabs (the map page keeps its own search header). */
header:not(.map-header) { background: #FDF8F3; }
header:not(.map-header) > .top.nav-container {
  width: min(1296px, calc(100% - 2 * clamp(16px, 3vw, 36px)));
  margin: 14px auto 6px; padding: 10px 12px 10px 24px; gap: 14px;
  background: #FFFFFF; border: 1px solid rgba(41, 39, 43, 0.06); border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(41, 39, 43, 0.28);
}
header:not(.map-header) .top-cats { gap: 2px; margin: 0 auto; }
header:not(.map-header) .top-cats img { display: none; }
header:not(.map-header) .top-cats a { padding: 10px 14px; border-radius: 999px; font-weight: 700; }
header:not(.map-header) .top-cats a:hover { background: #F7E7D6; }
header:not(.map-header) .top-saved { border-left: 0; padding: 0; font-weight: 700; }
header:not(.map-header) .top-map { padding: 10px 18px; background: #29272B; font-weight: 800; }
header:not(.map-header) .top-map:hover { background: #C9431B; }
@media (max-width: 1100px) { header:not(.map-header) .top-saved { margin-left: auto; } }
@media (max-width: 900px) {
  header:not(.map-header) > .top.nav-container { margin: 10px auto 4px; padding: 6px 8px 6px 16px; gap: 8px; }
  header:not(.map-header) .top-map, header:not(.map-header) .top-map:hover { padding: 0; background: none; }
}

/* 2026-11-10 palette from the brand board: terracotta highlights, deep teal. */
:root { --burgundy: #C9431B; --rust: #C9431B; --turq: #2F7383; }
header:not(.map-header) .top-cats a:hover { background: #F7E7D6; color: #C9431B; }
header:not(.map-header) .top-map:hover { background: #C9431B; }
.place-hero h1 em, .place-hero .hero-stamp-text strong { color: #FF8A3D; }
.place-hero .hero-pulse-dot { background: #FF8A3D; }
.place-hero-btn:not(.is-ghost) { background: #C9431B; color: #FFFFFF; }
.place-hero-btn:not(.is-ghost):hover { background: #A3360F; }
.nav-search-submit, .mobile-search-stack .mobile-search-submit { background: #C9431B; color: #FFFFFF; }
.nav-search-submit:hover, .mobile-search-stack .mobile-search-submit:hover { background: #A3360F; }

/* Light beige (#F7E7D6) band behind the header card and filter row, beige
   chips; near-white warm cream page. */
:root { --paper: #FDF8F3; }
body { background-color: #FDF8F3; }
header:not(.map-header), header.map-header, header .nav-filter-row { background: #F7E7D6; }
.nav-filter-btn:not(.active), .mobile-filter-btn:not(.active) { background: #FFF9F2; border-color: #EBD5BE; }
footer, .footer { background: #F7E7D6; }
header.map-header > .top.nav-container, .mobile-search-stack { background: #F7E7D6; }
header > .top .brand .logo { height: 48px; }
@media (max-width: 900px) { header > .top .brand .logo { height: 38px; } }
.footer-logo { height: 34px; width: auto; }

/* 2026-11-11 palette matched to the logo: deep slate blue for dark buttons. */
header:not(.map-header) .top-map { background: #16384A; }
header:not(.map-header) .top-map:hover { background: #C9431B; }

/* Leftover hard-coded faces and the old blush neutrals, brought into line. */
.step-number, .bmc-btn, .deal-sheet-nearby-title { font-family: var(--font-display); }
:root { --paper-deep: #F7E7D6; --sand: #EBD5BE; --rust-tint: #E3EEF1; }

/* Same header as the homepage on every page: Deals and Cities menus, plain
   tabs, heart, map pin (phones), account. */
header .top-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
header .top-nav > a, header .top-menu > summary {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px;
  color: #29272B; font: 700 1rem/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer; list-style: none;
}
header .top-menu > summary::-webkit-details-marker { display: none; }
header .top-nav > a:hover, header .top-menu > summary:hover, header .top-menu[open] > summary { background: #F7E7D6; color: #C9431B; }
header .top-menu { position: relative; }
header .top-menu .chev { transition: transform 0.15s; }
header .top-menu[open] .chev { transform: rotate(180deg); }
header .top-menu .menu {
  position: absolute; top: calc(100% + 12px); left: 0; z-index: 200; min-width: 230px;
  display: grid; padding: 8px; background: #FFFFFF; border-radius: 18px;
  border: 1px solid rgba(41, 39, 43, 0.08); box-shadow: 0 18px 40px -14px rgba(41, 39, 43, 0.35);
}
header .top-menu .menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: #29272B; font-weight: 600; text-decoration: none; white-space: nowrap; }
header .top-menu .menu a:hover { background: #F7E7D6; color: #C9431B; }
header:not(.map-header) .top-saved { font-size: 0; gap: 0; width: 40px; height: 40px; justify-content: center; border-radius: 50%; margin-left: 0; }
header:not(.map-header) .top-saved:hover { background: #F7E7D6; }
header:not(.map-header) .top-map, header:not(.map-header) .top-map:hover { display: none; }
/* Flat deal-type row with icons + Cities menu (same as home.css). */
header .top-nav > a img, header .top-menu > summary img { width: 20px; height: 20px; flex: none; }
@media (max-width: 1360px) {
  header .top-nav { gap: 0; }
  header .top-nav > a, header .top-menu > summary { padding: 10px 10px; font-size: 0.95rem; gap: 5px; }
}
/* 2026-11-14: the nav always keeps its icons; narrow desktops shorten the
   names instead (All, Drinks, Meals: the phone chips' words, for.js). */
@media (max-width: 1180px) {
  header .top-nav > a, header .top-menu > summary { padding: 9px 8px; font-size: 0.92rem; }
}
@media (max-width: 1040px) {
  header .top-nav .nl-full { display: none; }
  header .top-nav .nl-short { display: inline; }
  header .top-nav > a, header .top-menu > summary { padding: 9px 8px; font-size: 0.92rem; }
}
@media (max-width: 960px) {
  header .top-nav { display: none; }
  header:not(.map-header) .top-saved { margin-left: auto; }
  header:not(.map-header) .top-map, header:not(.map-header) .top-map:hover {
    display: inline-flex; width: 36px; height: 36px; padding: 0; justify-content: center; font-size: 0; gap: 0;
    background: none; color: #16384A;
  }
}

/* Main actions are burnt orange everywhere; teal marks what's selected. */
.restaurant-action-primary, .btn-primary { background: #C9431B; border-color: #C9431B; color: #FFFFFF; }
.restaurant-action-primary:hover, .btn-primary:hover { background: #A3360F; border-color: #A3360F; color: #FFFFFF; }

/* 2026-11-12 One main navbar everywhere, the homepage's (_build/tools/site_nav.py):
   logo | All Deals, Happy Hours, Meal Deals, Kids Eat Free, Events | location
   pill | heart | account. No Cities menu, no second search row. On the map the
   deal types are its filters and the search sits above the results. */
header.site-header > .top.nav-container {
  width: min(1296px, calc(100% - 2 * clamp(16px, 3vw, 36px)));
  margin: 14px auto 6px; padding: 10px 12px 10px 24px; gap: 14px;
  background: #FFFFFF; border: 1px solid rgba(41, 39, 43, 0.06); border-radius: 999px;
  box-shadow: 0 10px 30px -14px rgba(41, 39, 43, 0.28);
}
header.site-header .top-loc {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; border: 1.5px solid transparent;
  background: #F7E7D6; color: #29272B; font: 700 0.98rem/1 var(--font-body);
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
header.site-header .top-loc:hover { background: #F2DCC5; color: #C9431B; }
header.site-header .top-saved { font-size: 0; gap: 0; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0; padding: 0; border: 0; }
header.site-header .top-saved:hover { background: #F7E7D6; }
header.site-header .top-map { display: none; }
header.site-header .mapela-account-btn { margin-left: 0; }

/* Map: deal-type tabs look like the homepage's links; the selected one is teal. */
header.map-header .map-tabs .nav-filter-btn {
  display: inline-flex; align-items: center; gap: 6px; height: auto; margin: 0;
  padding: 10px 14px; border-radius: 999px; border: 0; background: none; box-shadow: none;
  color: #29272B; font: 700 1rem/1 var(--font-body); white-space: nowrap; cursor: pointer;
}
header.map-header .map-tabs .nav-filter-btn img { width: 20px; height: 20px; margin: 0; flex: none; }
header.map-header .map-tabs .nav-filter-btn:hover { background: #F7E7D6; color: #C9431B; }
header.map-header .map-tabs .nav-filter-btn.active { background: #2F7383; color: #FFFFFF; }
header.map-header .map-tabs .nav-filter-btn.active img { filter: brightness(0) invert(1); }
.sidebar-search { padding: 12px 16px 6px; }
.sidebar-search .nav-search-wrapper { width: 100%; max-width: none; margin: 0; flex: none; }

@media (max-width: 1360px) {
  header.map-header .map-tabs .nav-filter-btn { padding: 10px 10px; font-size: 0.95rem; gap: 5px; }
}
@media (max-width: 1180px) {
  header.map-header .map-tabs .nav-filter-btn { padding: 9px 8px; font-size: 0.92rem; }
}

@media (max-width: 1100px) {
  header.site-header .top-loc { padding: 10px; gap: 0; }
  header.site-header .top-loc [data-loc-label], header.site-header .top-loc .chev { display: none; }
}
@media (max-width: 960px) {
  header.site-header .top-loc { margin-left: auto; }
  header.site-header:not(.map-header) .top-saved { margin-left: 0; }
}
@media (max-width: 900px) {
  /* Phones: the homepage's header card (logo, pin, heart, account) on every
     page but the map, which keeps its own search + filter bar. */
  body:not(.map-page) .mobile-topbar { display: none; }
  header.site-header > .top.nav-container { margin: 10px auto 4px; padding: 6px 8px 6px 16px; gap: 6px; width: calc(100% - 36px); }
  header.site-header .top-loc { padding: 9px; }
  header.site-header .top-saved, header.site-header .mapela-account-btn { width: 36px; height: 36px; }
  .sidebar-search { display: none; }
}
@media (max-width: 480px) {
  header.site-header .top-saved { display: none; }
  header.site-header .top-loc span { max-width: 92px; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Owner-claimed listings (restaurant.js applyOverlay) ---- */
.restaurant-claimed { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(46, 125, 79, .13); color: #2E7D4F; font-size: .8rem; font-weight: 800; white-space: nowrap; vertical-align: middle; }
.restaurant-owner-about { margin: 8px 0 4px; color: var(--ink-soft); font-size: 1rem; line-height: 1.55; max-width: 680px; }
.restaurant-owner-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(46, 125, 79, .13); color: #2E7D4F; font-size: .74rem; font-weight: 800; vertical-align: middle; }
.restaurant-owner-photos { margin-top: 28px; }
.restaurant-owner-photos .restaurant-section-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 10px; }
.restaurant-owner-photo-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.restaurant-owner-photo-strip a { flex: 0 0 auto; scroll-snap-align: start; }
.restaurant-owner-photo-strip img { width: 220px; height: 165px; object-fit: cover; border-radius: 12px; display: block; }
@media (max-width: 640px) { .restaurant-owner-photo-strip img { width: 70vw; height: 52vw; } }

/* ---- Diner photos + contributions (restaurant.js buildDinerPhotos, contrib.js) ---- */
.restaurant-diner-tag { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(47, 115, 131, .12); color: #2F7383; font-size: .74rem; font-weight: 800; vertical-align: middle; }
.restaurant-diner-photos { margin-top: 28px; padding: 18px; border: 1px solid rgba(41, 39, 43, .1); border-radius: 16px; background: #fff; }
.restaurant-diner-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.restaurant-diner-photos .restaurant-section-title { font-size: 1.15rem; font-weight: 800; margin: 0; }
.restaurant-points-link { font-size: .9rem; font-weight: 700; color: var(--burgundy, #C9431B); text-decoration: none; white-space: nowrap; }
.restaurant-points-link:hover { text-decoration: underline; }
.restaurant-diner-empty { margin: 0 0 12px; color: var(--ink-soft); font-size: .95rem; }
.restaurant-diner-strip { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scroll-snap-type: x mandatory; }
.restaurant-diner-photo { flex: 0 0 auto; width: 220px; margin: 0; scroll-snap-align: start; }
.restaurant-diner-photo img { width: 220px; height: 165px; object-fit: cover; border-radius: 12px; display: block; }
.restaurant-diner-photo figcaption { position: relative; padding: 6px 22px 0 2px; font-size: .8rem; line-height: 1.35; color: var(--ink-soft); }
.restaurant-diner-photo .cap { display: block; color: var(--ink, #29272B); font-weight: 600; }
.restaurant-flag-photo { position: absolute; top: 4px; right: 0; border: 0; background: none; color: #8C8380; cursor: pointer; font-size: .9rem; padding: 2px; }
.restaurant-flag-photo:hover { color: var(--burgundy, #C9431B); }
.restaurant-contrib-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.restaurant-contrib-btn { padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(41, 39, 43, .16); background: #fff; color: var(--ink, #29272B); font: 700 .92rem/1.2 inherit; cursor: pointer; }
.restaurant-contrib-btn:first-child { background: var(--burgundy, #C9431B); border-color: var(--burgundy, #C9431B); color: #fff; }
.restaurant-contrib-btn:hover { filter: brightness(.96); }
@media (max-width: 640px) { .restaurant-diner-photo, .restaurant-diner-photo img { width: 70vw; } .restaurant-diner-photo img { height: 52vw; } }

/* Restaurant-level "Report a problem" (info card + source note). */
.restaurant-report-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0; border: 0; background: none; color: var(--ink-soft, #4F4744); font: 600 .9rem/1.3 var(--font-body, inherit); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(41, 39, 43, .25); }
.restaurant-report-link:hover { color: #C9431B; }
.restaurant-report-link:disabled { cursor: default; text-decoration: none; color: #2E7D4F; }
.restaurant-report-link svg { width: 15px; height: 15px; flex: none; }
.restaurant-info-card .restaurant-report-link { margin: 14px 16px 16px; }
.restaurant-source-note .restaurant-report-link { margin-top: 0; font-size: inherit; display: inline; }
.restaurant-source-note .restaurant-report-link svg { display: none; }

/* 2026-11-14: Categories menu (Kids Eat Free + deals for seniors, military,
   industry, teachers, students, first responders). main.js builds it from the
   Kids Eat Free tab; the chosen category shows on the summary. */
header .cat-menu.active > summary { background: #F7E7D6; color: #C9431B; }
.map-header .cat-menu > summary {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--line); color: var(--ink); font: 500 0.92rem/1 var(--font-body);
}
.map-header .cat-menu > summary img { width: 17px !important; height: 17px !important; margin: 0 !important; }
.map-header .cat-menu.active > summary { background: var(--terracotta); border-color: var(--terracotta); color: #FFFFFF; }
.map-header .cat-menu.active > summary img { filter: brightness(0) invert(1); }
.map-header .cat-menu .menu { min-width: 210px; }
.map-header .cat-menu .menu .nav-filter-btn {
  display: flex; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none;
  color: #29272B; font: 600 0.95rem/1.2 var(--font-body); text-align: left; cursor: pointer;
}
.map-header .cat-menu .menu .nav-filter-btn:hover { background: #F7E7D6; color: #C9431B; }
.map-header .cat-menu .menu .nav-filter-btn.active { background: #F7E7D6; color: #C9431B; }
@media (max-width: 1180px) {
  .map-header .cat-menu > summary { padding: 8px 10px; }
  .map-header .cat-menu .menu .nav-filter-btn { font-size: 0.95rem; gap: 0; padding: 10px 12px; }
}
/* Phones: the 'More' chip is a native picker laid over the chip. */
.mobile-filter-btn.cat-chip { position: relative; }
.mobile-filter-btn.cat-chip select {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer;
  font-size: 16px; /* no iOS zoom on focus */
}

/* 2026-11-14: 'For' chip (assets/js/for.js): checkboxes for group deals
   (Kids Eat Free, Seniors, Military ...), all on by default; phones get a
   bottom sheet. */
header .for-menu .menu.for-panel { min-width: 300px; padding: 10px; }
.for-row label span, .for-all, .for-note { white-space: nowrap; }
.for-head { padding: 4px 8px 8px; color: #8C8380; font: 700 .76rem/1.2 var(--font-body, inherit); letter-spacing: .05em; text-transform: uppercase; }
.for-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 4px 0 8px; border-radius: 10px; }
.for-row:hover { background: #F7E7D6; }
.for-row label { display: flex; flex: 1; align-items: center; gap: 10px; padding: 9px 0; color: #29272B; font: 600 .95rem/1.2 var(--font-body, inherit); cursor: pointer; }
.for-row input { width: 18px; height: 18px; margin: 0; accent-color: #C9431B; flex: none; }
.for-only, .map-header .for-menu .menu .for-only.nav-filter-btn {
  display: inline-block; width: auto; padding: 5px 8px; border: 0; border-radius: 999px; background: none;
  color: #C9431B; font: 600 .8rem/1 var(--font-body, inherit); text-decoration: none; cursor: pointer; opacity: .75;
}
.for-only:hover, .map-header .for-menu .menu .for-only.nav-filter-btn:hover { opacity: 1; background: #FFFFFF; }
.for-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 10px 8px 2px; border-top: 1px solid rgba(41, 39, 43, .1); }
.for-all { padding: 0; border: 0; background: none; color: #C9431B; font: 700 .85rem/1 var(--font-body, inherit); cursor: pointer; }
.for-note { color: #8C8380; font-size: .78rem; }
.for-sheet { position: fixed; inset: 0; z-index: 3000; display: none; align-items: flex-end; background: rgba(20, 18, 20, .35); }
.for-sheet.open { display: flex; }
.for-sheet-card { width: 100%; max-height: 82vh; overflow: auto; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: #FFFFFF; }
.for-sheet .for-row label { padding: 12px 0; font-size: 1rem; }
.for-done { width: 100%; margin-top: 12px; padding: 13px; border: 0; border-radius: 999px; background: #C9431B; color: #FFFFFF; font: 700 1rem/1 var(--font-body, inherit); cursor: pointer; }
.for-menu > summary .for-ico, .for-chip .for-ico { color: #C9431B; flex: none; }
.map-header .for-menu > summary .for-ico { width: 17px; height: 17px; }
.map-header .for-menu.active > summary .for-ico { color: #FFFFFF; }
.for-chip .for-ico { width: 18px; height: 18px; }
.for-chip.active .for-ico { color: currentColor; }
.for-row .for-ico { width: 20px; height: 20px; color: #C9431B; flex: none; }

/* Long 'For: Military & FR' summaries never push the nav row over. */
.for-menu .cat-menu-label { display: inline-block; max-width: 10.5em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

header .top-nav .nl-short { display: none; }
@media (max-width: 1040px) { header .top-nav .nl-full { display: none; } header .top-nav .nl-short { display: inline; } }

/* 2026-11-15: map page pills are on/off toggles (assets/js/map-filters.js).
   For is one pill in two halves: the left switches group deals on and off,
   the chevron opens the group checkboxes. */
.map-header .for-split {
  position: relative; display: inline-flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 999px; background: #FFFFFF;
}
.map-header .for-split .for-toggle {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 6px 7px 13px;
  border: 0; border-radius: 999px 0 0 999px; background: none; color: var(--ink);
  font: 500 0.92rem/1 var(--font-body); cursor: pointer;
}
.map-header .for-split .for-toggle .for-ico { width: 17px; height: 17px; color: #C9431B; flex: none; }
.map-header .for-split .for-menu > summary.for-chev {
  display: inline-flex; align-items: center; height: 100%; padding: 0 11px 0 7px;
  border: 0; border-left: 1px solid rgba(41, 39, 43, .14); border-radius: 0 999px 999px 0;
  background: none; color: var(--ink);
}
.map-header .for-split.active { background: var(--terracotta); border-color: var(--terracotta); }
.map-header .for-split.active .for-toggle,
.map-header .for-split.active .for-menu > summary.for-chev,
.map-header .for-split.active .for-toggle .for-ico { color: #FFFFFF; }
.map-header .for-split.active .for-menu > summary.for-chev { border-left-color: rgba(255, 255, 255, .35); }
.map-header .for-split .for-menu .menu.for-panel { right: 0; left: auto; }
@media (max-width: 1180px) {
  .map-header .for-split .for-toggle { padding: 7px 5px 7px 11px; }
}
.for-chip-split { display: flex; flex: 1 1 0; min-width: 0; }
.for-chip-split .mobile-filter-btn.for-chip { flex: 1 1 auto; border-radius: 22px 0 0 22px; border-right: 0; padding-right: 2px; }
.for-chip-chev {
  display: flex; align-items: center; padding: 0 9px 0 6px; flex: none;
  border: 1px solid var(--line-strong, #e2e2e6); border-left: 1px solid rgba(41, 39, 43, .12);
  border-radius: 0 22px 22px 0; background: var(--surface, #fff); color: var(--ink-soft, #666); cursor: pointer;
}
.for-chip-split .for-chip.active + .for-chip-chev {
  background: var(--terracotta); border-color: var(--terracotta); border-left-color: rgba(255, 255, 255, .35); color: #FFFFFF;
}

/* 2026-11-15: off the map, For's icon + name go to the map (For only) like
   the other tabs; the chevron beside it opens the group checkboxes. */
.for-menu > summary .for-go { display: inline-flex; align-items: center; gap: inherit; color: inherit; text-decoration: none; }
.for-menu > summary .for-chev-btn { display: inline-flex; align-items: center; margin-left: 2px; padding: 2px 0 2px 6px; border-left: 1px solid rgba(41, 39, 43, .15); }
a.for-chip { text-decoration: none; }
.for-chip-split { display: flex; flex: 1 1 0; min-width: 0; }
.for-chip-split .mobile-filter-btn.for-chip { flex: 1 1 auto; border-radius: 22px 0 0 22px; border-right: 0; padding-right: 2px; }
.for-chip-chev {
  display: flex; align-items: center; padding: 0 9px 0 6px; flex: none;
  border: 1px solid var(--line-strong, #e2e2e6); border-left: 1px solid rgba(41, 39, 43, .12);
  border-radius: 0 22px 22px 0; background: var(--surface, #fff); color: var(--ink-soft, #666); cursor: pointer;
}

/* 2026-11-15: with All back in the phone row (All, Drinks, Meals, Events,
   Perks + chevron), Perks gets a little extra room so its name fits. */
.mobile-filter-row .for-chip-split { flex: 1.65 1 0; }
.mobile-filter-row .for-chip-split .mobile-filter-btn.for-chip { padding-left: 6px; gap: 3px; }
.mobile-filter-row .for-chip-chev { padding: 0 6px 0 4px; }
@media (max-width: 370px) {
  .mobile-filter-row .for-chip-split .mobile-filter-btn.for-chip { padding-left: 4px; gap: 2px; }
  .mobile-filter-row .for-chip-split .for-ico { width: 15px; height: 15px; }
  .mobile-filter-row .for-chip-chev { padding: 0 4px 0 2px; }
}

/* 2026-11-15: under a city's tiles, a quiet link to its Kids Eat Free page
   (kept for search; Kids is one of For's groups, so it has no tile). */
.city-mood-more { margin: 10px 0 0; text-align: center; font-size: .92rem; }
.city-mood-more a { color: var(--ink-soft, #4F4744); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(41, 39, 43, .25); }
.city-mood-more a:hover { color: #C9431B; }

/* Social icons in the footer (added 2026-11-15) */
.social-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem; }
.social-links a { display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; color: var(--ink-soft);
  background: rgba(41, 39, 43, 0.06); transition: background 0.2s, color 0.2s; }
.social-links a:hover, .social-links a:focus-visible { color: #C9431B; background: rgba(41, 39, 43, 0.12); }
