/* My Property Depot - shared styles
   Brand roles translated from the brief palette:
   light surface #F3F6F4 -> warm white, dark surface #182D30 -> black,
   primary/accent #234B50 -> gold (deep gold for text on light). */

:root {
  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --secondary: #ECE5D3;
  --ink: #111111;
  --muted: #4A4740;
  --line: rgba(17, 17, 17, 0.12);
  --dark: #0D0D0D;
  --dark-2: #1A1A1A;
  --on-dark: #F4F0E6;
  --on-dark-muted: #BDB6A4;
  --gold: #C9A227;
  --gold-soft: #E3C766;
  --gold-deep: #7A5C0F;
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 64px);
  --max: 1600px;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-bg: rgba(247, 245, 239, .92);
  --btn-hover-bg: #111111;
  --btn-hover-fg: #E3C766;
  --error: #A1281C;
  --error-bg: #FBE9E6;
  --error-ink: #7A1D13;
  --shadow: rgba(17, 17, 17, .12);
  --icon-moon: block;
  --icon-sun: none;
  color-scheme: light;
}

/* Dark theme: follows the system unless the visitor picked light with the toggle.
   Same tokens in both blocks below; keep them in sync. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0F0E0B;
    --surface: #1A1813;
    --secondary: #15130F;
    --ink: #F2EDE1;
    --muted: #B9B1A0;
    --line: rgba(242, 237, 225, .12);
    --dark: #1C1914;
    --dark-2: #25211A;
    --gold-deep: #D6B14A;
    --header-bg: rgba(15, 14, 11, .88);
    --btn-hover-bg: #F2EDE1;
    --btn-hover-fg: #111111;
    --error: #E57B6C;
    --error-bg: #2A1512;
    --error-ink: #F4B3A8;
    --shadow: rgba(0, 0, 0, .45);
    --icon-moon: none;
    --icon-sun: block;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0F0E0B;
  --surface: #1A1813;
  --secondary: #15130F;
  --ink: #F2EDE1;
  --muted: #B9B1A0;
  --line: rgba(242, 237, 225, .12);
  --dark: #1C1914;
  --dark-2: #25211A;
  --gold-deep: #D6B14A;
  --header-bg: rgba(15, 14, 11, .88);
  --btn-hover-bg: #F2EDE1;
  --btn-hover-fg: #111111;
  --error: #E57B6C;
  --error-bg: #2A1512;
  --error-ink: #F4B3A8;
  --shadow: rgba(0, 0, 0, .45);
  --icon-moon: none;
  --icon-sun: block;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.75rem, 1.8rem + 3.6vw, 5rem); }
h2 { font-size: clamp(2.3rem, 1.6rem + 2.8vw, 3.9rem); }
h3 { font-size: clamp(1.65rem, 1.4rem + .9vw, 2.1rem); }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: var(--bg); border-radius: 8px;
}
.skip:focus { top: 16px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; z-index: 1; }
.section { position: relative; padding: clamp(64px, 9vw, 128px) 0; isolation: isolate; overflow: hidden; scroll-margin-top: 76px; }
.section--light { background: var(--bg); }
.section--alt { background: var(--secondary); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark p { color: var(--on-dark-muted); }
.section--dark h2, .section--dark h3 { color: var(--on-dark); }

.eyebrow {
  display: inline-block;
  font-size: .95rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1rem;
}
.section--dark .eyebrow { color: var(--gold); }
.lead { font-size: clamp(1.25rem, 1.1rem + .45vw, 1.5rem); color: var(--muted); max-width: 62ch; }
.section-head { max-width: 900px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 54px; padding: 14px 30px;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 600 1.125rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease), box-shadow .25s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s ease; }
.btn--primary { background: var(--gold); color: #111111; }
.btn--primary:hover, .btn--primary:focus-visible { background: var(--btn-hover-bg); color: var(--btn-hover-fg); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover, .btn--ghost:focus-visible { background: var(--ink); color: var(--bg); }
.section--dark .btn--primary:hover, .section--dark .btn--primary:focus-visible { background: var(--on-dark); color: #111111; }
.section--dark .btn--ghost { border-color: var(--on-dark); color: var(--on-dark); }
.section--dark .btn--ghost:hover, .section--dark .btn--ghost:focus-visible { background: var(--on-dark); color: #111111; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px var(--shadow); }
  .btn:hover svg { transform: translateX(3px); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; min-height: 44px; margin-right: auto; }
.brand img { height: 62px; width: auto; }
.site-footer .brand img { height: 72px; }

/* Theme toggle: icon shown is the mode you switch TO */
.theme-toggle {
  flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.theme-toggle:hover { border-color: var(--gold); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: var(--icon-moon); }
.theme-toggle .icon-sun { display: var(--icon-sun); }
.nav { display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  text-decoration: none; font-weight: 500; border-radius: 999px;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav .btn { min-height: 44px; padding: 10px 20px; margin-left: 8px; }
.nav-toggle {
  display: none; min-width: 44px; min-height: 44px; border: 1.5px solid var(--ink);
  border-radius: 999px; background: transparent; color: var(--ink); font: 600 1.05rem var(--font-body); padding: 0 18px; cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; align-items: center; order: 2; }
  .theme-toggle { order: 1; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 6px;
    padding: 16px var(--gutter) 24px; background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .no-js .nav { display: flex; position: static; padding: 0 0 16px; border: 0; }
  .nav-links { flex-direction: column; }
  .nav-links a { justify-content: center; }
  .nav .btn { margin: 8px 0 0; }
}

/* Soft light background (bg-brand-light direction) */
.soft-light::before {
  content: ""; position: absolute; inset: -5%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 15% 25%, rgba(201,162,39,.16), transparent 55%),
    radial-gradient(ellipse at 90% 85%, rgba(201,162,39,.12), transparent 45%);
  animation: soft-light 18s ease-in-out infinite alternate;
}
@keyframes soft-light { to { transform: translate3d(3%, -2%, 0) scale(1.05); } }

/* Pointer-following glow (fine pointers only, set by JS) */
.glow-zone::after {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: 560px; height: 560px; left: var(--gx, 50%); top: var(--gy, 50%);
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.16), transparent 65%);
  opacity: 0; transition: opacity .4s ease;
}
.glow-zone.glow-on::after { opacity: 1; }
.glow-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

/* Hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px); }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2rem; }
.hero-media { position: relative; }
.hero-media figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--secondary); box-shadow: 0 30px 70px var(--shadow); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-note {
  position: absolute; left: -28px; bottom: 32px; max-width: 280px;
  background: var(--dark); color: var(--on-dark); padding: 18px 20px; border-radius: 14px;
  border-left: 3px solid var(--gold); box-shadow: 0 18px 40px rgba(0,0,0,.25);
}
/* Full-bleed photo hero (index). Photo is always dark, so text stays light in both themes. */
.hero--full {
  display: flex; align-items: center;
  min-height: calc(100vh - 77px); min-height: calc(100dvh - 77px);
  padding: clamp(56px, 8vw, 96px) 0;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.hero--full::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10,9,7,.88) 0%, rgba(10,9,7,.62) 38%, rgba(10,9,7,.14) 70%, rgba(10,9,7,0) 100%),
    linear-gradient(0deg, rgba(10,9,7,.55) 0%, rgba(10,9,7,0) 35%);
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 780px) 1fr; gap: 32px; align-items: end; }
.hero--full h1 { text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero--full .lead { color: rgba(244, 240, 230, .88); }
.hero--full .hero-note {
  position: static; justify-self: end; max-width: 340px;
  background: rgba(13, 13, 13, .7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.hero-note strong { display: block; font-family: var(--font-head); font-size: 1.5rem; margin-bottom: 4px; }
.hero-note span { font-size: 1.05rem; color: var(--on-dark-muted); }

/* Story */
.story-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.story-media { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 5 / 6; background: var(--secondary); }
.story-media img { width: 100%; height: 100%; object-fit: cover; }
.story-copy p { color: var(--muted); }
.signature { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-family: var(--font-head); font-size: 1.6rem; font-style: italic; }

/* Cards */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
}
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--secondary); margin: 0; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-weight: 600; color: var(--gold-deep); text-decoration: none;
}
.card-link:hover, .card-link:focus-visible { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.card:hover, .card:focus-within { border-color: rgba(201,162,39,.55); box-shadow: 0 22px 52px var(--shadow); }
@media (hover: hover) and (pointer: fine) {
  .card:hover, .card:focus-within { transform: translateY(-6px); }
  .card:hover .card-media img { transform: scale(1.04); }
}
.card-num { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--gold-deep); margin-bottom: 14px; }
.pillar .card-body { padding: 34px 30px; }
.pillar-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--gold); margin-bottom: 20px; }
.pillar-icon svg { width: 24px; height: 24px; }

/* Pillars: open columns, no card boxes */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.pillars li { padding-top: 28px; border-top: 1px solid var(--line); }
.pillars p { color: var(--muted); margin: 0; }

/* Brief: heading left, numbered list right */
.brief-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.brief-grid .section-head { margin-bottom: 0; }
.brief-list { list-style: none; margin: 0; padding: 0; }
.brief-list li { display: grid; grid-template-columns: 84px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.brief-list li:last-child { border-bottom: 1px solid var(--line); }
.brief-list .card-num { margin: 0; }
.brief-list h3 { margin-bottom: .3em; }
.brief-list p { color: var(--muted); margin: 0; }

/* Gallery */
.gallery { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; background: var(--secondary); }
.gallery figure:first-child { grid-row: span 2; aspect-ratio: 4 / 5; }
.gallery figure:not(:first-child) { aspect-ratio: 16 / 10; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery figcaption {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  background: rgba(13,13,13,.78); color: var(--on-dark); padding: 12px 16px; border-radius: 10px; font-size: 1.05rem;
}
.gallery figcaption strong { font-family: var(--font-head); font-size: 1.35rem; display: block; color: var(--gold-soft); }
@media (hover: hover) and (pointer: fine) { .gallery figure:hover img { transform: scale(1.035); } }
.fine-print { font-size: 1rem; color: var(--muted); margin-top: 18px; }
.section--dark .fine-print { color: var(--on-dark-muted); }

/* Closing CTA */
.close-cta { text-align: center; }
.close-cta h2 { max-width: 16ch; margin-left: auto; margin-right: auto; }
.close-cta .lead { color: var(--on-dark-muted); margin: 0 auto 2rem; }
.close-cta .btn-row { justify-content: center; }

/* Checklist (dark) */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.checklist--3 { grid-template-columns: repeat(3, 1fr); }
.checklist li {
  display: flex; gap: 16px; padding: 24px; border: 1px solid rgba(244,240,230,.14); border-radius: var(--radius);
  background: var(--dark-2); transition: border-color .3s ease;
}
.checklist li:hover, .checklist li:focus-within { border-color: rgba(201,162,39,.6); }
.check { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: #111111; display: grid; place-items: center; }
.check svg { width: 16px; height: 16px; }
.checklist h3 { font-size: 1.6rem; margin-bottom: .3em; }
.checklist p { margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact-info p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.contact-list span:first-child { font-weight: 600; }
.placeholder { color: var(--gold-deep); font-style: italic; }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 4vw, 40px); box-shadow: 0 20px 50px var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 1.05rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(201,162,39,.3); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--error); }
.field ::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .85; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; color: var(--muted); }
.consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--gold-deep); }
.form-actions { margin-top: 22px; }
.form-actions .btn { width: 100%; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-size: 1.05rem; display: none; }
.form-status.is-visible { display: block; }
.form-status--info { background: var(--secondary); color: var(--ink); border-left: 3px solid var(--gold-deep); }
.form-status--error { background: var(--error-bg); color: var(--error-ink); border-left: 3px solid var(--error); }

/* FAQ */
.faq-list { max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .3s ease; }
.section--dark .faq-list details { background: var(--dark-2); border-color: rgba(244,240,230,.14); }
.faq-list details[open], .faq-list details:hover { border-color: rgba(201,162,39,.6); }
.faq-list summary {
  cursor: pointer; list-style: none; min-height: 56px; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--font-head); font-size: 1.6rem; font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font: 400 1.6rem var(--font-body); color: var(--gold-deep); transition: transform .3s ease;
}
.section--dark .faq-list summary::after { color: var(--gold); }
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .answer { padding: 0 22px 20px; color: var(--muted); }
.section--dark .faq-list .answer { color: var(--on-dark-muted); }

/* Detail pages */
.detail-hero { padding: clamp(56px, 8vw, 110px) 0; }
.detail-hero--center { text-align: center; }
.detail-hero--center .lead { margin-left: auto; margin-right: auto; }
.detail-hero--center .btn-row { justify-content: center; }
.detail-hero .hero-media figure { aspect-ratio: 5 / 4; }
.note { max-width: 780px; }
.note p { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); }
.confirm-mark { width: 72px; height: 72px; border-radius: 50%; background: var(--dark); color: var(--gold); display: grid; place-items: center; margin: 0 auto 26px; }
.confirm-mark svg { width: 32px; height: 32px; }

/* Footer */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 1.05rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-family: var(--font-body); font-size: .95rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-grid a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.footer-grid a:hover, .footer-grid a:focus-visible { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 4px; }
.footer-grid p { color: var(--muted); max-width: 36ch; margin-top: 12px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 1rem; }

/* Listings (index): one feature card full width, the rest in pairs */
.listings { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 2.4vw, 32px); }
.listing {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .4s ease;
}
.listing--feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.35fr 1fr; }
.listing-media { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--secondary); }
.listing--feature .listing-media { aspect-ratio: auto; min-height: 460px; }
.listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.listing-body { padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.listing--feature .listing-body { justify-content: center; gap: 14px; }
.listing--feature .listing-price { font-size: clamp(2.4rem, 1.8rem + 2vw, 3.6rem); }
.listing.listing--feature .card-link { margin-top: 12px; }
.listing-status { font-weight: 600; color: var(--gold-deep); margin: 0; }
.listing-price { font-family: var(--font-head); font-weight: 700; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1.05; margin: 0; }
.listing h3 { margin: 0; }
.listing-loc { color: var(--muted); margin: 0; }
.listing .card-link { margin-top: auto; padding-top: 8px; }
.listing .card-link::after { content: ""; position: absolute; inset: 0; }
.listing:hover, .listing:focus-within { border-color: rgba(201,162,39,.55); box-shadow: 0 22px 52px var(--shadow); }
@media (hover: hover) and (pointer: fine) {
  .listing:hover, .listing:focus-within { transform: translateY(-6px); }
  .listing:hover .listing-media img { transform: scale(1.04); }
}
.specs { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 1rem; line-height: 1.4; }

/* Property detail pages */
.prop-top { padding: clamp(24px, 3vw, 40px) 0 clamp(48px, 6vw, 80px); }
.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 12px; font-weight: 600; color: var(--gold-deep); text-decoration: none; }
.back-link:hover, .back-link:focus-visible { text-decoration: underline; text-underline-offset: 4px; }
.prop-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 48px; margin-bottom: clamp(20px, 3vw, 32px); }
.prop-head h1 { font-size: clamp(2.3rem, 1.7rem + 2vw, 3.5rem); margin: 0 0 .2em; }
.prop-head .listing-loc { font-size: 1.15rem; }
.prop-price { text-align: right; }
.prop-price .listing-price { font-size: clamp(2.2rem, 1.7rem + 2vw, 3.4rem); }

.prop-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 10px; height: clamp(380px, 46vw, 680px); }
.prop-gallery--3 { grid-template-columns: 2fr 1fr; }
.g-item { position: relative; display: block; overflow: hidden; border-radius: 12px; background: var(--secondary); }
.g-item:first-child { grid-row: span 2; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.g-item:nth-child(n+6) { display: none; }
.prop-gallery--3 .g-item:nth-child(n+4) { display: none; }
@media (hover: hover) and (pointer: fine) { .g-item:hover img { transform: scale(1.04); } }
.gallery-actions { margin-top: 16px; }
.gallery-actions .btn { min-height: 48px; }

.prop-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.prop-main > p { color: var(--muted); max-width: 70ch; }
.prop-main h2 { font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.6rem); margin-top: 1.4em; }
.prop-main h2:first-child { margin-top: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.facts div { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.facts dt { font-size: 1rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 1.15rem; }
.feature-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 40px; }
.feature-cols h3 { font-size: clamp(1.45rem, 1.3rem + .5vw, 1.7rem); margin: 1em 0 .4em; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 6px; top: .35em; width: 7px; height: 13px;
  border: solid var(--gold-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}
.prop-note { margin-top: 28px; padding: 16px 20px; background: var(--secondary); border-left: 3px solid var(--gold-deep); border-radius: 10px; color: var(--muted); font-size: 1.05rem; }
.prop-aside { position: sticky; top: 100px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: 0 20px 50px var(--shadow); }
.prop-aside .listing-price { margin-bottom: 6px; }
.prop-aside p { color: var(--muted); }
.contact-stack { display: grid; gap: 10px; margin-top: 20px; }
.contact-stack .btn { width: 100%; }
.aside-agents { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }

/* Photo viewer */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 8, 6, .96); color: #F4F0E6; }
.lightbox::backdrop { background: rgba(8, 8, 6, .96); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lb-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gutter); }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(8px, 6vw, 96px) 24px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-btn {
  min-width: 48px; min-height: 48px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid rgba(244,240,230,.4); background: rgba(13,13,13,.6); color: #F4F0E6; font: 600 1.05rem var(--font-body);
}
.lb-btn:hover, .lb-btn:focus-visible { border-color: var(--gold); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.5rem; }
.lb-prev { left: clamp(8px, 2vw, 32px); }
.lb-next { right: clamp(8px, 2vw, 32px); }

@media (max-width: 1024px) {
  .listing--feature { grid-template-columns: 1fr; }
  .listing--feature .listing-media { min-height: 0; aspect-ratio: 16 / 10; }
  .prop-layout { grid-template-columns: 1fr; }
  .prop-aside { position: static; }
}
@media (max-width: 767px) {
  .listings { grid-template-columns: 1fr; }
  .listing-body { text-align: center; align-items: center; }
  .specs { justify-content: center; }
  .prop-head { grid-template-columns: 1fr; }
  .prop-price { text-align: left; }
  .prop-gallery, .prop-gallery--3 { display: block; height: auto; }
  .g-item:first-child { aspect-ratio: 4 / 3; }
  .g-item:not(:first-child) { display: none; }
  .gallery-actions .btn { width: 100%; }
  .feature-cols { grid-template-columns: 1fr; }
}

/* Scroll reveal: only hidden when JS is running, so content stays visible without it */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }

/* Tablet */
@media (max-width: 1024px) {
  .hero-grid, .story-grid, .contact-grid, .brief-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 640px; margin: 0 auto; width: 100%; }
  .hero-media figure { aspect-ratio: 16 / 11; }
  .hero-note { left: 16px; bottom: 16px; }
  .story-media { aspect-ratio: 16 / 10; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .checklist--3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero--full .hero-note { display: none; }
}
@media (max-width: 1024px) {
  .hero--full::before { background: linear-gradient(180deg, rgba(10,9,7,.3) 0%, rgba(10,9,7,.6) 45%, rgba(10,9,7,.82) 100%); }
  .hero-bg { object-position: 62% 50%; }
}

/* Mobile: centered headings, copy and CTAs; stacked cards and actions */
@media (max-width: 767px) {
  .section-head, .hero-copy, .story-copy, .contact-info, .note, .detail-hero, .card-body, .footer-grid { text-align: center; }
  .lead, .footer-grid p { margin-left: auto; margin-right: auto; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .hero-note { position: static; max-width: none; margin-top: 14px; }
  .card-grid, .checklist, .form-grid, .footer-grid, .pillars { grid-template-columns: 1fr; }
  .pillars li { text-align: center; }
  .brief-list li { grid-template-columns: 52px 1fr; gap: 14px; }
  .card-grid > :last-child:nth-child(odd) { grid-column: auto; }
  .pillar-icon { margin-left: auto; margin-right: auto; }
  .card-link { justify-content: center; }
  .checklist li { flex-direction: column; align-items: center; text-align: center; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery figure:first-child { grid-row: auto; aspect-ratio: 4 / 3; }
  .gallery figure:not(:first-child) { aspect-ratio: 4 / 3; }
  .contact-list li { justify-content: center; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
  .brand img { height: 52px; }
  .footer-grid .brand { margin-right: 0; }
}

/* Touch devices: no decorative movement */
@media (hover: none) {
  .soft-light::before { animation: none; }
}

/* Reduced motion: no decorative motion, no hidden reveal state */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .glow-zone::after { display: none; }
}

/* Agents (story section) */
.agents { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.agents li { padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; background: var(--surface); }
.agents strong { display: block; font-family: var(--font-head); font-size: 1.5rem; line-height: 1.2; }
.agents span { font-size: 1.05rem; color: var(--muted); }
@media (max-width: 767px) { .agents { grid-template-columns: 1fr; } }
