/* HowMuchTrades, Safety palette (locked 2026-10-08).
   Ported from the vet theme. Colors only, selectors and layout unchanged. */
:root {
  --cream: #f7f7f4;
  --navy: #23272e;
  --navy-soft: #333842;
  --amber: #f2b705;
  --amber-dark: #cf9a04;
  --muted: #5f656e;
  --line: #e2e2d6;
  --chip: #fdf3d0;
  --amber-deep: #b68804; /* darker amber, hover states only */
  --cta-text: #433100;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(35, 39, 46, 0.07);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--navy);
  background-color: var(--cream);
  background-image: linear-gradient(180deg, var(--line) 0%, var(--cream) 520px);
  background-repeat: no-repeat;
  line-height: 1.55;
  font-size: 16px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wrap.xwide { max-width: 1120px; }
.wide { max-width: 1020px; }

/* header */
header.site { background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
header.site .wrap { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.lang-toggle { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.lang-toggle a {
  font-size: 12px; font-weight: 700; color: var(--muted); text-decoration: none;
  padding: 4px 8px; border-radius: 8px; border: 1px solid transparent;
}
.lang-toggle a:hover { color: var(--navy); border-color: var(--line); }
.lang-toggle a.active { color: var(--navy); background: var(--chip); border-color: var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.mascot-logo { width: 56px; height: 56px; border-radius: 50%; flex: none; }
.logo .wordmark { font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -0.3px; }
.logo .wordmark span { color: var(--navy); font-weight: 700; }
nav.main { margin-left: auto; display: flex; gap: 4px; align-items: center; }
nav.main a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
nav.main a:hover { background: var(--chip); color: var(--navy); }
.btn-report {
  background: var(--amber-dark) !important; color: #fff !important; font-weight: 700;
  border-radius: 999px !important; padding: 9px 18px !important;
}
.btn-report:hover { background: var(--amber-deep) !important; }

.searchbox { display: flex; gap: 8px; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 999px; padding: 6px; box-shadow: 0 4px 18px rgba(0,0,0,.15); position: relative; }
.suggest-box {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.sug {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  width: 100%; background: none; border: none; padding: 10px 16px;
  font-size: 14px; color: var(--navy); cursor: pointer; text-align: left;
}
.sug:hover, .sug.active { background: var(--chip); }
.sug-name { font-weight: 600; }
.sug-price { font-size: 12px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.sug-sub { font-size: 12px; color: var(--muted); white-space: nowrap; }
.searchbox input {
  flex: 1; font-size: 17px; padding: 10px 16px; min-width: 0;
  border: none; border-radius: 999px; outline: none; background: transparent;
}
.searchbox button {
  border: none; background: var(--navy); color: #fff; font-size: 16px; font-weight: 700;
  padding: 10px 26px; border-radius: 999px; cursor: pointer; flex: none;
}
.searchbox button:hover { background: var(--navy); }

/* cards & lists */
.section { padding: 24px 0; }
.section h2 { font-size: 22px; margin: 0 0 14px; letter-spacing: -0.2px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 12px; background: #fff;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card h3 a { color: var(--navy); text-decoration: none; }
.card h3 a:hover { color: var(--navy); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.addr { color: var(--muted); font-size: 15px; margin: 2px 0 8px; }

.price-row { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.price-row:first-of-type { border-top: none; }
.price-row .pname { font-weight: 600; }
.price-row .pname a { color: var(--navy); text-decoration: none; }
.price-row .pname a:hover { color: var(--navy); }
.price { font-weight: 800; font-size: 18px; color: var(--navy); }
.price-coral { font-weight: 800; font-size: 18px; color: var(--amber-dark); }
.city-hub-link { color: inherit; text-decoration: none; }
.city-hub-link:hover { color: var(--navy); text-decoration: underline; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.title-row h1, .title-row h2 { margin: 0; flex: 1 1 0; min-width: 0; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid var(--line); color: var(--navy); border-radius: 999px; padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.share-btn:hover { border-color: var(--navy); color: var(--navy); }
.share-btn[hidden] { display: none; }
.share-toast { position: fixed; left: 50%; bottom: 20px; z-index: 60;
  transform: translateX(-50%) translateY(16px); opacity: 0; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  display: flex; align-items: center; gap: 12px; max-width: min(92vw, 420px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0,0,0,.16); padding: 12px 14px; }
.share-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.share-toast[hidden] { display: none; }
.share-toast img { border-radius: 50%; flex: none; }
.share-toast .tt { font-size: 14px; line-height: 1.35; }
.share-toast .tt strong { display: block; }
.share-toast .cta { flex: none; }
.share-toast-close { flex: none; background: none; border: none; font-size: 18px;
  line-height: 1; color: var(--muted); cursor: pointer; padding: 4px; }
.range { color: var(--muted); font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.stat-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .stat-grid.four { grid-template-columns: repeat(2, 1fr); } }
.stat-block { margin: 16px 0; }
.stat-block + .stat-block { margin-top: 20px; }
.src-label { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); background: var(--chip); border-radius: 999px; padding: 4px 12px; margin-bottom: 8px; }
.estimate-block .stat { border-style: dashed; }
.est-details { background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 16px; }
.est-details summary { cursor: pointer; font-weight: 700; color: var(--muted); font-size: 14px; }
.est-details table { margin-top: 10px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.stat .v { font-size: 26px; font-weight: 800; color: var(--navy); }
.stat .l { font-size: 13px; color: var(--muted); }

.empty {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; color: var(--muted); background: #fff;
  box-shadow: var(--shadow);
}
.empty .cta { display: inline-block; margin-top: 12px; background: var(--amber-dark); color: #fff;
  padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.empty .cta:hover { background: var(--amber-deep); }

/* homepage report CTA: navy card, amber button */
.report-cta {
  background: var(--navy); border-radius: var(--radius);
  padding: 30px 20px; text-align: center; color: #fff;
  box-shadow: var(--shadow);
}
.report-cta .cta-title { display: block; font-size: 17px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.report-cta .cta-body { display: block; font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 20px; line-height: 1.5; }
.report-cta .cta { display: inline-block; background: var(--amber-dark); color: #fff;
  padding: 12px 28px; border-radius: 999px; text-decoration: none; font-weight: 700;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.report-cta .cta:hover { background: var(--amber-deep); }

/* show more / show fewer toggle */
.more-toggle {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--navy); font: inherit; text-decoration: underline;
}
.more-toggle:hover { color: var(--navy); }

/* nearby clinics: 2-column grid, single column on mobile */
.clinic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.more-clinics { display: contents; }
.more-clinics[hidden] { display: none; }
@media (max-width: 720px) { .clinic-grid { grid-template-columns: 1fr; } }

/* forms */
form.clean label { display: block; font-weight: 600; margin: 18px 0 6px; }
form.clean input[type=text], form.clean input[type=number], form.clean select {
  width: 100%; font-size: 16px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; outline: none; background: #fff;
}
form.clean input:focus, form.clean select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(35, 39, 46, .14); }
.search-input {
  width: 100%; font-size: 16px; padding: 12px 16px; margin: 14px 0 4px;
  border: 1px solid var(--line); border-radius: 24px; outline: none; background: #fff;
}
.search-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(35, 39, 46, .14); }
form.clean button.primary {
  margin-top: 22px; width: 100%; border: none; background: var(--navy); color: #fff;
  font-size: 17px; font-weight: 700; padding: 14px; border-radius: 14px; cursor: pointer;
}
form.clean button.primary:hover { background: var(--navy); }
/* report form submit: amber */
#report-form button.primary { background: var(--amber-dark); }
#report-form button.primary:hover { background: var(--amber-deep); }
/* fair-price checker submit: safety yellow */
form[action="/fair-price"] button.primary { background: var(--amber); color: var(--cta-text); }
form[action="/fair-price"] button.primary:hover { background: var(--amber-dark); }
.hint { font-size: 14px; color: var(--muted); margin-top: 6px; }
.autocomplete { position: relative; }
.suggestions {
  position: absolute; top: 100%; left: 0; right: 0; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; margin-top: 4px;
  max-height: 240px; overflow: auto; z-index: 20; box-shadow: 0 8px 24px rgba(0,0,0,.10);
  display: none;
}
.suggestions div { padding: 10px 14px; cursor: pointer; font-size: 15px; }
.suggestions div:hover, .suggestions div.active { background: var(--chip); }
.suggestions .sub { color: var(--muted); font-size: 13px; display: block; }

/* map */
.mapframe { width: 100%; height: 260px; border: 1px solid var(--line); border-radius: var(--radius); }

/* footer */
footer.site { border-top: 1px solid var(--line); margin-top: 48px; background: #fff; }
footer.site .wrap { padding-top: 26px; padding-bottom: 34px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
footer.site a { color: var(--muted); text-decoration: none; font-size: 14px; }
footer.site a:hover { color: var(--navy); }
.disclaimer { flex-basis: 100%; font-size: 13px; color: var(--muted); margin-top: 10px; }

/* misc */
.breadcrumb { font-size: 14px; color: var(--muted); margin: 18px 0 4px; }
.breadcrumb a { color: var(--navy); text-decoration: none; }
h1.page { font-size: clamp(24px, 4vw, 32px); letter-spacing: -0.4px; margin: 6px 0 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .grid2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  nav.main a:not(.btn-report) { display: none; }
  .hero { padding: 32px 18px 26px; margin-top: 16px; }
}
.pill { display: inline-block; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; margin: 0 8px 8px 0; text-decoration: none; color: var(--navy); box-shadow: var(--shadow); }
.pill:hover { border-color: var(--navy); color: var(--navy); }
.pill-price { font-weight: 700; color: var(--navy); }
.alert { border: 1px solid #f3c2c2; background: #fdf2f2; color: #9b1c1c; border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.success { border: 1px solid var(--chip); background: var(--chip); color: var(--navy); border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
table.prices { width: 100%; border-collapse: collapse; font-size: 15px; }
table.prices th { text-align: left; color: var(--muted); font-weight: 600; font-size: 13px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
table.prices td { padding: 10px 4px; border-bottom: 1px solid var(--line); }
table.prices tr:last-child td { border-bottom: none; }

/* dashboard homepage */
.dash-head {
  background: var(--navy); border-radius: 22px; box-shadow: var(--shadow);
  padding: 30px 24px 28px; margin: 20px 0 8px; text-align: center;
}
.dash-head h1 { font-size: clamp(24px, 4.5vw, 34px); letter-spacing: -0.4px; margin: 0 0 8px; font-weight: 800; color: #fff; }
.dash-head p.sub { color: var(--chip); font-size: 17px; margin: 0 0 10px; }
.dash-head .locline { color: #c9cdd4; font-size: 14px; margin: 0; }
.dash-head .locline button { background: none; border: none; color: var(--amber); cursor: pointer; font-size: 14px; padding: 0; text-decoration: underline; font-weight: 600; }
.section.compact { padding: 14px 0 4px; }
.checker-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy));
  border-radius: var(--radius); padding: 26px 24px; margin: 20px 0; color: #fff;
  display: grid; gap: 18px; box-shadow: var(--shadow);
}
@media (min-width: 720px) { .checker-hero { grid-template-columns: 1fr 1fr; align-items: center; } }
.checker-hero h2 { color: #fff; margin: 0 0 8px; font-size: 22px; letter-spacing: -0.2px; }
.checker-hero p { color: var(--chip); margin: 0; font-size: 15px; }
.checker-form label { display: block; font-size: 13px; font-weight: 700; color: var(--chip); margin-bottom: 10px; }
.checker-form select, .checker-form input {
  width: 100%; font-size: 16px; padding: 12px 14px; border: none; border-radius: 12px;
  margin-top: 6px; background: #fff; color: var(--navy); font-family: inherit;
}
.checker-btn {
  width: 100%; border: none; border-radius: 12px; background: var(--amber); color: var(--cta-text);
  font-size: 17px; font-weight: 800; padding: 14px; cursor: pointer; margin-top: 4px; font-family: inherit;
}
.checker-btn:hover { background: var(--amber-dark); }
.proc-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .proc-grid { grid-template-columns: 1fr; } }
.proc-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); display: block;
}
.proc-card:hover { border-color: var(--navy); }
.proc-name { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.proc-price { font-size: 24px; font-weight: 800; color: var(--navy); }
.proc-price .typ { font-size: 13px; font-weight: 600; color: var(--muted); }
.rangebar { position: relative; height: 8px; background: var(--chip); border-radius: 4px; margin: 10px 0 6px; }
.rangefill { position: absolute; top: 0; bottom: 0; background: var(--amber); border-radius: 4px; }
.rangemarker { position: absolute; top: -3px; width: 4px; height: 14px; background: var(--navy); border-radius: 2px; }
.proc-range { font-size: 13px; color: var(--muted); }
.proc-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.proc-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: 4px; }
.proc-foot .proc-meta { margin-top: 0; }
.proc-trend { font-size: 12px; font-weight: 700; white-space: nowrap; }
.proc-trend.up { color: var(--amber-dark); }
.proc-trend.down { color: #15803D; }
.cheap-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 720px) { .cheap-grid { grid-template-columns: 1fr; } }
.cheap-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; box-shadow: var(--shadow); text-decoration: none; color: var(--navy); display: block;
}
.cheap-card:hover { border-color: var(--navy); }
.cheap-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.cheap-name { font-weight: 700; font-size: 15px; }
.cheap-price { font-size: 22px; font-weight: 800; color: var(--navy); white-space: nowrap; }
.cheap-dist { font-size: 13px; color: var(--muted); margin-top: 2px; }
.save-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--navy);
  background: var(--chip); border-radius: 20px; padding: 3px 10px; margin-top: 8px;
}
.save-tag.over { color: var(--muted); }
.locline button { background: none; border: none; color: var(--navy); font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
.city-picker {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 16px; margin: 10px 0; max-width: 420px; text-align: left;
}
.city-picker input {
  width: 100%; box-sizing: border-box; margin: 8px 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 10px; font-size: 15px;
}
.city-list { max-height: 260px; overflow-y: auto; display: grid; gap: 4px; }
.city-opt {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  background: none; border: none; border-radius: 8px; padding: 8px 10px;
  font-size: 15px; font-weight: 600; color: var(--navy); cursor: pointer; text-align: left; width: 100%;
}
.city-opt:hover { background: var(--chip); }
.city-opt-sub { font-size: 12px; font-weight: 400; color: var(--muted); }

/* Display ad slots (AdSense). Quiet reserved space; only rendered when a
   publisher ID is configured. Min-height reserves layout to avoid CLS. */
.ad-slot {
  margin: 28px auto; max-width: 970px; min-height: 120px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--bg); border: 1px dashed var(--line); border-radius: 12px;
  padding: 10px 12px; overflow: hidden;
}
.ad-slot .ad-label {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 6px;
}
.ad-slot .adsbygoogle { width: 100%; }
@media (max-width: 640px) { .ad-slot { min-height: 100px; margin: 20px auto; } }

/* Trade cards (mockup design): 4-up grid of bordered cards, each with a
   rounded pale-yellow icon box, centered title and blurb. */
.trade-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 18px 0 8px; }
.trade-card {
  display: block; background: #fff; border: 1.5px solid var(--line);
  border-radius: 18px; padding: 30px 22px; text-align: center;
  text-decoration: none; color: var(--navy);
  transition: transform .15s, box-shadow .15s;
}
.trade-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(35,39,46,.10); }
.trade-card .trade-icon {
  width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--chip);
}
.trade-card .trade-icon svg {
  width: 34px; height: 34px; stroke: var(--amber-dark); fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}
.trade-card .trade-name { display: block; font-size: 19px; font-weight: 700; margin-bottom: 8px; color: var(--navy); }
.trade-card .trade-blurb { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.trade-card strong { display: block; font-size: 18px; margin-bottom: 6px; color: var(--navy); }
@media (max-width: 900px) { .trade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trade-grid { grid-template-columns: 1fr; } .trade-card { padding: 22px 18px; } }

/* Search lives in the dash head: left-aligned pill under the location line. */
.dash-head .searchbox { margin: 16px auto 0; max-width: 560px; }
