/* HowMuchVet — Friendly Cards theme (Blue + Silver).
   Clean, calm, cute. Mobile-first, one job per screen. */
:root {
  --blue: #1F6FD0;
  --blue-dark: #1759B0;
  --ink: #1C2B3A;
  --muted: #5F7186;
  --line: #D4DEE9;
  --bg: #F8FAFC;
  --bg-top: #E0E6ED;
  --tint: #E9EEF4;
  --card: #FFFFFF;
  --cta: #FFC53D;
  --cta-text: #433100;
  --cta-hover: #F5B81F;
  --coral: #FF6B4A;
  --coral-hover: #E8552F;
  --amber: #B45309;
  --hero-sub: #D3E5FA;
  --radius: 16px;
  --shadow: 0 2px 14px rgba(28, 43, 58, 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(--ink);
  background-color: var(--bg);
  background-image: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 520px);
  background-repeat: no-repeat;
  line-height: 1.55;
  font-size: 16px;
}
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
.wide { max-width: 1020px; }

/* header */
header.site { background: var(--card); 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; }
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.logo svg { width: 32px; height: 32px; flex: none; }
.logo .wordmark { font-weight: 800; font-size: 20px; color: var(--blue); letter-spacing: -0.3px; }
.logo .wordmark span { color: var(--ink); 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(--tint); color: var(--ink); }
.btn-report {
  background: var(--coral) !important; color: #fff !important; font-weight: 700;
  border-radius: 999px !important; padding: 9px 18px !important;
}
.btn-report:hover { background: var(--coral-hover) !important; }

/* hero */
.hero {
  text-align: center; padding: 40px 24px 32px; margin: 24px 0 8px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 22px; box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.5px; margin: 0 0 10px; font-weight: 800; color: #fff; }
.hero p.sub { color: var(--hero-sub); font-size: 18px; margin: 0 0 24px; }
.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); }
.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(--blue); color: #fff; font-size: 16px; font-weight: 700;
  padding: 10px 26px; border-radius: 999px; cursor: pointer; flex: none;
}
.searchbox button:hover { background: var(--blue-dark); }
.locline { margin-top: 16px; color: var(--hero-sub); font-size: 14px; }
.locline button { background: none; border: none; color: #fff; cursor: pointer; font-size: 14px; padding: 0; text-decoration: underline; font-weight: 600; }
.hero .fairlink { margin-top: 10px; }
.hero .fairlink a { color: #fff; font-weight: 600; font-size: 15px; }

/* 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: var(--card);
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--blue); }
.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(--ink); text-decoration: none; }
.price-row .pname a:hover { color: var(--blue); }
.price { font-weight: 800; font-size: 18px; color: var(--blue-dark); }
.range { color: var(--muted); font-size: 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.stat { background: var(--card); 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(--blue-dark); }
.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: var(--card);
  box-shadow: var(--shadow);
}
.empty .cta { display: inline-block; margin-top: 12px; background: var(--coral); color: #fff;
  padding: 10px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.empty .cta:hover { background: var(--coral-hover); }

/* 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(--blue); box-shadow: 0 0 0 3px rgba(31,111,208,.14); }
form.clean button.primary {
  margin-top: 22px; width: 100%; border: none; background: var(--blue); color: #fff;
  font-size: 17px; font-weight: 700; padding: 14px; border-radius: 14px; cursor: pointer;
}
form.clean button.primary:hover { background: var(--blue-dark); }
/* report form submit: coral */
#report-form button.primary { background: var(--coral); }
#report-form button.primary:hover { background: var(--coral-hover); }
/* fair-price checker submit: sunny yellow */
form[action="/fair-price"] button.primary { background: var(--cta); color: var(--cta-text); }
form[action="/fair-price"] button.primary:hover { background: var(--cta-hover); }
.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(--tint); }
.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: var(--card); }
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(--blue); }
.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(--blue); 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: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 14px; margin: 0 8px 8px 0; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pill:hover { border-color: var(--blue); color: var(--blue); }
.alert { border: 1px solid #f3c2c2; background: #fdf2f2; color: #9b1c1c; border-radius: 12px; padding: 12px 16px; margin: 16px 0; }
.success { border: 1px solid #bfe0f5; background: #eef6fd; color: var(--blue-dark); 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; }
