:root {
  --ink: #111c25;
  --muted: #50606a;
  --paper: #f9f8f4;
  --white: #fff;
  --line: #deded5;
  --gold: #dfb477;
  --gold-dark: #755421;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", Arial, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; color: var(--ink); font: 500 1rem/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
input, select, textarea { min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #8a6028; outline-offset: 4px; }
main:focus { outline: 0; }
.wrap { width: min(var(--wrap), calc(100% - 80px)); margin-inline: auto; }
.section { padding-block: 83px; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 15; padding: .7rem 1rem; background: var(--white); }

h1, h2, h3, p { margin: 0; }
h1, h2 { font: 400 3.65rem/.98 var(--serif); letter-spacing: -.028em; }
h3 { line-height: 1.3; }
p + p { margin-top: 1rem; }
.kicker { display: flex; align-items: center; gap: .65rem; color: var(--gold-dark); font-size: .875rem; line-height: 1.4; font-weight: 800; letter-spacing: .145em; text-transform: uppercase; }
.kicker::before { content: ""; width: 21px; height: 1px; flex: 0 0 auto; background: currentColor; }
.kicker + h1, .kicker + h2 { margin-top: .9rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 47px; padding: .68rem 1.15rem; border: 1px solid transparent; border-radius: 6px; font-size: .875rem; line-height: 1.4; font-weight: 800; white-space: nowrap; transition: background-color .22s, color .22s, border-color .22s, box-shadow .22s; }
.button-outline { border-color: #bdbfba; background: transparent; color: var(--ink); }
.button-outline:hover { color: var(--white); background: var(--ink); border-color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #2b414e; box-shadow: 0 4px 13px #111c2525; }
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:hover { background: #f2ce9c; }
.text-link { text-decoration: underline; text-underline-offset: .25em; text-decoration-color: #ae885a; }
.text-link:hover { color: var(--gold-dark); }

.site-header { position: relative; z-index: 5; background: var(--paper); border-bottom: 1px solid #deded5a0; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; gap: 28px; }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 4px; width: fit-content; line-height: .89; }
.brand b { color: #986b34; font-size: 2.64rem; font-weight: 800; letter-spacing: -.13em; padding-right: .09em; }
.brand span { font-size: .88rem; font-weight: 800; letter-spacing: -.025em; }
.site-nav { display: flex; align-items: center; gap: clamp(1.1rem, 2.7vw, 2.55rem); }
.site-nav a { position: relative; font-size: .875rem; font-weight: 800; white-space: nowrap; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.4rem; height: 1px; background: #986b34; transform-origin: left; transform: scaleX(0); transition: transform .22s; }
.site-nav a:hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.header-cta { justify-self: end; }
.menu-toggle { display: none; }

.hero { position: relative; background: #263543; color: var(--white); isolation: isolate; }
.hero-image { position: absolute; z-index: -2; inset: 0; overflow: hidden; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 51%; animation: photo-arrive 1.4s cubic-bezier(.17,.67,.43,1) both; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, #101a23ec 0%, #101a23bb 31%, #101a2354 62%, #101a231a 100%), linear-gradient(0deg, #101a23a6, transparent 38%); }
.hero-inner { position: relative; min-height: clamp(500px, 43.6vw, 620px); display: grid; align-items: center; padding-block: 65px 111px; }
.hero-copy { max-width: 855px; animation: enter .75s .12s both; }
.hero .kicker { color: #f5cf9d; }
.hero h1 { font-size: clamp(4.25rem, 7.65vw, 7.45rem); line-height: .91; margin-top: .95rem; }
.hero h1 em { color: #f4ca91; font-weight: 400; }
.hero-copy > p:last-child { max-width: 38rem; margin-top: 1.42rem; font-size: clamp(1rem, 1.45vw, 1.2rem); color: #f2f2ed; }
.hero-location { position: absolute; right: 0; bottom: 95px; color: #fff; font-size: .875rem; font-weight: 700; border-left: 1px solid #f2cf9c; padding-left: .6rem; }
.search-wrap { position: relative; margin-top: -70px; z-index: 1; }
.search-panel { background: var(--white); max-width: 970px; padding: 17px 25px 23px; border: 1px solid #ddd9cf; border-radius: 11px; box-shadow: 0 13px 32px #101a231a; animation: enter .65s .28s both; }
.search-tabs { display: flex; gap: 1.25rem; padding: 0; margin: 0 0 14px; border: 0; border-bottom: 1px solid var(--line); }
.search-tabs label { display: block; position: relative; cursor: pointer; }
.search-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.search-tabs span { display: block; padding: .2rem .15rem .55rem; border-bottom: 2px solid transparent; color: var(--muted); font-size: .9rem; font-weight: 800; }
.search-tabs :checked + span { border-color: #9a713b; color: var(--ink); }
.search-tabs :focus-visible + span { outline: 3px solid #8a6028; outline-offset: 2px; }
.search-fields { display: grid; gap: 13px; align-items: end; grid-template-columns: 1fr 1fr auto; }
.search-icon { display: inline-block; width: .78rem; height: .78rem; border: 1.5px solid currentColor; border-radius: 50%; position: relative; margin-right: .16rem; }
.search-icon::after { content: ""; position: absolute; left: 83%; top: 83%; width: .31rem; height: 1.5px; background: currentColor; transform-origin: left; transform: rotate(45deg); }
.search-fields label, .filter-panel label, .results-head label, .contact-form label { display: grid; gap: .28rem; font-size: .875rem; font-weight: 800; }
select, input[type="number"], textarea { width: 100%; min-height: 47px; border: 1px solid #d6d9d5; border-radius: 6px; padding: .56rem .72rem; background: var(--white); color: var(--ink); font-size: .925rem; font-weight: 600; }
select { appearance: none; padding-right: 2.3rem; background-image: linear-gradient(45deg, transparent 50%, #59636a 50%), linear-gradient(135deg, #59636a 50%, transparent 50%); background-position: calc(100% - 16px) 51%, calc(100% - 10px) 51%; background-size: 6px 6px; background-repeat: no-repeat; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.6rem; margin-bottom: 29px; }
.section-head p:not(.kicker) { color: var(--muted); margin-top: .8rem; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.property-card { border: 1px solid #e0e0d8; background: var(--white); border-radius: 9px; overflow: hidden; transition: transform .32s, box-shadow .32s; }
.property-card:hover { transform: translateY(-5px); box-shadow: 0 16px 28px #111c2515; }
.property-card a { display: block; height: 100%; }
.property-card a:focus-visible { outline-offset: -4px; }
.property-image { position: relative; background: #e4e3da; overflow: hidden; aspect-ratio: 1.49; }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.65,.32,1); }
.property-card:hover img { transform: scale(1.045); }
.pill { position: absolute; top: 13px; left: 13px; padding: .36rem .65rem; border-radius: 4px; background: var(--paper); color: var(--ink); font-weight: 800; font-size: .8125rem; }
.property-copy { padding: 16px 19px 17px; }
.property-place { color: var(--gold-dark); font-size: .875rem; font-weight: 800; }
.property-card h3 { margin-top: .2rem; font-size: 1.14rem; font-weight: 800; }
.property-facts { margin-top: .35rem; color: var(--muted); font-size: .9rem; }
.property-facts span { margin-inline: .15rem; }
.property-price { padding-top: .6rem; margin-top: .75rem; border-top: 1px solid #e6e6dd; font-size: 1.08rem; font-weight: 800; }
.property-price small, .detail-price small { color: var(--muted); font: 600 .875rem var(--sans); }

.city-section { background: #eeeee7; }
.districts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.district { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: end; min-height: 283px; background: #283843; color: var(--white); border-radius: 8px; }
.district img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.district:hover img { transform: scale(1.07); }
.district::before { position: absolute; z-index: -1; content: ""; inset: 0; background: linear-gradient(0deg, #0f1923f0, #0f192355 51%, #0f192310); }
.district > div { padding: 20px; }
.district h3 { font: 400 2.1rem/1 var(--serif); }
.district p { margin-top: .45rem; color: #f2f1eb; font-size: .9rem; }
.owner-callout { display: grid; grid-template-columns: 1fr 1fr; border-radius: 10px; overflow: hidden; background: var(--ink); color: var(--white); }
.owner-callout > img { width: 100%; height: 100%; object-fit: cover; object-position: 52% 50%; }
.owner-callout > div { padding: clamp(28px, 4.6vw, 62px); }
.owner-callout h2 { font-size: clamp(2.9rem, 4.65vw, 4.35rem); }
.owner-callout .kicker { color: #f2ca94; }
.owner-callout h2 + p { margin: 1.1rem 0 1.2rem; color: #e6ebe9; }

.page-intro { padding-block: 66px 61px; background: #ecece4; }
.page-intro h1 { font-size: clamp(3.7rem, 7.2vw, 6.9rem); }
.intro-copy { max-width: 40rem; margin-top: 1rem; color: var(--muted); font-size: 1.05rem; }
.page-intro-photo { position: relative; isolation: isolate; padding-block: 70px 75px; background: #25333f; color: var(--white); overflow: hidden; }
.page-intro-photo > img, .page-intro-photo::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-intro-photo > img { z-index: -2; object-fit: cover; object-position: 50% 52%; animation: photo-arrive 1s both; }
.page-intro-photo::before { content: ""; z-index: -1; background: linear-gradient(90deg, #142029f5, #142029a0 57%, #14202934), linear-gradient(0deg,#1420295a,transparent); }
.page-intro-photo .kicker { color: #f2ca94; }
.page-intro-photo .intro-copy { color: #f5f3ed; }
.page-intro .wrap { animation: enter .58s both; }
.catalog-section { padding-top: 35px; }
.filter-panel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 13px; align-items: end; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.filter-panel label span { color: var(--muted); display: contents; }
.results-head { margin: 24px 0 17px; display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.results-head h2 { font: 800 1rem/1.4 var(--sans); letter-spacing: normal; }
.results-head label { display: flex; align-items: center; gap: .5rem; }
.results-head select { width: auto; }
.empty { padding: 3rem 1.5rem; background: #efefe8; border: 1px solid var(--line); border-radius: 8px; text-align: center; }
.empty h2 { font-size: 2.35rem; }
.empty p { color: var(--muted); margin: .75rem 0 1.25rem; }
.simple-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; padding-block: 45px; }
.simple-cta h2 { font-size: 2.75rem; }
.simple-cta p { margin-top: .55rem; }

.detail-page { padding-top: 28px; padding-bottom: 80px; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem; color: var(--muted); font-size: .875rem; margin-bottom: 19px; }
.breadcrumb a:hover { text-decoration: underline; }
.detail-title { margin-bottom: 26px; animation: enter .55s both; }
.detail-title h1 { font-size: clamp(3.2rem, 6.25vw, 5.9rem); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 2.25fr) minmax(260px, 1fr); gap: 28px; align-items: start; }
.detail-content { min-width: 0; }
.photo-open { display: block; position: relative; padding: 0; width: 100%; border: 0; background: transparent; }
.property-gallery #main-photo { width: 100%; height: auto; aspect-ratio: 1.48; object-fit: cover; border-radius: 8px; background: #e6e4da; }
.photo-open span { position: absolute; right: 13px; bottom: 13px; background: var(--white); border-radius: 5px; padding: .45rem .7rem; font-size: .875rem; font-weight: 800; }
.thumbnails { display: flex; gap: 8px; margin-top: 9px; overflow-x: auto; padding: 4px; }
.thumbnails button { flex: 0 0 clamp(58px, 9vw, 112px); padding: 0; border: 2px solid transparent; border-radius: 5px; background: transparent; }
.thumbnails button[aria-pressed="true"] { border-color: #8b5e25; }
.thumbnails img { width: 100%; height: auto; aspect-ratio: 1.49; object-fit: cover; border-radius: 3px; }
.property-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; padding: 18px 0; margin: 21px 0 29px; border-block: 1px solid var(--line); }
dt { font-size: .875rem; color: var(--muted); }
dd { margin: 0; font-weight: 800; }
.detail-description h2 { font-size: 2.65rem; margin-bottom: .75rem; }
.detail-description h2:not(:first-child) { margin-top: 1.65rem; }
.detail-description > p { max-width: 42rem; }
.feature-list { padding-left: 1.25rem; margin: .2rem 0 1.15rem; }
.feature-list li::marker { color: #916938; }
.detail-description video { display: block; aspect-ratio: 9/16; width: min(100%, 400px); border-radius: 8px; background: var(--ink); margin: 0 0 1rem; }
.detail-side { position: sticky; top: 20px; }
.info-box { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: clamp(17px,2.5vw,30px); }
.info-box .detail-price { margin-top: .65rem; color: var(--ink); font: 400 2.7rem/.95 var(--serif); }
.info-box p { color: var(--muted); }
.info-box p.kicker { color: var(--gold-dark); }
.info-box .button { display: flex; margin-top: .95rem; }
.info-box .button + .button { margin-top: .55rem; }
.info-box .price-note { font-size: .93rem; }
dialog { max-width: min(94vw, 1040px); width: 100%; padding: 0; border: 0; background: var(--ink); color: var(--white); border-radius: 9px; }
dialog[open] { animation: enter .23s both; }
dialog::backdrop { background: #0d1720dc; }
.dialog-inner { padding: 11px 15px; }
.dialog-inner img { width: 100%; height: min(68vh, 650px); object-fit: contain; }
.dialog-toolbar, .dialog-actions { display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .4rem 0; }
dialog .button-outline { color: var(--white); border-color: #79858a; }
dialog .button-outline:hover { color: var(--ink); background: var(--white); }

.about-split, .contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; align-items: start; gap: clamp(27px, 6vw, 88px); }
.about-split h2, .contact-grid h2 { font-size: clamp(2.6rem,4.7vw,4rem); }
.about-split h2 + p, .contact-grid h2 + dl { margin-top: 1.1rem; }
.about-split h3 { margin-top: .35rem; font: 400 2.9rem/1 var(--serif); }
.about-split h3 + p { margin-top: .4rem; }
.about-split dl { margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.contact-details dl { display: grid; gap: 0; margin-bottom: 0; }
.contact-details dl > div { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.contact-details a:hover { text-decoration: underline; }
.contact-form { display: grid; gap: 13px; padding: clamp(18px, 3.35vw, 32px); background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.contact-form h2 { font-size: 2.65rem; }
.contact-form button { justify-self: start; }
.form-help { color: var(--muted); font-size: .875rem; }
textarea { resize: vertical; }
.credits-list { list-style: none; display: grid; gap: 1rem; margin: 0 0 1rem; padding: 0; }
.credits-list li { border-bottom: 1px solid var(--line); padding-bottom: .8rem; }
.credits-list span { display: block; margin-top: .15rem; font-size: .9rem; }
.credits-list p { color: var(--muted); font-size: .9rem; }

.site-footer { background: var(--ink); color: #f1f0e8; }
.footer-main { display: grid; grid-template-columns: 1.5fr .8fr .8fr 1.15fr; gap: 23px; padding-block: 48px 32px; }
.footer-main > div { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.footer-main h2 { font: 800 .95rem/1.3 var(--sans); margin-bottom: .25rem; }
.footer-main a:not(.brand) { color: #dae0df; font-size: .875rem; overflow-wrap: anywhere; }
.footer-main a:hover, .footer-end a:hover { color: #f4ca91; }
.site-footer .brand b { color: var(--gold); }
.footer-main p { color: #dae0df; font-size: .875rem; margin-top: .55rem; }
.footer-end { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding-block: 15px 20px; border-top: 1px solid #53616a; color: #d3dcda; font-size: .875rem; }

@keyframes enter { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
@keyframes photo-arrive { from { transform: scale(1.045); } to { transform: scale(1); } }
.reveal.will-reveal { opacity: 0; transform: translateY(20px); transition: opacity .56s, transform .56s; }
.reveal.will-reveal.is-visible { opacity: 1; transform: translateY(0); }
.featured.will-reveal.is-visible .property-card { animation: enter .4s both; }
.featured.will-reveal.is-visible .property-card:nth-child(2) { animation-delay: .075s; }
.featured.will-reveal.is-visible .property-card:nth-child(3) { animation-delay: .15s; }
.cards.is-updated { animation: enter .27s both; }

@media (min-width: 700px) and (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation-duration: .18s; }
  ::view-transition-new(root) { animation-duration: .28s; }
}

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 48px); }
  .section { padding-block: 62px; }
  .catalog-section { padding-top: 27px; }
  .header-inner { gap: 16px; }
  .header-cta { padding-inline: .68rem; }
  .cards, .districts { gap: 15px; }
  .property-copy { padding-inline: 14px; }
}

@media (max-width: 780px) {
  .header-inner { display: flex; flex-wrap: wrap; justify-content: space-between; min-height: 65px; gap: 0; }
  .header-cta { display: none; }
  .nav-ready .menu-toggle { display: inline-flex; align-items: center; gap: .63rem; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: .35rem .64rem; font-size: .875rem; font-weight: 800; }
  .menu-toggle span { width: 14px; height: 9px; border-block: 1px solid currentColor; }
  .site-nav { order: 3; width: 100%; align-items: flex-start; flex-direction: column; gap: 0; padding-bottom: 9px; }
  .nav-ready .site-nav:not(.is-open) { display: none; }
  .site-nav.is-open { animation: enter .24s both; }
  .site-nav a { width: 100%; padding: .62rem .2rem; }
  .site-nav a::after { display: none; }
  .site-nav a[aria-current] { color: var(--gold-dark); }
  .hero-inner { min-height: 460px; }
  .hero-location { display: none; }
  .section-head { align-items: start; }
  .section-head h2 { font-size: clamp(2.7rem, 6.6vw, 3.65rem); }
  .cards, .districts { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-panel .button { grid-column: 1 / -1; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
  .detail-side { position: static; grid-row: 1; }
  .detail-side .info-box { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
  .detail-side .info-box p { grid-column: 1 / -1; margin-top: 0; }
  .detail-side .info-box p.detail-price { margin-top: .1rem; }
  .detail-side .info-box .button { margin-top: .5rem; }
}

@media (max-width: 530px) {
  .wrap { width: calc(100% - 32px); }
  .section { padding-block: 47px; }
  .hero-inner { min-height: 395px; padding-block: 46px 85px; }
  .hero h1 { font-size: clamp(3.18rem, 11vw, 4.25rem); }
  .hero-copy > p:last-child { margin-top: 1rem; }
  .hero-image img { object-position: 64% center; }
  .hero::after { background: linear-gradient(90deg,#101a23e5,#101a2375), linear-gradient(0deg,#101a2370,transparent); }
  .search-wrap { margin-top: -52px; }
  .search-panel { padding: 11px 14px 14px; }
  .search-fields { grid-template-columns: 1fr 1fr; gap: 8px; }
  .search-fields .button { grid-column: 1 / -1; }
  .section-head { flex-direction: column; gap: .8rem; margin-bottom: 17px; }
  .cards, .districts { grid-template-columns: minmax(0,1fr); }
  .district { min-height: 214px; }
  .owner-callout, .about-split, .contact-grid { grid-template-columns: 1fr; }
  .owner-callout > img { height: 180px; }
  .owner-callout > div { padding: 22px 18px 25px; }
  .page-intro { padding-block: 44px; }
  .page-intro h1 { font-size: 3.7rem; }
  .catalog-section { padding-top: 18px; }
  .filter-panel { padding: 12px; gap: 9px; }
  .results-head label { display: grid; gap: .12rem; }
  .results-head select { min-height: 39px; }
  .simple-cta { flex-direction: column; align-items: start; }
  .detail-page { padding-top: 20px; padding-bottom: 47px; }
  .detail-side .info-box .button { padding-inline: .4rem; }
  .property-stats { grid-template-columns: repeat(2,1fr); }
  .footer-main { gap: 22px 12px; }
  .footer-end { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal.will-reveal { opacity: 1; transform: none; }
}
