:root {
  font-family: "DM Sans", sans-serif;
  color: #1f2926;
  background: #f4efe6;
  font-synthesis: none;
  --ink: #1f2926;
  --green: #28594e;
  --orange: #d56e45;
  --paper: #fbf8f1;
  --line: #d8d0c3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 max(22px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid rgba(48, 54, 49, .12);
  background: rgba(251, 248, 241, .9); backdrop-filter: blur(16px);
}
.brand { color: var(--ink); font: 600 27px "Playfair Display", serif; text-decoration: none; }
.brand span { color: var(--orange); }
.site-header p { margin: 0; color: #68716e; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

main { width: min(1180px, calc(100% - 44px)); margin: auto; }
.hero { padding: 86px 0 68px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 20px; color: var(--orange); font-size: 12px; font-weight: 700; letter-spacing: .19em; }
.hero h1 { max-width: 900px; margin: 0; font: 600 clamp(54px, 8vw, 96px)/.96 "Playfair Display", serif; letter-spacing: -.055em; }
.hero h1 em { color: var(--green); font-weight: 600; }
.hero-note { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; color: #66706c; font-size: 13px; }
.hero-note span { display: flex; align-items: center; gap: 8px; }
.hero-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }

.toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; align-items: center; gap: 18px; padding: 28px 0; }
.search { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.search span { color: var(--green); font-size: 22px; }
.search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.filters { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
.filters button, .empty button { padding: 10px 13px; border: 1px solid var(--line); border-radius: 99px; background: transparent; color: #525c58; white-space: nowrap; font-size: 12px; font-weight: 600; }
.filters button.active { border-color: var(--green); background: var(--green); color: white; }
.filters span { margin-left: 4px; opacity: .6; }
.sort-label { display: flex; align-items: center; gap: 8px; color: #747c79; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.sort-label select { padding: 10px 30px 10px 11px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-size: 12px; text-transform: none; letter-spacing: 0; }

.results-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 0 20px; }
.results-line strong { font: 600 22px "Playfair Display", serif; }
.results-line>span { margin-left: auto; color: #7b827f; font-size: 11px; }
.view-toggle { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #f1ece3; }
.view-toggle button { padding: 6px 12px; border: 0; border-radius: 6px; background: transparent; color: #68716d; font-size: 10px; font-weight: 700; }
.view-toggle button.active { background: white; color: var(--green); box-shadow: 0 2px 8px rgba(37,48,42,.1); }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; min-height: 360px; border: 1px solid var(--line); border-radius: 16px; background: white; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(36, 45, 40, .1); }
.card-top { position: relative; display: flex; align-items: flex-end; min-height: 118px; padding: 18px; overflow: hidden; background: var(--tone, #d8e2dc); }
.card-top::after { content: ""; position: absolute; width: 150px; height: 150px; right: -38px; top: -70px; border: 25px solid rgba(255,255,255,.32); border-radius: 50%; }
.district { position: relative; z-index: 1; margin: 0; color: rgba(25, 43, 37, .72); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.star { position: absolute; z-index: 2; top: 13px; right: 13px; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.85); color: var(--green); font-size: 18px; }
.star.saved { background: var(--green); color: #f6d98d; }
.card-body { padding: 21px 19px 18px; }
.card h2 { margin: 0 42px 4px 0; font: 600 25px/1.05 "Playfair Display", serif; letter-spacing: -.02em; }
.unit { min-height: 18px; margin: 0 0 18px; color: #747c79; font-size: 11px; }
.price { display: flex; align-items: baseline; gap: 5px; margin-bottom: 18px; color: var(--green); }
.price strong { font: 600 27px "Playfair Display", serif; }
.price small { color: #76807c; font-size: 10px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 14px 0; border-block: 1px solid #e7e1d8; }
.facts div { display: grid; gap: 3px; }
.facts dt { color: #8a918e; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 0; font-size: 12px; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; min-height: 29px; padding-top: 14px; }
.tags span { padding: 5px 8px; border-radius: 5px; background: #f1eee8; color: #59615e; font-size: 9px; font-weight: 600; }
.card-links { display: flex; gap: 7px; margin-top: 14px; }
.card-links a { flex: 1; padding: 9px 10px; border-radius: 8px; background: var(--green); color: white; text-align: center; text-decoration: none; font-size: 10px; font-weight: 700; }
.card-links a.secondary { border: 1px solid var(--line); background: transparent; color: var(--green); }

.map-view { margin-bottom: 20px; }
.map-view[hidden] { display: none; }
#map { height: min(68vh, 720px); min-height: 520px; border: 1px solid var(--line); border-radius: 16px; background: #e7e1d8; overflow: hidden; }
.map-view>p { margin: 8px 3px 0; color: #818985; font-size: 9px; }
.map-view>p a { color: inherit; }
.leaflet-container { font-family: "DM Sans", sans-serif; }
.leaflet-control-attribution { display: none; }
.price-pin { width: auto !important; height: auto !important; }
.price-pin span { display: block; padding: 7px 9px; border: 2px solid white; border-radius: 99px; background: var(--green); color: white; box-shadow: 0 4px 13px rgba(27,43,37,.3); font-size: 10px; font-weight: 800; white-space: nowrap; transition: transform .15s; }
.price-pin:hover span { transform: scale(1.08); background: var(--orange); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 8px 28px rgba(26,40,34,.18); }
.leaflet-popup-content { width: 190px !important; margin: 15px; }
.map-popup small { color: var(--orange); font-size: 8px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.map-popup h3 { margin: 4px 0 2px; font: 600 19px "Playfair Display", serif; }
.map-popup>span { color: #747c79; font-size: 9px; }
.map-popup p { margin: 10px 0; color: var(--green); font-size: 12px; font-weight: 800; }
.map-popup-links { display: flex; gap: 6px; }
.map-popup-links a { flex: 1; padding: 7px; border-radius: 6px; background: var(--green); color: white; text-align: center; text-decoration: none; font-size: 9px; font-weight: 700; }
.map-popup-links a:last-child:not(:first-child) { background: #ede9e1; color: var(--green); }

.empty { padding: 100px 20px; text-align: center; }
.empty h2 { margin: 0 0 7px; font: 600 34px "Playfair Display", serif; }
.empty p { color: #747c79; }
.empty button { border-color: var(--green); background: var(--green); color: white; }
.fine-print { display: grid; grid-template-columns: 180px 1fr; gap: 28px; margin: 68px 0; padding: 30px; border-radius: 14px; background: #273f38; color: white; }
.fine-print strong { font: 600 19px "Playfair Display", serif; }
.fine-print p { margin: 0; color: #c8d2ce; font-size: 12px; line-height: 1.65; }
footer { display: flex; justify-content: space-between; align-items: center; padding: 32px max(22px, calc((100vw - 1180px) / 2)); background: #efe8dc; }
footer span { font: 600 22px "Playfair Display", serif; }
footer p { margin: 0; color: #737a77; font-size: 11px; }

@media (max-width: 960px) {
  .toolbar { grid-template-columns: 1fr auto; }
  .filters { grid-row: 2; grid-column: 1 / -1; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  main { width: calc(100% - 28px); }
  .site-header { height: 62px; padding: 0 14px; }
  .site-header p { font-size: 9px; }
  .hero { padding: 60px 0 44px; }
  .hero h1 { font-size: 51px; }
  .hero-note { gap: 12px 20px; margin-top: 28px; }
  .toolbar { grid-template-columns: 1fr; gap: 11px; padding-bottom: 18px; }
  .filters { grid-row: auto; grid-column: auto; margin-right: -14px; padding-right: 14px; }
  .sort-label { justify-content: space-between; }
  .results-line>span { display: none; }
  .grid { grid-template-columns: 1fr; }
  #map { height: 68vh; min-height: 440px; margin-inline: -14px; border-radius: 0; }
  .card { min-height: 0; }
  .fine-print { grid-template-columns: 1fr; gap: 12px; margin: 44px 0; padding: 24px; }
  footer { padding: 26px 14px; }
}
