:root {
  --border-light: #d9ddd5;
  --cream: #f8f5e7;
  --green-accent: #f2d20a;
  --green-dark: #052b07;
  --green-light-bg: #e5f2de;
  --green-primary: #0a6b08;
  --price-green: #0a6b08;
  --text-dark: #1a1a1a;
  --text-gray: #424940;
  --text-light: #fff;
  --text-muted: #626b60;
  --white: #fff;
  --heading: "DM Serif Display", Georgia, serif;
  --body: "Inter", Arial, sans-serif;
}

* { box-sizing: border-box; }
body {
  background: var(--cream);
  color: var(--text-dark);
  font-family: var(--body);
  margin: 0;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.nav-outer {
  background: var(--cream);
  padding: 24px 40px 16px;
}
.nav {
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1320px;
  min-height: 56px;
  padding: 14px 26px;
}
.logo {
  align-items: center;
  color: var(--green-primary);
  display: inline-flex;
  font-family: var(--heading);
  font-size: 24px;
  gap: 10px;
}
.logo img {
  border-radius: 999px;
  height: 34px;
  object-fit: cover;
  width: 34px;
}
.nav-links, .nav-actions {
  align-items: center;
  display: flex;
  gap: 30px;
}
.nav-links a {
  color: var(--text-gray);
  font-size: 13px;
  font-weight: 700;
}
.phone {
  align-items: center;
  background: var(--cream);
  border-radius: 999px;
  color: var(--text-gray);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  padding: 9px 16px;
}
.phone svg { color: var(--green-primary); height: 16px; width: 16px; }
.btn {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  min-height: 42px;
  padding: 12px 24px;
}
.btn-green { background: var(--green-primary); color: var(--text-light); }
.btn-light { background: var(--white); color: var(--green-primary); }
.btn-outline { border: 1px solid var(--white); color: var(--white); }
.menu-toggle {
  background: transparent;
  border: 0;
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.menu-toggle span {
  background: var(--green-primary);
  border-radius: 999px;
  height: 2px;
  width: 24px;
}

.search-hero {
  background: linear-gradient(180deg, #0a6b08 0%, #075207 60%, #052b07 100%);
  color: var(--text-light);
  padding: 72px 40px 56px;
  text-align: center;
}
.search-hero h1, .search-hero h2 {
  font-family: var(--heading);
  font-size: 46px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0;
}
.search-hero h2 {
  color: var(--green-accent);
  margin-top: 34px;
}
.search-hero p {
  color: #e3f0dc;
  font-size: 15px;
  line-height: 1.35;
  margin: 34px auto 32px;
  max-width: 560px;
}
.search-card {
  align-items: center;
  background: var(--white);
  border-radius: 999px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, 1fr) 130px;
  margin: 0 auto;
  max-width: 1080px;
  min-height: 70px;
  padding: 8px 10px 8px 28px;
  text-align: left;
}
.search-card label {
  align-items: center;
  border-right: 1px solid var(--border-light);
  color: var(--text-dark);
  display: flex;
  gap: 14px;
  min-width: 0;
  padding: 0 24px;
}
.search-card label:first-child { padding-left: 0; }
.search-card svg { color: var(--green-primary); flex: 0 0 auto; height: 18px; width: 18px; }
.search-card span { display: grid; min-width: 0; }
.search-card b { font-size: 12px; }
.search-card small {
  color: var(--text-muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-card button {
  align-items: center;
  background: var(--green-primary);
  border: 0;
  border-radius: 999px;
  color: var(--text-light);
  display: inline-flex;
  font: 800 13px var(--body);
  gap: 9px;
  height: 48px;
  justify-content: center;
}
.search-card button svg { color: currentColor; }

.filters {
  align-items: center;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 28px 24px;
}
.chip {
  background: var(--cream);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-gray);
  cursor: pointer;
  font: 800 13px var(--body);
  padding: 11px 23px;
}
.chip.active { background: var(--green-primary); border-color: var(--green-primary); color: var(--text-light); }

.results {
  background: var(--white);
  padding: 30px 40px 64px;
}
.results-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 28px;
  max-width: 1250px;
}
.results-head h2 {
  font-size: 17px;
  margin: 0;
}
.sort {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: var(--text-muted);
  font: 600 13px var(--body);
  padding: 12px 20px;
}
.sort b { color: var(--text-dark); margin-left: 6px; }
.sort span { margin-left: 8px; }

.property-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1250px;
}
.property-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 15px;
  box-shadow: 0 12px 28px rgba(0,0,0,.08);
  cursor: pointer;
  overflow: hidden;
}
.photo {
  aspect-ratio: 1.6 / 1;
  background: #b8c9b0;
  overflow: hidden;
  position: relative;
}
.photo img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.photo > span {
  background: var(--green-primary);
  border-radius: 999px;
  color: var(--text-light);
  font-size: 11px;
  font-weight: 800;
  left: 16px;
  padding: 8px 13px;
  position: absolute;
  top: 15px;
}
.photo > span.blue { background: #2868c9; }
.photo > span.light { background: var(--green-accent); color: var(--green-dark); }
.photo button {
  background: rgba(255,255,255,.72);
  border: 0;
  border-radius: 999px;
  color: var(--white);
  font-size: 26px;
  height: 36px;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 15px;
  width: 36px;
}
.photo button.saved { background: var(--green-primary); color: var(--text-light); }
.card-body { padding: 20px 20px 18px; }
.card-body strong {
  color: var(--price-green);
  display: block;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 10px;
}
.card-body h3 {
  font-size: 16px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.card-body p {
  color: var(--text-muted);
  font-size: 13px;
  margin: 0 0 12px;
}
.card-body p::before { content: "◎ "; }
.card-body ul {
  border-bottom: 1px solid var(--border-light);
  color: var(--text-gray);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0 0 15px;
}
.card-body li::before { color: var(--text-muted); content: "□ "; }
.agent {
  align-items: center;
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.agent i {
  background: #d7f1da;
  border-radius: 999px;
  height: 34px;
  width: 34px;
}
.agent span {
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 800;
}
.agent small {
  color: var(--green-primary);
  display: block;
  font-size: 10px;
  font-weight: 800;
}

.featured {
  background: var(--green-dark);
  color: var(--text-light);
  padding: 58px 40px 64px;
}
.feature-head {
  margin: 0 auto 34px;
  max-width: 760px;
  text-align: center;
}
.feature-head span {
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  color: var(--green-accent);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  padding: 9px 18px;
}
.feature-head h2, .agent-cta h2 {
  font-family: var(--heading);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.05;
  margin: 24px 0 14px;
}
.feature-head p, .agent-cta p { color: #e0eed8; margin: 0; }

.pagination {
  align-items: center;
  background: var(--white);
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 34px 24px;
}
.pagination button, .pagination span {
  align-items: center;
  background: var(--cream);
  border: 0;
  border-radius: 999px;
  color: var(--text-gray);
  display: flex;
  font: 800 13px var(--body);
  height: 38px;
  justify-content: center;
  min-width: 38px;
}
.pagination button.active { background: var(--green-primary); color: var(--text-light); }

.agent-cta {
  align-items: center;
  background: var(--green-primary);
  color: var(--text-light);
  display: flex;
  justify-content: space-between;
  padding: 58px max(40px, calc((100vw - 1250px) / 2));
}
.agent-cta h2 { margin: 0 0 14px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.footer {
  background: #0a1f10;
  color: var(--text-light);
  padding: 58px 40px 34px;
}
.footer-top {
  display: grid;
  gap: 60px;
  grid-template-columns: 1.35fr .9fr .9fr 1.25fr;
  margin: 0 auto;
  max-width: 1250px;
}
.footer h2 {
  align-items: center;
  display: inline-flex;
  font-family: var(--heading);
  font-size: 24px;
  font-weight: 400;
  gap: 10px;
  margin: 0 0 24px;
}
.footer h2 img {
  border-radius: 999px;
  height: 34px;
  object-fit: cover;
  width: 34px;
}
.footer h3 {
  font-size: 12px;
  letter-spacing: 1.5px;
  margin: 0 0 20px;
}
.footer p, .footer a, .footer span {
  color: #d8e8d0;
  font-size: 13px;
  line-height: 1.7;
}
.footer a {
  display: block;
  margin-bottom: 12px;
}
.footer label {
  align-items: center;
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  display: flex;
  margin-top: 20px;
  overflow: hidden;
}
.footer label span { flex: 1; padding-left: 18px; }
.footer button {
  background: var(--green-primary);
  border: 0;
  color: var(--text-light);
  font: 800 13px var(--body);
  min-height: 46px;
  padding: 0 22px;
}
.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.09);
  display: flex;
  justify-content: space-between;
  margin: 54px auto 0;
  max-width: 1250px;
  padding-top: 28px;
}
.footer-bottom div { display: flex; gap: 34px; }

@media (max-width: 980px) {
  .nav { border-radius: 24px; position: relative; }
  .menu-toggle { display: flex; }
  .nav-links {
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 18px;
    box-shadow: 0 18px 34px rgba(0,0,0,.12);
    display: none;
    flex-direction: column;
    left: 16px;
    padding: 18px;
    position: absolute;
    right: 16px;
    top: 70px;
    z-index: 10;
  }
  .nav.open .nav-links { display: flex; }
  .nav-actions { display: none; }
  .search-card { border-radius: 24px; grid-template-columns: 1fr 1fr; padding: 20px; }
  .search-card label { border-right: 0; border-bottom: 1px solid var(--border-light); padding: 14px 0; }
  .search-card button { grid-column: 1 / -1; margin-top: 8px; }
  .property-grid, .footer-top { grid-template-columns: 1fr 1fr; }
  .agent-cta { align-items: flex-start; flex-direction: column; gap: 28px; padding-left: 40px; padding-right: 40px; }
}

@media (max-width: 640px) {
  .nav-outer { padding: 14px; }
  .search-hero { padding: 56px 20px 40px; }
  .search-hero h1, .search-hero h2 { font-size: 36px; }
  .search-hero h2 { margin-top: 20px; }
  .search-card, .property-grid, .footer-top { grid-template-columns: 1fr; }
  .results, .featured, .footer { padding-left: 18px; padding-right: 18px; }
  .results-head, .footer-bottom { align-items: flex-start; flex-direction: column; gap: 18px; }
  .feature-head h2, .agent-cta h2 { font-size: 32px; }
  .pagination { flex-wrap: wrap; }
}

body.detail-page {
  background: var(--cream);
}
.breadcrumb {
  align-items: center;
  background: var(--white);
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  display: flex;
  gap: 12px;
  min-height: 52px;
  padding: 0 max(48px, calc((100vw - 1344px) / 2));
}
.breadcrumb a, .breadcrumb strong {
  color: var(--text-gray);
  font-size: 13px;
  font-weight: 700;
}
.breadcrumb strong { color: var(--text-dark); }
.detail-layout {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 920px) 340px;
  margin: 26px auto 68px;
  max-width: 1344px;
  padding: 0 24px;
}
.detail-main { display: grid; gap: 28px; }
.main-photo {
  border-radius: 12px;
  height: 430px;
  overflow: hidden;
  position: relative;
}
.main-photo img, .thumbs img, .map-wrap img, .similar-card img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.status {
  background: var(--green-primary);
  border-radius: 999px;
  color: var(--text-light);
  font-size: 12px;
  font-weight: 800;
  left: 20px;
  padding: 10px 18px;
  position: absolute;
  top: 20px;
}
.photo-actions {
  display: flex;
  gap: 12px;
  position: absolute;
  right: 20px;
  top: 20px;
}
.photo-actions button {
  background: rgba(255,255,255,.92);
  border: 0;
  border-radius: 999px;
  color: var(--text-gray);
  font: 800 13px var(--body);
  padding: 11px 16px;
}
.thumbs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 12px;
}
.thumbs img {
  border-radius: 10px;
  height: 105px;
}
.title-block h1 {
  font-family: var(--heading);
  font-size: 34px;
  font-weight: 400;
  line-height: 1.08;
  margin: 0 0 12px;
}
.title-block p {
  color: var(--text-gray);
  font-weight: 600;
  margin: 0 0 12px;
}
.title-block strong {
  color: var(--green-primary);
  display: block;
  font-size: 34px;
  font-weight: 800;
}
.spec-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(6, 1fr);
}
.spec-grid div {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  min-height: 92px;
  justify-content: center;
  padding: 14px 10px;
  text-align: center;
}
.spec-grid b { color: var(--green-primary); font-size: 20px; line-height: 1; }
.spec-grid strong { font-size: 17px; margin-top: 8px; }
.spec-grid span { color: var(--text-muted); font-size: 12px; margin-top: 4px; }
.detail-card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
}
.detail-card h2 {
  font-family: var(--heading);
  font-size: 25px;
  font-weight: 400;
  margin: 0 0 18px;
}
.detail-card p {
  color: var(--text-gray);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}
.feature-list {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
}
.feature-list span {
  background: var(--green-light-bg);
  border-radius: 8px;
  color: var(--text-gray);
  font-size: 13px;
  font-weight: 800;
  padding: 12px 14px;
}
.feature-list span::first-letter { color: var(--green-primary); }
.map-wrap {
  border-radius: 10px;
  height: 260px;
  overflow: hidden;
  position: relative;
}
.map-wrap span {
  color: var(--green-primary);
  font-size: 46px;
  left: 50%;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
}
.map-details {
  color: var(--text-gray);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  gap: 26px;
  margin-top: 18px;
}
.detail-sidebar {
  display: grid;
  gap: 22px;
  position: sticky;
  top: 20px;
}
.broker-card, .inquiry-card {
  background: var(--white);
  border-radius: 18px;
  padding: 24px;
}
.broker-top {
  align-items: center;
  display: flex;
  gap: 16px;
}
.broker-top img {
  border-radius: 999px;
  height: 64px;
  object-fit: cover;
  width: 64px;
}
.broker-top h2 {
  font-size: 19px;
  margin: 0 0 6px;
}
.broker-top span {
  background: var(--green-light-bg);
  border-radius: 999px;
  color: var(--green-primary);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 10px;
}
.broker-top p { color: #ffb31a; margin: 8px 0 0; }
.broker-top b { color: var(--text-gray); }
.broker-stats {
  border-bottom: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 24px 0;
  padding: 18px 0;
  text-align: center;
}
.broker-stats strong { display: block; font-size: 20px; }
.broker-stats span { color: var(--text-muted); font-size: 12px; }
.broker-btn {
  align-items: center;
  border-radius: 999px;
  display: flex;
  font-size: 14px;
  font-weight: 800;
  justify-content: center;
  margin-top: 12px;
  min-height: 48px;
  width: 100%;
}
.broker-btn.primary { background: var(--green-primary); color: var(--text-light); }
.broker-btn.outline { border: 2px solid var(--green-primary); color: var(--green-primary); }
.broker-btn.muted { background: var(--white); border: 1px solid var(--border-light); color: var(--text-gray); }
.inquiry-card {
  background: var(--green-primary);
  color: var(--text-light);
}
.inquiry-card h2 {
  font-family: var(--heading);
  font-size: 22px;
  font-weight: 400;
  margin: 0 0 16px;
}
.inquiry-card p {
  color: #e0eed8;
  line-height: 1.55;
  margin: 0 0 18px;
}
.inquiry-card form { display: grid; gap: 14px; }
.inquiry-card input, .inquiry-card textarea {
  background: rgba(255,255,255,.12);
  border: 0;
  border-radius: 10px;
  color: var(--text-light);
  font: 600 14px var(--body);
  padding: 16px;
  width: 100%;
}
.inquiry-card textarea { min-height: 92px; resize: vertical; }
.inquiry-card input::placeholder, .inquiry-card textarea::placeholder { color: #d8e8d0; }
.inquiry-card button {
  background: var(--white);
  border: 0;
  border-radius: 999px;
  color: var(--green-primary);
  font: 800 14px var(--body);
  min-height: 48px;
}
.similar-section {
  margin: 0 auto 70px;
  max-width: 1344px;
  padding: 0 24px;
}
.similar-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
}
.similar-head h2 {
  font-family: var(--heading);
  font-size: 32px;
  font-weight: 400;
  margin: 0;
}
.similar-head a {
  border: 1px solid var(--green-primary);
  border-radius: 999px;
  color: var(--green-primary);
  font-size: 13px;
  font-weight: 800;
  padding: 11px 18px;
}
.similar-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.similar-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
}
.similar-card img { height: 200px; }
.similar-card div { padding: 18px 20px 20px; }
.similar-card strong { color: var(--green-primary); font-size: 22px; }
.similar-card h3 { font-size: 15px; margin: 10px 0; }
.similar-card p { color: var(--text-gray); font-size: 13px; margin: 0; }
.detail-footer {
  background: var(--green-primary);
  color: var(--text-light);
  padding: 58px max(48px, calc((100vw - 1344px) / 2)) 32px;
}
.detail-footer-top {
  display: grid;
  gap: 70px;
  grid-template-columns: 1.55fr .85fr .85fr 1fr;
}
.detail-footer h2 {
  align-items: center;
  display: inline-flex;
  font-family: var(--heading);
  font-size: 26px;
  font-weight: 400;
  gap: 10px;
  margin: 0 0 18px;
}
.detail-footer h2 img {
  border-radius: 999px;
  height: 36px;
  object-fit: cover;
  width: 36px;
}
.detail-footer h3 { font-size: 14px; margin: 0 0 18px; }
.detail-footer p, .detail-footer a {
  color: #e0eed8;
  display: block;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
}
.detail-social {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.detail-social a {
  align-items: center;
  background: rgba(255,255,255,.14);
  border-radius: 999px;
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}
.detail-footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(255,255,255,.18);
  display: flex;
  justify-content: space-between;
  margin-top: 54px;
  padding-top: 28px;
}
.detail-footer-bottom div { display: flex; gap: 34px; }

@media (max-width: 1000px) {
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-sidebar { position: static; }
  .spec-grid, .feature-list, .similar-grid, .detail-footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .breadcrumb { align-items: flex-start; flex-wrap: wrap; padding: 14px 18px; }
  .detail-layout, .similar-section { padding-left: 18px; padding-right: 18px; }
  .main-photo { height: 300px; }
  .thumbs { grid-template-columns: repeat(2, 1fr); }
  .title-block h1 { font-size: 28px; }
  .spec-grid, .feature-list, .similar-grid, .detail-footer-top {
    grid-template-columns: 1fr;
  }
  .detail-footer { padding-left: 24px; padding-right: 24px; }
  .detail-footer-bottom, .similar-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
