
:root {
  --bg: #fbf7ef;
  --panel: #fffdf8;
  --ink: #211913;
  --muted: #695f56;
  --line: #e3d8c8;
  --accent: #aa4e2d;
  --accent-2: #4f7d61;
  --warn: #fff2ce;
  --shadow: 0 12px 30px rgba(38, 24, 12, .08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(170,78,45,.12), transparent 32rem),
    var(--bg);
  line-height: 1.5;
}
a { color: var(--accent); }
.wrap { width: min(1160px, calc(100% - 28px)); margin: 0 auto; }
.site-header { padding: 38px 0 24px; }
.header-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 800; font-size: .78rem; margin: 0 0 8px; }
h1 { font-size: clamp(2.5rem, 8vw, 5.2rem); line-height: .95; margin: 0; letter-spacing: -.06em; }
.subtitle { color: var(--muted); font-size: 1.1rem; max-width: 660px; }
.header-card, .panel, .controls, .card, dialog {
  background: rgba(255,253,248,.92);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.hero-side { display: grid; gap: 12px; }
.hero-art {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: var(--shadow);
}
.hero-art img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
}
.hero-art figcaption {
  padding: 10px 14px 12px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700;
}
.header-card { padding: 18px; }
.header-card p { margin-bottom: 0; color: var(--muted); }
.intro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 20px; }
.panel { padding: 18px; }
.panel h2 { margin: 0 0 8px; font-size: 1.05rem; }
.panel p, .panel li { color: var(--muted); }
.panel ul { margin: 0; padding-left: 20px; }
.warning { background: var(--warn); }
.controls {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 12px;
  padding: 14px;
  margin: 18px 0 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
label { display: block; font-size: .78rem; color: var(--muted); font-weight: 700; margin-bottom: 5px; }
input, select {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}
.quick-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.quick-filters button, .close, .card button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  font-weight: 700;
}
.quick-filters button:hover, .card button:hover, .close:hover { border-color: var(--accent); color: var(--accent); cursor: pointer; }
.result-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.result-bar h2 { margin: 0; }
.result-bar p { margin: 0; color: var(--muted); font-size: .92rem; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 40px; }
.card { padding: 18px; display: flex; flex-direction: column; gap: 12px; min-height: 320px; }
.card-head { display: flex; justify-content: space-between; gap: 12px; }
.card h3 { margin: 0; font-size: 1.24rem; line-height: 1.15; }
.city { color: var(--muted); font-size: .9rem; margin-top: 4px; }
.price { color: var(--accent); font-size: 1.35rem; font-weight: 900; letter-spacing: -.03em; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 8px; font-size: .72rem; font-weight: 800; background: #f0e7d9; color: #4b3b2e; }
.badge.verified { background: #ddf0e3; color: #23533b; }
.badge.caution { background: #fff2ce; color: #6a4a00; }
.notes { color: var(--muted); font-size: .93rem; margin: 0; }
.meta { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 5px; font-size: .9rem; color: var(--muted); }
.card-actions { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.card-actions a, .card-actions button {
  display: inline-flex; text-decoration: none; align-items: center; justify-content: center;
  border-radius: 999px; padding: 9px 12px; font-weight: 800; font-size: .88rem;
}
.card-actions a { background: var(--ink); color: white; }
.footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); }
.footer h2 { color: var(--ink); }
dialog { width: min(760px, calc(100% - 24px)); padding: 0; border: 1px solid var(--line); }
dialog::backdrop { background: rgba(28, 20, 14, .45); backdrop-filter: blur(2px); }
#detailsContent { padding: 22px; max-height: 72vh; overflow: auto; }
#detailsContent h2 { margin-top: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item { padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf1; }
.detail-item strong { display: block; margin-bottom: 4px; }
.close { margin: 0 22px 22px; }

@media (max-width: 900px) {
  .header-grid, .intro-grid, .controls, .cards { grid-template-columns: 1fr; }
  .controls { position: static; }
  .result-bar { display: block; }
  .detail-grid { grid-template-columns: 1fr; }
  .hero-art img { aspect-ratio: 4 / 5; }
}


.lead-form {
  width: min(560px, 100%);
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,253,248,.95);
  box-shadow: var(--shadow);
}
.lead-form h2 { margin: 0 0 6px; font-size: 1.2rem; letter-spacing: -.02em; }
.lead-form p { color: var(--muted); margin: 0 0 12px; }
.lead-form-row { margin-bottom: 10px; }
.lead-form label span { color: var(--muted); font-weight: 500; }
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}
.lead-form button, .home-link {
  display: inline-flex;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 10px 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.lead-form .tiny-note { font-size: .8rem; margin-top: 10px; margin-bottom: 0; }
.form-hidden { display: none; }
.thanks-page { padding: 48px 0; }
.thanks-panel { max-width: 720px; padding: 28px; }
.thanks-panel h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); margin-bottom: 16px; }
.thanks-panel p { color: var(--muted); font-size: 1.05rem; }

@media (max-width: 860px) {
  .lead-form { margin-top: 18px; }
}
