:root {
  --ink: #10251f;
  --muted: #63736c;
  --cream: #f7f2e8;
  --paper: #fffdf7;
  --green: #0b6e4f;
  --green-dark: #074936;
  --aqua: #9fe8d1;
  --line: #d8ded7;
  --sun: #f0b44d;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(16, 37, 31, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: "DM Sans", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 82% 7%, rgba(159,232,209,.38), transparent 28rem), radial-gradient(circle at 10% 60%, rgba(240,180,77,.12), transparent 24rem); z-index: -1; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.site-header { width: min(1440px, calc(100% - 32px)); margin: 14px auto 0; min-height: 68px; padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(11,110,79,.18); border-radius: 18px; background: rgba(255,253,247,.88); backdrop-filter: blur(18px); position: sticky; top: 12px; z-index: 1000; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Fraunces", serif; font-size: 1.45rem; font-weight: 700; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions select, .header-link { border: 1px solid var(--line); border-radius: 999px; background: white; padding: 9px 13px; font: inherit; }
.header-link { text-decoration: none; font-weight: 600; }
main { width: min(1440px, calc(100% - 32px)); margin: 0 auto; }
.search-hero { padding: clamp(52px, 8vw, 110px) clamp(8px, 4vw, 54px) 44px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); gap: 48px; align-items: end; }
.eyebrow, .step { margin: 0 0 10px; color: var(--green); font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1, h2 { font-family: "Fraunces", serif; letter-spacing: -.035em; }
h1 { margin: 0; max-width: 900px; font-size: clamp(2.7rem, 6.8vw, 6.4rem); line-height: .98; }
.lead { max-width: 760px; margin: 22px 0 0; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.25rem); line-height: 1.65; }
.privacy-note { display: flex; gap: 14px; padding: 20px; border: 1px solid rgba(11,110,79,.2); border-radius: var(--radius); background: rgba(255,255,255,.55); }
.privacy-note span { font-size: 2rem; color: var(--green); }
.privacy-note p { margin: 0; color: var(--muted); line-height: 1.55; }
.search-shell { display: grid; grid-template-columns: minmax(320px, 430px) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; }
.filters { padding: clamp(22px, 4vw, 42px); border-right: 1px solid var(--line); }
.filter-heading { display: flex; gap: 16px; margin-bottom: 25px; }
.filter-heading h2 { margin: 0; font-size: 1.8rem; }
.filter-heading p:last-child { margin: 4px 0 0; color: var(--muted); }
label { display: block; margin-bottom: 15px; }
label > span, .radius-control > div > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: .84rem; font-weight: 600; }
input, select { width: 100%; min-height: 48px; border: 1px solid #bdc9c2; border-radius: 12px; background: white; color: var(--ink); padding: 10px 12px; font: inherit; }
input:focus, select:focus { outline: 3px solid rgba(11,110,79,.15); border-color: var(--green); }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.location-fields { display: grid; grid-template-columns: minmax(110px, .65fr) minmax(0, 1.35fr); gap: 10px; }
.radius-control { margin: 22px 0; padding: 16px; border-radius: 16px; background: #edf6f1; }
.radius-control > div { display: flex; justify-content: space-between; align-items: center; }
.radius-control input { min-height: auto; padding: 0; accent-color: var(--green); }
.radius-control p { margin: 7px 0 0; color: var(--muted); font-size: .78rem; }
.filter-actions { display: grid; gap: 9px; }
button { min-height: 48px; border: 0; border-radius: 13px; padding: 11px 16px; font: 700 1rem "DM Sans", sans-serif; cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
.primary { color: white; background: var(--green); }
.primary:hover { background: var(--green-dark); }
.secondary { color: var(--green-dark); background: white; border: 1px solid var(--line); }
.text-button { margin-top: 8px; min-height: 36px; padding: 4px; color: var(--green); background: transparent; font-size: .88rem; }
.map-panel { min-height: 650px; position: relative; background: #dbe9e2; }
.map-toolbar { position: absolute; z-index: 500; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.map-toolbar > div, .state { padding: 11px 14px; border: 1px solid rgba(16,37,31,.12); border-radius: 14px; background: rgba(255,253,247,.93); box-shadow: 0 10px 30px rgba(16,37,31,.12); }
.map-toolbar .step { margin: 0 7px 0 0; display: inline; }
.state { font-size: .8rem; color: var(--muted); }
.state.active { color: var(--green-dark); font-weight: 700; }
#map { width: 100%; height: 100%; min-height: 650px; }
.map-help { position: absolute; z-index: 500; left: 18px; bottom: 18px; margin: 0; padding: 9px 13px; border-radius: 999px; background: rgba(16,37,31,.86); color: white; font-size: .78rem; pointer-events: none; }
.leaflet-control-attribution { font-size: 10px; }
.results-section { padding: 72px 0 100px; }
.demo-section { margin-top: 72px; padding: clamp(24px,4vw,46px); border: 1px solid rgba(11,110,79,.24); border-radius: 30px; background: linear-gradient(135deg,rgba(255,253,247,.94),rgba(223,245,236,.9)); box-shadow: var(--shadow); }
.demo-section .results-heading { margin-bottom: 8px; }
.demo-lead { max-width: 820px; margin: 0 0 22px; color: var(--muted); line-height: 1.65; }
.demo-notice { padding: 8px 12px; border-radius: 999px; background: #10251f; color: #fff; font-size: .78rem; font-weight: 700; }
.demo-card { border-color: rgba(11,110,79,.3); }
.demo-pill { background: #10251f; color: #fff; }
.demo-action small { max-width: 150px; color: #8a3a22; font-weight: 700; }
.results-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.results-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.4rem); }
.result-count { color: var(--muted); }
.status-card { padding: 28px; border: 1px dashed #a8b8af; border-radius: 18px; color: var(--muted); text-align: center; }
.result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.result-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 14px 36px rgba(16,37,31,.08); display: flex; flex-direction: column; }
.result-image { aspect-ratio: 16/9; width: 100%; object-fit: cover; background: linear-gradient(135deg, #c7e7da, #f4d79e); }
.result-placeholder { display: grid; place-items: center; color: var(--green-dark); font: 700 1rem "Fraunces", serif; }
.result-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.result-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.pill { padding: 5px 9px; border-radius: 999px; background: #edf6f1; color: var(--green-dark); font-size: .75rem; font-weight: 700; }
.result-card h3 { margin: 0; font: 700 1.45rem "Fraunces", serif; }
.result-tagline { margin: 7px 0; color: var(--muted); }
.result-amenities { margin: 10px 0 18px; color: var(--muted); font-size: .84rem; }
.result-price { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.price strong { display: block; font-size: 1.35rem; }
.price small { color: var(--muted); }
.book-link { white-space: nowrap; padding: 10px 13px; border-radius: 11px; color: white; background: var(--green); text-decoration: none; font-weight: 700; }
footer { width: min(1440px, calc(100% - 32px)); margin: 0 auto 28px; padding: 22px 2px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--muted); }
footer nav { display: flex; gap: 18px; }
footer a { text-decoration: none; }
.back-to-top { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 1400; width: 50px; height: 50px; border: 1px solid rgba(255,255,255,.42); border-radius: 50%; background: var(--green); color: white; box-shadow: 0 14px 34px rgba(11,62,48,.3); font: 800 1.35rem/1 sans-serif; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity 180ms ease, transform 180ms ease, background 180ms ease; }
.back-to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--green-dark); }
.back-to-top:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
@media (max-width: 940px) {
  .search-hero { grid-template-columns: 1fr; gap: 24px; }
  .search-shell { grid-template-columns: 1fr; }
  .filters { border-right: 0; border-bottom: 1px solid var(--line); }
  .map-panel, #map { min-height: 480px; }
  .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header, main, footer { width: min(100% - 20px, 1440px); }
  .site-header { top: 6px; }
  .brand span { display: none; }
  .header-link { font-size: .84rem; }
  .search-hero { padding: 44px 4px 28px; }
  h1 { font-size: clamp(2.5rem, 14vw, 4rem); }
  .two-columns, .location-fields, .result-grid { grid-template-columns: 1fr; }
  .map-panel, #map { min-height: 420px; }
  .map-toolbar { align-items: flex-start; }
  .state { max-width: 140px; text-align: right; }
  .map-help { right: 18px; border-radius: 12px; text-align: center; }
  .results-heading, footer { align-items: flex-start; flex-direction: column; }
  footer nav { flex-wrap: wrap; }
}
