:root {
  --bg: #faf7f2; --paper: #fff; --ink: #2b2620; --muted: #7a7064;
  --line: #e6dfd4; --accent: #b4532a; --accent-ink: #fff; --green: #3f7a4a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 16px; }
.logo { font: 700 1.6rem Georgia, "Times New Roman", serif; color: var(--ink); text-decoration: none; }
.tag { color: var(--muted); font-size: .92rem; }

.intro { padding: 28px 0 8px; }
.intro h1 { font-family: Georgia, serif; font-size: 1.9rem; margin: 0 0 6px; }
.intro p { color: var(--muted); margin: 0; max-width: 60ch; }

.search { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 12px; align-items: end;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 20px; }
.search label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 600; color: var(--muted); }
.search input, .search select { font: inherit; font-size: 1rem; color: var(--ink); padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--bg); width: 100%; min-width: 0; }
.search input:focus, .search select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.s-btns { display: flex; gap: 8px; }
.search .btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.result-count { color: var(--muted); font-size: .92rem; margin: -8px 0 14px; }
.bm { font-size: .88rem; color: var(--muted); margin: -2px 0 6px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.filters a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--ink); text-decoration: none; font-size: .92rem; }
.filters a.on { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; margin-bottom: 40px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  color: inherit; text-decoration: none; transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.07); }
.thumb { position: relative; aspect-ratio: 4/3; background: #ece6dc; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 14px 14px; }
.card h2 { font-size: 1rem; margin: 2px 0 6px; line-height: 1.35; }
.cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.price { font-weight: 700; color: var(--accent); }
.price.big { font-size: 1.6rem; margin: 4px 0 10px; }
.is-sold .thumb img, .is-sold .main-photo { filter: grayscale(.8); opacity: .7; }

.badge { position: absolute; top: 10px; left: 10px; padding: 3px 10px; border-radius: 4px;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; color: #fff; }
.badge.sold { background: #5a5048; } .badge.reserved { background: #c28a1c; } .badge.free { background: var(--green); }

.crumbs { font-size: .9rem; color: var(--muted); margin: 20px 0 12px; }
.item { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; margin-bottom: 48px; }
.main-wrap { position: relative; background: #ece6dc; border-radius: 10px; overflow: hidden; }
.main-photo { width: 100%; max-height: 560px; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden;
  width: 72px; height: 72px; cursor: pointer; background: none; }
.thumbs button.on { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info h1 { font-family: Georgia, serif; font-size: 1.7rem; margin: 0; line-height: 1.25; }
.condition { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.details { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .95rem; }
.details th, .details td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.details th { width: 40%; color: var(--muted); font-weight: 600; }
.collect { color: var(--muted); font-size: .92rem; }
.enquire { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { display: inline-block; padding: 11px 18px; border-radius: 8px; background: var(--accent);
  color: var(--accent-ink); text-decoration: none; font-weight: 600; }
.btn.alt { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.sold-note { font-weight: 600; }
.empty { color: var(--muted); padding: 40px 0; }

.site-footer { border-top: 1px solid var(--line); background: var(--paper); font-size: .88rem; color: var(--muted); }
.site-footer .wrap { padding: 18px 16px 28px; }

@media (max-width: 900px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search .f-q, .s-btns { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .item { grid-template-columns: 1fr; gap: 20px; }
  .intro h1 { font-size: 1.5rem; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
}
