/* ============================================================
   discoverable.ie — Design System
   Palette: teal/amber, system fonts (matches seoauditfix.com)
   ============================================================ */

:root {
  --brand:       #0b5d63;
  --brand-dark:  #07474c;
  --brand-light: #e6f3f4;
  --accent:      #b3541e;
  --accent-light:#fdf0ea;
  --ink:         #11181c;
  --ink-muted:   #4a5568;
  --border:      #d1d9e0;
  --paper:       #ffffff;
  --wash:        #f4f7f8;
  --card-dark:   #0f1c1f;
  --card-dark-border: #20393e;

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-size-base: 1.0625rem;
  --line-height: 1.65;
  --radius: 8px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.13);

  --container: 1200px;
  --gap: 1.5rem;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.0625rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
  text-decoration: none;
}
.site-logo span { color: var(--accent); }
.site-nav { display: flex; gap: 1.5rem; align-items: center; }
.site-nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: color .15s;
}
.site-nav a:hover, .site-nav a.active { color: var(--brand); }
.site-nav a.btn-primary { color: #fff; }
.site-nav a.btn-primary:hover { color: #fff; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s, box-shadow .15s;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1.4;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  text-decoration: none;
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--brand);
  border-color: var(--brand);
}
.btn-outline:hover {
  background: var(--brand);
  color: #fff;
  text-decoration: none;
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: #8f4018;
  border-color: #8f4018;
  color: #fff;
  text-decoration: none;
}
.btn-sm { padding: .35rem .85rem; font-size: .875rem; }
.btn-lg { padding: .75rem 1.75rem; font-size: 1.0625rem; }

/* ── Hero ── */
.hero {
  background: var(--brand);
  padding: 5rem 0 4rem;
  text-align: center;
}
.hero h1 { margin-bottom: .75rem; color: #ffffff; }
.hero .subline {
  font-size: 1.15rem;
  color: rgba(255,255,255,.82);
  max-width: 580px;
  margin: 0 auto 2.5rem;
}

/* ── Hero search bar ── */
.hero-search {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}
.hero-search select,
.hero-search input[type="text"] {
  flex: 1 1 180px;
  padding: .7rem 1rem;
  border: 2px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  transition: border-color .15s;
}
.hero-search select:focus,
.hero-search input[type="text"]:focus {
  outline: none;
  border-color: #ffffff;
}
.hero-search .btn-primary {
  background: #b3541e;
  border-color: #b3541e;
}
.hero-search .btn-primary:hover {
  background: #963f12;
  border-color: #963f12;
}
.hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.pill {
  display: inline-block;
  padding: .3rem .85rem;
  background: rgba(255,255,255,.15);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  font-size: .875rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  text-decoration: none;
}
.pill:hover { background: rgba(255,255,255,.28); color: #fff; text-decoration: none; }

/* ── Section spacing ── */
.section { padding: 4rem 0; }
.section-title { margin-bottom: 2rem; text-align: center; }
.section-title p { color: var(--ink-muted); margin-top: .5rem; }

/* ── Category grid ── */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--brand);
  transform: translateY(-2px);
  text-decoration: none;
  color: var(--ink);
}
.category-icon {
  width: 48px;
  height: 48px;
  margin-bottom: .75rem;
  color: var(--brand);
}
.category-card h3 { font-size: 1rem; margin-bottom: .25rem; }
.category-count { font-size: .8125rem; color: var(--ink-muted); }

/* ── Listing cards (list view) ── */
.listing-list { display: flex; flex-direction: column; gap: 1rem; }
.listing-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  align-items: start;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
  transition: box-shadow .2s, border-color .2s;
  position: relative;
}
.listing-card:hover { box-shadow: var(--shadow-md); border-color: var(--brand); }
.listing-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--wash);
}
.listing-logo-placeholder {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
}
.listing-name { font-size: 1.0625rem; font-weight: 700; margin-bottom: .25rem; }
.listing-name a { color: var(--ink); text-decoration: none; }
.listing-name a:hover { color: var(--brand); }
.listing-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .5rem; }
.badge {
  display: inline-block;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .8125rem;
  font-weight: 500;
}
.badge-category { background: var(--brand-light); color: var(--brand); }
.badge-county   { background: var(--wash); color: var(--ink-muted); border: 1px solid var(--border); }
.badge-tier0    { background: #f3f4f6; color: #6b7280; }
.badge-tier1    { background: #dbeafe; color: #1e40af; }
.badge-tier2    { background: #d1fae5; color: #065f46; }
.badge-tier3    { background: #fef3c7; color: #92400e; }
.badge-unscored { background: var(--wash); color: var(--ink-muted); border: 1px solid var(--border); }
.listing-excerpt { font-size: .9375rem; color: var(--ink-muted); }

/* ── Score chips (review · trust · AI) ── */
.listing-scores { display: flex; gap: .4rem; flex-wrap: wrap; margin: .4rem 0 .5rem; }
.score-chip {
  display: inline-flex; align-items: center; gap: .2rem;
  font-size: .78rem; font-weight: 600; padding: .2rem .55rem;
  border-radius: 999px; white-space: nowrap;
}
.score-label { font-weight: 400; }
.score-review  { background: #fef9e7; color: #92400e; border: 1px solid #fde68a; }
.score-trust-high { background: #ecfdf5; color: #065f46; border: 1px solid #6ee7b7; }
.score-trust-mid  { background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; }
.score-trust-low  { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }
.score-ai-tier1 { background: var(--brand-light); color: var(--brand); border: 1px solid #a8d5d8; }
.score-ai-tier2 { background: #eff6ff; color: #1d4ed8; border: 1px solid #93c5fd; }
.score-ai-tier3 { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.score-unscored { background: var(--wash); color: var(--ink-muted); border: 1px solid var(--border); }

/* ── Trust sub-scores on listing page ── */
.trust-sub {
  font-size: .8125rem; padding: .25rem .65rem; border-radius: var(--radius);
  background: var(--wash); border: 1px solid var(--border); color: var(--ink-muted);
}
.trust-sub strong { color: var(--ink); }
.listing-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.tag {
  font-size: .8125rem;
  padding: .1rem .5rem;
  background: var(--wash);
  border-radius: 4px;
  color: var(--ink-muted);
}
.listing-actions { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.stars { color: #f59e0b; font-size: 1rem; letter-spacing: .1em; }
.ribbon {
  position: absolute;
  top: 12px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 3px 0 0 3px;
}

/* ── Dark teal info cards ── */
.dark-cards { background: var(--brand-dark); padding: 4rem 0; }
.dark-cards .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.info-card {
  background: var(--card-dark);
  border: 1px solid var(--card-dark-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: #e2f0f1;
}
.info-card h3 { color: #ffffff; margin-bottom: .75rem; }
.info-card p  { color: #a8c8cb; margin-bottom: 0; }
.info-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--wash);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-value { font-size: 2rem; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; }
.stat-label { font-size: .875rem; color: var(--ink-muted); margin-top: .2rem; }

/* ── Forms ── */
.form-group { margin-bottom: 1.25rem; }
label {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  margin-bottom: .4rem;
  color: var(--ink);
}
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: .6rem .9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
}
textarea { resize: vertical; min-height: 120px; }
.field-help { font-size: .875rem; color: var(--ink-muted); margin-top: .3rem; }
.field-error { font-size: .875rem; color: #dc2626; margin-top: .3rem; }

/* ── Flash messages ── */
.flash { padding: .85rem 1.25rem; border-radius: var(--radius); margin-bottom: 1rem; font-weight: 500; }
.flash-success { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.flash-error   { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }
.flash-info    { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }

/* ── Footer ── */
.site-footer {
  background: var(--brand-dark);
  color: #a8c8cb;
  padding: 3rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .site-logo { color: #fff; display: block; margin-bottom: .75rem; }
.footer-brand .site-logo span { color: #e08040; }
.footer-brand p { font-size: .9rem; }
.footer-col h4 { color: #fff; font-size: .9375rem; margin-bottom: .75rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .4rem; }
.footer-col ul li a { color: #a8c8cb; font-size: .9rem; text-decoration: none; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .875rem;
}
.footer-bottom a { color: #a8c8cb; text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* ── Admin ── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; min-height: calc(100vh - 64px); }
.admin-sidebar {
  background: var(--card-dark);
  padding: 1.5rem 0;
  border-right: 1px solid var(--card-dark-border);
}
.admin-sidebar a {
  display: block;
  padding: .6rem 1.25rem;
  color: #a8c8cb;
  font-size: .9375rem;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(11,93,99,.4);
  color: #fff;
}
.admin-content { padding: 2rem; background: var(--wash); }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.admin-table th {
  background: var(--brand);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .875rem;
  font-weight: 600;
}
.admin-table td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--wash); }

/* ── IACRS score block ── */
.iacrs-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  background: var(--paper);
}
.iacrs-score-bar-wrap { background: var(--wash); border-radius: 999px; height: 10px; overflow: hidden; margin: .5rem 0 1rem; }
.iacrs-score-bar { height: 100%; border-radius: 999px; background: var(--brand); transition: width .4s; }
.grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 800;
}
.grade-A { background: #d1fae5; color: #065f46; }
.grade-B { background: #dbeafe; color: #1e40af; }
.grade-C { background: #fef3c7; color: #92400e; }
.grade-D { background: #fee2e2; color: #991b1b; }
.grade-F { background: #f3f4f6; color: #6b7280; }

/* ── Pagination ── */
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-muted);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pagination a:hover { background: var(--brand-light); color: var(--brand); }
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ── Profile page ── */
.profile-cover {
  height: 300px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  background-size: cover;
  background-position: center;
  position: relative;
}
.profile-logo-wrap {
  position: absolute;
  bottom: -44px;
  left: 1.25rem;
}
.profile-logo {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  background: var(--paper);
  object-fit: contain;
}
.profile-logo-placeholder {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-lg);
  border: 4px solid #fff;
  box-shadow: var(--shadow-md);
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--brand);
}
.profile-header-info {
  padding: 3.5rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
}
.profile-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: .75rem 0;
  align-items: center;
}
.profile-header-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: .75rem;
  font-size: .9375rem;
}
.profile-header-links a { color: var(--brand); }
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 3rem;
}
.profile-section {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.profile-section h3 {
  font-size: 1rem;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
}
.hours-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours-table td { padding: .3rem 0; }
.hours-table td:first-child { font-weight: 600; width: 80px; }
.hours-table td.closed { color: var(--ink-muted); }
.social-links { display: flex; flex-direction: column; gap: .5rem; }
.social-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .9375rem;
  color: var(--ink-muted);
  text-decoration: none;
}
.social-link:hover { color: var(--brand); text-decoration: none; }

/* ── Contact card ── */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .75rem; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: .6rem;
  font-size: .9375rem;
  color: var(--ink-muted);
}
.contact-row a { color: var(--brand); word-break: break-all; }

/* ── IACRS block ── */
.iacrs-header { display: flex; align-items: center; gap: .85rem; margin-bottom: .5rem; }
.iacrs-score-num { font-size: 1.75rem; font-weight: 800; color: var(--brand); line-height: 1; }
.iacrs-tier-pills { display: flex; gap: .4rem; margin-bottom .75rem; }
.iacrs-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .8125rem;
  font-weight: 600;
  padding: .2rem .6rem;
  border-radius: 999px;
}
.tier-pass   { background: #d1fae5; color: #065f46; }
.tier-fail   { background: #fee2e2; color: #991b1b; }
.iacrs-meta { font-size: .8125rem; color: var(--ink-muted); margin-top: .75rem; }
.iacrs-accordion { margin-top: 1rem; }
.iacrs-accordion summary {
  cursor: pointer;
  font-size: .875rem;
  font-weight: 600;
  color: var(--brand);
  padding: .4rem 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.iacrs-accordion summary::-webkit-details-marker { display: none; }
.iacrs-checks-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: .75rem;
  font-size: .8125rem;
}
.iacrs-checks-table th {
  text-align: left;
  padding: .3rem .4rem;
  background: var(--wash);
  color: var(--ink-muted);
  font-weight: 600;
}
.iacrs-checks-table td { padding: .35rem .4rem; border-bottom: 1px solid var(--border); vertical-align: top; }
.iacrs-checks-table tr:last-child td { border-bottom: none; }
.check-pass { color: #059669; font-weight: 700; }
.check-fail { color: #dc2626; font-weight: 700; }
.iacrs-cta {
  background: var(--wash);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.iacrs-cta p { color: var(--ink-muted); font-size: .9375rem; margin-bottom: .75rem; }

/* ── Reviews ── */
.review-list { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.review-item {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--paper);
}
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.review-author { font-weight: 700; font-size: .9375rem; }
.review-date { font-size: .8125rem; color: var(--ink-muted); }
.review-stars { color: #f59e0b; letter-spacing: .1em; margin-bottom: .4rem; }
.review-comment { font-size: .9375rem; color: var(--ink-muted); }
.review-form-section {
  background: var(--wash);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.review-form-section h3 { margin-bottom: 1.25rem; }
.star-input-group { display: flex; gap: .5rem; align-items: center; }
.star-input-group label {
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--border);
  font-weight: 400;
  line-height: 1;
  margin: 0;
  transition: color .1s;
}
.star-input-group input[type="radio"] { display: none; }
.star-input-group input[type="radio"]:checked ~ label { color: var(--border); }
.star-input-group label:hover,
.star-input-group label:hover ~ label { color: var(--border); }
/* CSS-only star rating: reverse-order radios */
.stars-wrap { display: flex; flex-direction: row-reverse; gap: .4rem; width: fit-content; }
.stars-wrap input[type="radio"] { display: none; }
.stars-wrap label {
  font-size: 1.75rem;
  cursor: pointer;
  color: #d1d9e0;
  font-weight: 400;
  margin: 0;
  line-height: 1;
  transition: color .1s;
}
.stars-wrap label:hover,
.stars-wrap label:hover ~ label,
.stars-wrap input:checked ~ label { color: #f59e0b; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .dark-cards .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .dark-cards .card-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-card { grid-template-columns: 60px 1fr; }
  .listing-actions { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .site-nav { gap: .75rem; }
  .hero { padding: 3rem 0 2.5rem; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-cover { height: 200px; }
}
@media (max-width: 480px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .listing-card { grid-template-columns: 1fr; }
  .listing-logo, .listing-logo-placeholder { display: none; }
}
