:root {
  --bg: #fbf6ee;
  --paper: #ffffff;
  --ink: #221812;
  --ink-soft: #6f5f50;
  --line: #ece2d3;
  --crust: #985018;
  --crust-deep: #8a4a12;
  --wheat: #f0d48a;
  --wheat-soft: #f7e7bf;
  --ok: #2f6b3a;
  --shadow: 0 1px 2px rgba(60, 40, 20, 0.06), 0 8px 24px -12px rgba(60, 40, 20, 0.18);
  --radius: 18px;
  --max: 1080px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17120e;
    --paper: #221b15;
    --ink: #f3ebe0;
    --ink-soft: #b9a995;
    --line: #35291f;
    --crust: #985018;
    --crust-deep: #e9975a;
    --wheat: #a8782a;
    --wheat-soft: #3a2c16;
    --ok: #7fc48d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.5; font-size: 17px; }
a { color: var(--crust-deep); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
img { display: block; max-width: 100%; }
.muted { color: var(--ink-soft); }

header.site, main, footer.site { width: min(100% - 32px, var(--max)); margin-inline: auto; }

/* ---------- test-stage notice ---------- */
.notice {
  background: var(--wheat); color: #221812;
  font-size: 14px; line-height: 1.4;
}
.notice[hidden] { display: none; }
.notice p {
  width: min(100% - 32px, var(--max)); margin-inline: auto;
  padding: 14px 52px 14px 0; position: relative;
}
.notice a { color: #221812; font-weight: 700; white-space: nowrap; }
.notice-close {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: rgba(34, 24, 18, 0.12); color: #221812; font-size: 18px; line-height: 1; cursor: pointer;
}
.notice-close:hover { background: rgba(34, 24, 18, 0.22); }
.notice { position: relative; }
.notice p { position: static; }
.notice-close { position: absolute; right: max(16px, calc((100% - var(--max)) / 2)); }

.notice.short p { padding: 9px 44px 9px 0; font-size: 13px; }
.notice.short .notice-close { width: 32px; height: 32px; }

/* ---------- header ---------- */
header.site { padding: 20px 0 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px;
  color: var(--crust-deep); text-decoration: none;
}
.loaf {
  width: 24px; height: 17px; background: var(--crust);
  border-radius: 12px 12px 8px 8px / 11px 11px 6px 6px;
  box-shadow: inset 0 -3px 0 var(--crust-deep);
}
.lang { display: flex; gap: 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.04em; }
.lang a, .lang .current { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 8px; border-radius: 8px; text-decoration: none; color: var(--ink-soft); }
.lang a:hover { color: var(--crust-deep); background: var(--paper); }
.lang .current { color: var(--ink); background: var(--paper); box-shadow: var(--shadow); }

header.site h1 { font-size: clamp(32px, 6vw, 52px); font-weight: 800; margin-top: 24px; max-width: 24ch; }
.metro { margin-top: 12px; font-weight: 600; color: var(--crust-deep); }
.intro { margin-top: 14px; max-width: 62ch; color: var(--ink-soft); font-size: 18px; }
.metros { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.metros a {
  text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: 999px;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow);
}
.metros a[aria-current] { background: var(--ink); color: var(--bg); }

/* ---------- filters ---------- */
.filters {
  margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
}
.filter { display: grid; gap: 6px; min-width: 0; flex: 1; font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.filter select {
  font: inherit; font-size: 16px; font-weight: 500; color: var(--ink);
  min-height: 48px; width: 100%; padding: 10px 36px 10px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a4a12' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none; -webkit-appearance: none; box-shadow: var(--shadow); max-width: 100%;
}
.filter select:focus { outline: 2px solid var(--crust); outline-offset: 1px; }
.count { font-size: 14px; color: var(--ink-soft); margin-left: auto; }
@media (max-width: 600px) {
  .filters { gap: 8px; }
  .filter { width: auto; }
  .filter select { min-width: 0; }
  .count { margin-left: 0; }
}

/* ---------- cards ---------- */
.grid { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.card {
  background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
  display: grid; gap: 8px; align-content: start; padding-bottom: 18px;
}
.card[hidden] { display: none; }
.card > :not(.media) { margin-inline: 18px; }

.media {
  margin: 0; position: relative; aspect-ratio: 4 / 3; background: var(--wheat-soft);
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.media::-webkit-scrollbar { display: none; }
.media img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.media[data-count]::after {
  content: "1 / " attr(data-count); position: absolute; right: 10px; bottom: 10px;
  font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff;
}
.media .cat {
  position: absolute; left: 12px; top: 12px; font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 5px 10px; border-radius: 999px;
  background: var(--paper); color: var(--crust-deep); box-shadow: var(--shadow);
}
.placeholder {
  align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, var(--wheat) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, var(--wheat) 0, transparent 40%),
    var(--wheat-soft);
}
.placeholder .initials { font-size: 44px; font-weight: 800; letter-spacing: 0.04em; color: var(--crust-deep); opacity: 0.55; }

.card {
  /* Fixed slots so every card reads the same: media, name, about, price, languages, action, links, claim. */
  grid-template-rows: auto 1fr auto auto auto auto auto auto;
  height: 100%;
}
.card header { margin-top: 18px; min-height: 52px; }
.card h3 { font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.card .city { color: var(--ink-soft); font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.card .about {
  font-size: 15px; color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.card .price { font-weight: 700; font-size: 15px; min-height: 1.5em; }
.card .price.muted { font-weight: 500; }
.card .langs { display: flex; flex-wrap: wrap; gap: 4px 8px; min-height: 26px; align-items: center; }
.card .langs-label { font-size: 13px; }
.pill { flex: none; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--wheat-soft); color: var(--ink); white-space: nowrap; }
.card .primary { margin-top: 4px; }
.card .primary .btn { width: 100%; justify-content: center; }
.card .links { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; font-weight: 600; min-height: 1.5em; }
.card .links .sep { color: var(--line); }
.card .unclaimed { font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.card .claimed { font-size: 12px; margin-top: 2px; font-weight: 700; color: var(--ok); }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border-radius: 12px;
  min-height: 48px; justify-content: center; background: var(--crust); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; line-height: 1.2;
}
.btn:hover { background: #7e4011; }
.btn-ghost { background: transparent; color: var(--crust-deep); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--wheat-soft); }

/* ---------- calls to action ---------- */
.cta-row { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.cta { padding: 26px; border-radius: var(--radius); background: var(--wheat); color: #221812; display: grid; gap: 10px; align-content: start; }
.cta h2 { font-size: 23px; font-weight: 800; }
.cta p { color: #3d2e21; }
.cta .btn { justify-self: start; background: #221812; color: #fff; }
.cta .btn:hover { background: #000; }

footer.site { margin-top: 56px; padding: 26px 0 48px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  header.site h1 { margin-top: 20px; }
  .filters { margin-inline: -16px; padding-inline: 16px; }
  .grid { grid-template-columns: 1fr; }
  .card > :not(.media) { margin-inline: 16px; }
}

/* ---------- intake form ---------- */
.page-form header.site h1 { max-width: 20ch; }
.intake { margin-top: 24px; display: grid; gap: 18px; max-width: 640px; }
.intake h2 { font-size: 22px; font-weight: 800; margin-top: 14px; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 600; font-size: 15px; }
.field .req { font-weight: 500; color: var(--ink-soft); font-size: 13px; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field input[type="url"],
.field select, .field textarea {
  font: inherit; width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--crust); outline-offset: 1px; border-color: var(--crust); }
.field .hint { font-size: 13px; color: var(--ink-soft); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); font-weight: 500; font-size: 15px; cursor: pointer;
}
.check input { margin: 0; accent-color: var(--crust); }
.check:has(input:checked) { background: var(--crust); color: #fff; border-color: var(--crust); }
.consent .check { border-radius: 14px; align-items: flex-start; white-space: normal; font-weight: 500; }
.consent .check:has(input:checked) { background: var(--wheat-soft); color: var(--ink); border-color: var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.actions { display: grid; gap: 8px; justify-items: start; }
.actions .btn { font-size: 17px; padding: 13px 22px; border: 0; cursor: pointer; font-family: inherit; }
.actions .btn[disabled] { opacity: 0.6; cursor: wait; }
.status { font-weight: 600; min-height: 1.5em; }
.status.is-ok { color: var(--ok); }
.status.is-error { color: #b4232c; }
.field-error { color: #b4232c; font-weight: 600; }
.intake.is-done > :not(.status) { display: none; }

/* Directory browsing: compact cards and clear, touch-friendly controls. */
[hidden] { display: none !important; }
.topbar-actions { display: flex; align-items: center; gap: 20px; }
.vendor-link { font-size: 14px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.page-list .metros { margin-top: 18px; }
.page-list .filters { margin-top: 20px; align-items: end; scroll-margin-top: 12px; }
.filter-result { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-basis: 100%; }
.clear-filters { border: 0; background: transparent; color: var(--crust-deep); font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; min-height: 44px; padding: 4px 0; }
.card-heading { display: flex; align-items: flex-start; gap: 12px; }
.card-heading > div:last-child { min-width: 0; }
.avatar { width: 48px; height: 48px; flex: 0 0 48px; display: grid; place-items: center; background: var(--wheat-soft); color: var(--crust-deep); border-radius: 12px; font-size: 18px; font-weight: 700; }
.card.has-photos { grid-template-rows: auto auto 1fr auto auto auto auto auto auto; }
.vendor-language { font-size: 13px; }
.vendor-language + .vendor-language::before { content: '·'; margin-right: 8px; color: var(--ink-soft); }
.card .links { min-height: 44px; }
.card .links a, .card .unclaimed a { display: inline-flex; align-items: center; min-height: 44px; }
.card .unclaimed { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-size: 13px; }
.card .unclaimed a { display: flex; width: fit-content; }
.directory-about { margin: 40px 0 24px; max-width: 65ch; }
.directory-about h2 { font-size: 22px; margin-bottom: 12px; }
.directory-about p { color: var(--ink-soft); }
.directory-about p + p { margin-top: 10px; }
.empty-state { padding: 28px 20px; margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.empty-state h2 { font-size: 22px; }
.empty-state p { margin: 12px 0 20px; color: var(--ink-soft); }
.empty-state > a { display: inline-flex; align-items: center; min-height: 48px; margin-left: 16px; }
.results-summary { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); font-size: 14px; }
.results-summary span { min-width: 0; overflow-wrap: anywhere; }
.results-summary a { min-height: 44px; display: inline-flex; align-items: center; flex-shrink: 0; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--crust-deep); outline-offset: 3px; }
@media (max-width: 600px) {
  .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-result { grid-column: 1 / -1; }
  .topbar { flex-wrap: wrap; }
  .topbar-actions { gap: 10px; margin-left: auto; }
  .vendor-link { font-size: 12px; max-width: 110px; }
  .page-list h1 { font-size: 32px; }
  .empty-state > a { margin-left: 0; display: flex; }
  .results-summary a { max-width: 110px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 600px) {
  .topbar-actions { display: contents; }
  .topbar .lang { margin-left: auto; }
  .topbar .vendor-link { order: 3; max-width: none; min-height: 36px; flex-basis: 100%; justify-content: flex-end; }
}

/* Share content rows across each desktop row so actions line up despite
   different heading lengths, descriptions, or missing secondary links. */
@media (min-width: 650px) {
  @supports (grid-template-rows: subgrid) {
    .grid:not(:has(.has-photos)) > .card {
      grid-row: span 8;
      grid-template-rows: subgrid;
      row-gap: 8px;
    }
  }
}

/* ---------- reviews ---------- */
.card .reviews { font-size: 14px; }
.card .reviews.none { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 1.5em; }
.stars { color: #c9931f; letter-spacing: 1px; }
.card details.reviews summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; align-items: center; gap: 6px; min-height: 44px; }
.card details.reviews summary::-webkit-details-marker { display: none; }
.card details.reviews summary::after { content: "▾"; color: var(--ink-soft); margin-left: auto; }
.card details.reviews[open] summary::after { content: "▴"; }
.card details.reviews ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.card details.reviews li { border-top: 1px solid var(--line); padding-top: 8px; }
.card details.reviews li p { margin-top: 4px; color: var(--ink); }
.review-link { font-weight: 600; }

/* ---------- compact browsing header ---------- */
.page-list .vendor-link { display: none; }
.page-list .topbar-actions { display: flex; margin-left: auto; }
.hero { display: grid; margin-top: 22px; grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; align-items: center; }
.page-list .hero h1 { font-size: 44px; margin-top: 0; line-height: 1.08; max-width: none; }
.hero-art { width: 240px; height: auto; max-width: 240px; justify-self: end; filter: drop-shadow(0 12px 24px rgba(60, 40, 20, 0.22)); }
.hero-subtitle { margin-top: 10px; font-size: 18px; line-height: 1.45; color: var(--ink-soft); }
.page-list .metros { margin-top: 20px; }
.page-list .filters { margin-top: 18px; }
.page-list .filter-result { min-height: 24px; }
.page-list .grid { margin-top: 12px; }
.ornament { display: block; width: 100%; height: 16px; margin-top: 36px; opacity: 0.8; }
@media (max-width: 700px) {
  .hero { grid-template-columns: minmax(0, 1fr) 100px; }
  .page-list .hero h1 { font-size: 30px; }
  .hero-art { width: 100px; max-width: 100px; }
  .hero-subtitle { font-size: 14px; }
}
@media (prefers-color-scheme: dark) {
  .hero-art { filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.6)); }
}

/* One listing, with a clearly qualified early-vendor rate. */
.vendor-pricing { max-width: 640px; margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); display: grid; gap: 16px; overflow-wrap: anywhere; }
.vendor-pricing h2 { font-size: clamp(24px, 4vw, 30px); }
.vendor-pricing > p { color: var(--ink-soft); }
.vendor-pricing .pricing-free { color: var(--ok); font-size: 18px; font-weight: 700; }
.pricing-rate strong { font-size: 40px; line-height: 1.2; color: var(--ink); }
.pricing-early { padding: 16px; background: var(--wheat-soft); border-radius: 12px; display: grid; gap: 8px; }
.pricing-early > p:first-child { font-weight: 600; }
.pricing-early strong { font-size: 28px; }
.vendor-pricing .pricing-terms { color: var(--ink); font-weight: 600; }
.pricing-consent { padding-top: 16px; border-top: 1px solid var(--line); }
#listing-form { scroll-margin-top: 20px; }
@media (max-width: 480px) { .vendor-pricing { padding: 20px 16px; } }
