:root{
  --green-dark:#3f4a2e;
  --green-mid:#5a6b3f;
  --green-pale:#e7e3d4;
  --cream:#f4f1e8;
  --gold:#c9a227;
  --maroon:#7a2e2e;
  --text-dark:#2c3320;
  --text-light:#f4f1e8;
  --max-w:1240px;
  --header-h-desktop:74px;
  --header-h-mobile:64px;
  --brand-green:#637b31;
  --pill-dark:#4b5a2a;
  --pill-mid:#7c9a3e;
  --results-bg:#5c7231;
  --filter-bg:#d3d1c3;
}
*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent;}
html,body{overflow-x:hidden;width:100%;max-width:100vw;}
body{
  font-family:'Jost',sans-serif;
  color:var(--text-dark);
  background:var(--filter-bg);
  -webkit-font-smoothing:antialiased;
  padding-top:var(--header-h-desktop);
}
h1,h2,h3{font-family:'Fraunces',serif;font-weight:500;}
a,a:link,a:visited,a:hover,a:active{text-decoration:none;color:inherit;}
.wrap{max-width:var(--max-w);margin:0 auto;padding:0 32px;}

.modal-overlay{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(45,56,33,.55);
  align-items:flex-start;
  justify-content:center;
  overflow-y:auto;
  padding:48px 16px;
  z-index:300;
}
.modal-overlay.open{display:flex;}
.preview-frame-shell{
  width:100%;
  max-width:640px;
  max-height:100%;
}
.preview-frame-shell iframe{
  width:100%;
  height:80vh;
  border:none;
  background:transparent;
}

header{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 32px;background:#5a6f27;
  position:fixed;top:0;left:0;right:0;width:100%;z-index:100;
}
.logo{font-size:25px;font-weight:500;color:white;flex-shrink:0;display:flex;align-items:center;gap:8px;cursor:pointer;}
.logo img{width:48px;height:28px;object-fit:contain;}
nav.main-nav{display:flex;align-items:center;gap:14px;}
.nav-btn{
  padding:10px 20px;border-radius:10px;font-size:14px;font-weight:500;
  white-space:nowrap;border:1px solid transparent;cursor:pointer;
}
.nav-btn.outline{background:#d3d1c3;border:1px solid black;color:black;}
.nav-btn.outline:hover{background:#3f4a2e;color:white;}
.nav-btn.gold{background:#ac9129;border:1px solid #ac9129;color:#fff;}
.nav-btn.gold:hover{background:#3f4a2e;border-color:#3f4a2e;color:white;}
.nav-btn.maroon{background:var(--maroon);color:#fff;border:1px solid var(--maroon);}
.nav-btn.maroon:hover{background:#3f4a2e;border:1px solid #3f4a2e;color:white;}

.nav-right{display:flex;align-items:center;gap:10px;flex-shrink:0;position:relative;}
.icon-btn{
  position:relative;
  width:38px;height:38px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  border:1px solid #d8d2bd;background:#fff;cursor:pointer;
  color:var(--green-dark);
}
.notif-badge{
  position:absolute;top:-4px;right:-4px;
  background:var(--maroon);color:#fff;
  font-size:10px;font-weight:700;
  width:16px;height:16px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
}
.kebab-nav{
  display:none;flex-direction:column;gap:6px;
  background:var(--cream);padding:14px;border-radius:14px;
  position:absolute;top:52px;right:0;min-width:220px;
  box-shadow:0 12px 30px rgba(0,0,0,.18);z-index:99;
}
.kebab-nav.open{display:flex;}
.kebab-nav a{padding:10px 12px;border-radius:8px;font-size:14px;color:var(--text-dark);}
.kebab-nav a:hover{background:var(--green-pale);}

.hamburger{
  display:none;flex-direction:column;justify-content:center;gap:5px;
  width:38px;height:38px;border-radius:50%;
  border:1px solid #d8d2bd;background:#fff;cursor:pointer;padding:0 10px;flex-shrink:0;
}
.hamburger span{display:block;width:18px;height:2px;background:var(--green-dark);border-radius:2px;}
.mobile-nav{
  display:none;flex-direction:column;gap:10px;background:var(--cream);
  padding:20px 32px 24px;border-top:1px solid #ddd8c6;
  position:absolute;top:100%;left:0;right:0;z-index:99;box-shadow:0 8px 24px rgba(0,0,0,.08);
}
.mobile-nav.open{display:flex;}
.mobile-nav .nav-btn{display:block;text-align:center;padding:12px 20px;}

.img-box{
  position:relative;overflow:hidden;
  background:repeating-linear-gradient(45deg,#c3c2ac,#c3c2ac 10px,#cbcab4 10px,#cbcab4 20px);
}
.img-box::before{
  content:attr(data-label);position:absolute;inset:0;
  display:flex;align-items:center;justify-content:center;text-align:center;padding:8px;
  font-size:11px;letter-spacing:.03em;color:#5f5d4e;
  background:rgba(244,241,232,.55);font-family:'Jost',sans-serif;
}
.img-box img{position:relative;z-index:1;width:100%;height:100%;object-fit:cover;}
.img-box img:not([src]),
.img-box img[src=""]{display:none;}

.listings-page{position:relative;}
.side-pattern{position:absolute;top:0;bottom:0;width:30px;z-index:5;}
.side-pattern.left{left:10px;}
.side-pattern.right{right:10px;}

.filter-section{background:var(--filter-bg);padding:36px 0 42px;position:relative;}
.filter-title{color:var(--brand-green);font-weight:600;font-size:clamp(24px,3vw,30px);margin-bottom:18px;}

.filter-card{
  background:var(--cream);
  border-radius:20px;
  padding:22px 26px 26px;
  max-width:640px;
  position:relative;
}
.filter-tabs{display:flex;align-items:center;gap:10px;margin-bottom:18px;}
.filter-tab{
  flex:1;
  background:#e4e1d3;
  border:none;
  border-radius:10px;
  padding:12px 20px;
  font-family:'Jost',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--text-dark);
  cursor:pointer;
}
.filter-tab.active{background:#fbfaf6;box-shadow:0 1px 3px rgba(0,0,0,.08);}
.filter-tab-sort{position:relative;flex:1;display:flex;flex-direction:column;align-items:center;}
.filter-tab-sort .filter-tab{width:100%;}
.sort-chevron{
  position:absolute;
  bottom:-16px;
  color:var(--brand-green);
}

.filter-toggle{
  flex-shrink:0;
  width:34px;height:34px;
  border-radius:50%;
  border:1px solid #cfccbb;
  background:#fbfaf6;
  color:var(--text-dark);
  display:flex;align-items:center;justify-content:center;
  cursor:pointer;
  opacity:.75;
}
.filter-toggle:hover{opacity:1;}
.filter-toggle .icon-open{display:none;}
.filter-toggle.is-collapsed .icon-close{display:none;}
.filter-toggle.is-collapsed .icon-open{display:block;}

.filter-panels-wrap.collapsed{display:none;}

.filter-panel{display:none;}
.filter-panel.active{display:block;}

.select-pill{
  position:relative;display:flex;align-items:center;border-radius:999px;
  margin-bottom:14px;min-height:48px;
}
.select-pill select{
  appearance:none;-webkit-appearance:none;width:100%;border:none;outline:none;
  background:transparent;padding:13px 44px 13px 20px;
  font-family:'Jost',sans-serif;font-size:13px;font-weight:600;cursor:pointer;
}
.chevron-circle{
  position:absolute;right:8px;top:50%;transform:translateY(-50%);
  width:24px;height:24px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;background:#fff;pointer-events:none;
}
.select-pill.dark{background:var(--pill-dark);}
.select-pill.dark select{color:#fff;}
.chevron-circle.dark{color:var(--pill-dark);}

.pill-input{
  display:block;width:100%;border:none;outline:none;border-radius:999px;
  padding:14px 20px;font-family:'Jost',sans-serif;font-size:13px;color:var(--text-dark);
  background:#fbfaf6;border:1px solid #ded9c6;margin-bottom:14px;
}
.pill-input::placeholder{color:#8f8c7a;}

.radius-row{display:flex;align-items:center;gap:14px;margin-bottom:0;}
.radius-row .select-pill{flex:1;margin-bottom:0;}
.radius-readout{font-size:13px;font-weight:600;color:var(--text-dark);white-space:nowrap;}
.radius-row + .pill-input{margin-top:14px;}

.btn-apply{
  display:inline-block;
  border:none;outline:none;cursor:pointer;
  border-radius:999px;padding:13px 34px;margin-top:6px;
  font-family:'Jost',sans-serif;font-size:13px;font-weight:600;color:#fff;
  background:var(--pill-dark);
}
.btn-apply:hover{background:var(--brand-green);}

.check-row{display:flex;align-items:center;gap:10px;cursor:pointer;margin-bottom:14px;font-size:13px;}
.check-row:last-child{margin-bottom:0;}
.check-row input{position:absolute;opacity:0;width:0;height:0;}
.check-mark{
  flex-shrink:0;width:18px;height:18px;border-radius:50%;
  border:2px solid #b9b7a4;background:#fff;position:relative;
}
.check-row input:checked + .check-mark{background:var(--pill-dark);border-color:var(--pill-dark);}
.check-row input:checked + .check-mark::after{
  content:"";position:absolute;left:4px;top:1px;width:6px;height:10px;
  border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg);
}

.results-section{background:var(--results-bg);padding:40px 0 60px;position:relative;}
.results-title{color:#fff;text-align:center;font-size:22px;font-weight:600;margin-bottom:28px;}

.listing-list{display:flex;flex-direction:column;gap:22px;}
.listing-status{
  background:var(--cream);
  border-radius:16px;
  padding:28px;
  text-align:center;
  font-size:14px;
  color:var(--text-dark);
}
.listing-card{
  display:grid;
  grid-template-columns:1fr 1.15fr;
  gap:28px;
  background:var(--cream);
  border-radius:22px;
  padding:20px;
  cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease;
}
.listing-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(0,0,0,.18);}

.listing-media{position:relative;border-radius:16px;overflow:hidden;}
.listing-img{aspect-ratio:4/3;}
.listing-badge{
  position:absolute;top:12px;left:12px;z-index:2;
  color:#fff;padding:7px 10px;border-radius:6px;text-align:center;
  font-family:'Fraunces',serif;line-height:1.2;
}
.listing-badge.gold{background:linear-gradient(135deg,#c9a227,#8a6e14);}
.listing-badge.grey{background:linear-gradient(135deg,#8a8a86,#59584f);}
.listing-badge.supported{background:linear-gradient(135deg,#c4602f,#7f3818);}
.badge-title{display:block;font-size:11px;font-weight:600;}
.badge-sub{display:block;font-size:8px;letter-spacing:.06em;}

.listing-dots{
  position:absolute;bottom:10px;left:50%;transform:translateX(-50%);
  display:flex;gap:5px;z-index:2;
}
.dot{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.55);}
.dot.active{background:#fff;width:16px;border-radius:4px;}

.listing-text{display:flex;flex-direction:column;}
.listing-top-row{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:6px;}
.listing-eyebrow{font-size:11px;font-weight:700;letter-spacing:.03em;color:var(--text-dark);}
.listing-icons{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.mini-icon-btn{
  width:24px;height:24px;border:none;background:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:var(--text-dark);
}
.mini-icon-btn.favorite{color:var(--text-dark);}
.mini-icon-btn.favorite.active{color:var(--brand-green);}
.mini-icon{width:24px;height:24px;display:flex;align-items:center;justify-content:center;color:var(--text-dark);}

.listing-title{color:var(--brand-green);font-family:'Jost',serif;font-weight:800;font-size:19px;margin-bottom:8px;}
.listing-desc{font-size:12.5px;line-height:1.6;color:var(--text-dark);margin-bottom:12px;flex:1;}
.listing-bottom-row{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.listing-location{font-weight:700;font-size:12.5px;}
.listing-price{font-size:12.5px;margin-top:2px;}
.listing-cta{
  border:none;outline:none;cursor:pointer;border-radius:999px;
  padding:11px 22px;font-family:'Jost',sans-serif;font-size:12px;font-weight:600;
  color:#fff;background:var(--pill-dark);white-space:nowrap;
}
.listing-cta:hover{background:var(--brand-green);}

.pagination{
  display:flex;align-items:center;justify-content:center;gap:8px;
  margin-top:32px;flex-wrap:wrap;
}
.pagination a{
  font-size:13px;color:#fff;opacity:.85;padding:6px 4px;
}
.page-num{
  width:28px;height:28px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  opacity:1;
}
.page-num.active{background:#fff;color:var(--results-bg);font-weight:700;opacity:1;}
.page-dots{color:#fff;opacity:.7;font-size:13px;}
.pagination a[aria-disabled="true"]{opacity:.4;pointer-events:none;}

footer{background:#42532f;color:var(--text-light);padding:50px 0 30px;text-align:center;}
footer h2{font-size:24px;margin-bottom:36px;display:flex;flex-direction:column;gap:4px;}
.footer-brand{font-weight:600;}
.footer-tagline{font-weight:300;}
.footer-bottom{
  display:flex;flex-direction:row;align-items:center;justify-content:space-between;
  gap:16px;padding-top:30px;border-top:1px solid rgba(255,255,255,.12);
  font-size:12px;opacity:.85;text-align:left;
}
.footer-contact{text-align:left;line-height:1.6;flex:1;color:#fff;}
.footer-logo-mark{display:flex;justify-content:center;flex:1;}
.social-icons{display:flex;gap:10px;justify-content:flex-end;flex:1;}
.social-icons a{
  width:32px;height:32px;border-radius:50%;
  border:1px solid rgba(255,255,255,.4);
  display:flex;align-items:center;justify-content:center;
  transition:background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.social-icons a:hover{
  background-color:var(--text-light);color:var(--green-dark);
  border-color:var(--text-light);transform:translateY(-2px);
}

@media(max-width:900px){
  nav.main-nav{display:none;}
  .hamburger{display:flex;}
  .listing-card{grid-template-columns:1fr;}
  .listing-media{order:-1;}
}

@media(max-width:760px){
  .side-pattern{width:14px;}
  .side-pattern.left{left:4px;}
  .side-pattern.right{right:4px;}
}

@media(max-width:560px){
  body{padding-top:var(--header-h-mobile);}
  header{padding:14px 20px;}
  .mobile-nav{padding:16px 20px 20px;}
  .wrap{padding:0 18px;}
  .side-pattern{display:none;}

  .filter-section{padding:26px 0 32px;}
  .filter-title{font-size:22px;margin-bottom:14px;}
  .filter-card{padding:18px 16px 22px;border-radius:16px;}

  .results-section{padding:30px 0 44px;}
  .results-title{font-size:19px;margin-bottom:20px;}
  .listing-card{padding:14px;border-radius:16px;gap:14px;}
  .listing-title{font-size:17px;}
  .listing-desc{font-size:12px;}
  .listing-bottom-row{align-items:flex-start;}
  .listing-cta{padding:10px 16px;font-size:11px;}

  footer h2{font-size:20px;}
  .footer-bottom{flex-direction:column;align-items:center;justify-content:center;text-align:center;}
  .footer-contact{text-align:center;flex:none;}
  .footer-logo-mark{flex:none;}
  .social-icons{justify-content:center;flex:none;}
}