:root {
  --bg: #fbf8f3;
  --surface: #ffffff;
  --ink: #1f2933;
  --muted: #6b7280;
  --line: #e7e1d7;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: var(--accent); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1000;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.1rem; }
.brand-mark { font-size: 1.5rem; }
.header-cta {
  text-decoration: none; font-weight: 600; font-size: .9rem;
  padding: 8px 14px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent);
}
.header-cta:hover { background: var(--accent); color: var(--accent-ink); }

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  white-space: nowrap; text-decoration: none; color: var(--muted); font-weight: 600;
  padding: 10px 14px; border-bottom: 3px solid transparent;
}
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- intro ---------- */
.intro { padding: 24px 0 12px; }
.intro h1 { margin: 0 0 4px; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.02em; }
.intro p { margin: 0; }

/* ---------- ad slot ---------- */
.ad-slot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px;
  text-decoration: none; color: var(--ink);
  border-radius: var(--radius); padding: 14px 18px; margin: 8px 0 18px;
  min-height: 72px; position: relative; overflow: hidden;
}
.ad-empty { border: 2px dashed #c9bfae; background: #f5efe5; }
.ad-empty:hover { border-color: var(--accent); background: #eef7f5; }
.ad-live { background: linear-gradient(120deg, #fef3c7, #fde68a); box-shadow: var(--shadow); }
.ad-live:hover { filter: brightness(1.03); }
.ad-label {
  grid-row: span 2; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
  color: var(--muted); border: 1px solid currentColor; padding: 2px 6px; border-radius: 4px;
}
.ad-headline { font-weight: 700; }
.ad-tagline { grid-column: 2; font-size: .9rem; color: var(--muted); }
.ad-cta { grid-row: 1 / span 2; grid-column: 3; font-weight: 700; color: var(--accent); white-space: nowrap; }
.ad-img { grid-row: span 2; width: 64px; height: 48px; object-fit: cover; border-radius: 8px; }
.ad-live .ad-img + .ad-label { display: none; }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.map-panel { position: sticky; top: 120px; }
#map {
  height: calc(100vh - 220px); min-height: 380px;
  border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line);
}
.map-bar { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  border: 1px solid var(--accent); border-radius: 999px; padding: 8px 16px;
}
.btn:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--accent); }
.btn[hidden] { display: none; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.list-head h2 { margin: 0; font-size: 1.1rem; }

.venue-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.venue-card {
  width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer;
  display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .15s, transform .15s;
}
.venue-card:hover, .venue-card:focus-visible { border-color: var(--accent); transform: translateY(-1px); outline: none; }
.venue-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.1rem;
}
.venue-main { display: grid; gap: 2px; min-width: 0; }
.venue-name { font-weight: 700; }
.venue-addr { font-size: .85rem; color: var(--muted); }
.venue-dogs {
  font-size: .85rem; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.venue-dist { display: grid; justify-items: end; text-align: right; white-space: nowrap; font-size: .95rem; }

/* ---------- map markers ---------- */
.venue-marker span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); font-size: 15px;
}

/* ---------- dialog ---------- */
.venue-dialog {
  border: 0; padding: 0; border-radius: 18px; width: min(520px, calc(100vw - 32px));
  box-shadow: 0 20px 60px rgba(0,0,0,.3); color: var(--ink);
}
.venue-dialog::backdrop { background: rgba(15, 23, 42, .5); }
.dlg-close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.9); font-size: 1.4rem; line-height: 1;
}
.dlg-photo { height: 200px; display: grid; place-items: center; overflow: hidden; }
.dlg-photo img { width: 100%; height: 100%; object-fit: cover; }
.dlg-placeholder { font-size: 3.5rem; opacity: .9; }
.dlg-body { padding: 18px 22px 22px; }
.dlg-body h2 { margin: 8px 0 2px; }
.dlg-body h3 { margin: 16px 0 4px; font-size: 1rem; }
.dlg-body p { margin: 0 0 6px; }
.pill { display: inline-block; color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.dlg-actions { display: flex; gap: 10px; margin: 16px 0 10px; }

/* ---------- footer ---------- */
.disclaimer { margin: 24px 0; }
.site-footer { border-top: 1px solid var(--line); padding: 20px 0 32px; background: var(--surface); }

/* ---------- advertise page ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 20px 0 32px; }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow);
}
.price-card.featured { border: 2px solid var(--accent); }
.price-card h3 { margin: 0 0 4px; }
.price { font-size: 2rem; font-weight: 800; margin: 8px 0; }
.price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.ad-form { display: grid; gap: 14px; max-width: 560px; background: var(--surface); padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); }
.ad-form label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
.ad-form input, .ad-form select, .ad-form textarea {
  font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.ad-form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.ad-form fieldset label { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.honeypot { display: none; }
.form-status { margin: 0; font-weight: 600; }
.total { font-weight: 700; }

/* ---------- header actions / forms / filters ---------- */
.header-actions { display: flex; gap: 8px; align-items: center; }
button.header-cta { font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; background: transparent; }
.header-cta-ghost { border-color: transparent; }
.header-cta-ghost:hover { border-color: var(--accent); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.list-head { gap: 12px; flex-wrap: wrap; }
.area-filter select {
  font: inherit; font-size: .9rem; padding: 7px 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%;
}
.list-count { margin: 0 0 10px; }
.more-btn { margin: 12px auto 0; display: flex; }
.more-btn[hidden] { display: none; }
.suggest-cta {
  margin-top: 18px; padding: 16px; text-align: center;
  border: 2px dashed #c9bfae; border-radius: var(--radius); background: #f5efe5;
}
.suggest-cta p { margin: 0 0 10px; }
.link-btn {
  font: inherit; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--muted); text-decoration: underline;
}
.link-btn:hover { color: var(--accent); }
.pill-muted { background: #e7e1d7; color: var(--ink); }
.form-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.form-dialog .dlg-body { padding-top: 22px; }
.plain-form { border: 0; padding: 0; background: none; max-width: none; }
.ad-form label.inline-check { display: flex; align-items: center; gap: 8px; font-weight: 500; }

@media (max-width: 600px) {
  .header-cta-ghost { display: none; }
  .list-head { flex-direction: column; align-items: stretch; }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .map-panel { position: static; }
  #map { height: 50vh; min-height: 300px; }
  .ad-slot { grid-template-columns: 1fr; }
  .ad-label, .ad-cta, .ad-img { grid-row: auto; grid-column: auto; justify-self: start; }
  .ad-tagline { grid-column: auto; }
}
