:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --panel: #ffffff;
  --text: #1c2430;
  --muted: #5d6978;
  --line: #dce2ea;
  --brand: #006c67;
  --brand-strong: #00514d;
  --accent: #c2410c;
  --star: #f5a524;
  --soft: #eef6f3;
  --warm: #fff8ec;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 108, 103, 0.08), transparent 30%),
    linear-gradient(180deg, #fbfcfc 0%, var(--bg) 440px);
  color: var(--text);
  line-height: 1.55;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px 24px;
}

.site-header {
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--brand);
  font-size: 14px;
  letter-spacing: 0;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 15px;
}

.top-nav a {
  border-radius: 999px;
  padding: 8px 12px;
}

.top-nav a:hover {
  background: var(--soft);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 32px;
  align-items: end;
  padding: 62px 0 42px;
  border-top: 1px solid var(--line);
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 8px;
  text-transform: uppercase;
}

h1,
h2 {
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(34px, 6vw, 64px);
}

h2 {
  margin: 0 0 18px;
  font-size: 24px;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: 19px;
  margin: 18px 0 0;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 150px));
  gap: 12px;
  margin-top: 28px;
}

.hero-metrics div {
  border: 1px solid rgba(0, 108, 103, 0.13);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
}

.hero-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.search-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 22px 60px rgba(28, 36, 48, 0.1);
}

.search-box label {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 10px;
}

.search-row {
  display: flex;
  gap: 10px;
}

.header-search {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
}
.header-search .search-row {
  gap: 6px;
}
.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9em;
  font-family: inherit;
  background: var(--panel);
}
.header-search button {
  padding: 7px 14px;
  font-size: 0.9em;
  white-space: nowrap;
}

.search-autocomplete {
  position: relative;
}

.autocomplete-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 96px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(28, 36, 48, 0.14);
}

.autocomplete-panel:empty,
.autocomplete-panel[hidden] {
  display: none;
}

.autocomplete-item {
  display: grid;
  gap: 2px;
  padding: 11px 13px;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.autocomplete-item:last-child {
  border-bottom: 0;
}

.autocomplete-item:hover,
.autocomplete-item:focus {
  background: var(--soft);
  text-decoration: none;
}

.autocomplete-item span {
  color: var(--muted);
  font-size: 13px;
}

.search-box p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 13px;
  color: var(--text);
  background: #fff;
}

button {
  border: 0;
  border-radius: 6px;
  padding: 12px 17px;
  color: #fff;
  background: var(--brand);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--brand-strong);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.section-heading h2 {
  margin-bottom: 0;
}

.agency-list {
  display: grid;
  gap: 12px;
}

.agency-list.wide {
  max-width: 880px;
}

.agency-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(28, 36, 48, 0.04);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.agency-card:hover {
  border-color: rgba(0, 108, 103, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(28, 36, 48, 0.08);
}

.agency-title {
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
}

.agency-meta,
.agency-address {
  color: var(--muted);
  margin: 5px 0 0;
}

.agency-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.agency-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  background: #fafbfc;
  font-size: 12px;
  font-weight: 700;
}

.rating-pill,
.rating-summary {
  border: 1px solid #f3d38a;
  background: #fff8e7;
  border-radius: 8px;
  color: #6d4a00;
  padding: 10px;
  text-align: center;
}

.rating-pill strong,
.rating-summary strong {
  display: block;
  font-size: 26px;
  line-height: 1;
}

.rating-pill .stars,
.rating-summary .stars {
  color: var(--star);
}

.review-card .stars {
  color: var(--star);
}

.rating-pill span,
.rating-summary span,
.rating-summary small {
  display: block;
  font-size: 12px;
}

.sidebar {
  position: sticky;
  top: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 10px 24px rgba(28, 36, 48, 0.04);
}

.sidebar-section {
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.sidebar-reviews {
  display: grid;
  gap: 12px;
}

.sidebar-review {
  display: grid;
  gap: 5px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.sidebar-review:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.sidebar-review a {
  color: var(--text);
  font-weight: 800;
  line-height: 1.3;
}

.sidebar-review strong {
  color: #6d4a00;
  font-size: 13px;
}

.sidebar-review .stars {
  color: var(--star);
}

.sidebar-review p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.county-list,
.county-grid {
  display: grid;
  gap: 8px;
}

.county-list a,
.county-grid a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.county-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.county-grid a {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.page-title,
.agency-page {
  padding-top: 34px;
}

.page-title {
  border-top: 1px solid var(--line);
  margin-bottom: 26px;
}

.search-page-title {
  display: grid;
  gap: 16px;
}

.search-page-box {
  max-width: 780px;
  box-shadow: none;
}

.search-results-shell {
  display: grid;
  gap: 16px;
}

.search-results-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.search-results-meta h2,
.search-results-meta p {
  margin: 0;
}

.search-results-meta p {
  color: var(--muted);
}

.empty-state {
  display: grid;
  gap: 6px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.empty-state span {
  color: var(--muted);
}

.load-more-button {
  justify-self: start;
  margin-top: 6px;
  background: #fff;
  border: 1px solid rgba(0, 108, 103, 0.22);
  color: var(--brand);
}

.load-more-button:hover {
  color: #fff;
}

.county-list-large {
  max-width: 760px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.review-list {
  display: grid;
  gap: 14px;
}

.review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.review-card strong,
.review-card span {
  display: block;
}

.review-card p {
  margin: 8px 0;
}

.latest-reviews-home {
  margin-bottom: 28px;
}
.latest-reviews-home h2 {
  margin-bottom: 14px;
}

.review-card span {
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 20px;
}

.agency-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px;
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
  padding: 30px;
  border: 1px solid rgba(0, 108, 103, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, var(--soft) 58%, var(--warm) 100%);
}

.agency-heading h1 {
  font-size: clamp(32px, 5vw, 52px);
}

.agency-heading p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.agency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 108, 103, 0.22);
  border-radius: 6px;
  padding: 10px 13px;
  color: var(--brand);
  background: #fff;
  font-weight: 800;
}

.secondary-button:hover {
  background: var(--soft);
  text-decoration: none;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: start;
}

.detail-grid > section,
.review-panel,
.reviews {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 10px 24px rgba(28, 36, 48, 0.04);
}

.details {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 10px 18px;
  margin: 0;
}

.details dt {
  color: var(--muted);
  font-weight: 700;
}

.details dd {
  margin: 0;
}

.review-form {
  display: grid;
  gap: 12px;
}

.review-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 700;
}

.review-form .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
}

.review-form .checkbox input {
  width: auto;
  margin-top: 5px;
}

.reviews {
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-version {
  display: inline-block;
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 860px) {
  .site-footer,
  .hero,
  .section-grid,
  .agency-heading,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .brand {
    flex: 1;
  }

  .menu-toggle {
    display: inline-grid;
    flex-shrink: 0;
  }

  .header-search {
    width: 100%;
    max-width: none;
    order: 1;
  }

  .top-nav {
    display: none;
    width: 100%;
    order: 2;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(28, 36, 48, 0.12);
  }

  .top-nav.is-open,
  .site-header.menu-open .top-nav {
    display: flex;
  }

  .top-nav a {
    width: 100%;
    padding: 11px 12px;
  }

  .sidebar {
    position: static;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  main,
  .site-header,
  .site-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .search-row,
  .agency-card,
  .details {
    grid-template-columns: 1fr;
  }

  .search-row {
    display: grid;
  }

  .autocomplete-panel {
    right: 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .agency-heading {
    padding: 20px;
  }

  .search-results-meta {
    align-items: start;
    flex-direction: column;
  }
}

.proposal-intro {
  padding: 52px 0 22px;
  border-top: 1px solid var(--line);
}

.proposal {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 28px;
  align-items: center;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.proposal-copy {
  max-width: 430px;
}

.proposal-label {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.proposal-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 46px);
}

.proposal-copy p {
  color: var(--muted);
}

.proposal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.proposal-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.mock-browser {
  overflow: hidden;
  min-height: 460px;
  border: 1px solid rgba(28, 36, 48, 0.12);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(28, 36, 48, 0.13);
}

.mock-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(28, 36, 48, 0.1);
}

.mock-topbar nav {
  display: flex;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.trust-ui {
  background: linear-gradient(135deg, #f8fbfb 0%, #eef6f3 48%, #fff8ec 100%);
}

.trust-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 24px;
  padding: 34px;
}

.verified-badge {
  display: inline-flex;
  border: 1px solid rgba(0, 108, 103, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.trust-hero h3 {
  max-width: 520px;
  margin: 16px 0 12px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
}

.trust-hero p {
  color: var(--muted);
}

.big-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 520px;
  margin-top: 24px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.big-search span {
  padding-left: 10px;
  color: var(--muted);
}

.trust-stats {
  display: grid;
  gap: 10px;
}

.trust-stats div {
  padding: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(28, 36, 48, 0.08);
}

.trust-stats strong,
.trust-stats span {
  display: block;
}

.trust-stats span {
  color: var(--muted);
  font-size: 12px;
}

.trust-results {
  display: grid;
  gap: 10px;
  padding: 0 34px 34px;
}

.trust-results article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  background: #fff;
}

.trust-results span {
  color: var(--muted);
  font-size: 13px;
}

.trust-results b {
  color: #8a5a00;
  font-size: 22px;
}

.explorer-ui {
  background: #101820;
  color: #edf7f6;
}

.explorer-shell {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 460px;
}

.filter-rail {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px;
  background: #f5f7f2;
  color: var(--text);
}

.filter-rail label {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.filter-rail span {
  color: var(--muted);
  font-size: 12px;
}

.filter-rail em {
  font-style: normal;
  font-weight: 800;
}

.explorer-main {
  padding: 22px;
}

.explorer-search {
  padding: 14px 16px;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.map-strip {
  position: relative;
  min-height: 210px;
  margin: 18px 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,0.12) 1px, transparent 1px),
    linear-gradient(135deg, #1f6f68, #d9904a);
  background-size: 42px 42px, 42px 42px, auto;
}

.map-strip strong {
  position: absolute;
  left: 18px;
  bottom: 14px;
  font-size: 34px;
}

.pin {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #c2410c;
  box-shadow: 0 10px 20px rgba(0,0,0,0.25);
}

.p1 { left: 62%; top: 34%; }
.p2 { left: 48%; top: 52%; }
.p3 { left: 72%; top: 58%; }

.compact-list {
  display: grid;
  gap: 10px;
}

.compact-list article {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.compact-list span {
  color: #cbd8d6;
  font-size: 13px;
}

.review-ui {
  background: #fffaf7;
}

.review-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 14px;
  padding: 20px;
}

.score-panel,
.review-feed,
.compare-panel {
  border: 1px solid rgba(28, 36, 48, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.score-panel {
  min-height: 420px;
  background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%);
}

.score-panel span {
  color: var(--muted);
  font-weight: 800;
}

.score-panel strong {
  display: block;
  margin: 24px 0 8px;
  color: #b91c1c;
  font-size: 86px;
  line-height: 1;
}

.bars {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.bars i {
  display: block;
  width: var(--w);
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, #006c67, #f5a524, #c2410c);
}

.review-feed {
  display: grid;
  gap: 12px;
}

.review-feed h3,
.compare-panel h3 {
  margin: 0;
  font-size: 20px;
}

.review-feed article {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 8px;
  background: #f7f8fb;
}

.review-feed span {
  color: var(--muted);
}

.compare-panel {
  grid-column: 2;
}

.compare-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 900px) {
  .proposal {
    grid-template-columns: 1fr;
  }

  .proposal-copy {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .mock-browser {
    min-height: auto;
  }

  .mock-topbar nav,
  .trust-stats {
    display: none;
  }

  .trust-hero,
  .explorer-shell,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .trust-hero {
    padding: 22px;
  }

  .big-search {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-rail {
    grid-template-columns: repeat(3, 1fr);
    overflow-x: auto;
  }

  .review-grid {
    padding: 14px;
  }

  .score-panel {
    min-height: 260px;
  }
}

.static-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}

.static-page h1 {
  font-size: 28px;
  margin-bottom: 24px;
}

.static-page h2 {
  font-size: 18px;
  margin-top: 28px;
  margin-bottom: 12px;
  color: var(--text);
}

.static-page p,
.static-page ul {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.7;
}

.static-page li {
  margin-bottom: 6px;
}

  .score-panel strong {
    font-size: 62px;
  }

  .compare-panel {
    grid-column: auto;
  }
}

.review-message {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.95em;
  line-height: 1.45;
}
.review-message--ok {
  background: #e6f4ea;
  color: #1e4620;
}
.review-message--error {
  background: #fce8e6;
  color: #8b1a1a;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 16px;
}
.status-tabs a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  background: var(--panel);
  border: 1px solid var(--line);
}
.status-tabs a:hover {
  color: var(--text);
  border-color: var(--brand);
}
.status-tabs a.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.admin-search {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.admin-search input[type="search"] {
  flex: 1;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.95em;
  background: var(--panel);
}
.admin-search button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9em;
  font-weight: 500;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}
.admin-search button:hover {
  background: var(--brand-strong);
}

.current-filter {
  margin-bottom: 10px;
  font-size: 0.9em;
  color: var(--muted);
}
.current-filter strong {
  color: var(--text);
}

.result-info {
  font-size: 0.85em;
  color: var(--muted);
  margin-bottom: 14px;
}

.agentie-reviews-link {
  display: inline-block;
  font-size: 0.85em;
  margin-left: 6px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
}
.agentie-reviews-link:hover {
  text-decoration: underline;
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 0.78em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.status-badge--pending {
  background: #fff3cd;
  color: #856404;
}
.status-badge--approved {
  background: #d4edda;
  color: #155724;
}
.status-badge--rejected {
  background: #f8d7da;
  color: #721c24;
}
.status-badge--spam {
  background: #e2e3e5;
  color: #383d41;
}

.admin-review-list {
  gap: 12px;
}
.admin-review-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
}
.admin-review-card--editing {
  border-color: var(--brand);
  border-width: 2px;
}
.admin-review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.admin-review-header .status-badge {
  flex-shrink: 0;
}
.admin-review-header .review-rating {
  margin-left: auto;
}
.admin-review-agency {
  font-size: 0.85em;
  color: var(--muted);
  margin-bottom: 6px;
}
.admin-review-agency a {
  color: var(--brand);
  font-weight: 500;
}
.admin-review-body {
  font-size: 0.93em;
  line-height: 1.55;
  margin-bottom: 8px;
  color: var(--text);
}
.admin-review-meta {
  font-size: 0.82em;
  color: var(--muted);
  margin-bottom: 10px;
}
.admin-review-card h3 {
  margin: 0 0 4px 0;
  font-size: 1.05em;
}

.review-rating {
  font-weight: 600;
  font-size: 0.95em;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.action-row form,
.action-row .inline-form {
  display: inline;
}
.action-row button,
.action-row .btn-edit,
.action-row .btn-cancel {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.82em;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-edit {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-edit:hover {
  background: var(--soft);
}
.btn-delete {
  background: #fff;
  border: 1px solid #ecc;
  color: #a33;
}
.btn-delete:hover {
  background: #fef0f0;
}
.btn-approve {
  background: #e6f4ea;
  color: #1e4620;
  border: 1px solid #b7d7bd;
}
.btn-approve:hover {
  background: #d0ebd6;
}
.btn-reject {
  background: #fce8e6;
  color: #8b1a1a;
  border: 1px solid #f5c6c2;
}
.btn-reject:hover {
  background: #fadbd8;
}
.btn-spam {
  background: #f3f3f3;
  color: #555;
  border: 1px solid #ddd;
}
.btn-spam:hover {
  background: #ebebeb;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-strong);
}
.btn-cancel {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.btn-cancel:hover {
  background: #f5f5f5;
}

.review-edit-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-edit-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--muted);
}
.review-edit-form input[type="text"],
.review-edit-form textarea,
.review-edit-form select {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.93em;
  font-family: inherit;
}
.review-edit-form textarea {
  resize: vertical;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 12px 0;
  font-size: 0.9em;
}
.pagination a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  color: var(--brand);
  background: var(--panel);
  border: 1px solid var(--line);
}
.pagination a:hover {
  border-color: var(--brand);
}
.pagination-disabled {
  display: inline-block;
  padding: 6px 14px;
  color: #ccc;
}

.reset-link {
  font-size: 0.85em;
  color: var(--accent);
  text-decoration: none;
  margin-left: 4px;
}
.reset-link:hover {
  text-decoration: underline;
}

.empty-message {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 1.05em;
}

.bulk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--soft);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.bulk-select-all {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  margin-right: 8px;
}
.bulk-select-all input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.bulk-actions button {
  padding: 5px 12px;
  border-radius: 5px;
  font-size: 0.82em;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}

.bulk-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
  accent-color: var(--brand);
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.admin-nav a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.88em;
  font-weight: 500;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid transparent;
}
.admin-nav a:hover {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}
.admin-nav a.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.admin-nav-logout {
  margin-left: auto;
  color: var(--accent) !important;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.dashboard-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  text-align: center;
}
.dashboard-card strong {
  display: block;
  font-size: 36px;
  font-weight: 800;
  color: var(--brand);
  line-height: 1.1;
}
.dashboard-card span {
  display: block;
  font-size: 0.85em;
  color: var(--muted);
  margin-top: 4px;
}

.dashboard-section {
  margin-bottom: 24px;
}
.dashboard-section h2 {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92em;
}
.admin-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.admin-table td:first-child {
  color: var(--muted);
  width: 200px;
}

.user-list {
  display: grid;
  gap: 10px;
}
.user-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 18px;
}
.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.user-info strong {
  font-size: 1em;
}
.user-info span {
  font-size: 0.82em;
  color: var(--muted);
}
.user-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--brand);
  font-size: 0.75em;
  font-weight: 600;
  width: fit-content;
}
.user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.user-form,
.user-form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.user-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85em;
  font-weight: 500;
  color: var(--muted);
}
.user-form input[type="email"],
.user-form input[type="password"],
.user-form-inline input[type="password"] {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 0.9em;
  font-family: inherit;
}
