:root {
  color-scheme: light;
  --ink: #1c3029;
  --muted: #748078;
  --green: #204c3b;
  --green-dark: #173d32;
  --green-light: #e8efe7;
  --cream: #f7f8f4;
  --line: #e5e9e2;
  --gold: #e4b958;
  --serif: "Avenir Next", "Segoe UI", sans-serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }

.topbar {
  height: 76px;
  padding: 0 max(calc((100vw - 1160px) / 2), 6.2vw);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border-bottom: 1px solid #edf0eb;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green-dark);
  text-decoration: none;
  font: 800 19px var(--serif);
  letter-spacing: -1px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--green);
  color: #e6bd64;
}

.brand-mark svg { width: 25px; height: 25px; }
.brand-light { color: #8a9d8c; font-weight: 500; }
.topbar-note { color: #7d897f; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; }
.live-dot { width: 7px; height: 7px; margin-right: 8px; display: inline-block; border-radius: 50%; background: #7da67e; vertical-align: 1px; }

main { overflow: hidden; }

.hero {
  max-width: 1160px;
  min-height: 405px;
  margin: 0 auto;
  padding: 64px 0 58px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 45px;
}

.hero-copy { padding-left: 2px; }
.eyebrow, .section-kicker { color: #738679; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow-rule { width: 25px; height: 1px; background: #98a799; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 18px; color: var(--green-dark); font: 800 clamp(48px, 5.2vw, 66px)/1.04 var(--serif); letter-spacing: -3.5px; }
.hero-period { color: #c99b3b; }
.hero-description { max-width: 420px; margin-bottom: 25px; color: #66756c; font-size: 15px; line-height: 1.7; }
.hero-footnote { display: flex; align-items: center; gap: 9px; color: #718077; font-size: 11px; font-weight: 600; }
.hero-icon { color: #b68f42; font-size: 17px; }
.footnote-separator { padding: 0 6px; color: #bdc5bc; }
.hero-art { position: relative; height: 282px; overflow: hidden; border-radius: 6px; background: #eef1e8; }
.landscape { position: absolute; width: 100%; height: 100%; inset: 0; }
.art-stamp { position: absolute; z-index: 1; top: 27px; right: 25px; width: 121px; height: 139px; padding: 13px 12px; display: flex; flex-direction: column; justify-content: space-between; color: #f4f1db; background: #a68143; transform: rotate(4deg); box-shadow: 0 8px 20px #253d3026; }
.art-stamp span { font-size: 8px; font-weight: 700; letter-spacing: 1.5px; }
.art-stamp strong { font: 800 17px/1.06 var(--serif); letter-spacing: -.5px; }
.art-stamp i { font-size: 8px; font-style: normal; letter-spacing: 1px; }
.art-coordinate { position: absolute; bottom: 13px; right: 17px; color: #e9efe4; font-size: 9px; letter-spacing: 1.2px; text-shadow: 0 1px 4px #233b2a; }

.search-section, .results-section, .data-note {
  max-width: 1160px;
  margin: 0 auto;
}

.section-heading, .results-heading {
  margin-bottom: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.section-heading h2, .results-heading h2 { margin: 7px 0 0; color: var(--green-dark); font: 700 24px/1.25 var(--serif); letter-spacing: -.8px; }
.section-heading > p, .results-heading > p { margin: 0 0 2px; color: #89928a; font-size: 11px; line-height: 1.65; text-align: right; }
.search-card { padding: 26px 30px 21px; background: #fff; border: 1px solid #e7ebe4; border-radius: 7px; box-shadow: 0 8px 30px #2e49330a; }
.form-grid { display: grid; grid-template-columns: 1.28fr .78fr 1fr; gap: 22px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.field-label, .range-field legend { color: #526158; font-size: 11px; font-weight: 700; }
.input-wrap { min-width: 0; height: 43px; position: relative; display: flex; align-items: center; background: #fff; border: 1px solid #dfe5dd; border-radius: 4px; }
.input-wrap:focus-within, .range-inputs input:focus { border-color: #78937c; box-shadow: 0 0 0 3px #54765012; outline: 0; }
.input-wrap input, .input-wrap select { width: 100%; height: 100%; padding: 0 13px; color: #34463c; border: 0; outline: 0; background: transparent; font-size: 12px; }
.input-wrap input::placeholder, .range-inputs input::placeholder { color: #a2aaa2; }
.search-input-wrap svg { width: 17px; height: 17px; margin-left: 13px; flex: 0 0 auto; stroke: #839188; stroke-width: 1.7; fill: none; }
.search-input-wrap input { padding-left: 9px; }
.select-wrap::after { content: ""; position: absolute; right: 13px; width: 7px; height: 7px; border-right: 1.5px solid #7c8a80; border-bottom: 1.5px solid #7c8a80; transform: rotate(45deg) translateY(-2px); pointer-events: none; }
.input-wrap select { padding-right: 32px; appearance: none; }
.field-help { color: #929b93; font-size: 10px; line-height: 1.4; }
.filter-divider { height: 1px; margin: 23px 0 20px; position: relative; background: var(--line); }
.filter-divider span { padding-right: 11px; position: relative; top: -6px; color: #91a095; background: #fff; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
.detail-grid { display: grid; grid-template-columns: .9fr 1fr 1.22fr; gap: 22px; align-items: start; }
.range-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.range-field legend { margin-bottom: 9px; }
.unit-label { margin-left: 5px; color: #9aa49a; font-size: 9px; font-weight: 500; }
.range-inputs { display: flex; align-items: center; gap: 9px; }
.range-inputs input { width: 100%; min-width: 0; height: 43px; padding: 0 12px; border: 1px solid #dfe5dd; border-radius: 4px; outline: 0; color: #34463c; font-size: 12px; }
.range-dash { color: #a8b0a8; }
.money-wrap { gap: 0; }
.money-symbol { padding-left: 12px; color: #8e9b90; font-size: 12px; }
.money-wrap input { padding-left: 6px; }
.address-filter-options { display: flex; flex-direction: column; gap: 12px; }
.occupancy-option { min-height: 43px; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.occupancy-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.checkbox-ui { width: 17px; height: 17px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #c9d2c8; border-radius: 3px; background: #fff; }
.checkbox-ui svg { width: 13px; height: 13px; display: none; fill: none; stroke: white; stroke-width: 2; }
.occupancy-option input:checked + .checkbox-ui { border-color: var(--green); background: var(--green); }
.occupancy-option input:checked + .checkbox-ui svg { display: block; }
.occupancy-option input:focus-visible + .checkbox-ui { outline: 3px solid #54765045; }
.occupancy-option strong, .occupancy-option small { display: block; }
.occupancy-option strong { color: #506056; font-size: 11px; }
.occupancy-option small { margin-top: 4px; color: #939d94; font-size: 9px; }
.search-actions { margin-top: 25px; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf0eb; }
.search-actions p { max-width: 530px; margin: 0; color: #89948c; font-size: 10px; line-height: 1.55; }
.search-button { height: 43px; min-width: 162px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center; gap: 16px; color: #fff; border: 0; border-radius: 4px; background: var(--green); font-size: 12px; font-weight: 700; transition: background .15s, transform .15s; }
.search-button:hover { background: #163b2e; transform: translateY(-1px); }
.search-button:disabled { cursor: wait; opacity: .7; transform: none; }
.search-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.results-section { padding-top: 55px; }
.results-heading { margin-bottom: 19px; }
.results-heading h2 { font-size: 21px; }
.results-message { min-height: 150px; padding: 27px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid #e8ece6; border-radius: 5px; text-align: center; }
.results-message[hidden] { display: none; }
.empty-icon { width: 40px; height: 40px; margin-bottom: 2px; display: grid; place-items: center; border-radius: 50%; background: #edf2eb; color: #57755d; }
.empty-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.results-message strong { color: #344b3e; font-size: 12px; }
.results-message span { color: #89948c; font-size: 11px; }
.results-message.is-error { color: #8e3d35; border-color: #ecd9d5; background: #fffaf9; }
.results-message.is-error .empty-icon { color: #9a554c; background: #f6e9e6; }
.results-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.parcel-card { min-width: 0; padding: 19px; background: white; border: 1px solid #e8ece6; border-radius: 5px; }
.parcel-topline { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.parcel-county { color: #7b8d7c; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.parcel-class { padding: 5px 8px; border-radius: 3px; color: #43654b; background: #edf3e9; font-size: 9px; font-weight: 700; white-space: nowrap; }
.parcel-card h3 { overflow-wrap: anywhere; margin: 11px 0 5px; color: #263c30; font: 700 16px/1.3 var(--serif); }
.parcel-owner { overflow-wrap: anywhere; margin-bottom: 5px; color: #637469; font-size: 11px; font-weight: 600; }
.parcel-id { color: #919a92; font-size: 10px; }
.parcel-metrics { margin-top: 16px; padding-top: 13px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid #edf0eb; }
.parcel-metric small, .parcel-metric strong { display: block; }
.parcel-metric small { margin-bottom: 5px; color: #919a92; font-size: 9px; }
.parcel-metric strong { color: #435449; font-size: 11px; font-weight: 600; }
.parcel-address { margin-top: 12px; color: #758279; font-size: 10px; line-height: 1.5; }
.pagination { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; color: #78857b; font-size: 11px; }
.pagination[hidden] { display: none; }
.pagination > div { display: flex; gap: 8px; }
.page-button { padding: 8px 12px; color: var(--green); border: 1px solid #dce4dc; border-radius: 4px; background: white; font-size: 10px; font-weight: 600; }
.page-button:disabled { cursor: not-allowed; color: #aab2aa; }

.data-note { margin-top: 58px; margin-bottom: 64px; padding: 25px 28px; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 17px; background: #eff2eb; border: 1px solid #e4e9df; border-radius: 5px; }
.data-note-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 50%; background: #e0e9dc; color: #65806a; }
.data-note-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.data-note-copy .section-kicker { margin-top: 3px; }
.data-note-copy h2 { margin: 8px 0 8px; color: #284337; font: 700 18px var(--serif); letter-spacing: -.4px; }
.data-note-copy > p { max-width: 850px; margin: 0; color: #718077; font-size: 11px; line-height: 1.7; }
.signal-list { margin: 14px 0; display: flex; flex-wrap: wrap; gap: 7px; }
.signal-list span { padding: 6px 9px; color: #65766a; border: 1px solid #d8e1d6; border-radius: 3px; background: #f6f8f3; font-size: 9px; font-weight: 600; }
.data-note-copy > p.data-caveat { max-width: 940px; padding-top: 12px; border-top: 1px solid #dde4d9; font-size: 10px; }
.footer { min-height: 80px; padding: 0 max(calc((100vw - 1160px) / 2), 6.2vw); display: flex; align-items: center; justify-content: space-between; gap: 15px; background: #fff; border-top: 1px solid #edf0eb; }
.footer-brand { font-size: 16px; }
.footer-brand .brand-mark { width: 29px; height: 29px; border-radius: 8px; }
.footer-brand .brand-mark svg { width: 21px; height: 21px; }
.footer p, .footer > a:last-child { margin: 0; color: #8b968d; font-size: 10px; text-decoration: none; }
.footer > a:last-child:hover { color: var(--green); }
.footer > a:last-child span { margin-left: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

@media (max-width: 1240px) {
  .hero, .search-section, .results-section, .data-note { margin-left: 6.2vw; margin-right: 6.2vw; }
}

@media (max-width: 800px) {
  .topbar { height: 66px; }
  .hero { min-height: auto; padding: 44px 0; grid-template-columns: 1fr; gap: 27px; }
  .hero-art { height: 240px; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .address-filter-options { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .topbar { padding: 0 20px; }
  .topbar-note { font-size: 8px; letter-spacing: 1px; }
  .hero, .search-section, .results-section, .data-note { margin-left: 20px; margin-right: 20px; }
  .hero { padding: 37px 0 35px; }
  h1 { font-size: 51px; letter-spacing: -2.8px; }
  .hero-art { height: 205px; }
  .art-stamp { top: 18px; right: 17px; width: 104px; height: 122px; }
  .section-heading, .results-heading { align-items: start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 21px; }
  .section-heading > p, .results-heading > p { text-align: left; }
  .search-card { padding: 21px 18px 17px; }
  .form-grid, .detail-grid { grid-template-columns: 1fr; gap: 17px; }
  .field-wide, .address-filter-options { grid-column: auto; }
  .filter-divider { margin: 19px 0 17px; }
  .search-actions { align-items: stretch; flex-direction: column; gap: 14px; }
  .search-actions p { max-width: none; }
  .search-button { width: 100%; }
  .results-section { padding-top: 42px; }
  .results-list { grid-template-columns: 1fr; }
  .data-note { margin-top: 42px; margin-bottom: 44px; padding: 20px 17px; grid-template-columns: 1fr; gap: 12px; }
  .data-note-icon { width: 31px; height: 31px; }
  .footer { padding: 18px 20px; align-items: flex-start; flex-direction: column; gap: 10px; }
}
