:root {
  --ink: #1f2a2e;
  --muted: #5d6b70;
  --line: #e3e0d8;
  --bg: #faf8f4;
  --card: #ffffff;
  --accent: #2f6b4f;
  --pending: #b7791f;
  --sold: #8a8a8a;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
main { max-width: 1120px; margin: 0 auto; padding: 0 20px 48px; }

.site-header { border-bottom: 1px solid var(--line); background: var(--card); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; max-width: none; padding-right: 20px; }
.header-call { font-weight: 700; text-decoration: none; white-space: nowrap; padding: 8px 0 8px 20px; }
.brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin: 0; padding: 18px 20px; text-decoration: none; color: var(--ink); }
.brand-name { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.brand-tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); font-weight: 600; }

.intro { padding: 36px 0 20px; }
.intro h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.intro p { margin: 0; color: var(--muted); max-width: 46ch; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 3; background: #ddd; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 100%; background: repeating-linear-gradient(135deg, #ece8df 0 14px, #e5e0d5 14px 28px); color: var(--muted); font-weight: 600; letter-spacing: .02em; }
.no-photo.tall { aspect-ratio: 4 / 3; }
.card-body { padding: 14px 16px 16px; }
.card-price { font-size: 1.35rem; font-weight: 700; }
.card-loc { font-weight: 600; }
.card-specs, .card-note { color: var(--muted); font-size: .92rem; }

.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #fff; background: var(--accent); }
.badge-pending { background: var(--pending); }
.badge-sold { background: var(--sold); }

.back { margin: 20px 0 12px; }
.back a { text-decoration: none; font-weight: 600; }
.deal { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.deal-hero { position: relative; border-radius: 12px; overflow: hidden; background: #ddd; }
.deal-hero img { width: 100%; max-height: 640px; object-fit: cover; }
.deal-info h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0 0 6px; letter-spacing: -0.02em; }
.deal-info h2 { font-size: 1rem; margin: 22px 0 6px; }
.deal-info ul { margin: 0; padding-left: 20px; }
.addr { font-weight: 600; margin: 0; }
.specs { color: var(--muted); margin: 2px 0 14px; }
.btn { display: inline-block; margin-top: 18px; padding: 10px 16px; border-radius: 8px; background: var(--accent); color: #fff; text-decoration: none; font-weight: 600; }
.cta { margin-top: 18px; font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 28px; }
.gallery img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }

.site-footer { border-top: 1px solid var(--line); background: var(--card); padding: 24px 20px; text-align: center; color: var(--muted); }
.site-footer p { margin: 4px auto; max-width: 70ch; }
.site-footer .fine { font-size: .8rem; }

@media (max-width: 760px) {
  .deal { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .deal-hero img { max-height: 460px; }
}
.deal-hero.lowres { max-width: 420px; }
.card-price { line-height: 1.25; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.site-footer .contact { justify-content: center; }
.contact .btn { margin-top: 0; }
.btn-alt { background: #fff; color: var(--accent); border: 2px solid var(--accent); padding: 8px 14px; }
.phone { font-weight: 700; }
