@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");
:root {
  --ink: #17372f;
  --green: #185e47;
  --lime: #ddebab;
  --muted: #6f7973;
  --line: #dfe5df;
  --paper: #f6f7f2;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a5c64d;
  outline-offset: 3px;
}
header {
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 5%;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-size: 23px;
  font-family: Manrope, sans-serif;
}
.brand img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 50%;
}
.brand b {
  font-weight: 800;
}
.brand small {
  display: block;
  font:
    9px "DM Sans",
    sans-serif;
  letter-spacing: 2px;
  margin-top: 5px;
}
nav {
  display: flex;
  gap: 20px;
}
.nav {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 12px 0;
}
.nav.active {
  color: var(--green);
  font-weight: 700;
  border-bottom: 2px solid var(--green);
}
#saved-count {
  border-radius: 20px;
  background: #eef3e7;
  padding: 2px 6px;
  font-size: 12px;
}
main {
  max-width: 1550px;
  margin: auto;
  padding: 0 5%;
}
.hero {
  position: relative;
  padding: 54px 0 42px;
  min-height: 315px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--green);
}
h1 {
  font:
    800 clamp(34px, 4.5vw, 58px) / 1.12 Manrope,
    sans-serif;
  letter-spacing: -2.2px;
  margin: 18px 0;
}
p {
  line-height: 1.65;
  color: var(--muted);
}
.hero p {
  font-size: 16px;
  margin: 0;
}
.hero-note {
  position: absolute;
  right: 20px;
  top: 95px;
  border-left: 2px solid #b8c887;
  padding: 20px;
  color: #607260;
  font-size: 14px;
  line-height: 1.8;
}
.hero-note span {
  font-size: 30px;
  display: block;
}
.catalog-health {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  margin: 0 0 18px;
  font-size: 12px;
}
.catalog-health span:last-child {
  color: var(--muted);
  margin-left: auto;
}
.health-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
  flex: 0 0 auto;
}
.health-dot.good { background: #2e8d5c; box-shadow: 0 0 0 4px #2e8d5c18; }
.health-dot.bad { background: #c55b49; box-shadow: 0 0 0 4px #c55b4918; }
.health-dot.pending { background: #b08b3f; }
.collections {
  display: flex;
  gap: 7px;
  padding: 0 0 22px;
  overflow-x: auto;
}
.collections button,
.view-controls button {
  border: 1px solid var(--line);
  background: white;
  border-radius: 30px;
  padding: 11px 19px;
  white-space: nowrap;
  color: var(--ink);
}
.collections button.selected,
.view-controls button.selected {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
#filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 21px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}
label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
input,
select {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
label.search {
  flex: 1;
  min-width: 230px;
}
.reset {
  align-self: end;
  padding: 11px;
  border: 0;
  background: transparent;
  color: var(--green);
}
.filter-note {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin: 15px 2px;
  font-size: 11px;
  color: var(--muted);
}
.filter-note label {
  flex-direction: row;
  align-items: center;
}
.results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0 23px;
  gap: 20px;
}
h2 {
  font:
    700 22px Manrope,
    sans-serif;
  margin: 0 0 8px;
}
#result-note {
  font-size: 12px;
  color: var(--muted);
}
.view-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.view-controls button {
  padding: 9px 13px;
  font-size: 12px;
}
.view-controls select {
  margin-right: 8px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #17372f10;
}
.property-art {
  position: relative;
  height: 205px;
  background: linear-gradient(125deg, #dfead5, #eef2e7);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: start;
}
.property-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.property-art.has-photo::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #0d2825b8);
  pointer-events: none;
}
.property-art.has-photo .badge,
.property-art.has-photo .save,
.property-art.has-photo .photo-note {
  z-index: 1;
}
.property-art.has-photo .photo-note {
  color: white;
  text-shadow: 0 1px 3px #000;
}
.property-art.has-photo .house {
  display: none;
}
.property-art.photo-failed .house {
  display: block;
}
.property-art.coastal {
  background: linear-gradient(120deg, #d5e8e5, #edf4e8);
}
.property-art.auction {
  background: linear-gradient(120deg, #ebe4d8, #f4eee5);
}
.property-art .house {
  position: absolute;
  bottom: 8px;
  right: 24px;
  font-size: 65px;
  opacity: 0.25;
}
.property-art small {
  position: absolute;
  left: 20px;
  bottom: 15px;
  color: #5f746c;
  font-size: 11px;
}
.badge {
  background: #fffe;
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.save {
  border: 0;
  border-radius: 50%;
  background: white;
  width: 31px;
  height: 31px;
  font-size: 21px;
  color: var(--green);
  z-index: 1;
}
.card-body {
  padding: 22px;
}
.price {
  font:
    800 27px Manrope,
    sans-serif;
  letter-spacing: -0.8px;
}
.price small {
  font: 400 10px "DM Sans";
  letter-spacing: 0;
  margin-left: 7px;
  text-transform: uppercase;
}
.address {
  display: block;
  margin-top: 13px;
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.address:hover,
.table-address:hover {
  color: var(--green);
  text-decoration: underline;
}
.city {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.portal-link {
  display: inline-block;
  color: var(--green);
  font-size: 11px;
  margin-top: 7px;
  text-decoration: none;
}
.table-address {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}
.facts {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.summary {
  font-size: 13px;
  min-height: 43px;
  line-height: 1.6;
  color: var(--muted);
  margin: 14px 0;
}
.evidence {
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  padding: 7px 9px;
  margin: 0 0 12px;
  background: #f3f0e5;
  color: #7a642e;
}
.evidence.verified { background: #e6f3eb; color: #246343; }
.evidence.corroborated { background: #e7f0ee; color: #315f58; }
.evidence.stale { background: #f7e7e3; color: #934938; }
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.card-actions,
.table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.table-actions {
  margin-top: 6px;
}
.status {
  color: #846423;
  font-size: 11px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #b7c9bf;
  border-radius: 999px;
  background: #f8fbf7;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}
.share-btn:hover {
  background: #eaf2ea;
  border-color: var(--green);
}
.share-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.share-btn.compact {
  min-height: 32px;
  padding: 4px 9px;
}
.details-btn {
  background: none;
  border: 0;
  color: var(--green);
  font-weight: 700;
  padding: 8px 0;
  font-size: 12px;
}
.empty {
  padding: 65px 25px;
  text-align: center;
  background: white;
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.empty p {
  max-width: 440px;
  margin: 15px auto;
}
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
th {
  background: #edf1e6;
  font-size: 11px;
  color: var(--muted);
}
#map {
  height: 520px;
  border-radius: 12px;
  z-index: 0;
}
#map-wrap p {
  font-size: 12px;
}
#sources-panel {
  padding-bottom: 35px;
}
.section-heading {
  max-width: 650px;
  margin: 12px 0 30px;
}
#source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.source-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.source-card h3 {
  font-size: 17px;
}
.source-card p {
  font-size: 12px;
}
.source-card a {
  color: var(--green);
  font-size: 13px;
}
.source-health {
  font-size: 11px;
  line-height: 1.6;
  padding: 10px;
  border-radius: 7px;
  background: #edf5ef;
  color: #315f47;
}
.source-health.degraded,
.source-health.down { background: #f7e7e3; color: #934938; }
.source-health.never_run { background: #f0f1ed; color: #69726c; }
.fine-print { font-size: 10px !important; }
.source-card small {
  font-size: 10px;
  color: var(--muted);
}
footer {
  margin-top: 70px;
  border-top: 1px solid var(--line);
  padding: 30px 5%;
  display: flex;
  gap: 50px;
  align-items: start;
}
footer span {
  white-space: nowrap;
  font-weight: 700;
}
footer p {
  font-size: 11px;
  max-width: 760px;
  margin: 0;
}
dialog {
  border: 0;
  border-radius: 18px;
  width: min(740px, 94vw);
  max-height: 90vh;
  padding: 38px;
  color: var(--ink);
}
dialog::backdrop {
  background: #102f28aa;
  backdrop-filter: blur(3px);
}
#close-detail {
  position: absolute;
  right: 18px;
  top: 12px;
  background: none;
  border: 0;
  font-size: 30px;
  color: var(--ink);
}
dialog h2 {
  margin-top: 15px;
  font-size: 30px;
}
dialog h3 {
  font-size: 14px;
  margin: 25px 0 6px;
}
dialog p {
  font-size: 13px;
  margin: 6px 0;
}
dialog a {
  color: var(--green);
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: -38px -38px 24px;
  border-radius: 18px 18px 0 0;
  overflow: hidden;
  background: #e8ece6;
}
.detail-gallery img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.detail-gallery img:first-child:nth-last-child(1),
.detail-gallery img:first-child:nth-last-child(n + 3) {
  grid-column: span 2;
  height: 310px;
}
.photo-credit {
  font-size: 10px;
  margin: -12px 0 18px;
}
.primary-link {
  display: inline-block;
  margin-top: 22px;
  background: var(--green);
  color: white !important;
  border-radius: 8px;
  padding: 13px 20px;
  text-decoration: none;
}
.external-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.external-links .share-btn {
  margin-top: 22px;
}
.secondary-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}
#notice:not(:empty) {
  padding: 16px;
  background: #fff4d9;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1450px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1000px) {
  .hero-note {
    display: none;
  }
  .grid,
  #source-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results-head {
    align-items: start;
    flex-direction: column;
  }
  .filter-note {
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .catalog-health { align-items: flex-start; flex-wrap: wrap; }
  .catalog-health span:last-child { width: 100%; margin-left: 20px; }
  header {
    flex-direction: column;
    align-items: start;
    padding: 15px 5%;
    gap: 15px;
  }
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }
  .nav {
    font-size: 12px;
  }
  .hero {
    padding-top: 35px;
    min-height: 290px;
  }
  h1 {
    letter-spacing: -1.3px;
  }
  .grid,
  #source-grid {
    grid-template-columns: 1fr;
  }
  #filters {
    padding: 14px;
    gap: 10px;
  }
  #filters label {
    flex: 1;
    min-width: 125px;
  }
  #filters .search {
    min-width: 100%;
  }
  .view-controls {
    width: 100%;
    flex-wrap: wrap;
  }
  .view-controls select {
    max-width: 160px;
  }
  .view-controls button {
    padding: 9px;
  }
  footer {
    flex-direction: column;
    gap: 15px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  dialog {
    padding: 26px;
  }
  .detail-gallery {
    margin: -24px -24px 20px;
  }
  .detail-gallery img,
  .detail-gallery img:first-child:nth-last-child(n + 3) {
    height: 180px;
  }
  .property-art {
    height: 180px;
  }
  .card-bottom {
    align-items: flex-end;
  }
  .card-actions {
    gap: 8px;
  }
  .share-btn {
    min-height: 42px;
  }
}
