:root {
  --ink: #18202a;
  --muted: #667085;
  --line: #e4e7ec;
  --paper: #ffffff;
  --panel: #ffffff;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --accent: #b45309;
  --soft: #f8fafc;
  --danger: #b42318;
  --shadow: 0 14px 36px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(228, 231, 236, .95);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; }
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #fff;
  background: var(--brand);
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: 0;
}
.top-nav, .footer-links { display: flex; align-items: center; gap: 20px; color: var(--muted); font-weight: 700; }
.mobile-nav {
  display: none;
  position: relative;
}
.mobile-nav summary {
  display: grid;
  width: 44px;
  height: 44px;
  place-content: center;
  gap: 5px;
  background: var(--brand);
  border-radius: 8px;
  cursor: pointer;
  list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 999px;
}
.mobile-nav div {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  z-index: 40;
  display: grid;
  width: min(280px, calc(100vw - 36px));
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.mobile-nav div a {
  padding: 11px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-weight: 800;
}
.mobile-nav div a:hover {
  color: var(--brand-dark);
  background: var(--soft);
}
.important-menu {
  position: relative;
}
.important-menu summary {
  cursor: pointer;
  list-style: none;
}
.important-menu summary::-webkit-details-marker { display: none; }
.important-menu div {
  position: absolute;
  right: 0;
  top: calc(100% + 14px);
  z-index: 30;
  display: grid;
  min-width: 260px;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.important-menu div a {
  padding: 10px 12px;
  border-radius: 8px;
}
.important-menu div a:hover {
  color: var(--brand-dark);
  background: var(--soft);
}
.nav-pill, .button, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-weight: 800;
  cursor: pointer;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: 460px;
  padding: clamp(44px, 7vw, 84px) clamp(18px, 4vw, 56px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.hero-copy { max-width: 860px; }
.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 18px; font-size: clamp(42px, 7vw, 86px); line-height: .97; letter-spacing: 0; }
h2 { font-size: clamp(24px, 3vw, 38px); line-height: 1.1; letter-spacing: 0; }
h3 { margin: 10px 0 8px; font-size: 20px; line-height: 1.2; }
.hero p, .page-hero p { max-width: 700px; color: var(--muted); font-size: 19px; }
.hero-search {
  display: flex;
  gap: 10px;
  max-width: 720px;
  padding: 8px;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-search input {
  width: 100%;
  min-height: 50px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  color: var(--ink);
}
.hero-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, .76);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-panel div, .stat-grid div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hero-panel strong, .stat-grid strong { display: block; font-size: 38px; line-height: 1; }
.hero-panel span, .stat-grid span, .muted { color: var(--muted); }

.section, .page-hero, .directory-layout, .detail-hero, .detail-grid, .site-footer {
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}
.section { padding-top: 70px; padding-bottom: 30px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head a { color: var(--brand-dark); font-weight: 900; }
.section-head > div { min-width: 0; }
.section-head .eyebrow { margin-bottom: 8px; }
.category-section { padding-top: 46px; }
.category-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.category-count-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .04);
}
.category-count-card span {
  min-width: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}
.category-count-card strong {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-size: 13px;
  white-space: nowrap;
}
.listing-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.listing-grid.single { grid-template-columns: 1fr; }
.listing-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .04);
}
.listing-image { width: 132px; height: 100%; min-height: 132px; object-fit: cover; background: var(--soft); }
.listing-image.placeholder { display: grid; place-items: center; color: var(--brand-dark); font-size: 34px; font-weight: 900; }
.listing-body { min-width: 0; padding: 16px 18px; }
.card-topline { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.chip {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 10px;
  color: var(--brand-dark);
  background: var(--soft);
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.chip-link {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.chip-link:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 18px rgba(37, 99, 235, .1);
  transform: translateY(-1px);
}
.category-link-list {
  color: var(--muted);
  line-height: 1.8;
}
.category-link-list a {
  display: inline;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, .35);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.category-link-list a:hover {
  color: var(--brand);
  text-decoration-color: var(--brand);
}
.rating { color: var(--accent); font-weight: 900; white-space: nowrap; }
.rating small { color: var(--muted); }
.card-actions, .detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.card-actions a, .detail-actions a {
  min-height: 38px;
  padding: 8px 12px;
  color: var(--brand-dark);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.home-note-panel {
  padding: clamp(22px, 4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .04);
}
.home-note-panel p {
  color: var(--muted);
  font-size: 17px;
}
.link-grid { display: grid; gap: 10px; }
.link-grid a {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a { padding: 9px 12px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-weight: 800; }

.page-hero.compact { padding-top: 62px; padding-bottom: 42px; background: #fff; border-bottom: 1px solid var(--line); }
.page-hero.compact h1 { max-width: 960px; font-size: clamp(36px, 5vw, 64px); }
.hero-search.narrow { box-shadow: none; }
.directory-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-top: 34px; padding-bottom: 70px; }
.filters {
  position: sticky;
  top: 92px;
  align-self: start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.filters h2 { font-size: 18px; }
.filters a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  color: var(--muted);
  font-weight: 800;
  border-bottom: 1px solid #eef2f6;
}
.filters a span { min-width: 0; }
.filters a strong {
  flex: 0 0 auto;
  min-width: 34px;
  padding: 3px 8px;
  color: var(--brand-dark);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  text-align: center;
}
.result-bar { margin-bottom: 16px; color: var(--muted); }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.pagination a,
.pagination span {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}
.pagination a.page-wide {
  min-width: 92px;
}
.pagination a.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.pagination span {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.detail-hero { display: grid; grid-template-columns: 420px 1fr; gap: 34px; align-items: center; padding-top: 48px; padding-bottom: 48px; background: #fff; border-bottom: 1px solid var(--line); }
.detail-hero img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow); }
.detail-hero h1 { max-width: 900px; font-size: clamp(36px, 5vw, 68px); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; color: var(--muted); font-weight: 800; }
.breadcrumbs a::after { content: "/"; margin-left: 8px; color: #aab7b0; }
.detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; padding-top: 46px; padding-bottom: 70px; }
.info-panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.content-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding: 0 clamp(18px, 4vw, 56px) 44px;
}
.story-panel p { color: var(--muted); font-size: 17px; }
.public-form {
  display: grid;
  gap: 12px;
}
.public-form.premium {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}
.business-submit-form {
  max-width: 1080px;
  margin: 0 auto;
}
.public-form label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}
.public-form input,
.public-form select,
.public-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.public-form .wide,
.public-form button {
  grid-column: 1 / -1;
}
.category-picker {
  display: grid;
  gap: 10px;
}
.category-picker > label {
  margin-bottom: 0;
}
.category-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.category-picker-grid label {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  margin: 0;
  padding: 8px 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
}
.category-picker-grid input {
  width: auto;
}
.category-ajax-picker {
  position: relative;
}
.category-search-results {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .08);
}
.category-search-results[hidden] {
  display: none;
}
.category-search-results button {
  justify-content: flex-start;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--brand-dark);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.selected-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.selected-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: var(--brand-dark);
  background: var(--soft);
  border: 1px solid #dbe4f0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
}
.selected-category-chip button {
  min-height: 22px;
  width: 22px;
  padding: 0;
  border-radius: 999px;
  font-size: 12px;
}
.map-section {
  display: grid;
  grid-template-columns: minmax(280px, .42fr) minmax(0, .58fr);
  gap: 24px;
  align-items: stretch;
  margin: 0 clamp(18px, 4vw, 56px) 46px;
  padding: clamp(20px, 4vw, 28px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .06);
}
.map-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.map-copy p {
  color: var(--muted);
  font-size: 17px;
}
.map-copy .button {
  align-self: flex-start;
  margin-top: 8px;
}
.map-frame {
  overflow: hidden;
  min-height: 360px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7);
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
}
.conversion-section {
  margin: 0 clamp(18px, 4vw, 56px) 70px;
  padding: clamp(22px, 4vw, 32px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}
.conversion-section .section-head {
  margin-bottom: 18px;
}
.conversion-section h2,
.conversion-section h3 {
  color: var(--ink);
}
.conversion-section .eyebrow {
  color: var(--brand-dark);
}
.conversion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.conversion-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.conversion-card p {
  color: var(--muted);
}
.conversion-card .public-form label {
  color: var(--muted);
}
.conversion-card input,
.conversion-card select,
.conversion-card textarea {
  border-color: var(--line);
}
.detail-map-section {
  width: auto;
  max-width: none;
}
.detail-map-section .map-frame,
.detail-map-section iframe {
  display: block;
}
.detail-conversion-section {
  display: block;
  clear: both;
  width: auto;
  max-width: none;
  overflow: hidden;
}
.detail-conversion-section .section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.detail-conversion-section .conversion-grid {
  align-items: stretch;
}
.detail-conversion-section .conversion-card {
  min-width: 0;
}
.detail-conversion-section .public-form.premium {
  display: grid;
}
.detail-conversion-section .public-form.premium input,
.detail-conversion-section .public-form.premium select,
.detail-conversion-section .public-form.premium textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--ink);
  background: #fff;
}
.detail-conversion-section .public-form.premium button {
  justify-self: start;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.review-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}
.review-card strong {
  color: var(--accent);
  font-size: 22px;
}
.review-card p { color: var(--muted); }
.hours-section {
  margin: 0 clamp(18px, 4vw, 56px) 46px;
  padding: clamp(22px, 4vw, 30px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hours-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.hour-card {
  min-height: 92px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.hour-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.hour-card strong { color: var(--brand-dark); font-size: 18px; }
.hour-card.closed { background: #fbf6f4; border-color: #f2d7ce; }
.hour-card.closed strong { color: #9f3a22; }
dl { display: grid; grid-template-columns: 140px 1fr; gap: 12px 18px; margin: 0; }
dt { color: var(--muted); font-weight: 900; }
dd { margin: 0; }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding-top: 38px; padding-bottom: 38px; border-top: 1px solid var(--line); background: #fff; }
.site-footer p { margin: 6px 0 0; color: var(--muted); }
.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 760px;
}
.static-page {
  width: min(1040px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 70px;
}
.static-content {
  padding: clamp(22px, 4vw, 36px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .05);
}
.static-content h1 {
  font-size: clamp(40px, 6vw, 72px);
}
.static-content h2,
.static-content h3 {
  margin-top: 28px;
}
.static-content p,
.static-content li {
  color: var(--muted);
  font-size: 18px;
}
.contact-panel {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 32px);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.contact-panel h2 { color: var(--ink); }
.contact-panel .public-form label {
  color: var(--muted);
}
.contact-panel input,
.contact-panel textarea {
  background: #fff;
  color: var(--ink);
}

.admin-body { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; background: #fff; }
.admin-sidebar { padding: 24px; background: #fff; color: var(--ink); border-right: 1px solid var(--line); }
.admin-sidebar nav { display: grid; gap: 8px; margin-top: 32px; }
.admin-sidebar nav a { padding: 12px; border-radius: 8px; color: var(--muted); font-weight: 800; }
.admin-sidebar nav a:hover { background: var(--soft); color: var(--brand-dark); }
.admin-main { padding: 34px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.admin-head h1 { margin-bottom: 0; font-size: 42px; }
.stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 22px; }
.stat-grid.small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-panel, .auth-card {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .06);
}
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(100%, 460px); }
label { display: grid; gap: 8px; margin-bottom: 14px; color: var(--muted); font-weight: 900; }
input[type="email"], input[type="password"], input[type="text"], input[type="file"], .upload-box input, .edit-grid input, .inline-form input, select, textarea, .admin-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
textarea { resize: vertical; }
.alert { padding: 12px 14px; color: var(--danger); background: #fff1ef; border: 1px solid #ffd7d2; border-radius: 8px; font-weight: 800; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.admin-search, .merge-form, .inline-form, .action-row, .form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-filter-panel.compact {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(16, 24, 40, .05);
}
.filter-row {
  display: grid;
  gap: 14px;
  align-items: end;
}
.filter-row.primary { grid-template-columns: minmax(320px, 1.3fr) minmax(220px, .85fr) minmax(220px, .85fr); }
.filter-row.secondary { grid-template-columns: repeat(3, minmax(190px, 1fr)) minmax(170px, auto); }
.admin-filter-panel label {
  gap: 7px;
  margin-bottom: 0;
  min-width: 0;
  color: #475467;
  font-size: 14px;
}
.admin-filter-panel input,
.admin-filter-panel select {
  min-height: 46px;
  background-color: #fff;
  border-color: var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.admin-filter-panel input:focus,
.admin-filter-panel select:focus {
  outline: 2px solid rgba(37, 99, 235, .16);
  border-color: var(--brand);
}
.filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  align-self: end;
}
.filter-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  color: var(--brand-dark);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}
.filter-actions button {
  min-width: 82px;
  padding: 0 16px;
}
.admin-listing-grid { display: grid; gap: 14px; }
.admin-result-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin: 2px 0 16px;
  color: var(--muted);
}
.admin-result-summary strong { color: var(--ink); }
.admin-listing-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 22px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.admin-card-main { min-width: 0; }
.admin-listing-card h2 {
  margin: 10px 0 6px;
  font-size: 24px;
  line-height: 1.15;
}
.admin-card-side {
  display: grid;
  gap: 9px;
  justify-items: stretch;
}
.admin-card-side .status-pill { justify-content: center; }
.admin-card-side form { margin: 0; }
.wide-btn { width: 100%; }
.status-pill {
  display: inline-flex;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.status-pill.hidden { background: #8a4b2a; }
.status-pill.draft { background: #77746b; }
.content-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.content-flags span {
  padding: 6px 9px;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}
.admin-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 22px;
}
.admin-pagination a,
.admin-pagination span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--brand-dark);
  font-weight: 900;
}
.admin-pagination a.active {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}
.admin-pagination span {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.admin-tabs a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 12px;
  color: var(--brand-dark);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}
.hint-box {
  margin-bottom: 18px;
  padding: 14px 16px;
  color: var(--muted);
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.campaign-actions form {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 0;
}
.campaign-actions input,
.campaign-actions select {
  min-height: 44px;
  width: auto;
}
.alert.success {
  color: var(--brand-dark);
  background: var(--soft);
  border-color: #dbe4f0;
}
.rich-editor-wrap > label {
  margin-bottom: 8px;
}
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.editor-toolbar button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--brand-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}
.rich-editor {
  display: block;
  width: 100%;
  min-height: 520px !important;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  outline: 0;
  line-height: 1.75;
  overflow-y: auto;
  white-space: normal;
}
.rich-editor p,
.rich-editor div {
  margin: 0 0 18px;
}
.rich-editor p:empty,
.rich-editor div:empty {
  min-height: 1.75em;
}
.rich-editor br {
  display: block;
  content: "";
  margin-top: 12px;
}
.rich-editor img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 24px auto;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(16, 24, 40, .08);
}
.rich-editor:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.rich-editor h1,
.rich-editor h2,
.rich-editor h3 {
  margin: 18px 0 10px;
}
.rich-editor h1 { font-size: 34px; line-height: 1.1; }
.rich-editor h2 { font-size: 28px; }
.rich-editor h3 { font-size: 22px; }
.admin-search { margin-bottom: 18px; }
.admin-search input { flex: 1 1 280px; }
.action-row form, .inline-form { margin: 0; }
.action-row a, .action-row button, .inline-form button, .merge-form button {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.action-row a {
  display: inline-flex;
  align-items: center;
  color: var(--brand-dark);
  background: #f8fafc;
  border: 1px solid var(--line);
  font-weight: 900;
}
.edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.edit-grid label { margin-bottom: 0; }
.wide { grid-column: 1 / -1; }
.check-row { display: flex; flex-direction: row; align-items: center; color: var(--ink); }
.check-row input { width: auto; }
.danger-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-form button { background: var(--danger); }
.metric-list { display: grid; gap: 10px; }
.metric-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.metric-list strong { color: var(--brand-dark); }
.rating-strip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 4px;
  padding: 9px 12px;
  color: var(--brand-dark);
  background: var(--soft);
  border: 1px solid #dbe4f0;
  border-radius: 8px;
  font-weight: 900;
}
.rating-strip-link {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.rating-strip-link:hover {
  border-color: var(--brand);
  box-shadow: 0 10px 24px rgba(37, 99, 235, .12);
  transform: translateY(-1px);
}
.inline-source-link {
  display: inline-flex;
  margin-left: 10px;
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: underline;
}
.hours-text { white-space: pre-wrap; }
.seo-band {
  margin: 28px clamp(18px, 4vw, 56px) 70px;
  padding: clamp(22px, 4vw, 34px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(16, 24, 40, .05);
}
.seo-band p { color: var(--muted); max-width: 940px; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.faq-grid article {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.blog-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .06);
}
.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.blog-card div { padding: 18px; }
.blog-card h2 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.12;
}
.blog-card p { color: var(--muted); }
.text-link {
  color: var(--brand-dark);
  font-weight: 900;
}
.blog-article {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 34px;
}
.blog-article h1 {
  max-width: 920px;
  font-size: clamp(40px, 6vw, 76px);
}
.blog-excerpt {
  max-width: 820px;
  color: var(--muted);
  font-size: 20px;
}
.blog-hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin: 26px 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.blog-content {
  color: #26312c;
  font-size: 18px;
  line-height: 1.8;
  white-space: normal;
}
.blog-content p,
.blog-content div {
  margin: 0 0 24px;
}
.blog-content p:empty,
.blog-content div:empty {
  min-height: 1.8em;
}
.blog-content br {
  display: block;
  content: "";
  margin-top: 14px;
}
.blog-content ul,
.blog-content ol {
  margin: 0 0 24px 24px;
  padding: 0;
}
.blog-content li {
  margin-bottom: 8px;
}
.blog-content blockquote {
  margin: 28px 0;
  padding: 18px 22px;
  color: var(--brand-dark);
  background: var(--soft);
  border-left: 4px solid var(--brand);
  border-radius: 0 8px 8px 0;
}
.blog-content img {
  display: block;
  width: min(100%, 920px);
  height: auto;
  margin: 34px auto;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.blog-content h1,
.blog-content h2,
.blog-content h3 {
  margin: 38px 0 16px;
  color: var(--ink);
}
.blog-content h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.08; }
.blog-content h2 { font-size: clamp(26px, 3vw, 36px); }
.blog-content h3 { font-size: 24px; }
.blog-content a {
  color: var(--brand-dark);
  font-weight: 900;
  text-decoration: underline;
}
.question-list {
  display: grid;
  gap: 12px;
}
.question-list a {
  display: grid;
  gap: 7px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, .04);
}
.question-list span {
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.question-list strong {
  font-size: 20px;
  line-height: 1.2;
}
.question-list em {
  color: var(--muted);
  font-style: normal;
}
.faq-grid h3 { font-size: 17px; }

@media (max-width: 1050px) {
  .listing-grid { grid-template-columns: 1fr; }
  .hero, .detail-hero, .detail-grid, .two-col, .faq-grid, .content-showcase, .blog-grid, .blog-grid.compact, .review-grid, .map-section, .conversion-grid { grid-template-columns: 1fr; }
  .category-count-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hours-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filter-row.primary, .filter-row.secondary, .admin-listing-card { grid-template-columns: 1fr; }
  .admin-card-side { justify-items: start; }
  .admin-card-side .wide-btn { width: auto; }
  .detail-conversion-section .section-head { display: block; }
}

@media (max-width: 900px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    min-height: 68px;
    padding: 12px 18px;
  }
  .brand {
    min-width: 0;
    flex: 1;
    gap: 9px;
  }
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  .brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-nav { display: none; }
  .mobile-nav { display: block; }
  .site-footer, .admin-head { align-items: flex-start; flex-direction: column; }
  .important-menu div { right: auto; left: 0; }
  .hero { min-height: auto; padding-top: 42px; }
  h1 { font-size: 42px; }
  .hero-search { flex-direction: column; }
  .listing-grid, .listing-grid.single, .stat-grid, .stat-grid.small, .edit-grid, .category-count-grid { grid-template-columns: 1fr; }
  .listing-card { grid-template-columns: 104px minmax(0, 1fr); }
  .listing-image { width: 104px; min-height: 118px; }
  .listing-body { padding: 14px; }
  .card-topline { align-items: flex-start; flex-direction: column; }
  .public-form.premium { grid-template-columns: 1fr; }
  .category-picker-grid { grid-template-columns: 1fr; }
  .hours-grid { grid-template-columns: 1fr; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; }
  dl { grid-template-columns: 1fr; }
}
