@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Manrope;
  src: url("/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #faf9f6;
  --white: #fff;
  --ink: #202523;
  --muted: #59605b;
  --line: #e4e1da;
  --gold: #e6bd89;
  --gold-dark: #825735;
  --serif: var(--sans);
}

h1, h2 { font-weight: 800; letter-spacing: -.06em; line-height: 1.055; }
h2 { font-size: clamp(2rem, 3.55vw, 3.25rem); }
:focus-visible { outline-color: #805536; }
.button { border-radius: 7px; min-height: 46px; }
.button-dark { background: var(--ink); }
.button-dark:hover { background: #3c4641; }
.button-outline { border-color: #cfcac0; }

.site-header { background: var(--paper); border-color: var(--line); }
.header-inner { min-height: 76px; }
.brand-art { position: relative; display: block; width: 105px; aspect-ratio: 370 / 168; overflow: hidden; isolation: isolate; }
.brand-art img, .site-footer .brand-art::after { position: absolute; top: -91.67%; left: -17.84%; width: 135.14%; max-width: none; height: auto; aspect-ratio: 1; }
.site-footer .brand-art::after { content: ""; background: url("/assets/x-real-estate-logo.png") center / contain no-repeat; filter: grayscale(1) invert(1) contrast(2.1) brightness(1.1); mix-blend-mode: lighten; }
.site-nav a { font-weight: 700; }
.site-nav a[aria-current] { color: var(--gold-dark); }
.header-cta { font-weight: 700; }

.property-hero { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(25px, 5vw, 78px); align-items: center; padding-block: 38px 43px; }
.hero-intro { min-width: 0; animation: enter .5s ease-out both; }
.hero-intro h1 { font-size: clamp(3.6rem, 5.65vw, 6.2rem); letter-spacing: -.083em; line-height: .99; }
.hero-intro h1 span { color: var(--gold-dark); }
.hero-intro > p { max-width: 30rem; margin-top: 1.1rem; margin-bottom: 1.5rem; color: var(--muted); font-size: 1.06rem; }
.hero-listing { position: relative; isolation: isolate; min-width: 0; margin: 0; overflow: hidden; border-radius: 13px; background: #e9e6df; aspect-ratio: 1.26; animation: enter .58s .05s ease-out both; }
.hero-listing > img { width: 100%; height: 100%; object-fit: cover; object-position: 54% center; }
.hero-listing::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(0deg,#161b18df,#161b1840 65%,transparent); pointer-events: none; }
.hero-listing figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 16px; padding: clamp(14px, 2.5vw, 29px); color: white; }
.hero-listing figcaption p { color: #f5e1c9; font-weight: 700; font-size: .875rem; }
.hero-listing figcaption strong { font-size: clamp(1rem, 1.75vw, 1.45rem); letter-spacing: -.03em; }
.hero-listing figcaption .button { min-height: 39px; padding: .55rem .78rem; background: #faf8f3; color: var(--ink); }
.hero-listing figcaption .button:hover { background: var(--gold); }

.search-panel { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; animation: none; }
.search-tabs { gap: 6px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 13px; width: fit-content; background: #f1eee8; }
.search-tabs span { padding: .46rem .85rem; border: 0; border-radius: 5px; line-height: 1.4; font-weight: 700; }
.search-tabs :checked + span { background: var(--white); box-shadow: 0 1px 3px #221b1421; color: var(--ink); }
.search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 10px; }
.search-fields > button { grid-column: 1 / -1; margin-top: 2px; justify-self: stretch; }
.search-fields label { font-weight: 700; }
select, input[type="number"], textarea { border-color: #d9d6cf; font-weight: 600; }

.hero-video-link { display: inline-flex; align-items: center; gap: .5rem; margin-top: .85rem; padding: .25rem 0; font-size: .9rem; font-weight: 800; color: var(--gold-dark); }
.hero-video-link:hover { text-decoration: underline; text-underline-offset: .24em; }
.hero-video-link span { width: 0; height: 0; border-block: .28rem solid transparent; border-left: .43rem solid currentColor; }
.video-tours { padding: clamp(24px, 4vw, 52px) 0; scroll-margin-top: 12px; background: #232825; color: #fffdf8; }
.video-tours > .wrap { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 2.28fr); align-items: start; gap: clamp(18px,3vw,40px); }
.video-tours .section-head { display: grid; gap: .8rem; margin: 0; }
.video-tours h2 { font-size: clamp(2rem, 3.1vw, 3.15rem); }
.tour-instagram { width: fit-content; color: #e8c99f; font-size: .875rem; font-weight: 700; text-decoration: underline; text-underline-offset: .23em; }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.tour-card { min-width: 0; }
.tour-visual { display: block; position: relative; overflow: hidden; border-radius: 9px; aspect-ratio: 9/12; background: #393e38; }
.tour-visual:focus-visible { outline-color: var(--gold); outline-offset: 3px; }
.tour-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .38s ease; }
.tour-visual:hover img { transform: scale(1.045); }
.tour-play { position: absolute; display: grid; place-items: center; bottom: 10px; right: 10px; width: 43px; height: 43px; border: 1px solid #fff8e7; border-radius: 50%; color: white; background: #171b18bd; }
.tour-play::after { content: ""; width: 0; height: 0; margin-left: 3px; border-block: 7px solid transparent; border-left: 11px solid currentColor; }
.tour-visual:hover .tour-play { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.tour-copy { padding-top: .56rem; }
.tour-copy p { font-size: .875rem; color: #dcc8ae; }
.tour-copy h3 { margin-top: .15rem; font-size: 1rem; }
.tour-copy h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.tour-dialog { max-width: min(94vw,510px); max-height: 94dvh; overflow: auto; }
.tour-dialog-inner { display: grid; gap: 9px; padding: 12px; }
.tour-dialog header { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.tour-dialog h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.tour-dialog video { display: block; width: 100%; height: min(64dvh, 650px); background: #141715; border-radius: 5px; object-fit: contain; }
.tour-dialog #tour-listing { justify-self: start; }

.founder-feature { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: center; gap: clamp(24px,6vw,80px); padding-block: clamp(30px,6vw,80px); }
.founder-copy h1 { font-size: clamp(3.35rem,6vw,5.9rem); }
.founder-copy h1 + p { margin-top: .75rem; color: var(--muted); }
.founder-copy h2 { margin-top: 1.55rem; font-size: clamp(2rem,4vw,3.5rem); }
.founder-role { margin: .4rem 0 .75rem; color: var(--gold-dark); font-weight: 800; }
.founder-copy dl { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1.1rem 0; }
.founder-figure { margin: 0; max-width: 420px; justify-self: end; width: 100%; }
.founder-portrait { position: relative; width: 100%; aspect-ratio: 3/4; overflow: hidden; border-radius: 11px; background: #e2d9c9; }
.founder-portrait img { position: absolute; width: 214.286%; height: auto; max-width: none; top: -58.036%; left: -114.286%; }
.founder-figure figcaption { margin-top: .4rem; color: var(--muted); font-size: .875rem; }

.featured { padding-top: 27px; border-top: 1px solid var(--line); }
.section-head { align-items: center; margin-bottom: 24px; }
.cards { gap: 21px; }
.property-card { border-radius: 10px; border-color: #e1ded7; }
.property-image { aspect-ratio: 1.55; }
.pill { border-radius: 5px; color: var(--ink); background: #fffdf8; }
.property-copy { padding: 14px 16px 15px; }
.property-place { font-weight: 700; }
.property-card h3 { font-size: 1.13rem; letter-spacing: -.018em; }
.property-summary { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .65rem; padding-top: .66rem; border-top: 1px solid var(--line); }
.property-facts { margin: 0; }
.property-price { margin: 0; padding: 0; border: none; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 9px 22px #26201912; }

.city-section { background: #edece6; }
.districts { grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.district { min-height: 255px; border-radius: 9px; }
.district h3 { font-weight: 800; letter-spacing: -.045em; font-size: 1.63rem; }
.district::before { background: linear-gradient(0deg, #111916eb, #11191652 61%, transparent); }
.owner-callout, .site-footer { background: #212724; }
.owner-callout { border-radius: 11px; }
.owner-callout .kicker { color: var(--gold); }

.page-intro { padding-block: 44px 45px; background: #f0eee8; }
.page-intro h1 { font-size: clamp(3.05rem, 5.65vw, 5.9rem); line-height: 1.04; }
.page-intro-photo { background: #282e2a; }
.page-intro-photo::before { background: linear-gradient(90deg, #202722ef, #20272298 50%, #20272221); }
.page-intro-photo .kicker { color: var(--gold); }
.catalog-section { padding-top: 25px; }
.catalog-layout { display: grid; grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); align-items: start; gap: clamp(18px, 3.3vw, 45px); }
.catalog-sidebar { border: 1px solid var(--line); border-radius: 9px; padding: 14px; background: var(--white); }
.filter-heading { display: flex; align-items: center; justify-content: space-between; gap: .4rem; margin-bottom: 10px; }
.filter-heading h2 { font: 800 1rem/1.4 var(--sans); letter-spacing: 0; }
.filter-heading button { padding: 4px; color: var(--gold-dark); background: transparent; border: 0; text-decoration: underline; text-underline-offset: .23em; font-size: .86rem; }
.catalog-sidebar .filter-panel { grid-template-columns: 1fr; padding: 0; border: 0; border-radius: 0; gap: 9px; }
.filter-panel label { font-weight: 700; }
.catalog-results { min-width: 0; }
.catalog-results .results-head { margin: 0 0 13px; min-height: 46px; }
.catalog-results .cards { grid-template-columns: repeat(2, minmax(0,1fr)); }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.active-filters button { background: #f3eee5; border: 1px solid #ddd0bf; border-radius: 20px; padding: .31rem .62rem; color: #423329; font-size: .875rem; }
.active-filters button:hover { background: #eee0ce; }

.detail-title h1 { font-size: clamp(2.55rem, 4.8vw, 4.8rem); }
.detail-price, .info-box .detail-price { font: 800 clamp(1.9rem,3vw,2.9rem)/1.04 var(--sans); letter-spacing: -.055em; }
.detail-description h2 { font-size: clamp(1.85rem, 3vw, 2.6rem); }
.info-box, .contact-form { border-radius: 10px; }

@media (max-width: 900px) {
  .property-hero { gap: 20px; }
  .hero-intro h1 { font-size: clamp(2.55rem, 6vw, 5.2rem); }
  .cards { gap: 14px; }
  .district { min-height: 220px; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 65px; }
  .brand-art { width: 92px; }
  .property-hero { grid-template-columns: minmax(0,1fr); padding-block: 28px 27px; }
  .hero-intro h1 { font-size: clamp(3rem, 9vw, 5rem); }
  .hero-intro > p { margin-block: .85rem 1.1rem; }
  .hero-listing { aspect-ratio: 1.55; }
  .districts { grid-template-columns: 1fr; }
  .district { min-height: 200px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 15px; }
  .catalog-sidebar .filter-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .video-tours > .wrap { grid-template-columns: minmax(0,1fr); }
  .video-tours .section-head { gap: .3rem; }
  .founder-feature { grid-template-columns: minmax(0,1fr); }
  .founder-figure { justify-self: start; }
}

@media (max-width: 495px) {
  .hero-intro h1 { font-size: clamp(2.65rem, 10.5vw, 4rem); }
  .hero-listing { aspect-ratio: 1.31; }
  .catalog-results .cards { grid-template-columns: 1fr; }
  .catalog-results .results-head { align-items: end; }
  .featured .section-head { align-items: start; }
  .tour-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 69%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 5px 4px 9px; }
  .tour-card { scroll-snap-align: start; }
  .page-intro { padding-block: 34px; }
}
