:root {
  color-scheme: dark;
  --ink: #181715;
  --panel: #22201d;
  --panel-light: #2b2824;
  --line: rgba(230, 214, 184, .18);
  --text: #f2eee5;
  --muted: #b2aa9b;
  --gold: #d9b578;
  --gold-light: #f2d69d;
  --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); background: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; height: 80px; padding: 0 clamp(22px, 6vw, 92px); border-bottom: 1px solid var(--line); background: rgba(24,23,21,.96); backdrop-filter: blur(14px); }
.site-brand { display: inline-flex; align-items: center; gap: 11px; min-width: 205px; }
.brand-symbol { display: grid; place-items: center; width: 36px; height: 42px; color: var(--gold-light); font: 42px/1 var(--serif); }
.site-brand strong { display: block; color: #f5f0e5; font: 28px/.9 var(--serif); letter-spacing: .11em; }
.site-brand small { display: block; margin-top: 7px; color: var(--muted); font-size: 8px; letter-spacing: .24em; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; color: #d9d2c4; font-size: 12px; }
.site-nav a:hover,.footer-admin:hover { color: var(--gold-light); }
.admin-link { padding: 11px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--gold-light); font-size: 10px; transition: .18s; }
.admin-link:hover { border-color: var(--gold); background: rgba(217,181,120,.08); }
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); background: #292520; }
.hero-image,.hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; object-position: center 55%; opacity: .68; }
.hero-shade { background: linear-gradient(90deg,rgba(20,19,18,.97) 0%,rgba(20,19,18,.82) 37%,rgba(20,19,18,.22) 100%),linear-gradient(0deg,rgba(20,19,18,.50),transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(680px, 100%); margin-left: clamp(22px, 8vw, 122px); padding: 82px 24px 90px 0; }
.eyebrow { margin: 0 0 17px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.eyebrow span { color: #c4b9a5; }
.hero h1 { margin: 0; color: #f4eee1; font: clamp(42px,6.1vw,78px)/.99 var(--serif); font-weight: 400; letter-spacing: -.035em; }
.hero h1 em,.section-heading h2 em,.contact-section h2 em { color: var(--gold-light); font-weight: 400; }
.hero-copy { max-width: 390px; margin: 23px 0 26px; color: #d2cbbe; font-size: 13px; line-height: 1.8; }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 21px; padding: 0 17px; border-radius: 7px; font-size: 10px; font-weight: 700; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-1px); }
.button-gold { color: #251e15; background: linear-gradient(110deg,#f0d394,#c59a5d); }
.button-gold:hover { background: linear-gradient(110deg,#ffe3a5,#d1a56a); }
.hero-caption { position: absolute; right: clamp(22px, 6vw, 92px); bottom: 26px; color: rgba(249,239,218,.72); font-size: 8px; letter-spacing: .24em; }
.listing-section { max-width: 1420px; margin: 0 auto; padding: 80px clamp(22px, 6vw, 86px) 92px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2,.contact-section h2 { margin: 0; color: #f4eee1; font: clamp(30px,4vw,44px)/1.06 var(--serif); font-weight: 400; letter-spacing: -.02em; }
.section-heading > div:first-child > p:last-child { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.listing-count { padding-bottom: 4px; color: #cfc5b4; font-size: 10px; white-space: nowrap; }
.filters { display: flex; gap: 9px; margin: 28px 0 20px; }
.search-field,.select-field { min-height: 42px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 7px; background: #201e1c; }
.search-field { flex: 1; max-width: 430px; gap: 10px; padding: 0 12px; color: var(--gold); }
.search-field span { font: 26px/.8 var(--serif); transform: rotate(-20deg); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 10px; }
.search-field input::placeholder { color: #8e877b; }
.select-field select { min-width: 155px; height: 40px; padding: 0 29px 0 12px; border: 0; outline: 0; color: #dfd7c9; background: transparent; font-size: 10px; }
.select-field option { color: var(--text); background: #242220; }
.property-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.property-card { overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(145deg,#282522,#211f1c); transition: transform .2s,border-color .2s; }
.property-card:hover { transform: translateY(-3px); border-color: rgba(217,181,120,.52); }
.property-photo { position: relative; display: block; width: 100%; height: 215px; padding: 0; overflow: hidden; border: 0; background: #312b24; cursor: pointer; }
.property-photo img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s; }
.property-card:hover .property-photo img { transform: scale(1.04); }
.available-tag { position: absolute; top: 12px; left: 12px; padding: 6px 8px; border: 1px solid rgba(241,214,164,.36); border-radius: 4px; color: #f5dfb2; background: rgba(26,24,21,.83); font-size: 8px; letter-spacing: .06em; text-transform: uppercase; }
.property-card-body { padding: 15px 16px 16px; }
.property-type { margin-bottom: 7px; color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.property-card h3 { margin: 0; color: #f0e6d4; font: 20px/1.2 var(--serif); font-weight: 400; }
.property-location { margin-top: 7px; color: var(--muted); font-size: 9px; }
.property-price { margin-top: 13px; color: var(--gold-light); font: 22px/1 var(--serif); }
.property-facts { display: flex; flex-wrap: wrap; gap: 13px; margin: 14px 0 15px; padding-top: 12px; border-top: 1px solid var(--line); color: #d0c8b8; font-size: 9px; }
.property-actions { display: flex; gap: 8px; }
.property-actions .button { flex: 1; min-height: 36px; gap: 8px; padding: 0 9px; font-size: 9px; }
.button-outline { border: 1px solid rgba(217,181,120,.55); color: var(--gold-light); background: rgba(217,181,120,.05); }
.button-outline:hover { background: rgba(217,181,120,.12); }
.catalog-message { grid-column: 1/-1; padding: 48px 20px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: 12px; line-height: 1.7; }
.contact-section { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; align-items: center; gap: 25px; margin: 0 clamp(22px, 6vw, 86px) 74px; padding: 36px clamp(22px,5vw,58px); border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(ellipse at 0 100%,rgba(196,155,93,.12),transparent 55%),#211f1c; }
.contact-mark { color: var(--gold); font: 61px/1 var(--serif); text-align: center; }
.contact-section .eyebrow { margin-bottom: 9px; }
.contact-section h2 { font-size: clamp(28px,3.3vw,38px); }
.contact-section > div:nth-child(2) > p:last-child { max-width: 470px; margin: 10px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.site-footer { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(22px, 6vw, 86px); border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.footer-brand { min-width: auto; }
.footer-brand .brand-symbol { width: 26px; height: 30px; font-size: 31px; }
.footer-brand strong { font-size: 19px; }
.footer-brand small { margin-top: 5px; font-size: 6px; }
.footer-admin { color: #d8c8aa; }
.modal-root:empty { display: none; }
.modal-root { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
.detail-modal-backdrop { position: absolute; inset: 0; display: grid; place-items: center; padding: 18px; }
.detail-modal { position: relative; width: min(900px,100%); max-height: min(92vh,850px); overflow: auto; border: 1px solid var(--line); border-radius: 13px; background: #24211e; box-shadow: 0 25px 90px rgba(0,0,0,.55); }
.detail-close { position: absolute; z-index: 2; top: 12px; right: 12px; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; color: white; background: rgba(0,0,0,.5); font-size: 19px; cursor: pointer; }
.detail-photo { width: 100%; height: min(46vh,390px); display: block; object-fit: cover; }
.detail-body { padding: 21px 24px 24px; }
.detail-body h2 { margin: 0; color: #f1e6d3; font: 29px/1.1 var(--serif); font-weight: 400; }
.detail-price { margin-top: 11px; color: var(--gold-light); font: 25px/1 var(--serif); }
.detail-description { max-width: 700px; margin: 15px 0 18px; color: #d0c8ba; font-size: 11px; line-height: 1.75; white-space: pre-line; }
.detail-contact { margin-top: 18px; }
.toast-root { position: fixed; z-index: 80; right: 18px; bottom: 18px; max-width: min(360px,calc(100vw - 36px)); padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--text); background: #292622; box-shadow: 0 12px 35px rgba(0,0,0,.4); font-size: 10px; line-height: 1.5; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.toast-root.show { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .hero { min-height: 505px; }
  .hero-shade { background: linear-gradient(90deg,rgba(20,19,18,.92),rgba(20,19,18,.64) 64%,rgba(20,19,18,.24)),linear-gradient(0deg,rgba(20,19,18,.48),transparent 60%); }
  .property-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 620px) {
  .site-header { height: 69px; gap: 8px; padding: 0 16px; }
  .site-brand { min-width: 0; gap: 7px; }
  .brand-symbol { width: 28px; height: 34px; font-size: 34px; }
  .site-brand strong { font-size: 22px; }
  .site-brand small { margin-top: 5px; font-size: 6px; letter-spacing: .19em; }
  .site-nav { gap: 13px; margin-left: auto; font-size: 9px; }
  .admin-link { padding: 9px 8px; font-size: 8px; white-space: nowrap; }
  .hero { min-height: 475px; align-items: end; }
  .hero-image { object-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg,rgba(20,19,18,.97),rgba(20,19,18,.66) 65%,rgba(20,19,18,.25)); }
  .hero-content { margin-left: 21px; padding: 0 20px 75px 0; }
  .hero h1 { font-size: clamp(42px,12vw,62px); }
  .hero-copy { max-width: 330px; font-size: 11px; }
  .hero-caption { right: 20px; bottom: 19px; font-size: 7px; }
  .listing-section { padding: 55px 17px 62px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; }
  .section-heading h2 { font-size: 35px; }
  .section-heading > div:first-child > p:last-child { max-width: 330px; font-size: 10px; line-height: 1.6; }
  .listing-count { font-size: 9px; }
  .filters { flex-direction: column; margin: 20px 0 15px; }
  .search-field { min-height: 43px; max-width: none; }
  .select-field select { width: 100%; }
  .property-grid { grid-template-columns: 1fr; gap: 12px; }
  .property-photo { height: 220px; }
  .contact-section { grid-template-columns: 42px 1fr; gap: 14px; margin: 0 17px 50px; padding: 24px 17px; }
  .contact-mark { font-size: 44px; }
  .contact-section .button { grid-column: 1/-1; }
  .site-footer { align-items: flex-start; flex-wrap: wrap; padding: 20px 17px; }
  .site-footer > span { order: 3; width: 100%; }
  .detail-body { padding: 17px; }
  .detail-body h2 { padding-right: 25px; font-size: 24px; }
  .detail-photo { height: 245px; }
}
