:root {
  --ink: #142722;
  --muted: #62736e;
  --cream: #f7f4ec;
  --paper: #fffefa;
  --line: #dde3df;
  --green: #16745b;
  --green-dark: #0d5a45;
  --green-pale: #deefe8;
  --orange: #e8713a;
  --yellow: #f3c85b;
  --shadow: 0 16px 45px rgba(20, 39, 34, .09);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 5; background: #fff; border-bottom: 1px solid rgba(20,39,34,.09); }
.nav-wrap { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.23rem; font-weight: 800; letter-spacing: -.04em; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px 10px 10px 3px; display: grid; place-items: center; background: var(--green); color: white; font-weight: 800; }
.brand-dot { color: var(--orange); }
.local-pill { color: var(--green-dark); background: var(--green-pale); border-radius: 999px; padding: 8px 14px; font-size: .86rem; font-weight: 700; }
.local-pill span { color: var(--orange); font-size: .7rem; margin-right: 6px; }

.hero { position: relative; overflow: hidden; background: var(--cream); border-bottom: 1px solid #e8e2d5; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .45; background-image: radial-gradient(#b8c9c1 1px, transparent 1px); background-size: 25px 25px; mask-image: linear-gradient(to right, transparent, black); }
.hero-inner { position: relative; min-height: 390px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; }
.hero-copy { padding: 65px 0 75px; max-width: 650px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: .76rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.6rem); line-height: .96; letter-spacing: -.075em; }
.hero h1 span { color: var(--green); }
.hero-copy > p:last-child { max-width: 570px; margin: 22px 0 0; color: var(--muted); font-size: 1.08rem; }
.hero-art { position: relative; min-height: 100%; }
.sun { position: absolute; width: 100px; height: 100px; right: 70px; top: 55px; border-radius: 50%; background: var(--yellow); }
.mountain { position: absolute; right: -10px; bottom: -80px; width: 390px; height: 300px; transform: rotate(45deg); border-radius: 36px; background: #bcd8cc; }
.mountain-two { right: 210px; bottom: -155px; width: 300px; height: 260px; background: #d5e6df; }
.house { position: absolute; width: 120px; height: 100px; right: 130px; bottom: 40px; background: var(--orange); border-radius: 4px; box-shadow: 0 17px 30px rgba(20,39,34,.14); }
.roof { position: absolute; width: 100px; height: 100px; background: #9f3f2e; transform: rotate(45deg); top: -48px; left: 10px; border-radius: 4px; }
.house::after { content: ""; position: absolute; inset: 0; background: var(--orange); }
.door { position: absolute; z-index: 2; width: 30px; height: 54px; bottom: 0; left: 45px; background: var(--ink); }

.browse-section { position: relative; padding: 0 0 80px; }
.search-panel { position: relative; z-index: 3; display: grid; grid-template-columns: minmax(230px, 1.5fr) minmax(170px, .7fr) minmax(170px, .7fr) auto; gap: 10px; margin-top: -34px; padding: 12px; border: 1px solid rgba(20,39,34,.08); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.search-panel input, .search-panel select { width: 100%; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfa; color: var(--ink); outline: none; }
.search-panel input { padding: 0 14px 0 43px; }
.search-panel select { padding: 0 34px 0 13px; cursor: pointer; }
.search-panel input:focus, .search-panel select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,116,91,.12); }
.search-field { position: relative; }
.search-icon { position: absolute; z-index: 1; top: 14px; left: 16px; width: 16px; height: 16px; border: 2px solid var(--green); border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: 7px; height: 2px; right: -6px; bottom: -3px; transform: rotate(45deg); background: var(--green); }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 750; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--green); color: #fff; box-shadow: 0 7px 16px rgba(22,116,91,.2); }
.button-primary:hover { background: var(--green-dark); }
.button-secondary { color: var(--green-dark); background: #fff; border: 1px solid #b9ccc5; }
.button-secondary:hover { background: var(--green-pale); }

.results-heading { display: flex; align-items: end; justify-content: space-between; margin: 62px 0 22px; }
.results-heading h2 { margin: 0; font-size: 2rem; line-height: 1.1; letter-spacing: -.04em; }
.results-heading > span { color: var(--muted); font-size: .92rem; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.listing-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); color: inherit; background: #fff; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.listing-card:hover { transform: translateY(-4px); border-color: #c1d2cb; box-shadow: var(--shadow); }
.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #edf1ee; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.listing-card:hover .card-image img { transform: scale(1.025); }
.image-placeholder { width: 100%; height: 100%; min-height: 280px; display: grid; place-items: center; background: linear-gradient(145deg, #dce9e3, #f1eee4); color: rgba(22,116,91,.24); }
.image-placeholder span { font-size: 4.5rem; font-weight: 900; }
.type-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; background: #fff; color: var(--ink); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .045em; }
.card-image .type-badge { position: absolute; top: 14px; left: 14px; box-shadow: 0 3px 14px rgba(20,39,34,.15); }
.type-rent { background: #fff1cf; }
.type-wanted { background: #e7e3f7; }
.type-sale { background: #e2f2eb; }
.card-body { padding: 17px 18px 19px; }
.card-category { color: var(--green); font-size: .77rem; font-weight: 750; }
.card-body h3 { margin: 4px 0 15px; font-size: 1.12rem; line-height: 1.3; letter-spacing: -.02em; }
.card-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-top: 1px solid #edf0ed; padding-top: 13px; }
.card-meta strong { font-size: 1.03rem; }
.card-meta span { color: var(--muted); font-size: .83rem; }
.empty-state { padding: 80px 30px; border: 1px dashed #b9c8c2; border-radius: var(--radius); background: #fafbf8; text-align: center; }
.empty-state h2 { margin-bottom: 5px; }
.empty-state p { color: var(--muted); margin: 0 0 22px; }
.empty-icon { color: var(--green); font-size: 2.6rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 40px; }
.pagination a { color: var(--green); font-weight: 700; text-decoration: none; }
.pagination span { color: var(--muted); }

.detail-shell { padding: 30px 0 90px; }
.back-link { display: inline-block; margin: 0 0 24px; color: var(--green-dark); font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr); gap: 52px; align-items: start; }
.main-photo { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 22px; background: #edf1ee; }
.main-photo img { width: 100%; height: 100%; object-fit: cover; }
.thumbnails { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 12px; }
.thumbnail { overflow: hidden; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; background: #edf1ee; cursor: pointer; }
.thumbnail.active { border-color: var(--green); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.detail-card { position: sticky; top: 25px; }
.detail-labels { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .88rem; }
.detail-card h1 { margin: 17px 0 8px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -.055em; }
.detail-price { margin: 0; font-size: 1.65rem; font-weight: 800; }
.detail-location { color: var(--muted); }
.detail-description { margin: 28px 0; padding-top: 24px; border-top: 1px solid var(--line); color: #344640; }
.detail-description p:first-child { margin-top: 0; }
.contact-box { padding: 22px; border-radius: var(--radius); background: var(--cream); }
.contact-box h2 { margin: 0 0 16px; font-size: 1.25rem; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.updated { color: var(--muted); font-size: .78rem; }

.site-footer { border-top: 1px solid var(--line); background: #132a24; color: #dce8e3; }
.footer-inner { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 25px; font-size: .9rem; }
.footer-inner strong { color: #fff; }
.footer-inner span { color: #9fb3ab; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { position: relative; z-index: 2; }
  .hero-art { position: absolute; inset: 0; opacity: .45; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-card { position: static; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 24px, 1180px); }
  .nav-wrap { min-height: 66px; }
  .local-pill { display: none; }
  .hero-inner { min-height: 350px; }
  .hero-copy { padding: 55px 0 85px; }
  .hero h1 { font-size: 3.25rem; }
  .hero-copy > p:last-child { max-width: 92%; }
  .hero-art { transform: translateX(120px); opacity: .25; }
  .search-panel { grid-template-columns: 1fr; margin-top: -25px; }
  .search-field { grid-column: auto; }
  .search-panel .button { width: 100%; }
  .results-heading { margin-top: 45px; }
  .results-heading h2 { font-size: 1.65rem; }
  .listing-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-image { aspect-ratio: 16 / 10; }
  .detail-shell { padding-top: 20px; }
  .detail-grid { gap: 24px; }
  .main-photo { border-radius: 15px; }
  .thumbnails { grid-template-columns: repeat(4, 1fr); }
  .contact-actions .button { width: 100%; }
  .footer-inner { align-items: flex-start; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
