/* ============================================
   ERNEST TAN — Property Advisor
   Cinematic editorial. Mobile-first.
   ============================================ */

:root {
  --bone: #ece7dd;
  --bone-deep: #e3dccf;
  --ink: #12161a;          /* near-black, filmic */
  --pine: #1a2620;         /* esplanade dome */
  --navy: #16233a;         /* the suit */
  --moss: #6b7263;
  --clay: #b5a184;
  --text: #2a2e31;
  --text-faint: #6e6f6a;
  --hairline: rgba(18, 22, 26, 0.16);
  --hairline-light: rgba(236, 231, 221, 0.22);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Space Grotesk", -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: var(--bone);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.serif { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; }

.label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.wrap { width: 100%; padding: 0 22px; margin: 0 auto; max-width: 1200px; }

/* ---------- Nav ---------- */

.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: var(--bone);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

/* Soft top scrim so nav type stays legible over the hero photo — replaces
   mix-blend-mode, which turned to grey mush over the photo's mid-tones and
   vanished over its bright top. Fades out once we scroll onto content, where
   the .scrolled bar takes over. */
.site-nav::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 118px;
  pointer-events: none;
  z-index: -1;
  opacity: 1;
  transition: opacity 0.3s ease;
  background: linear-gradient(180deg,
    rgba(18, 22, 26, 0.7) 0%,
    rgba(18, 22, 26, 0.34) 46%,
    rgba(18, 22, 26, 0) 100%);
}

/* Scrolled onto content: an opaque bone bar with ink type — legible over any
   section (bone or dark) without a scrim smudge. */
.site-nav.scrolled {
  background: rgba(236, 231, 221, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--ink);
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: 0 1px 0 var(--hairline), 0 6px 24px rgba(18, 22, 26, 0.06);
}
.site-nav.scrolled::before { opacity: 0; }
.site-nav.scrolled .brand,
.site-nav.scrolled ul a { color: var(--ink); text-shadow: none; }

.site-nav .brand,
.site-nav ul a { text-shadow: 0 1px 3px rgba(18, 22, 26, 0.6); }

.site-nav .brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.site-nav ul { display: flex; gap: 2px; list-style: none; }

.site-nav ul a {
  display: inline-block;
  padding: 12px 9px;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.92;
}

.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  background: var(--pine);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-img {
  position: absolute;
  inset: 0;
}

.hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  /* bright photo: pull it down so bone type reads on top */
  filter: saturate(0.88) contrast(1.02) brightness(0.8);
}

/* cinematic grade: darken floor + top for type.
   Heavy floor scrim — the photo is bright, type needs a solid dark base. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(18, 22, 26, 0.5) 0%, rgba(18, 22, 26, 0) 26%),
    linear-gradient(to top, rgba(18, 22, 26, 0.97) 0%, rgba(18, 22, 26, 0.88) 26%, rgba(18, 22, 26, 0.66) 48%, rgba(18, 22, 26, 0.28) 64%, rgba(18, 22, 26, 0) 80%);
}

.hero .label,
.hero h1,
.hero-foot p {
  text-shadow: 0 1px 3px rgba(18, 22, 26, 0.7), 0 6px 30px rgba(18, 22, 26, 0.7);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 22px 34px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero .label { color: #cdb896; font-weight: 600; margin-bottom: 14px; }

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(4.6rem, 19vw, 15rem);
  line-height: 0.86;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  margin-left: -0.04em;
  margin-bottom: 22px;
}

.hero h1 .ln { display: block; }
.hero h1 .ln:last-child { margin-left: 0.9em; font-style: italic; }

.hero-foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-top: 1px solid var(--hairline-light);
  padding-top: 20px;
}

.hero-foot p {
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 30em;
  color: rgba(236, 231, 221, 0.96);
}

.hero-foot .btn { align-self: flex-start; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.15s ease, opacity 0.15s ease;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }
.btn svg { flex: 0 0 auto; }

.btn-bone { background: var(--bone); color: var(--ink); }
.btn-bone:hover { opacity: 0.9; }

.btn-ink { background: var(--ink); color: var(--bone); }
.btn-ink:hover { opacity: 0.92; }

.btn-line { border: 1px solid var(--hairline); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* ---------- Manifesto ---------- */

.manifesto { padding: 96px 0 84px; }

.manifesto .label { color: var(--moss); margin-bottom: 30px; }

.manifesto h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 7.4vw, 4.6rem);
  line-height: 1.08;
  color: var(--ink);
  letter-spacing: -0.01em;
  max-width: 17em;
}

.manifesto h2 em { font-style: italic; color: var(--moss); }

.manifesto .aside {
  margin-top: 36px;
  font-size: 0.98rem;
  color: var(--text-faint);
  max-width: 34em;
}

/* ---------- Numbers ---------- */

.numbers { border-top: 1px solid var(--hairline); }

.numbers-grid { display: grid; grid-template-columns: 1fr; }

.numbers .cell {
  padding: 32px 0 28px;
  border-bottom: 1px solid var(--hairline);
}

.numbers .num {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.5rem, 9vw, 5rem);
  line-height: 1;
  color: var(--ink);
  display: block;
  margin-bottom: 8px;
}

.numbers .cell .tag { font-size: 0.78rem; letter-spacing: 0.06em; color: var(--ink); text-transform: uppercase; }

.numbers .cell .why {
  margin-top: 12px;
  font-size: 0.95rem;
  color: var(--text-faint);
  max-width: 26em;
}

.numbers { padding-bottom: 56px; }

/* ---------- Cinematic quote band ---------- */

.filmband {
  position: relative;
  min-height: 88svh;
  display: flex;
  align-items: flex-end;
  color: var(--bone);
  overflow: hidden;
  background: var(--navy);
}

.filmband img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.9);
}

.filmband::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(18, 22, 26, 0.9) 8%, rgba(18, 22, 26, 0.2) 55%, rgba(18, 22, 26, 0.25) 100%);
}

.filmband .inner {
  position: relative;
  z-index: 2;
  padding: 120px 22px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.filmband .label { color: var(--clay); margin-bottom: 18px; }

.filmband blockquote {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(1.75rem, 6.4vw, 3.9rem);
  line-height: 1.12;
  max-width: 18em;
  letter-spacing: -0.01em;
}

.filmband blockquote em { font-style: italic; color: var(--clay); }

.filmband .attr {
  margin-top: 22px;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(236, 231, 221, 0.6);
}

/* ---------- Editorial lists (frameworks) ---------- */

.method { padding: 92px 0 40px; }

.method-head { margin-bottom: 60px; }

.method-head .label { color: var(--moss); margin-bottom: 26px; }

.method-head h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 8vw, 4.8rem);
  line-height: 1.02;
  color: var(--ink);
}

.method-head h2 em { font-style: italic; color: var(--moss); }

.framework-block { margin-bottom: 72px; }

.framework-block .fw-label {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 8px;
}

.framework-block .fw-label .label { color: var(--moss); }

.framework-block h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 3.2rem);
  color: var(--ink);
  line-height: 1.05;
  margin-bottom: 6px;
}

.framework-block .fw-sub { font-size: 0.95rem; color: var(--text-faint); margin-bottom: 30px; max-width: 34em; }

.framework-block ol { list-style: none; counter-reset: fw; }

.framework-block li {
  counter-increment: fw;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: 6px 0;
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}

.framework-block li::before {
  content: counter(fw, decimal-leading-zero);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.3rem;
  color: var(--clay);
  line-height: 1.4;
}

.framework-block li strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.framework-block li p { grid-column: 2; font-size: 0.92rem; color: var(--text-faint); max-width: 38em; }

/* ---------- Review band (dark) ---------- */

.review {
  background: var(--ink);
  color: var(--bone);
  padding: 88px 0;
}

.review .label { color: var(--clay); margin-bottom: 26px; }

.review h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.05;
  max-width: 14em;
  margin-bottom: 16px;
}

.review .sub { color: rgba(236, 231, 221, 0.66); max-width: 36em; margin-bottom: 40px; font-size: 0.97rem; }

.review ul { list-style: none; }

.review li {
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--hairline-light);
  font-size: 1rem;
}

.review li::before {
  content: "→";
  color: var(--clay);
  font-family: "Instrument Serif", Georgia, serif;
}

/* ---------- About strip ---------- */

.about { padding: 92px 0; }

.about .label { color: var(--moss); margin-bottom: 26px; }

.about-grid { display: grid; gap: 40px; }

.about h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 24px;
}

.about h2 em { font-style: italic; color: var(--moss); }

.about-copy p { margin-bottom: 18px; font-size: 0.98rem; }
.about-copy p:last-child { margin-bottom: 0; }

.about-photo {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  aspect-ratio: 1 / 1;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(0.9);
}

.about-photo figcaption {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(236, 231, 221, 0.85);
}

/* ---------- Connect ---------- */

.connect {
  border-top: 1px solid var(--hairline);
  padding: 100px 0 60px;
}

.connect .label { color: var(--moss); margin-bottom: 24px; }

.connect h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(3.4rem, 15vw, 10rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-transform: uppercase;
  margin-bottom: 30px;
}

.connect h2 em { font-style: italic; text-transform: none; }

.connect .sub { font-size: 1rem; color: var(--text-faint); max-width: 32em; margin-bottom: 36px; }

.connect .cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.connect .phone {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  color: var(--text-faint);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 46px 0 110px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--hairline);
  padding-top: 22px;
}

.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Floating WhatsApp ---------- */

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bone);
  box-shadow: 0 10px 30px rgba(18, 22, 26, 0.35);
  transition: transform 0.15s ease;
}

.wa-float:hover { transform: scale(1.06); }

/* ---------- Placeholder pages ---------- */

.placeholder-page {
  min-height: 100svh;
  background: var(--pine);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}

.placeholder-page .ghost {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(6rem, 30vw, 24rem);
  line-height: 1;
  color: rgba(236, 231, 221, 0.06);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.placeholder-page .inner {
  position: relative;
  z-index: 2;
  padding: 0 22px 44px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.placeholder-page .label { color: var(--clay); margin-bottom: 16px; }

.placeholder-page h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 11vw, 6.5rem);
  line-height: 0.98;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.placeholder-page h1 em { font-style: italic; text-transform: none; }

.placeholder-page p {
  color: rgba(236, 231, 221, 0.75);
  max-width: 30em;
  margin-bottom: 30px;
  border-top: 1px solid var(--hairline-light);
  padding-top: 20px;
}

/* ============================================
   Tablet / desktop
   ============================================ */

@media (min-width: 769px) {
  .wrap { padding: 0 40px; }

  .site-nav { padding: 24px 40px; }
  .site-nav ul a { font-size: 0.66rem; padding: 12px 14px; }

  .hero-content { padding: 0 40px 44px; }

  /* photo becomes a right-side panel; type owns the left */
  .hero-img { inset: 0 0 0 auto; width: 58%; }
  .hero-img img { object-position: 42% 14%; }

  .hero::before {
    background:
      linear-gradient(to right, #1a2620 30%, rgba(26, 38, 32, 0.55) 52%, rgba(26, 38, 32, 0) 72%),
      linear-gradient(to bottom, rgba(18, 22, 26, 0.35) 0%, rgba(18, 22, 26, 0) 30%),
      linear-gradient(to top, rgba(18, 22, 26, 0.82) 0%, rgba(18, 22, 26, 0.25) 40%, rgba(18, 22, 26, 0) 66%);
  }

  .hero-foot {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 48px;
  }

  .hero-foot p { max-width: 26em; }

  .manifesto { padding: 150px 0 120px; }

  /* photo becomes a right-side panel, quote owns the left — echoes the hero.
     The quote is hard-confined to the left of the panel so it can never
     cross the face at any viewport width. */
  .filmband { background: var(--ink); }
  .filmband img { inset: 0 0 0 auto; width: 46%; object-position: 50% 22%; }
  .filmband::before {
    background:
      linear-gradient(to right, #12161a 52%, rgba(18, 22, 26, 0.4) 62%, rgba(18, 22, 26, 0) 74%),
      linear-gradient(to top, rgba(18, 22, 26, 0.55) 6%, rgba(18, 22, 26, 0) 38%);
  }
  .filmband { align-items: center; }
  .filmband .inner { padding-right: 47%; }
  .filmband blockquote { max-width: none; font-size: clamp(2.1rem, 2.9vw, 3.3rem); line-height: 1.18; }

  .numbers-grid { grid-template-columns: repeat(2, 1fr); }
  .numbers .cell { border-right: 1px solid var(--hairline); padding: 44px 26px 40px 0; }
  .numbers .cell + .cell { padding-left: 26px; }
  .numbers .cell:last-child { border-right: none; }

  .method { padding: 140px 0 60px; }

  .framework-block { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; margin-bottom: 110px; }
  .framework-block ol { border-top: none; }
  .framework-block li:first-child { border-top: 1px solid var(--hairline); }

  .review { padding: 130px 0; }
  .review ul { columns: 2; column-gap: 60px; }
  .review li { break-inside: avoid; }

  .about-grid { grid-template-columns: 7fr 5fr; gap: 70px; align-items: center; }

  .connect { padding: 160px 0 80px; }

  .site-footer .wrap { flex-direction: row; justify-content: space-between; }

  .wa-float { right: 28px; bottom: 28px; }
}

/* ============================================
   Listings — index + detail pages
   ============================================ */

/* ---------- Index header band ---------- */

.lst-index-hero {
  position: relative;
  min-height: 62svh;
  background: var(--pine);
  color: var(--bone);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.lst-index-hero .ghost {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(5rem, 24vw, 19rem);
  line-height: 1;
  color: rgba(236, 231, 221, 0.06);
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
}

.lst-index-hero .inner {
  position: relative;
  z-index: 2;
  padding: 120px 22px 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.lst-index-hero .label { color: var(--clay); margin-bottom: 16px; }

.lst-index-hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 12vw, 7.5rem);
  line-height: 0.96;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.lst-index-hero h1 em { font-style: italic; text-transform: none; }

.lst-index-hero .sub {
  color: rgba(236, 231, 221, 0.75);
  max-width: 30em;
  border-top: 1px solid var(--hairline-light);
  padding-top: 18px;
}

/* ---------- Listing grid ---------- */

.lst-index { padding: 56px 0 88px; }

.lst-count { margin-bottom: 28px; }
.lst-count .label { color: var(--moss); }

.listing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  background: transparent;
}

.lc-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy);
}

.lc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.5s ease;
}

a.listing-card:hover .lc-photo img { transform: scale(1.03); }

.lc-chip {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 7px 13px;
  background: rgba(18, 22, 26, 0.72);
  color: var(--bone);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  backdrop-filter: blur(4px);
}

.lc-chip--tour {
  left: auto;
  right: 14px;
  background: rgba(236, 231, 221, 0.88);
  color: var(--ink);
}

.lc-body { padding: 22px 0 0; border-bottom: 1px solid var(--hairline); padding-bottom: 26px; }

.lc-district { color: var(--moss); margin-bottom: 10px; }

.lc-body h2 {
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.8rem);
  line-height: 1.02;
  color: var(--ink);
  margin-bottom: 10px;
}

.lc-line { font-size: 0.95rem; color: var(--text-faint); max-width: 34em; margin-bottom: 20px; }

.lc-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }

.lc-price { font-size: clamp(1.7rem, 5.5vw, 2.3rem); line-height: 1.1; color: var(--ink); }

.lc-specs { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); }

.lc-view {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}

a.listing-card:hover .lc-view { text-decoration: underline; text-underline-offset: 5px; }

/* ghost card — "more coming" */

.lc-ghost {
  border: 1px solid var(--hairline);
  background: var(--bone-deep);
  min-height: 340px;
}

.lc-ghost-inner {
  padding: 34px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.lc-ghost .label { color: var(--moss); margin-bottom: 16px; }

.lc-ghost h2 {
  font-weight: 400;
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 14px;
  max-width: 13em;
}

.lc-ghost h2 em { font-style: italic; color: var(--moss); }

.lc-ghost .lc-line { margin-bottom: 26px; }

.lc-ghost .btn { align-self: flex-start; }

/* ---------- Detail hero ---------- */

.lst-hero .label a:hover { text-decoration: underline; text-underline-offset: 4px; }

.lst-hero h1.lst-title {
  font-size: clamp(3rem, 13.5vw, 9.5rem);
  line-height: 0.9;
}

.hero-foot p.lst-price {
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  line-height: 1.05;
  margin-bottom: 8px;
  max-width: none;
}

.lst-price .neg {
  font-size: 0.55em;
  font-style: italic;
  color: var(--clay);
}

.hero-foot p.lst-specline {
  font-size: 0.74rem;
  max-width: none;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(236, 231, 221, 0.72);
}

/* ---------- Detail facts ---------- */

.lst-facts .num { font-size: clamp(2.1rem, 7vw, 3.6rem); }

/* ---------- Gallery ---------- */

.lst-gallery { padding: 72px 0 40px; }

.g-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.g-head > .label { color: var(--moss); }

.g-hint { color: var(--text-faint); letter-spacing: 0.18em; }
.g-hint-click { display: none; }

/* mobile: swipeable filmstrip */
.gallery-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0 -22px;
  padding: 0 22px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar { display: none; }

.gallery-grid figure {
  position: relative;
  flex: 0 0 84%;
  scroll-snap-align: center;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--navy);
  cursor: zoom-in;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9);
  transition: transform 0.5s ease;
}

.gallery-grid figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 14px 10px;
  font-size: 0.58rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(236, 231, 221, 0.92);
  background: linear-gradient(to top, rgba(18, 22, 26, 0.55), rgba(18, 22, 26, 0));
  pointer-events: none;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 22, 26, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] { display: none; }

.lb-stage {
  max-width: min(1100px, 92vw);
  width: 100%;
  padding: 0 8px;
}

.lb-stage img {
  width: 100%;
  max-height: 76svh;
  object-fit: contain;
  background: transparent;
}

.lb-stage figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 2px 0;
}

.lb-caption {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(236, 231, 221, 0.75);
}

.lb-count {
  font-size: 1.05rem;
  color: var(--clay);
  white-space: nowrap;
}

.lb-close,
.lb-arrow {
  position: fixed;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--hairline-light);
  background: rgba(18, 22, 26, 0.6);
  color: var(--bone);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.lb-close:hover, .lb-arrow:hover { border-color: var(--bone); }
.lb-close:active, .lb-arrow:active { transform: scale(0.94); }

.lb-close { top: 16px; right: 16px; font-size: 1.5rem; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }

/* ---------- Floor plan zoom affordance ---------- */

.fp-img { cursor: zoom-in; position: relative; }

.fp-zoom {
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--text-faint);
  font-size: 0.56rem;
}

/* ---------- 3D walkthrough ---------- */

.lst-tour {
  margin-top: 64px;
  background: var(--pine);
  padding: 72px 0 64px;
}

.lst-tour > .wrap > .label { color: var(--clay); margin-bottom: 20px; }

.lst-tour h2 {
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.04;
  color: var(--bone);
  margin-bottom: 14px;
}

.lst-tour h2 em { font-style: italic; color: var(--clay); }

.tour-sub {
  color: rgba(236, 231, 221, 0.62);
  font-size: 0.97rem;
  max-width: 34em;
  margin-bottom: 34px;
}

.tour-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid rgba(236, 231, 221, 0.16);
  background: var(--ink);
}

.tour-frame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.66) saturate(0.92);
}

.tour-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.tour-start {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: pointer;
  border: 0;
  white-space: nowrap;
}

.tour-note {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  text-align: center;
  color: rgba(236, 231, 221, 0.65);
  font-size: 0.56rem;
  pointer-events: none;
}

.tour-live .tour-start,
.tour-live .tour-note { display: none; }

/* ---------- Floor plan ---------- */

.lst-floorplan {
  margin-top: 48px;
  background: var(--bone-deep);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 72px 0;
}

.fp-grid { display: grid; gap: 36px; }

.fp-copy .label { color: var(--moss); margin-bottom: 20px; }

.fp-copy h2 {
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 3.4rem);
  line-height: 1.04;
  color: var(--ink);
  margin-bottom: 16px;
}

.fp-copy h2 em { font-style: italic; color: var(--moss); }

.fp-copy p { font-size: 0.97rem; color: var(--text-faint); max-width: 30em; }

.fp-img { background: #fff; padding: 18px; border: 1px solid var(--hairline); }
.fp-img img { width: 100%; }

/* ============================================
   Listings — tablet / desktop
   ============================================ */

@media (min-width: 769px) {
  .lst-index-hero .inner { padding: 150px 40px 52px; }

  .lst-index { padding: 72px 0 120px; }

  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: 56px 44px; }

  .lst-hero .hero-img img { object-position: 50% 50%; }

  .lst-hero .hero-foot { align-items: flex-end; }

  /* desktop: editorial mosaic */
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: clamp(150px, 16vw, 235px);
    gap: 14px;
    margin: 0;
    padding: 0;
    overflow: visible;
    scroll-snap-type: none;
  }

  .gallery-grid figure { flex: none; aspect-ratio: auto; grid-column: span 2; }
  .gallery-grid .g-feature { grid-column: span 4; grid-row: span 2; }
  .gallery-grid .g-last { grid-column: span 4; }

  .gallery-grid figure:hover img { transform: scale(1.03); }

  .g-hint-swipe { display: none; }
  .g-hint-click { display: inline; }

  .lst-tour { margin-top: 96px; padding: 100px 0 90px; }
  .tour-frame { aspect-ratio: 16 / 9; }
  .tour-note { text-align: left; left: 20px; right: auto; bottom: 18px; }

  .lst-floorplan { padding: 100px 0; }
  .fp-grid { grid-template-columns: 5fr 7fr; gap: 60px; align-items: center; }
}
