:root { color-scheme: light; font-family: system-ui, sans-serif; color: #17342d; background: #f3f6f2; }
body { margin: 0; }
main { margin: 2rem auto; padding: clamp(1rem, 4vw, 3rem); max-width: 56rem; background: white; border: 1px solid #d9e4da; border-radius: 1rem; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
p { line-height: 1.6; }
a { color: #1c6245; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; border-bottom: 1px solid #d9e4da; padding-bottom: 1rem; }
nav form { margin: 0; }
label { display: block; margin: 1rem 0 .3rem; }
input, select, button { font: inherit; padding: .65rem; border: 1px solid #789487; border-radius: .3rem; max-width: 100%; box-sizing: border-box; }
input:not([type=checkbox]) { width: min(100%, 28rem); }
button { background: #1c6245; color: white; cursor: pointer; margin-top: 1rem; }
nav button { margin: 0; }
:focus-visible { outline: 3px solid #c58013; outline-offset: 3px; }
fieldset { min-width: 0; border: 1px solid #c8d7ce; margin: 1.5rem 0; padding: 1rem; }
.error { border-left: 4px solid #a52626; padding: 1rem; color: #832020; background: #fff4f4; }
footer { margin-top: 3rem; color: #526e60; font-size: .85rem; overflow-wrap: anywhere; }
.filter-grid, .listing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.search-form { margin-bottom: 2rem; }
.filter-grid input, .filter-grid select { width: 100%; }
.listing-card { border: 1px solid #d9e4da; padding: 1rem; border-radius: .5rem; overflow-wrap: anywhere; }
.listing-card img { width: 100%; height: 12rem; object-fit: cover; }
.missing-image { min-height: 8rem; background: #f3f6f2; padding: 1rem; }
.price { font-size: 1.3rem; font-weight: bold; }
.listing-grid, .saved-filter { margin: 1.5rem 0; }
.saved-filter form { display: inline-block; }
.default-filter { color: #c58013; font-size: 1.15em; }
.property-map { height: 28rem; max-height: 65vh; background: #e4eae2; }
.gallery { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap: 1rem; }
.gallery img { width: 100%; height: 10rem; object-fit: cover; }
dialog { max-width: 90vw; max-height: 90vh; }
dialog::backdrop { background: #000b; }
dialog img { display: block; max-width: 85vw; max-height: 70vh; object-fit: contain; }
.parameters { display: grid; grid-template-columns: minmax(7rem,1fr) 2fr; gap: .5rem; }
.parameters dt { font-weight: bold; }.parameters dd { margin: 0; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
textarea { font: inherit; width: 100%; box-sizing: border-box; }
.table-scroll, pre { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; } th, td { padding: .6rem; border-bottom: 1px solid #d9e4da; text-align: left; }
.comment { border-bottom: 1px solid #d9e4da; padding: .5rem; }
#price-chart svg { width: 100%; height: 10rem; }
#price-chart polyline { fill: none; stroke: #1c6245; stroke-width: 3; }
@media (max-width: 600px) { main { margin: 0; border-radius: 0; } nav { gap: .6rem; } .parameters { grid-template-columns: 1fr; } .parameters dd { margin-bottom: .6rem; } }
