* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
#reviews-list { scroll-margin-top: 90px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background: #f8fafc;
}

.site-header { background: #0f172a; }
.header-inner {
  max-width: 1100px; margin: 0 auto; padding: 1rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-weight: 800; font-size: 1.3rem; color: #fff; text-decoration: none; }
.logo span { color: #60a5fa; }
.cta-small {
  background: #2563eb; color: #fff; text-decoration: none;
  padding: 0.55rem 1.1rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem;
}
.cta-small:hover { background: #1d4ed8; }

.breadcrumb { border-bottom: 1px solid #e2e8f0; background: #fff; }
.breadcrumb-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.6rem 1.5rem;
  font-size: 0.8rem; color: #64748b;
}

.page-wrap { max-width: 1100px; margin: 0 auto; padding: 1.5rem; }

.page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 1.5rem; align-items: start; }
.page-main { min-width: 0; }
.page-side { display: flex; flex-direction: column; gap: 1.5rem; }

.business-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 1.5rem; margin-bottom: 1.5rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
}
.business-logo {
  width: 48px; height: 48px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden;
}
.business-logo img { width: 100%; height: 100%; object-fit: contain; }
.title-row { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }
.business-info h1 { margin: 0 0 0.35rem; font-size: 1.6rem; }
.rating-inline { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.35rem; font-weight: 600; }
.review-count-link { color: #2563eb; text-decoration: underline; font-weight: 500; font-size: 0.9rem; }
.category { color: #64748b; margin: 0 0 1rem; font-size: 0.9rem; }
.business-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.btn { text-decoration: none; padding: 0.7rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.9rem; }
.btn-primary { background: #2563eb; color: #fff; }
.btn-primary:hover { background: #1d4ed8; }
.btn-secondary { background: #fff; color: #2563eb; border: 1px solid #2563eb; }
.btn-secondary:hover { background: #eff6ff; }

.stars { color: #f59e0b; letter-spacing: 1px; user-select: none; cursor: default; }

.reviews-list { display: flex; flex-direction: column; gap: 1rem; }
.review-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 1.25rem;
}
.review-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; background: #dbeafe; color: #2563eb;
  display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0;
}
.review-name { font-weight: 600; display: flex; align-items: center; gap: 0.35rem; }
.verified-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; border-radius: 50%; background: #2563eb; color: #fff;
  font-size: 0.6rem; line-height: 1; flex-shrink: 0;
}
.review-location { font-size: 0.8rem; color: #64748b; }
.review-text { margin: 0.5rem 0 0; color: #334155; line-height: 1.55; }
.review-date { margin-top: 0.5rem; font-size: 0.8rem; color: #94a3b8; }

.score-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 1.5rem;
}
.score-big { font-size: 2.75rem; font-weight: 800; line-height: 1; }
.score-label { font-weight: 700; color: #16a34a; margin: 0.25rem 0 0.5rem; }
.score-stars { font-size: 1.1rem; }
.score-count { color: #64748b; font-size: 0.85rem; margin: 0.35rem 0 1rem; }

.bars { display: flex; flex-direction: column; gap: 0.4rem; }
.bar-row {
  display: grid; grid-template-columns: 52px 1fr 24px; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; color: #64748b; width: 100%;
  background: none; border: none; padding: 0.15rem 0; cursor: pointer; font-family: inherit;
  border-radius: 6px;
}
.bar-row:hover:not(:disabled) { background: #f1f5f9; }
.bar-row:disabled { cursor: default; opacity: 0.6; }
.bar-track { background: #e2e8f0; border-radius: 999px; height: 8px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #16a34a; border-radius: 999px; }

.filter-banner {
  display: flex; justify-content: space-between; align-items: center;
  background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px;
  padding: 0.75rem 1rem; margin-bottom: 1rem; font-size: 0.85rem; color: #1e40af;
}
.filter-banner button {
  background: none; border: none; color: #2563eb; font-weight: 600; cursor: pointer; font-size: 0.85rem;
}

.side-note {
  background: #eff6ff; border: 1px solid #dbeafe; border-radius: 12px; padding: 1rem;
  margin-top: 1.5rem; font-size: 0.85rem; color: #1e40af;
}
.side-note p { margin: 0.35rem 0 0; color: #3b5bab; }

.site-footer { text-align: center; padding: 2.5rem 1.5rem; color: #94a3b8; font-size: 0.85rem; }
.site-footer a { color: #64748b; }

.write-review {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 1.75rem; margin-top: 1.5rem; max-width: 560px;
}
.write-review h2 { margin: 0 0 0.25rem; font-size: 1.2rem; }
.write-review-sub { color: #64748b; margin: 0 0 1.25rem; font-size: 0.9rem; }
#review-form { display: flex; flex-direction: column; gap: 1rem; }
#review-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; color: #334155; }
#review-form input, #review-form textarea {
  border: 1px solid #cbd5e1; border-radius: 8px; padding: 0.6rem 0.75rem;
  font-family: inherit; font-size: 0.9rem; font-weight: 400; color: #1e293b;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.star-picker-label { gap: 0.5rem !important; }
.star-picker { display: flex; gap: 0.25rem; }
.star-pick {
  background: none; border: none; font-size: 1.6rem; color: #cbd5e1; cursor: pointer; padding: 0; line-height: 1;
}
.star-pick-active { color: #f59e0b; }
.review-submitted {
  background: #eff6ff; border: 1px solid #dbeafe; border-radius: 10px;
  padding: 1rem; color: #1e40af; font-size: 0.9rem; margin-top: 1rem;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; }
  .page-side { order: -1; }
  .business-card { flex-direction: column; align-items: flex-start; }
}

@media (prefers-color-scheme: dark) {
  body { background: #0b1120; color: #e2e8f0; }
  .breadcrumb { background: #0f172a; border-color: #1e293b; }
  .business-card, .review-card, .score-card { background: #1e293b; border-color: #334155; }
  .category, .review-text, .review-location, .score-count, .bar-row { color: #94a3b8; }
  .side-note { background: #16213a; border-color: #24365c; color: #bfdbfe; }
  .side-note p { color: #93b4e6; }
  .btn-secondary { background: transparent; }
  .site-footer a { color: #94a3b8; }
  .bar-row:hover:not(:disabled) { background: #263449; }
  .filter-banner { background: #16213a; border-color: #24365c; color: #bfdbfe; }
  .business-logo { background: #1e293b; border-color: #334155; }
  .write-review { background: #1e293b; border-color: #334155; }
  .write-review h2 { color: #e2e8f0; }
  .write-review-sub, #review-form label { color: #94a3b8; }
  #review-form input, #review-form textarea { background: #0f172a; border-color: #334155; color: #e2e8f0; }
  .star-pick { color: #475569; }
  .review-submitted { background: #16213a; border-color: #24365c; color: #bfdbfe; }
}
