:root {
  color-scheme: light;
  --ink: #16392e;
  --muted: #566760;
  --line: #dce3db;
  --canvas: #f6f7f3;
  --paper: #fff;
  --gold: #e8c583;
  --serif: "Noto Serif", Georgia, serif;
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--canvas); font: 1rem/1.6 var(--sans); }
button, select, input, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #9a6418; outline-offset: 4px; }
.frame { width: min(100% - 96px, 1232px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 9; top: 10px; left: 10px; transform: translateY(-150%); padding: 10px 16px; background: white; }
.skip-link:focus { transform: none; }
.site-header { background: var(--paper); }
.header-inner { height: 77px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; justify-self: start; flex-shrink: 0; }
.brand strong { display: block; font: 600 1.48rem/1.13 var(--serif); letter-spacing: -.045em; }
.brand small { display: block; margin-top: 4px; font-size: .65rem; font-weight: 700; letter-spacing: .11em; white-space: nowrap; }
.header-inner nav { display: flex; align-items: center; gap: 34px; font-size: .9rem; font-weight: 600; }
.header-inner nav a { padding: 8px 0; }
.header-inner nav a:hover, .footer-inner > a:last-child:hover { text-decoration: underline; text-underline-offset: 5px; }
.saved-toggle { justify-self: end; display: inline-flex; gap: 8px; align-items: center; padding: 8px 11px; background: white; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.saved-toggle:hover, .saved-toggle[aria-pressed="true"] { background: #eaf1e9; }
.save-count { display: grid; place-items: center; padding-inline: 5px; min-width: 21px; min-height: 21px; border-radius: 11px; background: #e6eee5; font-size: .75rem; }
[data-icon] { display: inline-flex; flex: 0 0 auto; }
[data-icon] svg { display: block; width: 19px; height: 19px; }
.hero { position: relative; background: #16372e; color: white; }
.hero::after, .hero-image { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 61%; }
.hero::after { content: ""; background: linear-gradient(90deg, #0c271fe8, #102c24b5 33%, #142a2140 65%, #152c1e0f), linear-gradient(0deg, #122a2490, transparent 41%); }
.hero-inner { position: relative; z-index: 1; min-height: 535px; padding-block: 84px 35px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 710px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #406d58; font-size: .875rem; font-weight: 700; letter-spacing: .11em; line-height: 1.5; }
.eyebrow > span { display: inline-block; width: 24px; height: 1px; background: currentColor; flex: none; }
.hero .eyebrow, .consult .eyebrow { color: #f2d69d; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.055em; }
h1 { margin-top: 15px; font-size: clamp(3.45rem, 7vw, 5.85rem); line-height: 1.075; }
h1 em { color: #f0d49c; font-weight: inherit; }
.hero-copy > p:last-child { max-width: 430px; margin-top: 21px; color: #f4f5ed; font-size: 1.045rem; }
.search { align-self: start; width: min(100%, 990px); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; align-items: center; gap: 8px; padding: 11px; border-radius: 13px; background: white; box-shadow: 0 10px 32px #061f2042; color: var(--ink); }
.search-field { display: flex; gap: 10px; align-items: center; min-width: 0; padding: 0 11px 0 13px; border-right: 1px solid var(--line); }
.search-field > [data-icon] { color: #42745c; }
.field-copy { display: block; width: 100%; min-width: 0; font-size: .875rem; font-weight: 700; }
select { appearance: none; padding-right: 22px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='m3 5 4 4 4-4' stroke='%23436354' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; }
.field-copy select { display: block; width: 100%; padding-block: 3px; padding-left: 0; border: 0; background-color: transparent; color: var(--muted); font-size: .875rem; font-weight: 400; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 10px 20px; border: 1px solid transparent; border-radius: 8px; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.button-primary { color: white; background: #1b513e; }
.button-primary:hover { background: #123c2e; }
.search .button { min-height: 52px; padding-inline: 23px; }
.catalog { padding-block: 65px 77px; scroll-margin-top: 16px; }
.section-heading { margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4.45vw, 3.6rem); line-height: 1.12; }
.section-heading h2, .neighborhood-inner h2, .consult h2 { margin-top: 9px; }
.catalog-note { color: var(--muted); margin-top: 10px; font-size: .9rem; }
.catalog-toolbar, .result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.catalog-toolbar { padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.type-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .sort select { min-height: 40px; border: 1px solid #d6dfd5; border-radius: 7px; background-color: white; font-size: .875rem; }
.chip { padding: 7px 15px; font-weight: 600; }
.chip:hover, .area-link:hover { background: #eaf1e7; }
.chip[aria-pressed="true"] { background: #254d3e; border-color: #254d3e; color: white; }
.sort { display: flex; align-items: center; gap: 9px; font-size: .875rem; color: var(--muted); }
.sort select { padding: 7px 29px 7px 11px; background-position: right 9px center; color: var(--ink); }
.result-bar { min-height: 46px; font-size: .875rem; color: var(--muted); }
.text-button { border: 0; padding: 5px 0 5px 7px; background: transparent; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.listings { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.card { min-width: 0; overflow: hidden; background: white; border: 1px solid #e0e6de; border-radius: 13px; box-shadow: 0 4px 18px #17352708; }
.card-photo { position: relative; background: #dae4d9; }
.photo-link { display: block; overflow: hidden; }
.photo-link:focus-visible { outline-offset: -5px; }
.card-photo img { width: 100%; height: auto; aspect-ratio: 1.58; object-fit: cover; transition: transform .25s ease; }
.photo-link:hover img { transform: scale(1.035); }
.category { position: absolute; top: 12px; left: 12px; pointer-events: none; background: #fffef6f5; padding: 5px 9px; color: #274a3c; border-radius: 5px; font-size: .875rem; font-weight: 600; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e5e9e2; background: #ffffff; box-shadow: 0 2px 7px #0001; }
.icon-button:hover { background: #edf5eb; }
.heart-button { position: absolute; top: 12px; right: 12px; }
.heart-button[aria-pressed="true"] svg { fill: #a04543; stroke: #a04543; }
.card-body { padding: 17px 17px 11px; }
.price { color: #20523f; font: 600 1.7rem/1.1 var(--serif); letter-spacing: -.05em; }
.card h3 { margin-top: 9px; color: #203f32; font-size: 1.05rem; font-weight: 700; line-height: 1.45; }
.card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.location { display: flex; align-items: center; gap: 5px; margin-top: 6px; color: var(--muted); font-size: .875rem; }
.location svg, .specs svg { width: 16px; height: 16px; }
.specs { display: flex; flex-wrap: wrap; gap: 7px 15px; margin: 14px 0 0; padding: 11px 0 2px; border-top: 1px solid var(--line); list-style: none; color: #475d51; font-size: .875rem; }
.specs li { display: flex; align-items: center; gap: 5px; }
.empty { grid-column: 1 / -1; padding: 35px 24px; border: 1px dashed #afbeb0; border-radius: 12px; text-align: center; }
.empty p { margin: 6px 0 15px; color: var(--muted); }
.neighborhoods { padding-block: 50px; background: #e8eee5; }
.neighborhood-inner { display: grid; grid-template-columns: minmax(215px, 1fr) 1.25fr; align-items: center; gap: 28px; }
.area-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: end; }
.area-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 13px; background: #f9fbf7; border: 1px solid #d5dfd3; border-radius: 7px; font-size: .875rem; font-weight: 600; }
.area-link svg { width: 16px; height: 16px; }
.consult { padding-block: 63px; }
.consult-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 41px 48px; border-radius: 14px; color: white; background: #183f32; }
.consult-inner p:last-child { margin-top: 12px; max-width: 540px; color: #ebf0e8; }
.button-light { background: #f2dbad; color: #244435; }
.button-light:hover { background: #ffedc5; }
.site-footer { background: white; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-block: 23px; font-size: .875rem; }
.footer-inner p { color: var(--muted); }
dialog { width: min(100% - 28px, 688px); max-height: calc(100% - 36px); max-height: calc(100dvh - 36px); border: 0; border-radius: 14px; padding: 0; color: var(--ink); background: white; box-shadow: 0 18px 75px #0b241b48; }
dialog::backdrop { background: #0a221bd0; }
body:has(dialog[open]) { overflow: hidden; }
.dialog-close { position: absolute; top: 12px; right: 12px; z-index: 2; }
.detail-image { width: 100%; height: clamp(200px, 43vh, 410px); object-fit: cover; }
.detail-body, .inquiry-content { padding: 27px; }
.detail-body h2, .inquiry-content h2 { font-size: clamp(1.85rem, 5vw, 2.75rem); margin-top: 6px; }
.detail-body .price { margin-top: 14px; }
.detail-description { margin-block: 16px; color: var(--muted); }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.detail-note { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.inquiry-content { position: relative; }
.inquiry-note { margin-top: 10px; color: var(--muted); }
.inquiry-form, .draft { display: grid; gap: 12px; margin-top: 18px; }
.inquiry-form label, .draft label { display: block; font-size: .875rem; font-weight: 600; }
.inquiry-form label span { color: var(--muted); font-weight: 400; }
.inquiry-form :is(select, input), .draft textarea { display: block; width: 100%; min-height: 43px; padding: 8px 12px; margin-top: 5px; border: 1px solid #c9d8ca; border-radius: 7px; background-color: #fbfdfb; font-size: 1rem; }
.inquiry-form select { padding-right: 30px; background-position: right 10px center; }
.inquiry-form button, .draft button { justify-self: start; white-space: normal; }
.draft { padding-top: 14px; border-top: 1px solid var(--line); }
.draft textarea { resize: vertical; }
#copy-status { color: #20523f; font-size: .875rem; }
@media (max-width: 920px) {
  .frame { width: calc(100% - 56px); }
  .header-inner nav { gap: 20px; }
  .hero-inner { min-height: 510px; padding-top: 82px; }
  .listings { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 640px) {
  .frame { width: calc(100% - 32px); }
  .header-inner { grid-template-columns: 1fr auto; height: auto; min-height: 65px; padding-block: 12px 3px; gap: 1px 14px; }
  .header-inner nav { grid-row: 2; grid-column: 1 / -1; gap: 19px; flex-wrap: wrap; }
  .brand strong { font-size: 1.33rem; }
  .hero::after { background: linear-gradient(90deg, #0c271fe3, #102c248c 62%, #142a2152), linear-gradient(0deg, #102e24a3, transparent); }
  .hero-image { object-position: 64% center; }
  .hero-inner { min-height: 0; padding-block: 49px 20px; gap: 26px; }
  h1 { font-size: clamp(2.65rem, 10.5vw, 4.4rem); }
  .hero-copy > p:last-child { margin-top: 15px; }
  .eyebrow { font-size: .79rem; }
  .search { grid-template-columns: 1fr 1fr; gap: 9px; padding: 9px; }
  .search-field { gap: 6px; padding-inline: 4px; }
  .search-field:nth-child(2) { border: 0; }
  .search-field > [data-icon] svg { width: 16px; height: 16px; }
  .field-copy, .field-copy select { font-size: .84rem; }
  .search .button { padding: 7px; min-height: 44px; }
  .catalog { padding-block: 43px 48px; }
  .catalog-toolbar { align-items: start; flex-direction: column; }
  .chip { padding-inline: 10px; }
  .listings { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .neighborhoods { padding-block: 36px; }
  .neighborhood-inner { grid-template-columns: 1fr; gap: 17px; }
  .area-links { justify-content: start; }
  .consult { padding-block: 39px; }
  .consult-inner { flex-direction: column; align-items: start; gap: 20px; padding: 25px; }
  .footer-inner { flex-wrap: wrap; column-gap: 16px; row-gap: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
