:root {
  --bg: #5b554d;
  --bg-dark: #3f3a34;
  --panel-border: #8b8478;
  --text: #ffffff;
  --muted: #d8d3cc;
  --tan: #c39a6b;
  --timber-a: #2e2620;
  --timber-b: #4a3d32;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  min-height: 100vh;
}

a { color: inherit; }

/* ---------- Nav ---------- */
header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 22px 48px;
  gap: 38px;
  position: relative;
  z-index: 20;
}

.nav-link {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 15px;
  text-decoration: none;
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: none; border-left: none; border-right: none;
  font-family: inherit;
}

.nav-link:hover, .nav-link.active { border-bottom-color: var(--tan); }

.back-home { margin-right: auto; color: var(--muted); }
.back-home:hover { color: var(--text); }

/* Listings dropdown */
.dropdown-wrap { position: relative; }

.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: 380px;
  max-width: 90vw;
  background: var(--bg-dark);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  box-shadow: 0 12px 30px rgba(0,0,0,.45);
  display: none;
  overflow: hidden;
}

.dropdown.open { display: block; }

.dropdown a.listing {
  display: flex;
  gap: 12px;
  padding: 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .15s;
}

.dropdown a.listing:last-child { border-bottom: none; }
.dropdown a.listing:hover { background: rgba(255,255,255,.07); }

.dropdown a.listing img {
  width: 110px;
  height: 74px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #222;
}

.listing-info { display: flex; flex-direction: column; justify-content: center; gap: 3px; }
.listing-info .addr { font-weight: 700; font-size: 14px; line-height: 1.3; }
.listing-info .price { color: var(--tan); font-size: 13px; font-weight: 600; }
.listing-info .meta { color: var(--muted); font-size: 12px; }

.dropdown .dd-empty { padding: 16px; color: var(--muted); font-size: 14px; }

/* ---------- Home layout (matches template) ---------- */
.home-wrap {
  display: grid;
  grid-template-columns: minmax(300px, 38%) 1fr;
  min-height: 100vh;
}

.home-right {
  display: flex;
  flex-direction: column;
}

.home-right header { padding: 26px 56px 8px; }

.home-right .card {
  margin: 18px 56px 56px;
  align-self: center;
}

/* Timber-slat photo panel */
.photo-panel {
  background: repeating-linear-gradient(
    90deg,
    var(--timber-a) 0px, var(--timber-a) 26px,
    var(--timber-b) 26px, var(--timber-b) 34px
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.photo-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.content-panel {
  padding: 30px 56px 60px;
  display: flex;
  justify-content: center;
}

.card {
  border: 1px solid var(--panel-border);
  padding: 44px 48px;
  max-width: 640px;
  width: 100%;
  align-self: start;
}

h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: .95;
  text-shadow: 0 0 22px rgba(255,255,255,.35), 0 0 6px rgba(255,255,255,.18);
}

.subtitle {
  font-size: 44px;
  font-weight: 300;
  margin-bottom: 22px;
  line-height: 1.1;
}

.license {
  font-size: 17px;
  margin-bottom: 4px;
}

.license-nums { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.card p { font-size: 16px; line-height: 1.55; margin-bottom: 14px; }

.card ul { margin: 0 0 14px 22px; }
.card ul li { font-size: 15.5px; line-height: 1.5; margin-bottom: 9px; }

.cta {
  display: inline-block;
  margin-top: 14px;
  background: var(--tan);
  color: #2c2620;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: 14px;
  padding: 13px 28px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.cta:hover { filter: brightness(1.08); }

.cta-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}

.cta-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Inner pages ---------- */
.inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 30px 24px 80px;
}

.inner h1 { font-size: 46px; margin-bottom: 8px; }
.inner .lede { color: var(--muted); font-size: 17px; margin-bottom: 34px; }
.inner h2 { font-size: 22px; margin: 30px 0 12px; }
.inner p { font-size: 16.5px; line-height: 1.65; margin-bottom: 16px; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 30px 0;
}

.stat {
  border: 1px solid var(--panel-border);
  padding: 18px 26px;
  text-align: center;
  flex: 1 1 130px;
}

.stat .num { font-size: 30px; font-weight: 800; color: var(--tan); }
.stat .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 4px; }

/* Testimonials */
.review {
  border: 1px solid var(--panel-border);
  padding: 24px 28px;
  margin-bottom: 18px;
}

.review .stars { color: var(--tan); letter-spacing: 3px; font-size: 15px; margin-bottom: 8px; }
.review h3 { font-size: 18px; margin-bottom: 8px; }
.review p { font-size: 15.5px; line-height: 1.6; color: #f0ece6; margin-bottom: 8px; }
.review .src { font-size: 12.5px; color: var(--muted); }

/* Form */
form.enquiry { max-width: 560px; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 7px; color: var(--muted); }

.field input, .field select, .field textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--panel-border);
  border-radius: 3px;
  color: var(--text);
  font-size: 16px;
  padding: 12px 14px;
  font-family: inherit;
}

.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--tan); border-color: var(--tan); }
.field select option { color: #222; }

.form-status { margin-top: 16px; font-size: 15.5px; display: none; }
.form-status.ok { display: block; color: #a9d9a0; }
.form-status.err { display: block; color: #e8a2a2; }

.hidden { display: none !important; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 30px 20px 40px;
}

/* ---------- Polish ---------- */
.nav-link { transition: border-color .15s, color .15s; }
.cta { transition: filter .15s, transform .15s; }
.cta:hover { transform: translateY(-1px); }
.review { transition: border-color .2s; }
.review:hover { border-color: var(--tan); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--tan); outline-offset: 2px; }

/* ---------- Sold property showcase pages ---------- */
.sold-hero { position: relative; max-height: 62vh; overflow: hidden; }
.sold-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

.badge-sold {
  position: absolute;
  top: 22px;
  left: 22px;
  background: var(--tan);
  color: #2c2620;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 3px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}

.sold-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 24px; margin-bottom: 6px; }
.sold-head h1 { font-size: 34px; line-height: 1.15; }
.sold-price { font-size: 30px; font-weight: 800; color: var(--tan); white-space: nowrap; }
.sold-meta { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 26px 0 34px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 4px;
  transition: transform .25s, box-shadow .25s;
}

.gallery img:hover { transform: scale(1.025); box-shadow: 0 10px 24px rgba(0,0,0,.35); }

blockquote.vendor {
  border-left: 4px solid var(--tan);
  background: rgba(255,255,255,.05);
  padding: 26px 30px;
  margin: 30px 0;
  border-radius: 0 4px 4px 0;
}

blockquote.vendor .stars { color: var(--tan); letter-spacing: 3px; margin-bottom: 10px; }
blockquote.vendor h3 { font-size: 19px; margin-bottom: 10px; }
blockquote.vendor p { font-size: 16px; line-height: 1.65; color: #f0ece6; font-style: italic; }
blockquote.vendor cite { display: block; margin-top: 12px; font-style: normal; font-size: 13px; color: var(--muted); }

.sold-cta-band {
  border: 1px solid var(--panel-border);
  text-align: center;
  padding: 36px 28px;
  margin-top: 38px;
}

.sold-cta-band h2 { margin: 0 0 10px; }
.sold-cta-band p { color: var(--muted); }

@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; }
  .sold-head h1 { font-size: 26px; }
  .sold-price { font-size: 24px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  header { padding: 18px 20px; gap: 20px; flex-wrap: wrap; justify-content: center; }
  .home-wrap { grid-template-columns: 1fr; }
  .home-right header { padding: 18px 20px 8px; }
  .home-right .card { margin: 16px 18px 48px; }
  .photo-panel { max-height: 440px; }
  .card { padding: 28px 24px; }
  h1 { font-size: 44px; }
  .subtitle { font-size: 30px; }
  .dropdown { position: fixed; left: 50%; transform: translateX(-50%); right: auto; top: 120px; }
}
