:root {
  --cream: #f4efe8;
  --card: #fffdf8;
  --ink: #121827;
  --muted: #6b6259;
  --line: #e2d5c3;
  --purple: #6c3cff;
  --purple-light: rgba(108, 60, 255, 0.10);
  --pink: #ff6fae;
  --teal: #2ec4b6;
  --tag: #f0ebe2;
  --shadow: #111827;
}

* { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Page wrapper ── */
.page {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 0;
}

/* ── Sticky header bar ── */
.site-header-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--cream);
  border-bottom: 1.5px solid var(--line);
  box-shadow: 0 2px 12px -4px rgba(0,0,0,0.10);
}

.site-header-bar .page {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ── Header ── */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 0;
}

.brand img {
  display: block;
  width: auto;
  height: 68px;
  object-fit: contain;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  background: var(--pink);
  color: var(--ink);
  border: 2.5px solid var(--shadow);
  box-shadow: 0 4px 0 var(--shadow);
  border-radius: 8px;
  font-weight: 900;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
  white-space: nowrap;
}

.submit-button:hover {
  box-shadow: 0 2px 0 var(--shadow);
  transform: translateY(2px);
}

/* ── Button label toggle ── */
.btn-short { display: none; }

/* ── Mobile hero (hidden on desktop) ── */
.mobile-hero { display: none; }

/* ── Mobile category dropdown (hidden on desktop) ── */
.mobile-cat-wrap { display: none !important; }

/* ── Mobile sub-filter dropdown (hidden on desktop) ── */
.mobile-sub-wrap { display: none !important; }
.mobile-sub-prefix {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Hero — full-bleed banner (lives outside .page) ── */
.hero-card {
  width: 100%;
  background: var(--cream);
  line-height: 0;
  margin: 0;
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  height: 240px;
  display: block;
  object-fit: cover;
  object-position: center center;
  mix-blend-mode: multiply;
}

/* ── Category cards ── */
.category-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 12px;
}

.category-card {
  min-height: 114px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 10px 6px;
  gap: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.category-card:hover {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-light);
  background: #fdfaff;
}

.category-card.active {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-light);
  background: #fdfaff;
}

/* Label on top */
.category-card span {
  font-size: 13px;
  line-height: 1.2;
  text-align: center;
}

.category-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.category-card[data-category="All"] {
  justify-content: center;
}

/* ── Toolbar ── */
.toolbar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
  flex-wrap: wrap;
  position: sticky;
  top: var(--header-h, 0px);
  z-index: 50;
  background: var(--cream);
  padding: 10px 0 8px;
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.08);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  flex: 0 0 auto;
  transition: border-color 0.15s;
}

.search-text-box {
  flex: 1;
  min-width: 140px;
}

.zip-box {
  width: 148px;
}

.search-box:focus-within {
  border-color: var(--purple);
}

.search-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--muted);
}

.search-box input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--muted);
}

/* ── Radius buttons ── */
.radius-group {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.radius-btn {
  height: 42px;
  padding: 0 13px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  white-space: nowrap;
}

.radius-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.radius-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.radius-btn[data-miles="69"].nice-pending {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 900;
}

.radius-btn[data-miles="69"].active {
  border-color: transparent;
  animation: niceGlow 1.8s linear infinite;
  color: #fff;
  font-weight: 900;
}

@keyframes niceGlow {
  0%   { background: #ff6b6b; box-shadow: 0 0 14px 3px #ff6b6b88; }
  17%  { background: #ff9f43; box-shadow: 0 0 14px 3px #ff9f4388; }
  33%  { background: #ffd93d; box-shadow: 0 0 14px 3px #ffd93d88; }
  50%  { background: #6bcb77; box-shadow: 0 0 14px 3px #6bcb7788; }
  67%  { background: #4d96ff; box-shadow: 0 0 14px 3px #4d96ff88; }
  83%  { background: #c77dff; box-shadow: 0 0 14px 3px #c77dff88; }
  100% { background: #ff6b6b; box-shadow: 0 0 14px 3px #ff6b6b88; }
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrap select {
  height: 42px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 0 34px 0 12px;
  font: inherit;
  font-size: 13.5px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 150px;
}

.select-arrow {
  position: absolute;
  right: 10px;
  width: 12px;
  height: 12px;
  color: var(--muted);
  pointer-events: none;
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s;
}

.toolbar-btn:hover {
  border-color: var(--muted);
}

.toggle-btn.active {
  border-color: var(--purple);
  background: #f0ebff;
  color: var(--purple);
}

.geo-btn.active {
  border-color: #58a890;
  background: rgba(88,168,144,0.10);
  color: #2d7a64;
}

.view-button.active {
  border-color: var(--pink);
  background: #fff4f8;
  font-weight: 800;
}

/* ── Directory ── */
.directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.directory-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.category-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 20px;
  animation: badgePop 0.15s ease;
}

@keyframes badgePop {
  from { transform: scale(0.7); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* ── Sub-filter chips ── */
.subfilter-row[hidden] { display: none; }
.subfilter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  top: calc(var(--header-h, 0px) + var(--toolbar-h, 0px));
  z-index: 40;
  background: var(--cream);
  padding: 6px 0 10px;
  margin: 0 0 4px;
  box-shadow: 0 3px 10px -4px rgba(0,0,0,0.07);
  animation: badgePop 0.15s ease;
}

.subfilter-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  white-space: nowrap;
}

.subfilter-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 20px;
  border: 1.5px solid var(--line);
  background: var(--card);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  white-space: nowrap;
}

.subfilter-chip:hover {
  border-color: var(--purple);
  color: var(--purple);
}

.subfilter-chip.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}

.directory-header h1 {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.directory-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.table-wrap {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  overflow: clip;
}

[hidden] { display: none !important; }

/* ── Map view ── */
#map {
  height: 600px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  overflow: hidden;
  margin-bottom: 24px;
}

.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13) !important;
  border: 1.5px solid var(--line);
  padding: 0 !important;
  font-family: inherit !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  font-family: inherit !important;
}

.leaflet-popup-tip-container { margin-top: -1px; }

.map-popup {
  padding: 13px 16px 12px;
  min-width: 190px;
}

.popup-name {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.popup-cat {
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

.popup-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.popup-status {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.popup-status.open { background: #dcfce7; color: #15803d; }
.popup-status.closed { background: #fee2e2; color: #b91c1c; }

.popup-visit {
  display: inline-block;
  margin-top: 9px;
  font-size: 12px;
  font-weight: 800;
  color: var(--purple);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.popup-visit:hover { text-decoration: underline; }

.table-head,
.listing-row {
  display: grid;
  grid-template-columns: 2.1fr 1.1fr 1.6fr 1.25fr 0.7fr;
  gap: 0 16px;
  align-items: start;
}

.table-head > div,
.listing-row > div {
  padding-top: 0;
  min-width: 0;
}

.table-head {
  padding: 10px 20px;
  border-bottom: 1px solid var(--line);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--muted);
  background: #faf5ec;
}

.listing-row {
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}

.listing-row:last-child {
  border-bottom: 0;
}

.listing-row:hover {
  background: #faf5ec;
}

.business-name {
  font-size: 16px;
  font-weight: 800;
  color: #17264a;
  text-decoration: none;
  line-height: 1.25;
  display: block;
}

.business-name:hover {
  text-decoration: underline;
}

.description {
  margin: 3px 0 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 13.5px;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.open {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34,197,94,0.25), 0 0 8px rgba(34,197,94,0.5);
  animation: pulse-green 2s infinite;
}

.status-dot.closed {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.2);
}

.status-text {
  font-size: 12.5px;
  font-weight: 700;
}

.status-text.open { color: #16a34a; }
.status-text.closed { color: #b91c1c; }

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.25), 0 0 8px rgba(34,197,94,0.5); }
  50% { box-shadow: 0 0 0 5px rgba(34,197,94,0.15), 0 0 14px rgba(34,197,94,0.6); }
}

.category-pills-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-start;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--tag);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}

.category-pill img {
  width: 16px;
  height: 16px;
  object-fit: contain;
  image-rendering: pixelated;
}

.sec-pill {
  background: #ede9fe;
  border-color: #c4b5fd;
  color: #5b21b6;
}

.location-area-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.location-area {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f766e;
}

.dist-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #58a890;
  background: rgba(88,168,144,0.10);
  border: 1px solid rgba(88,168,144,0.30);
  border-radius: 20px;
  padding: 1px 7px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.meta {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.4;
}

.maps-link {
  text-decoration: none;
  color: var(--muted);
}

.maps-link:hover {
  color: var(--purple);
  text-decoration: underline;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 600;
  color: #0f766e;
  text-decoration: none;
  margin-top: 4px;
}

.phone-link:hover {
  color: var(--purple);
  text-decoration: underline;
}

.hours {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.4;
  font-weight: 600;
}

.visit-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}

.visit-btn:hover {
  border-color: var(--purple);
  color: var(--purple);
  background: #f3f0ff;
}

.empty {
  padding: 32px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 15px;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 0 8px;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s;
}

.page-btn:hover:not([disabled]) {
  border-color: var(--purple);
  color: var(--purple);
}

.page-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 700;
}

.page-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

.page-ellipsis {
  color: var(--muted);
  font-size: 14px;
  padding: 0 4px;
}

/* ── Footer ── */
.footer {
  border-top: 1.5px solid var(--line);
  margin-top: 24px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 0 44px;
}

.footer-top {
  display: flex;
  justify-content: center;
  padding-bottom: 20px;
}

.footer-rule {
  height: 1px;
  background: var(--line);
  width: 100%;
  margin-bottom: 20px;
}

.footer-cols {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.6fr;
  gap: 0 32px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  height: 62px;
  width: auto;
  display: block;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}
.footer-col:nth-child(1) {
  padding-right: 0;
}
.footer-col:nth-child(2) {
  padding-right: 24px;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 4px;
  padding-bottom: 8px;
  position: relative;
}
.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 1.5px;
  background: #c4b5a5;
  border-radius: 2px;
}

.footer-col-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 4px;
}

.footer-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.12s;
}
.footer-link:hover { color: var(--purple); }

.footer-link-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  min-height: 36px;
  padding: 0 16px;
  background: #58a890;
  color: #fff;
  border: 2px solid var(--shadow);
  box-shadow: 0 3px 0 var(--shadow);
  border-radius: 7px;
  font-weight: 900;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  white-space: nowrap;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
  align-self: flex-start;
}
.footer-link-cta:hover {
  box-shadow: 0 1px 0 var(--shadow);
  transform: translateY(2px);
  color: #fff;
}

/* ── Inline newsletter banner ── */
.inline-nl-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #eee8de;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  margin: 2px 0;
}

.inline-nl-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.inline-nl-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.inline-nl-text { min-width: 0; }

.inline-nl-heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 3px;
}

.inline-nl-sub {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.inline-nl-form {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  align-items: center;
}

.inline-nl-input {
  width: 200px;
  max-width: none;
}

.inline-nl-success {
  font-size: 13.5px;
  font-weight: 600;
  color: #58a890;
  margin: 0;
  padding: 4px 0;
}

.newsletter-form {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.newsletter-input {
  flex: 1;
  min-width: 0;
  max-width: 280px;
  height: 38px;
  padding: 0 12px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s;
}
.newsletter-input:focus { border-color: var(--purple); }
.newsletter-input::placeholder { color: #bbb0a4; }

.newsletter-btn {
  height: 36px;
  padding: 0 16px;
  background: #58a890;
  color: #fff;
  border: 2px solid var(--shadow);
  box-shadow: 0 3px 0 var(--shadow);
  border-radius: 7px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: box-shadow 0.12s ease, transform 0.12s ease;
}
.newsletter-btn:hover {
  box-shadow: 0 1px 0 var(--shadow);
  transform: translateY(2px);
}
.newsletter-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.newsletter-msg {
  font-size: 12.5px;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
}

.footer-copy {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  text-align: center;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-tagline {
  margin: 0;
  font-weight: 900;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  line-height: 1.6;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  color: var(--muted);
  display: flex;
  align-items: center;
  transition: color 0.12s;
}

.footer-social a:hover {
  color: var(--ink);
}

.footer-divider {
  width: 1.5px;
  height: 80px;
  background: var(--line);
}

.footer-nav {
  display: grid;
  gap: 9px;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.05em;
}

.footer-nav a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.12s;
}

.footer-nav a:hover {
  color: var(--purple);
}

/* ── Responsive — tablet (≤1050px) ── */
@media (max-width: 1050px) {
  .page { padding: 14px 16px 0; }
  .brand img { height: 52px; }

  .category-row {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-row::-webkit-scrollbar { display: none; }
  .category-card { min-width: 100px; flex-shrink: 0; }

  .toolbar { flex-wrap: wrap; }
  .search-box { flex: 1 1 140px; }
  .radius-group { flex: 0 0 auto; }

  .table-head { display: none; }
  .listing-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .category-pill { width: max-content; }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
    gap: 28px 32px;
  }
  .footer-newsletter { grid-column: 1 / -1; }
  .footer-divider { display: none; }
  .footer-nav { text-align: center; }
}

/* ── Responsive — phone (≤680px) ── */
@media (max-width: 680px) {
  /* Hero: swap desktop banner for mobile image */
  .hero-card { display: none; }
  .mobile-hero {
    display: block;
    line-height: 0;
    background: var(--cream);
    border-bottom: 1.5px solid var(--line);
  }
  .mobile-hero-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    image-rendering: pixelated;
  }

  /* Header: smaller logo, shorter button label */
  .brand img { height: 38px; }
  .btn-full { display: none; }
  .btn-short { display: inline; }
  .submit-button { font-size: 12px; min-height: 38px; padding: 0 14px; gap: 5px; }

  /* Categories: hide card grid, show dropdown instead */
  .category-row { display: none !important; }
  .mobile-cat-wrap {
    display: block !important;
    position: relative;
    margin: 10px 0 0;
    width: 100%;
  }
  .mobile-cat-trigger {
    width: 100%;
    height: 42px;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-align: left;
    transition: border-color 0.15s;
  }
  .mobile-cat-trigger[aria-expanded="true"] { border-color: var(--purple); }
  .mobile-cat-chevron {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    color: var(--muted);
    transition: transform 0.2s;
  }
  .mobile-cat-trigger[aria-expanded="true"] .mobile-cat-chevron { transform: rotate(180deg); }
  .mobile-cat-panel {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--card);
    border: 1.5px solid var(--line);
    border-radius: 10px;
    z-index: 200;
    padding: 4px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
  }
  .mobile-cat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
    user-select: none;
  }
  .mobile-cat-item:active { background: var(--cream); }
  .mobile-cat-item input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--purple);
    cursor: pointer;
    flex-shrink: 0;
  }

  /* Page containment */
  .page { padding: 10px 12px 0; max-width: 100%; }
  .site-header-bar .page { padding-top: 8px; padding-bottom: 8px; }

  /* Toolbar — 3 rows: [search] / [zip · radius] / [open now · list · map] */
  .toolbar { gap: 6px; max-width: 100%; }
  .search-text-box  { order: 1; flex: 1 1 100%; }
  .zip-box          { order: 2; flex: 1 1 auto; width: auto; max-width: 160px; }
  .radius-group     { order: 3; flex: 0 0 auto; }
  .radius-btn       { padding: 0 9px; font-size: 12px; height: 40px; }
  #openNowBtn       { order: 4; flex: 1; justify-content: center; font-size: 12.5px; padding: 0 10px; }
  #listViewBtn      { order: 5; flex: 1; justify-content: center; font-size: 12.5px; }
  #mapViewBtn       { order: 6; flex: 1; justify-content: center; font-size: 12.5px; }

  /* Footer — single column on mobile */
  .footer-cols {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .footer-col { text-align: center; }
  .footer-col:nth-child(-n+2) { padding-right: 0; }

  .inline-nl-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .inline-nl-form {
    width: 100%;
  }
  .inline-nl-input {
    flex: 1;
    width: auto;
  }
  .footer-newsletter { grid-column: auto; }
  .newsletter-form { justify-content: center; }
  .footer-col-title::after { left: 50%; transform: translateX(-50%); }
  .footer-link-cta { align-self: center; }

  /* Subfilter — hide chip row, use dropdown instead */
  .subfilter-row { display: none !important; }
  .mobile-sub-wrap:not([hidden]) {
    display: block !important;
    position: relative;
    margin: 6px 0 4px;
  }

  /* Listing cards */
  .listing-row {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 0;
  }
  .col-business {
    order: 1;
    padding-bottom: 10px;
  }
  .category-pills-col {
    order: 2;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
  }
  .col-location {
    order: 3;
    font-size: 13.5px;
    padding-bottom: 6px;
  }
  .col-hours {
    order: 4;
    font-size: 13px;
    color: var(--muted);
    padding-bottom: 10px;
  }
  .col-website {
    order: 5;
    padding-top: 4px;
  }
  .col-website .visit-btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    padding: 9px 12px;
    font-size: 13.5px;
    background: var(--purple);
    border-color: var(--purple);
    color: #fff;
    border-radius: 8px;
    font-weight: 800;
  }
  .col-website .visit-btn:hover {
    opacity: 0.88;
    color: #fff;
    background: var(--purple);
  }
  .business-name { font-size: 15px; }
  .description { font-size: 13px; }

  /* Map */
  #map { height: calc(100vh - 220px); min-height: 380px; }

  /* Header */
  .brand img { height: 44px; }
  .submit-button {
    font-size: 11.5px;
    min-height: 38px;
    padding: 0 12px;
    gap: 5px;
  }

  /* Category cards */
  .category-card { height: 82px; min-width: 82px; }
  .category-card img { width: 34px; height: 34px; }
  .category-card span { font-size: 11px; }

  /* Directory header */
  .directory-header { flex-direction: column; align-items: flex-start; gap: 4px; }

  /* Pagination */
  .pagination { gap: 4px; }
  .page-btn { min-width: 32px; height: 32px; font-size: 13px; }
}
