:root {
  --blue: #2b5a8a;
  --blue-dark: #1e3f61;
  --bg: #f5f6f4;
  --card: #ffffff;
  --border: #dcdfe2;
  --text: #222;
  --muted: #666;
  --danger: #a3352c;
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

header.site-header {
  background: var(--blue-dark);
  color: #fff;
  padding: 14px 16px;
}

header.site-header .wrap {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

header.site-header a.brand {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
}

header.site-header nav a {
  color: #dce8f5;
  margin-left: 14px;
  font-size: 0.95rem;
}

main.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.search-form input,
.search-form select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}

textarea { resize: vertical; min-height: 120px; }

button, .btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
}

button:hover, .btn:hover { background: var(--blue-dark); text-decoration: none; }

.btn.secondary { background: #6b7178; }
.btn.danger { background: var(--danger); }
.btn.block { display: block; width: 100%; }

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.listing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.listing-card .thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee;
}

.listing-card .body { padding: 10px 12px; }
.listing-card .title { font-weight: 600; margin: 0 0 4px; }
.listing-card .price { color: var(--blue-dark); font-weight: 700; }
.listing-card .meta { color: var(--muted); font-size: 0.85rem; }

.badge {
  display: inline-block;
  background: #eef2f5;
  color: var(--blue-dark);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.8rem;
  margin-right: 6px;
}

.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field .hint { color: var(--muted); font-size: 0.85rem; margin-top: 3px; }

.gallery { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; }
.gallery img {
  height: 260px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.notice {
  background: #eef7ee;
  border: 1px solid #b7dcb7;
  color: #235023;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.notice.warn {
  background: #fdf3e3;
  border-color: #e8cd8f;
  color: #6b4d0f;
}

.notice.error {
  background: #fbeceb;
  border-color: #e3aca7;
  color: var(--danger);
}

footer.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 24px 16px;
}

.hidden { display: none !important; }

/* honeypot field — kept in the DOM for bots, hidden from real visitors */
.hp { position: absolute; left: -9999px; top: -9999px; }

@media (max-width: 480px) {
  .search-form { grid-template-columns: 1fr 1fr; }
}
