/* Ingenio Construction — design system
   Palette: ink / paper / stone / bronze accent. Serif display (Bodoni Moda) + Inter. */
:root {
  --ink: #15171a;
  --ink-2: #3a3d42;
  --muted: #6b6f76;
  --paper: #f6f3ee;
  --paper-2: #efeae2;
  --stone: #d9d2c5;
  --white: #ffffff;
  --accent: #a8814f;
  --accent-2: #8c6a3d;
  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1200px;
  --radius: 6px;
  --shadow: 0 10px 30px rgba(21, 23, 26, .08);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.6;
  color: var(--ink); background: var(--paper);
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 500; line-height: 1.1; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.center { text-align: center; }

/* Type */
.display { font-family: var(--serif); font-size: clamp(2.4rem, 5.6vw, 4.6rem); letter-spacing: -.01em; }
.h1 { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3rem); }
.h2 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2rem); }
.h3 { font-family: var(--serif); font-size: 1.35rem; }
.eyebrow { font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: .9em; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 60ch; }
.lead-sm { font-size: 1.05rem; color: var(--ink-2); max-width: 55ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.5em;
  font-weight: 600; font-size: .95rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .15s; cursor: pointer; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .6em 1.1em; font-size: .88rem; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--accent-2); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--paper-2); }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }
.btn-link { color: var(--accent-2); font-weight: 600; }
.btn-link:hover { text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 1.4rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(246,243,238,.92);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid rgba(21,23,26,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 24px; }
.brand { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.brand img { height: 40px; width: auto; }
.brand-slogan { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--ink-2); white-space: nowrap; line-height: 1; }
.footer-slogan { font-family: var(--serif); font-size: 1.15rem; color: #fff; margin-bottom: .4em; }
.nav-menu { display: flex; align-items: center; gap: 28px; }
.nav-menu a { font-weight: 500; font-size: .95rem; position: relative; padding: 6px 0; }
.nav-menu a.btn { padding: .7em 1.4em; font-size: .9rem; font-weight: 600; }
.nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .2s; transform-origin: left; }
.nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current]::after { transform: scaleX(1); }
.badge { display: inline-block; font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 3px; vertical-align: middle; margin-left: 4px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; position: relative; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
  content: ""; display: block; position: absolute; left: 10px; width: 24px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s;
}
.nav-toggle-bar { top: 21px; }
.nav-toggle-bar::before { top: -8px; left: 0; }
.nav-toggle-bar::after { top: 8px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-8px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: calc(100svh - var(--header-h)); display: grid; align-items: end; color: #fff; isolation: isolate; }
.hero-media, .hero-media picture, .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 60% 50%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,23,26,.05) 20%, rgba(21,23,26,.72) 100%); }
.hero-inner { position: relative; z-index: 1; padding: 80px 0 72px; }
.hero .eyebrow { color: #e9d7bb; }
.hero .lead { color: rgba(255,255,255,.9); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; margin-top: 1.6rem; }
.hero .btn-primary { background: #fff; color: var(--ink); }
.hero .btn-primary:hover { background: var(--paper-2); }
.hero .btn-ghost { color: #fff; }

/* Sections */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-dark { background: var(--ink); color: #fff; }
.section-dark .eyebrow { color: #d8b98a; }
.section-dark p { color: rgba(255,255,255,.78); }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.rounded { border-radius: var(--radius); overflow: hidden; }

/* Milori strip */
.milori-strip { background: var(--white); }
.milori-strip-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.milori-strip-media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.milori-strip-media picture:first-child { grid-column: 1 / -1; }
.milori-strip-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.milori-strip-media picture:nth-child(2) { grid-column: 2; margin-top: -20%; box-shadow: var(--shadow); }
.milori-strip-media picture:nth-child(2) img { aspect-ratio: 4 / 3; border: 6px solid #fff; }
.unit-list { display: grid; gap: 0; margin: 1.6rem 0 .4rem; border-top: 1px solid var(--stone); }
.unit-list li { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.unit-type { font-family: var(--serif); font-size: 1.35rem; }
.unit-price { color: var(--muted); font-size: .95rem; }
.unit-price strong { color: var(--ink); font-size: 1.05rem; }

/* Cards */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(21,23,26,.06); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.chip { position: absolute; top: 14px; left: 14px; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 4px; background: #fff; color: var(--ink); }
.chip-accent { background: var(--accent); color: #fff; }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-meta { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--serif); font-size: 1.5rem; margin: 0; }
.card-text { color: var(--ink-2); font-size: .95rem; margin: 0; flex: 1; }
.card-units { display: flex; gap: 8px; margin-top: 10px; }
.card-units span { font-size: .8rem; font-weight: 600; padding: 4px 10px; border: 1px solid var(--stone); border-radius: 999px; }

/* Features */
.features .feature { padding: 28px 24px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); }
.feature-n { font-family: var(--serif); color: var(--accent); font-size: 1.1rem; display: block; margin-bottom: 14px; }
.feature .h3 { color: #fff; }
.feature p { font-size: .95rem; margin: 0; }

/* Services */
.services .service { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s; }
.services .service:hover { box-shadow: var(--shadow); }
.service-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.service-body { padding: 28px; }
.service-body p { color: var(--ink-2); }

/* Partners */
.partners { padding-top: 0; }
.partner-row { display: flex; justify-content: center; align-items: center; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; filter: grayscale(1); opacity: .75; }
.partner-row img { height: 56px; width: auto; }

/* CTA band */
.cta-band { background: var(--accent); color: #fff; padding: 56px 0; }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band p { margin: 0; color: rgba(255,255,255,.9); max-width: 50ch; }
.cta-band .h2 { margin-bottom: .3em; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.8); padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-h { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #d8b98a; margin-bottom: 14px; }
.footer-list li { margin-bottom: 8px; }
.footer-list a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; color: rgba(255,255,255,.55); }

/* Page header (inner pages) */
.page-head { padding: clamp(48px, 7vw, 88px) 0 clamp(28px, 4vw, 48px); }
.page-head .lead { margin-top: .6rem; }
.page-hero { position: relative; color: #fff; min-height: 52vh; display: grid; align-items: end; isolation: isolate; }
.page-hero picture, .page-hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(21,23,26,.1), rgba(21,23,26,.7)); z-index: 0; }
.page-hero .wrap { position: relative; z-index: 1; padding: 64px 0 48px; }
.page-hero .eyebrow { color: #e9d7bb; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--stone); background: #fff; font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.card.is-hidden { display: none; }

/* Project page */
.project-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 48px; align-items: start; }
.project-body p { color: var(--ink-2); }
.aside { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.aside dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 20px; font-size: .95rem; }
.aside dt { color: var(--muted); }
.aside dd { margin: 0; font-weight: 500; }
.check-list li { padding-left: 26px; position: relative; margin-bottom: 8px; color: var(--ink-2); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

/* Milori page */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 40px 0; }
.fact { border-top: 2px solid var(--ink); padding-top: 14px; }
.fact .eyebrow { color: var(--muted); margin-bottom: .3em; }
.fact strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.renders { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 240px; gap: 14px; }
.renders picture:first-child { grid-row: span 2; }
.renders img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.plan { background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: 0 1px 0 rgba(21,23,26,.06); display: block; transition: box-shadow .2s; }
.plan:hover { box-shadow: var(--shadow); }
.plan img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.plan-label { display: block; margin-top: 10px; font-weight: 600; font-size: .92rem; }
.pricing { width: 100%; border-collapse: collapse; margin-top: 12px; }
.pricing th { text-align: left; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 12px 12px 0; font-weight: 600; border-bottom: 1px solid var(--stone); }
.pricing td { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--stone); vertical-align: top; }
.pricing .n { color: var(--accent); font-family: var(--serif); }
.pricing .t { font-family: var(--serif); font-size: 1.5rem; white-space: nowrap; }
.pricing .p { white-space: nowrap; text-align: right; }
.pricing .p small { display: block; color: var(--muted); font-size: .8rem; }
.pricing .p strong { font-size: 1.15rem; }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.incl-list li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--stone); }
.incl-list li span:last-child { color: var(--accent-2); font-weight: 600; }

/* Forms */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--stone); border-radius: var(--radius); background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { display: none; padding: 14px 16px; border-radius: var(--radius); background: #e8f2ec; color: #1f4d33; }
.form-status.is-error { background: #f8e7e3; color: #7a2b1f; }
.form-status.is-visible { display: block; }
.contact-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.contact-card { background: #fff; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; }
.contact-card .eyebrow { margin-bottom: .5em; }
.contact-card p { margin: 0 0 4px; }
.honeypot { position: absolute; left: -9999px; }

/* Prose */
.prose { max-width: 68ch; }
.prose p { color: var(--ink-2); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.two-col img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; line-height: 1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* Rental platform additions */
.muted { color: var(--muted); }
.ta-right { text-align: right; }
.is-hidden { display: none !important; }
.unit-no { font-family: var(--sans); font-size: .6em; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.display .unit-no { font-size: .4em; color: rgba(255,255,255,.75); }
.chip-green { background: #1f7a4d; color: #fff; }
.chip-blue { background: #1f5f8b; color: #fff; }
.page-hero .chip { position: static; display: inline-block; margin-top: 14px; }
.img-placeholder { width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, var(--paper-2), var(--stone)); display: grid; place-items: center; color: rgba(21,23,26,.35); font-family: var(--serif); letter-spacing: .3em; font-size: 1.2rem; }
.card-media .img-placeholder { aspect-ratio: 4 / 3; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.price { font-size: .9rem; color: var(--muted); }
.price strong { color: var(--ink); font-size: 1.05rem; }
.card-units .muted { border: 0; padding-left: 0; font-weight: 500; }

.hero-search { align-items: center; }
.hero-search .hero-inner { padding: 96px 0 80px; }
.search-bar { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; background: #fff; padding: 10px; border-radius: 14px; margin-top: 28px; max-width: 760px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.search-field { display: grid; gap: 2px; padding: 8px 14px; border-right: 1px solid var(--stone); }
.search-field:nth-child(2) { border-right: 0; }
.search-field span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.search-field select { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--ink); padding: 0; outline: none; }
.search-bar .btn { align-self: center; }

.filters-bar { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.filters-bar .filters { margin-bottom: 0; }
#filter-count { margin-bottom: 24px; }

.units-table { width: 100%; border-collapse: collapse; margin: 8px 0 28px; }
.units-table th { text-align: left; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 10px 12px 0; border-bottom: 1px solid var(--stone); font-weight: 600; }
.units-table td { padding: 12px 10px 12px 0; border-bottom: 1px solid var(--stone); vertical-align: middle; }
.units-table tr.is-available td { font-weight: 500; }
.units-table .chip { position: static; display: inline-block; }

.sell-band-wrap { padding-top: 0; }
.sell-band { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; background: #fff; border-radius: var(--radius); padding: 32px 36px; transition: box-shadow .2s; }
.sell-band:hover { box-shadow: var(--shadow); }
.sell-band p { margin: 0; color: var(--ink-2); }
.sell-band .eyebrow { margin-bottom: .5em; color: var(--accent); }
.section-dark .section-head .lead-sm { color: rgba(255,255,255,.78); margin: .4rem 0 0; }
.builder { background: var(--white); }

.card-incl { font-size: .82rem; color: var(--muted); margin: 6px 0 0; }
.incl-unit { max-width: 520px; }
.incl-unit li.is-negative span:last-child { color: var(--muted); font-weight: 400; }

.units-table .when { font-size: .85rem; margin-left: 6px; }

.range-left { font-size: .85rem; font-weight: 600; color: var(--accent-2); }
.range-left.is-full { color: var(--muted); }
.pricing tr.is-full .t, .pricing tr.is-full .p strong { color: var(--muted); }
.unit-list li.is-full .unit-type, .unit-list li.is-full .unit-price { color: var(--muted); }
.empty-state { background: #fff; border-radius: var(--radius); padding: 36px; max-width: 640px; }
.empty-state .btn { margin-top: 8px; }

/* apartment photos and plans: shown whole, never cropped */
.gallery-unit { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); margin-top: 16px; }
.gallery-unit a { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 rgba(21,23,26,.06); transition: box-shadow .2s; }
.gallery-unit a:hover { box-shadow: var(--shadow); }
.gallery-unit img { aspect-ratio: auto; object-fit: contain; width: 100%; height: auto; border-radius: 0; }

/* Building / apartment page header: title on the left, the whole photo on the right (never cropped) */
.listing-head { padding: clamp(32px, 5vw, 64px) 0 clamp(8px, 2vw, 24px); }
.listing-head-inner { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.listing-head-text .display { font-size: clamp(2.2rem, 4.2vw, 3.6rem); }
.listing-head-text .display .unit-no { color: var(--muted); font-size: .42em; }
.listing-head-text .chip { position: static; display: inline-block; margin-top: 16px; }
.listing-head-media { background: var(--paper-2); border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; }
.listing-head-media picture { width: 100%; display: grid; place-items: center; }
.listing-img { width: 100%; height: auto; max-height: min(70vh, 600px); object-fit: contain; }
.listing-head-media .img-placeholder { min-height: 320px; }
.listing-head + .section { padding-top: clamp(32px, 4vw, 56px); }
.listing-head-text > * { margin-top: 0; }
.crumb { font-size: .85rem; color: var(--muted); margin: 0 0 18px; }
.crumb a:hover { color: var(--ink); text-decoration: underline; }
.listing-head-text .eyebrow { margin-bottom: .5em; }
.listing-head-text .display { margin-bottom: .15em; line-height: 1; }
.listing-head-text .display .unit-no { font-family: var(--serif); font-size: .55em; color: var(--ink-2); font-weight: 400; letter-spacing: 0; }
.head-sub { font-size: 1.1rem; color: var(--ink-2); margin: 0 0 4px; }
.listing-head-text .chip { margin: 12px 0 0; }
.head-summary { color: var(--ink-2); font-size: 1.05rem; margin: 18px 0 0; max-width: 46ch; }
.head-price { margin: 22px 0 0; padding-top: 20px; border-top: 1px solid var(--stone); color: var(--muted); font-size: 1rem; }
.head-price strong { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; color: var(--ink); line-height: 1; margin: 0 4px; }
.head-price strong.on-request { font-size: 1.5rem; margin: 0; }
.head-facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--stone); font-size: .98rem; }
.head-price + .head-facts { padding-top: 0; border-top: 0; margin-top: 18px; }
.head-facts dt { color: var(--muted); }
.head-facts dd { margin: 0; font-weight: 500; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 26px; }
.listing-intro { margin-bottom: 40px; }
.unit-cols { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.unit-cols > div:only-child { grid-column: 1 / -1; max-width: 760px; }
.unit-cols .incl-unit { max-width: none; }
.unit-cols .h2 { margin-bottom: .6em; }
.block-title { margin-top: clamp(40px, 5vw, 64px); margin-bottom: .2em; }

/* Assistant virtuel (chat) */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 60; font-size: .95rem; }
.chat-launch { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .95rem var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(21, 23, 26, .28); }
.chat-launch:hover { background: var(--accent-2); }
.chat.is-open .chat-launch, .chat.is-open .chat-teaser { display: none; }
.chat-teaser { position: absolute; right: 0; bottom: calc(100% + 10px); width: max-content; max-width: min(260px, calc(100vw - 24px)); padding: 11px 14px; border: 1px solid var(--stone); border-radius: 14px 14px 4px 14px; background: var(--white); color: var(--ink); font: 500 .92rem/1.35 var(--sans); text-align: left; cursor: pointer; box-shadow: 0 8px 24px rgba(21, 23, 26, .18); }
.chat-panel { width: min(380px, calc(100vw - 24px)); height: min(580px, calc(100vh - 110px)); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--stone); border-radius: 14px; box-shadow: 0 18px 50px rgba(21, 23, 26, .25); overflow: hidden; }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--ink); color: #fff; }
.chat-head strong { display: block; font-family: var(--serif); font-size: 1.15rem; font-weight: 500; line-height: 1.2; }
.chat-head span { font-size: .78rem; opacity: .75; }
.chat-close { border: 0; background: none; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.chat-msg { max-width: 86%; padding: 10px 14px; border-radius: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-assistant { align-self: flex-start; background: var(--white); border: 1px solid var(--stone); border-bottom-left-radius: 4px; }
.chat-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--accent-2); font-weight: 600; text-decoration: underline; }
.chat-user a { color: #fff; }
.chat-msg.is-waiting { color: var(--muted); letter-spacing: .2em; animation: chat-pulse 1.2s ease-in-out infinite; }
@keyframes chat-pulse { 50% { opacity: .35; } }
.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--stone); background: var(--white); }
.chat-form textarea { flex: 1; resize: none; border: 1px solid var(--stone); border-radius: 10px; padding: 9px 12px; font: inherit; font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--white); max-height: 120px; }
.chat-form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.chat-note { margin: 0; padding: 0 12px 10px; background: var(--white); color: var(--muted); font-size: .72rem; line-height: 1.35; }
.chat-reset { border: 0; background: none; padding: 0; color: var(--accent-2); font: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 720px) {
  .chat { right: 12px; bottom: 12px; }
  .chat-launch span { display: none; }
  .chat-launch { padding: 15px; }
  .chat.is-open { inset: 0; }
  .chat.is-open .chat-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { .chat-msg.is-waiting { animation: none; } }

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .milori-strip-inner, .project-layout, .contact-layout, .two-col, .incl { grid-template-columns: 1fr; }
  .listing-head-inner { grid-template-columns: 1fr; }
  .unit-cols { grid-template-columns: 1fr; }
  .listing-head-media { order: -1; }
  .listing-img { max-height: 60vh; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .renders { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .renders picture:first-child { grid-column: 1 / -1; grid-row: span 1; }
  .aside { position: static; }
}
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid rgba(21,23,26,.1); padding: 8px 16px 16px;
  }
  .nav-menu.is-open { display: flex; }
  .nav-menu li a:not(.btn) { display: block; padding: 12px 4px; font-size: 1.05rem; }
  .nav-cta { margin-top: 10px; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}
@media (max-width: 720px) {
  :root { --header-h: 68px; }
  body { font-size: 16px; }
  .brand img { height: 32px; }
  .brand { gap: 4px; }
  .brand-slogan { font-size: .56rem; letter-spacing: .16em; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero { min-height: 80svh; }
  .hero-inner { padding: 56px 0 48px; }
  .milori-strip-media { grid-template-columns: 1fr; }
  .milori-strip-media picture:nth-child(2) { grid-column: 1; margin-top: 0; box-shadow: none; }
  .milori-strip-media picture:nth-child(2) img { border: 0; }
  .form-row, .facts, .stats { grid-template-columns: 1fr; }
  .search-bar { grid-template-columns: 1fr; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--stone); }
  .search-bar .btn { justify-content: center; margin-top: 6px; }
  .hero-search .hero-inner { padding: 64px 0 48px; }
  .units-table th:nth-child(2), .units-table td:nth-child(2) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .section-head .btn { display: none; }
  .pricing .t { font-size: 1.2rem; }
  .pricing td, .pricing th { padding-right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card-media img, .btn { transition: none; }
}
