/* ==========================================================================
   Petsocare unclaimed-storefront template
   Design tokens mirror the live consented storefront so a claimed store can be
   promoted onto the production theme without a visual jump.
   ========================================================================== */

:root {
  --primary: #5947c4;
  --primary-hover: #4a3aab;
  --primary-fg: #ffffff;
  --primary-muted: rgba(89, 71, 196, 0.1);
  --primary-ring: rgba(89, 71, 196, 0.28);

  --accent: #eab308;
  --accent-soft: #fdf6d8;
  --accent-fg: #4a3a05;

  --destructive: #dc2626;
  --destructive-muted: #fef2f2;
  --success: #15803d;
  --success-muted: #f0fdf4;

  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: var(--gray-50);
  --surface-3: var(--gray-100);
  --border: var(--gray-200);
  --border-muted: var(--gray-100);
  --text: var(--gray-900);
  --text-muted: var(--gray-600);
  --text-subtle: var(--gray-500);
  --footer-bg: var(--gray-900);
  --footer-text: var(--gray-50);

  --radius: 12px;
  --radius-sm: 4px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.06), 0 1px 3px rgba(17, 24, 39, 0.06);
  --shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 18px 44px rgba(17, 24, 39, 0.16);

  --container: 1120px;
  --font: Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  /* Raw channels so the catalog veil can fade the page background to any alpha. */
  --veil: 255, 255, 255;
}

[data-theme='dark'] {
  --bg: #0f1218;
  --surface: #171b23;
  --surface-2: #1c212b;
  --surface-3: #232935;
  --border: #2b3240;
  --border-muted: #222835;
  --text: #f3f4f6;
  --text-muted: #b6bdc9;
  --text-subtle: #8b93a3;
  --footer-bg: #0a0d12;
  --footer-text: #e5e7eb;
  --primary: #8878e8;
  --primary-hover: #9a8cf0;
  --primary-muted: rgba(136, 120, 232, 0.16);
  --accent-soft: #38300f;
  --accent-fg: #f7e6a8;
  --destructive: #f87171;
  --destructive-muted: #2a1618;
  --success: #4ade80;
  --success-muted: #10261a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 44px rgba(0, 0, 0, 0.6);
  --veil: 15, 18, 24;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

/* Inline icons have no intrinsic size, so give every call site a sane default.
   Component rules further down override this where a different size is wanted. */
.btn svg,
.icon-btn svg,
.topbar-tag svg,
.no-rating svg,
.searchbar-note svg,
.fulfillment button svg,
.empty-note svg,
.hero-count svg { width: 17px; height: 17px; flex: none; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
button { font: inherit; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 16px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 15px; font-weight: 600;
  text-decoration: none !important;
  transition: background-color .15s, color .15s, border-color .15s, transform .1s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--primary-fg); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { background: var(--surface-3); color: var(--text); }
.btn-ghost:hover { background: var(--border); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { background: var(--surface-2); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text-muted);
}
.icon-btn:hover { color: var(--text); background: var(--surface-2); }

/* ------------------------------------------------------------------- topbar */

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex; align-items: center; gap: 16px;
  height: 62px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none !important; flex: none; }
/* The wordmark is a fixed-aspect PNG (670x116) from petsocare.com — set the
   height only and let width follow, so it never distorts. */
.brand-logo { height: 34px; width: auto; }
/* The mark is purple-on-transparent; unmodified it sinks into a dark surface.
   Lifting brightness keeps the artwork intact rather than swapping in a recolour. */
[data-theme='dark'] .brand-logo,
.footer .brand-logo { filter: brightness(1.32) saturate(1.04); }
.topbar-spacer { flex: 1 1 auto; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
/* Below this width the CTA can't fit beside the brand — the sticky bottom bar
   carries the same action, so drop it here rather than let it clip. */
@media (max-width: 600px) { .topbar-actions .btn { display: none; } }
.topbar-tag {
  display: none; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--accent-soft); color: var(--accent-fg);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.icon-btn svg { width: 19px; height: 19px; }
@media (min-width: 860px) { .topbar-tag { display: inline-flex; } }

/* -------------------------------------------------------------- breadcrumbs */

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 14px 0 12px;
  font-size: 13.5px; color: var(--text-subtle);
}
.crumbs a { color: var(--text-muted); display: inline-flex; align-items: center; gap: 6px; }
.crumbs svg { width: 14px; height: 14px; opacity: .7; flex: none; }
.crumbs .sep { display: inline-flex; }
.crumbs .sep { color: var(--accent); font-weight: 700; }
.crumbs .current { color: var(--text); font-weight: 500; }

/* --------------------------------------------------------------------- hero */

.hero { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.hero-media { position: relative; aspect-ratio: 3 / 1.5; }
@media (min-width: 720px) { .hero-media { aspect-ratio: 3 / 1.1; } }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(17, 24, 39, .62) 0%, rgba(17, 24, 39, .08) 38%, rgba(17, 24, 39, 0) 62%);
}
.hero-badge {
  position: absolute; top: 14px; left: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .94); color: var(--gray-800);
  font-size: 12.5px; font-weight: 700; letter-spacing: .01em;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.hero-tools { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
.hero-tools .icon-btn { background: rgba(255, 255, 255, .94); border-color: transparent; color: var(--gray-700); }
.hero-logo {
  position: absolute; left: 18px; bottom: 18px;
  width: 76px; height: 76px; border-radius: 50%;
  border: 3px solid #fff; overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
}
.hero-logo img { width: 100%; height: 100%; }
.hero-count {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 13px; border-radius: var(--radius-pill);
  background: rgba(17, 24, 39, .68); color: #fff;
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.hero-empty { display: grid; place-items: center; height: 100%; }
/* No scrim here — a gradient to near-black over an empty placeholder reads as a
   rendering fault rather than a missing photo. */
.hero-blank {
  background:
    radial-gradient(120% 90% at 20% 10%, var(--primary-muted) 0%, transparent 60%),
    linear-gradient(140deg, var(--surface-2) 0%, var(--surface-3) 100%);
}

/* --------------------------------------------------------------- statusband */

.statusband {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin-top: 2px; padding: 11px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--accent-soft); color: var(--accent-fg);
  font-size: 14px; font-weight: 500;
}
.statusband .item { display: inline-flex; align-items: center; gap: 7px; }
.statusband svg { width: 16px; height: 16px; flex: none; }
.statusband .bullet { opacity: .45; }

/* ------------------------------------------------------------- store header */

.store-head { padding: 26px 0 4px; }
.store-title {
  font-size: clamp(27px, 5vw, 40px);
  font-weight: 800; letter-spacing: -0.025em;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.chip {
  padding: 5px 12px; border-radius: var(--radius-pill);
  background: var(--surface-3); color: var(--text-muted);
  font-size: 12.5px; font-weight: 500; white-space: nowrap;
}
.chip-primary { background: var(--primary-muted); color: var(--primary); font-weight: 600; }

.meta-list { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.meta-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--text-muted); }
.meta-list svg { width: 17px; height: 17px; margin-top: 2px; flex: none; color: var(--text-subtle); }
.meta-list .pin { color: var(--destructive); }
.meta-list strong { color: var(--text); font-weight: 500; }
.open-now { color: var(--success); font-weight: 600; }
.closed-now { color: var(--destructive); font-weight: 600; }

/* ------------------------------------------------------------- rating block */

.rating-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.rating-score { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.stars { position: relative; display: inline-block; line-height: 0; flex: none; }
.stars-bg, .stars-fg { display: flex; gap: 2px; }
.stars-fg { position: absolute; inset: 0; overflow: hidden; }
.stars svg { width: 17px; height: 17px; flex: none; }
.stars-bg svg { color: var(--gray-300); }
.stars-fg svg { color: var(--accent); }
.stars-sm svg { width: 14px; height: 14px; }
.rating-count { font-size: 14.5px; color: var(--text-muted); }
.rating-source {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-subtle);
}
.rating-source svg { width: 13px; height: 13px; }
.no-rating {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding: 7px 13px; border-radius: var(--radius-pill);
  background: var(--surface-3); color: var(--text-subtle);
  font-size: 13.5px; font-weight: 500;
}

/* ---------------------------------------------------------------- shop area */

.section { padding: 34px 0; border-top: 1px solid var(--border-muted); }
.section:first-of-type { border-top: 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 8px 18px; margin-bottom: 18px;
}
.section-title { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.section-sub { font-size: 14px; color: var(--text-subtle); margin-top: 5px; }

/* Segmented control: sized to its own content, not stretched across the page.
   Each button must be its own flex row — the global `svg { display: block }`
   otherwise drops the icon onto a line of its own and the label centres beneath it. */
.fulfillment {
  display: inline-flex; gap: 6px; padding: 4px; max-width: 100%;
  background: var(--surface-3); border-radius: var(--radius-pill);
}
.fulfillment button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 152px; padding: 10px 24px;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; color: var(--text-muted);
  font-size: 14.5px; font-weight: 600; line-height: 1.4;
}
.fulfillment button[aria-pressed='true'] { background: var(--primary); color: var(--primary-fg); }
/* Inert, not dimmed: the toggle should look like the real control it becomes,
   otherwise the whole page reads as broken rather than as pending. */
.fulfillment button:disabled { cursor: not-allowed; }

@media (max-width: 520px) {
  .fulfillment { display: flex; width: 100%; }
  .fulfillment button { flex: 1 1 0; min-width: 0; padding: 10px 12px; }
}

.searchbar { position: relative; margin-top: 14px; }
.searchbar svg {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--text-subtle);
}
.searchbar input {
  width: 100%; padding: 13px 16px 13px 44px;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text); font: inherit; font-size: 15px;
}
.searchbar input:disabled { background: var(--surface-2); cursor: not-allowed; }
.searchbar-note {
  display: flex; align-items: center; gap: 7px;
  margin-top: 9px; font-size: 13px; color: var(--text-subtle); padding-left: 6px;
}

/* ------------------------------------------------------- empty catalog area */

.catalog { position: relative; margin-top: 22px; }
.ghost-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 620px) { .ghost-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ghost-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ghost-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 12px;
}
.ghost-thumb {
  aspect-ratio: 1 / 1; border-radius: var(--radius-sm);
  background: var(--surface-3); position: relative; overflow: hidden;
}
.ghost-line { height: 10px; border-radius: 5px; background: var(--surface-3); margin-top: 11px; }
[data-theme='light'] .ghost-thumb, :root:not([data-theme='dark']) .ghost-thumb { background: #e9ebef; }
[data-theme='light'] .ghost-line, :root:not([data-theme='dark']) .ghost-line { background: #e9ebef; }
.ghost-line.w70 { width: 70%; }
.ghost-line.w45 { width: 45%; }
.ghost-line.w30 { width: 30%; height: 13px; margin-top: 13px; }

.shimmer::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, .55) 50%, transparent 78%);
  transform: translateX(-100%);
  animation: shimmer 2.6s cubic-bezier(.4, 0, .2, 1) infinite;
}
[data-theme='dark'] .shimmer::after {
  background: linear-gradient(100deg, transparent 22%, rgba(255, 255, 255, .07) 50%, transparent 78%);
}
@keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .shimmer::after { animation: none; } }

/* The skeleton grid has to stay legible — it is the whole message ("your
   products go here"). The veil only clears space behind the card. */
.ghost-grid { opacity: .7; }

.catalog-veil {
  position: absolute; inset: -2px;
  display: grid; place-items: center; padding: 20px;
  background:
    radial-gradient(62% 54% at 50% 50%,
      rgb(var(--veil)) 26%,
      rgba(var(--veil), .86) 52%,
      rgba(var(--veil), .40) 78%,
      rgba(var(--veil), .06) 100%);
}

.empty-card {
  max-width: 560px; width: 100%; text-align: center;
  padding: 30px 26px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.empty-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--primary-muted); color: var(--primary);
}
.empty-icon svg { width: 30px; height: 30px; }
.empty-card h3 { font-size: clamp(19px, 3vw, 24px); font-weight: 800; letter-spacing: -0.02em; }
.empty-card p { margin: 11px 0 0; font-size: 15px; color: var(--text-muted); }
.empty-stat {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  margin: 18px auto 0; padding: 11px 16px;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent-fg);
  font-size: 13.5px; font-weight: 600; text-align: left;
}
.empty-stat svg { width: 17px; height: 17px; flex: none; }
.empty-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
@media (min-width: 520px) { .empty-actions { flex-direction: row; justify-content: center; } }
.empty-fine { margin-top: 13px; font-size: 12.5px; color: var(--text-subtle); }

/* ------------------------------------------------------------------ reviews */

.reviews-summary {
  display: grid; gap: 22px; align-items: start;
  padding: 20px; margin-bottom: 22px;
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2);
}
@media (min-width: 780px) { .reviews-summary { grid-template-columns: 210px 1fr; } }
.summary-score { text-align: center; }
.summary-score .big { font-size: 46px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.summary-score .stars { margin: 9px auto 7px; }
.summary-score .count { font-size: 13.5px; color: var(--text-muted); }
.bars { display: grid; gap: 7px; }
.bar-row { display: grid; grid-template-columns: 40px 1fr 44px; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text-muted); }
.bar-track { height: 9px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
/* display:block — a bare inline span ignores height/width and the bar reads empty. */
.bar-fill { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.bar-row .num { text-align: right; font-variant-numeric: tabular-nums; }

.review-grid { display: grid; gap: 14px; }
@media (min-width: 780px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-card {
  padding: 18px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.review-top { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; overflow: hidden;
  color: #fff; font-size: 14px; font-weight: 700;
}
.review-who { min-width: 0; }
.review-name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-when { font-size: 12.5px; color: var(--text-subtle); }
.review-stars { margin-top: 11px; }
.review-text { margin: 10px 0 0; font-size: 14.5px; color: var(--text-muted); line-height: 1.62; }
.attribution {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 12.5px; color: var(--text-subtle);
}
.attribution svg { width: 14px; height: 14px; flex: none; }

/* Shown when a section's content is synthesised rather than scraped. These pages
   carry real business names, so unlabelled placeholder content is not an option. */
.placeholder-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 16px; padding: 12px 16px;
  border: 1px solid var(--accent); border-left-width: 4px;
  border-radius: var(--radius);
  background: var(--accent-soft); color: var(--accent-fg);
  font-size: 13.5px; line-height: 1.55;
}
.placeholder-note svg { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.review-card.is-placeholder { border-style: dashed; }

/* ------------------------------------------------------------------ gallery */

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface-3); }
.gallery img { aspect-ratio: 4 / 3; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery figure:hover img { transform: scale(1.035); }
.gallery figcaption {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 16px 12px 9px;
  background: linear-gradient(to top, rgba(17, 24, 39, .78), transparent);
  color: #fff; font-size: 11.5px; opacity: 0; transition: opacity .2s;
}
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption { opacity: 1; }
.gallery .wide { grid-column: span 2; }

/* --------------------------------------------------------------- info panel */

.info-grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 860px) { .info-grid { grid-template-columns: 1fr 1fr; } }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel-head {
  padding: 14px 18px; border-bottom: 1px solid var(--border-muted);
  font-size: 14px; font-weight: 700; letter-spacing: .01em;
  display: flex; align-items: center; gap: 9px;
}
.panel-head svg { width: 17px; height: 17px; color: var(--text-subtle); }
.panel-body { padding: 6px 18px 16px; }

.hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours td { padding: 9px 0; border-bottom: 1px solid var(--border-muted); color: var(--text-muted); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr.is-today td { color: var(--text); font-weight: 700; }
.hours tr.is-today td:first-child::before {
  content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary); margin-right: 8px; vertical-align: middle;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: var(--success-muted); color: var(--success);
  font-size: 12.5px; font-weight: 600;
}
.tag svg { width: 13px; height: 13px; }
.tag-off { background: var(--surface-3); color: var(--text-subtle); }

.map-wrap { position: relative; }
.map-wrap img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
/* The generated map is a light graphic; at full brightness it's a glaring slab
   against the dark theme. Dim it, and bring it back on hover. */
[data-theme='dark'] .map-wrap img { filter: brightness(.72) saturate(.9); transition: filter .2s; }
[data-theme='dark'] .map-link:hover img { filter: brightness(.88) saturate(1); }
.map-link { display: block; position: relative; text-decoration: none !important; }
.map-link img { transition: transform .35s ease, filter .2s; }
.map-link:hover img { transform: scale(1.02); filter: brightness(.94); }
.map-cta {
  position: absolute; right: 12px; bottom: 12px;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
.map-cta svg { width: 15px; height: 15px; flex: none; }
.map-link:hover .map-cta { background: var(--primary); color: var(--primary-fg); border-color: var(--primary); }
.map-note {
  padding: 11px 18px; font-size: 12.5px; color: var(--text-subtle);
  border-top: 1px solid var(--border-muted);
}
.empty-note {
  padding: 22px 4px; text-align: center;
  font-size: 14px; color: var(--text-subtle);
}
.empty-note svg { margin: 0 auto 8px; }
.muted { color: var(--text-subtle); }

/* -------------------------------------------------------------- claim block */

.claim {
  display: grid; gap: 18px; align-items: center;
  padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary) 0%, #7a63d8 55%, #9b7ce0 100%);
  color: #fff;
}
@media (min-width: 800px) { .claim { grid-template-columns: 1fr auto; } }
.claim h2 { font-size: clamp(20px, 3.4vw, 27px); font-weight: 800; letter-spacing: -0.02em; }
.claim p { margin: 9px 0 0; font-size: 15px; opacity: .92; max-width: 56ch; }
.claim .btn-primary { background: #fff; color: var(--primary); }
.claim .btn-primary:hover { background: var(--gray-100); }
.claim-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.claim .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.claim .btn-outline:hover { background: rgba(255, 255, 255, .12); }

/* --------------------------------------------------------- sticky claim bar */

.stickybar {
  position: sticky; bottom: 0; z-index: 30;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
  padding: 12px 16px;
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(17, 24, 39, .07);
}
.stickybar .text { flex: 1 1 240px; font-size: 14px; color: var(--text-muted); }
.stickybar strong { color: var(--text); }

/* ------------------------------------------------------------------- footer */

.footer { margin-top: 44px; padding: 34px 0 40px; background: var(--footer-bg); color: var(--footer-text); }
.footer .brand { color: var(--footer-text); }
.footer-cols { display: grid; gap: 24px; }
@media (min-width: 620px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .footer-cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--gray-400); margin-bottom: 11px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: var(--gray-300); font-size: 14px; }
.footer a:hover { color: #fff; }
.footer-note {
  margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12.5px; color: var(--gray-400); line-height: 1.65;
}
.footer-note a { color: var(--gray-300); text-decoration: underline; }

/* ============================================================ claim dialog */

.modal {
  width: min(560px, calc(100vw - 32px));
  padding: 0; border: 0; border-radius: var(--radius-lg);
  background: transparent; color: var(--text);
  max-height: calc(100vh - 48px);
}
.modal::backdrop { background: rgba(17, 24, 39, .58); backdrop-filter: blur(2px); }
.modal-card {
  position: relative;
  padding: 30px 28px 26px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 48px); overflow-y: auto;
}
.modal-close { position: absolute; top: 14px; right: 14px; }
.modal-title { font-size: clamp(20px, 3.4vw, 25px); font-weight: 800; letter-spacing: -0.02em; padding-right: 44px; }
.modal-sub { margin: 10px 0 22px; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ------------------------------------------------------------------- forms */

.claim-form { display: block; }
.field-grid { display: grid; gap: 14px; }
@media (min-width: 520px) { .field-grid { grid-template-columns: 1fr 1fr; } }

.field { display: block; margin-bottom: 14px; }
.field-grid .field { margin-bottom: 0; }
.field label {
  display: block; margin-bottom: 6px;
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.field .optional { font-weight: 400; color: var(--text-subtle); }
.field input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--input-bg, var(--surface)); color: var(--text);
  font: inherit; font-size: 15px;
}
.field input:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: var(--primary); }
.field input:user-invalid { border-color: var(--destructive); }
.field-hint { display: block; margin-top: 6px; font-size: 12.5px; color: var(--text-subtle); line-height: 1.45; }

/* Honeypot: reachable to bots parsing the DOM, invisible and skipped by humans. */
.gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error {
  margin: 14px 0 0; padding: 11px 14px;
  border: 1px solid var(--destructive); border-radius: var(--radius);
  background: var(--destructive-muted); color: var(--destructive);
  font-size: 13.5px; font-weight: 500;
}
.claim-form .btn { margin-top: 18px; }
.form-fine { margin: 12px 0 0; font-size: 12.5px; color: var(--text-subtle); text-align: center; line-height: 1.5; }

.btn-destructive { background: var(--destructive); color: #fff; }
.btn-destructive:hover { filter: brightness(1.08); }

/* ------------------------------------------------------- standalone pages */

.container.narrow { max-width: 640px; }

.page-head { padding: 44px 0 26px; text-align: center; }
.page-icon {
  display: grid; place-items: center; width: 62px; height: 62px;
  margin: 0 auto 18px; border-radius: 50%;
  background: var(--primary-muted); color: var(--primary);
}
.page-icon svg { width: 30px; height: 30px; }
.page-icon-success { background: var(--success-muted); color: var(--success); }
.page-icon-warn { background: var(--destructive-muted); color: var(--destructive); }
.page-head h1 { font-size: clamp(25px, 5vw, 34px); font-weight: 800; letter-spacing: -0.025em; }
.page-head p { margin: 14px 0 0; font-size: 15.5px; color: var(--text-muted); line-height: 1.62; }
.page-head .lede { font-size: 16.5px; }

.form-panel { padding: 26px 24px; }
.steps-panel { margin-top: 20px; }
.steps { margin: 4px 0 0; padding-left: 22px; display: grid; gap: 11px; font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }
.steps strong { color: var(--text); }
.page-fine { margin: 22px 0 8px; text-align: center; font-size: 13.5px; color: var(--text-subtle); }

/* ============================================================= index / QA page */

.qa-hero { padding: 40px 0 26px; }
.qa-hero h1 { font-size: clamp(26px, 4.4vw, 36px); font-weight: 800; letter-spacing: -0.025em; }
.qa-hero p { margin: 12px 0 0; color: var(--text-muted); max-width: 74ch; font-size: 15.5px; }
.stat-row { display: grid; gap: 12px; margin-top: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat {
  padding: 16px 18px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.stat .n { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; }
.stat .l { font-size: 12.5px; color: var(--text-subtle); margin-top: 3px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.qa { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
table.qa th, table.qa td { padding: 13px 12px; text-align: left; border-bottom: 1px solid var(--border-muted); vertical-align: middle; }
table.qa th { background: var(--surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-subtle); white-space: nowrap; }
table.qa tr:last-child td { border-bottom: 0; }
table.qa tr:hover td { background: var(--surface-2); }
table.qa th:first-child, table.qa td:first-child { min-width: 210px; }
table.qa th:nth-child(2), table.qa td:nth-child(2) { min-width: 230px; }
table.qa td:nth-child(2) a { word-break: break-all; }
table.qa .store-cell { display: flex; align-items: center; gap: 11px; }
table.qa .store-cell img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
table.qa .name { font-weight: 600; }
table.qa .sub { font-size: 12.5px; color: var(--text-subtle); }
table.qa code { font-size: 12.5px; color: var(--text-muted); background: var(--surface-3); padding: 3px 7px; border-radius: var(--radius-sm); white-space: nowrap; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.pill-warn { background: var(--accent-soft); color: var(--accent-fg); }
.pill-ok { background: var(--success-muted); color: var(--success); }
.pill-bad { background: var(--destructive-muted); color: var(--destructive); }
.pill-mute { background: var(--surface-3); color: var(--text-subtle); }
.dots { display: flex; gap: 3px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--gray-300); }
.dots i.on { background: var(--success); }
