/* Metropolitan — shared CSS for property + project detail pages */

/* ============ Listing hero ============ */
.lst-hero {
  position: relative;
  padding: 180px var(--gut) clamp(80px, 9vw, 140px);
  overflow: hidden;
  color: var(--paper);
  background: var(--teal-d);
  min-height: 80vh;
  display: flex; align-items: flex-end;
}
.lst-hero::before {
  content: ""; position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: 0;
}
.lst-hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(1, 52, 66, 0.20) 0%, rgba(1, 52, 66, 0.55) 60%, rgba(1, 52, 66, 0.92) 100%);
  z-index: 1;
}
.lst-hero-inner { position: relative; z-index: 2; max-width: 1480px; margin: 0 auto; width: 100%; }
.lst-hero-meta { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; font-family: var(--body); font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.85; }
.lst-hero-meta .badge {
  padding: 7px 14px; border-radius: 999px;
  background: var(--teal); color: var(--paper);
  font-weight: 600; letter-spacing: 0.18em;
}
.lst-hero-meta .badge.coming { background: var(--paper); color: var(--teal-d); }
.lst-hero-meta .badge.contract { background: rgba(255,255,255,0.16); }
.lst-hero h1 {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 1.02; letter-spacing: -0.03em;
  margin: 0 0 18px; max-width: 22ch;
}
.lst-hero h1 em { font-style: italic; font-weight: 400; color: var(--teal-l); }
.lst-hero-sub { font-family: var(--body); font-size: clamp(16px, 1.3vw, 20px); color: rgba(255,255,255,0.85); max-width: 50ch; margin: 0; }
.lst-hero-price {
  display: inline-flex; align-items: baseline; gap: 14px;
  margin-top: 28px;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: -0.02em;
}
.lst-hero-price .label { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.lst-hero-price .incentive {
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 7px 12px; border-radius: 999px;
  background: var(--teal); color: var(--paper);
  margin-left: 12px;
}

/* ============ Specs strip ============ */
.lst-specs {
  background: var(--paper);
  padding: 32px var(--gut);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.lst-specs-inner {
  max-width: 1480px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 32px;
  align-items: center;
}
@media (min-width: 720px) { .lst-specs-inner { grid-template-columns: repeat(5, 1fr); } }
.lst-specs.with-cta .lst-specs-inner { grid-template-columns: 1fr; }
@media (min-width: 980px) { .lst-specs.with-cta .lst-specs-inner { grid-template-columns: repeat(4, 1fr) auto; } }
.lst-spec { display: flex; flex-direction: column; gap: 4px; }
.lst-spec .lbl {
  font-family: var(--body); font-size: 10px; font-weight: 500;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--grey-500);
}
.lst-spec .val {
  font-family: var(--display); font-size: clamp(20px, 1.6vw, 24px);
  font-weight: 400; color: var(--ink); letter-spacing: -0.01em;
}
.lst-specs .lst-cta-btn {
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 999px;
  background: var(--teal); color: var(--paper);
  white-space: nowrap;
  transition: background 220ms var(--ease), transform 220ms var(--ease);
}
.lst-specs .lst-cta-btn:hover { background: var(--teal-d); transform: translateY(-1px); }

/* ============ Gallery ============ */
.lst-gallery { padding: clamp(60px, 8vw, 100px) var(--gut); background: var(--paper); }
.lst-gallery-inner { max-width: 1480px; margin: 0 auto; }
.lst-gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: clamp(180px, 18vw, 260px);
}
.lst-gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; display: block; transition: transform 700ms var(--ease); cursor: pointer; }
.lst-gallery-grid > div { position: relative; overflow: hidden; border-radius: 14px; background: var(--grey-50); }
.lst-gallery-grid > div:hover img { transform: scale(1.04); }
.lst-gallery-grid > div:nth-child(1) { grid-column: span 6; grid-row: span 2; }
.lst-gallery-grid > div:nth-child(2) { grid-column: span 3; }
.lst-gallery-grid > div:nth-child(3) { grid-column: span 3; }
.lst-gallery-grid > div:nth-child(4) { grid-column: span 2; }
.lst-gallery-grid > div:nth-child(5) { grid-column: span 2; }
.lst-gallery-grid > div:nth-child(6) { grid-column: span 2; }
@media (max-width: 720px) {
  .lst-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .lst-gallery-grid > div:nth-child(n) { grid-column: span 2; }
  .lst-gallery-grid > div:nth-child(n+2) { grid-column: span 1; }
}

/* ============ Two-column body ============ */
.lst-body {
  padding: clamp(60px, 8vw, 100px) var(--gut);
  background: var(--paper);
}
.lst-body-inner {
  max-width: 1480px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}
@media (min-width: 980px) { .lst-body-inner { grid-template-columns: 1.5fr 0.85fr; gap: 80px; } }

.lst-prose h2 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.02em; margin: 0 0 18px; color: var(--ink);
}
.lst-prose h2:not(:first-child) { margin-top: 48px; }
.lst-prose h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 28px 0 10px; color: var(--ink);
}
.lst-prose p { font-family: var(--body); font-size: 16px; line-height: 1.75; color: var(--grey-500); margin: 0 0 16px; max-width: 64ch; }
.lst-prose p strong { color: var(--ink); font-weight: 600; }
.lst-prose ul { padding-left: 22px; margin: 0 0 20px; }
.lst-prose li { font-family: var(--body); font-size: 16px; line-height: 1.7; color: var(--grey-500); margin-bottom: 8px; max-width: 64ch; }
.lst-prose li strong { color: var(--ink); font-weight: 600; }
.lst-prose blockquote {
  margin: 28px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--teal);
  background: var(--teal-l);
  border-radius: 0 14px 14px 0;
  font-family: var(--body); font-size: 17px; line-height: 1.65;
  color: var(--ink); font-style: italic;
}
.lst-prose blockquote strong { font-style: normal; }

/* Feature grid inside prose */
.lst-features {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
  margin: 28px 0 32px;
}
@media (min-width: 640px) { .lst-features { grid-template-columns: repeat(2, 1fr); } }
.lst-feature {
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--grey-50);
  transition: border-color 240ms var(--ease), transform 240ms var(--ease);
}
.lst-feature:hover { border-color: var(--teal); transform: translateY(-2px); }
.lst-feature h4 { font-family: var(--display); font-size: 16px; font-weight: 500; margin: 0 0 6px; color: var(--ink); }
.lst-feature p { font-size: 14px; line-height: 1.55; color: var(--grey-500); margin: 0; }

/* ============ Sidebar ============ */
.lst-side { align-self: start; position: sticky; top: 120px; }
@media (max-width: 979px) { .lst-side { position: relative; top: 0; } }
.lst-side-card {
  padding: 32px;
  border-radius: 24px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 40px 80px -28px rgba(10, 10, 12, 0.45);
  margin-bottom: 24px;
}
.lst-side-card .eyebrow { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal-l); margin: 0 0 12px; }
.lst-side-card h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
.lst-side-card p { font-family: var(--body); font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.6; margin: 0 0 22px; }
.lst-form { display: flex; flex-direction: column; gap: 12px; }
.lst-form input, .lst-form select, .lst-form textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 12px;
  color: var(--paper);
  font-family: var(--body); font-size: 14px;
  outline: none;
  transition: border-color 220ms var(--ease), background 220ms var(--ease);
}
.lst-form input::placeholder, .lst-form textarea::placeholder { color: rgba(255,255,255,0.42); }
.lst-form input:focus, .lst-form select:focus, .lst-form textarea:focus { border-color: var(--teal-l); background: rgba(255,255,255,0.09); }
.lst-form textarea { resize: vertical; min-height: 90px; }
.lst-form button {
  padding: 16px 24px;
  border-radius: 12px;
  background: var(--teal);
  color: var(--paper);
  font-family: var(--body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  transition: background 220ms var(--ease);
}
.lst-form button:hover { background: var(--teal-d); }
.lst-form .honeypot { position: absolute !important; left: -9999px !important; opacity: 0 !important; }
.lst-form-msg { font-size: 12px; color: var(--teal-l); margin-top: 10px; min-height: 16px; }

.lst-side-agent {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  display: flex; gap: 16px; align-items: center;
}
.lst-side-agent img { width: 64px; height: 64px; border-radius: 999px; object-fit: cover; flex-shrink: 0; }
.lst-side-agent h4 { font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey-500); margin: 0 0 4px; }
.lst-side-agent strong { font-family: var(--display); font-size: 18px; font-weight: 500; color: var(--ink); display: block; }
.lst-side-agent p { font-size: 13px; color: var(--grey-500); margin: 6px 0 0; line-height: 1.5; }
.lst-side-agent a { color: var(--teal); font-size: 13px; display: block; margin-top: 6px; border-bottom: 1px solid currentColor; width: fit-content; }

/* Map embed */
.lst-map {
  margin-top: 32px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 320px;
  background: var(--grey-50);
}
.lst-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ============ Related listings ============ */
.lst-related {
  padding: clamp(60px, 7vw, 100px) var(--gut);
  background: var(--grey-50);
  border-top: 1px solid var(--line);
}
.lst-related-inner { max-width: 1480px; margin: 0 auto; }
.lst-related h2 { font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -0.02em; margin: 0 0 28px; }
.lst-related-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .lst-related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lst-related-grid { grid-template-columns: repeat(3, 1fr); } }
.lst-related-card {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  transition: transform 280ms var(--ease), box-shadow 280ms var(--ease);
}
.lst-related-card:hover { transform: translateY(-4px); box-shadow: 0 32px 64px -28px rgba(10,10,12,0.22); }
.lst-related-card .img { aspect-ratio: 16/11; overflow: hidden; }
.lst-related-card .img img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease); }
.lst-related-card:hover .img img { transform: scale(1.06); }
.lst-related-card .body { padding: 22px 24px 26px; }
.lst-related-card .locale { font-family: var(--body); font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }
.lst-related-card h3 { font-family: var(--display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em; margin: 0 0 6px; color: var(--ink); }
.lst-related-card .spec { font-family: var(--body); font-size: 13px; color: var(--grey-500); margin: 0 0 12px; }
.lst-related-card .price { font-family: var(--display); font-size: 18px; font-weight: 500; color: var(--ink); }

/* ============ Project — phases / floorplans ============ */
.lst-phase-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1fr;
  margin: 24px 0 12px;
}
@media (min-width: 720px) { .lst-phase-grid { grid-template-columns: repeat(2, 1fr); } }
.lst-phase {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
}
.lst-phase .tag { font-family: var(--body); font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin: 0 0 8px; }
.lst-phase h4 { font-family: var(--display); font-size: 22px; font-weight: 500; margin: 0 0 8px; color: var(--ink); }
.lst-phase .specs-row { display: flex; gap: 18px; margin: 12px 0; font-family: var(--body); font-size: 13px; color: var(--grey-500); }
.lst-phase .specs-row span { display: inline-flex; align-items: center; gap: 6px; }
.lst-phase .price { font-family: var(--display); font-size: 20px; font-weight: 500; color: var(--ink); margin-top: 8px; }

/* Investment highlights */
.lst-highlights {
  background: linear-gradient(180deg, var(--teal-d) 0%, var(--teal) 100%);
  color: var(--paper);
  padding: clamp(60px, 7vw, 100px) var(--gut);
}
.lst-highlights-inner { max-width: 1480px; margin: 0 auto; }
.lst-highlights .eyebrow { color: var(--teal-l); margin-bottom: 16px; }
.lst-highlights h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -0.02em; margin: 0 0 40px; max-width: 22ch; }
.lst-highlights-grid {
  display: grid; gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .lst-highlights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .lst-highlights-grid { grid-template-columns: repeat(3, 1fr); } }
.lst-highlight {
  padding: 32px 28px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  backdrop-filter: blur(12px);
}
.lst-highlight .num { font-family: var(--display); font-size: 44px; font-weight: 300; color: var(--teal-l); line-height: 1; margin-bottom: 14px; }
.lst-highlight h4 { font-family: var(--display); font-size: 18px; font-weight: 500; margin: 0 0 10px; }
.lst-highlight p { font-family: var(--body); font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.78); margin: 0; }

/* Standalone CTA banner */
.lst-cta-banner {
  padding: clamp(60px, 7vw, 100px) var(--gut);
  background: var(--paper);
  text-align: center;
}
.lst-cta-banner-inner { max-width: 800px; margin: 0 auto; }
.lst-cta-banner h2 { font-family: var(--display); font-weight: 300; font-size: clamp(32px, 4vw, 56px); letter-spacing: -0.025em; margin: 0 0 18px; line-height: 1.05; }
.lst-cta-banner h2 em { font-style: italic; font-weight: 400; color: var(--teal); }
.lst-cta-banner p { font-family: var(--body); font-size: 17px; color: var(--grey-500); margin: 0 0 32px; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ============ Mobile optimizations ============ */
@media (max-width: 720px) {
  /* Hero — tighter and not as tall */
  .lst-hero {
    padding: 140px 22px 56px;
    min-height: 70vh;
  }
  .lst-hero h1 {
    font-size: clamp(36px, 9vw, 56px);
    margin-bottom: 14px;
  }
  .lst-hero-sub {
    font-size: 14.5px;
    line-height: 1.5;
  }
  .lst-hero-meta {
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 10.5px;
    margin-bottom: 16px;
  }
  .lst-hero-meta .badge {
    padding: 5px 10px;
    font-size: 10px;
  }
  .lst-hero-price {
    margin-top: 22px;
    font-size: 28px;
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .lst-hero-price .label { font-size: 10px; letter-spacing: 0.18em; }
  .lst-hero-price .incentive { font-size: 10px; padding: 5px 10px; margin-left: 0; }

  /* Specs strip — compact 2-col grid, smaller numbers, CTA full-width */
  .lst-specs { padding: 16px 18px; }
  .lst-specs-inner {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 14px 18px;
  }
  .lst-spec .lbl { font-size: 9px; letter-spacing: 0.18em; }
  .lst-spec .val { font-size: 16px; font-weight: 500; }
  .lst-specs .lst-cta-btn {
    grid-column: span 2;
    width: 100%;
    padding: 13px 18px;
    font-size: 10.5px;
    letter-spacing: 0.18em;
    justify-content: center;
  }

  /* Gallery — single-column safety + smaller rows */
  .lst-gallery { padding: 48px 18px; }
  .lst-gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    grid-auto-rows: clamp(140px, 30vw, 200px);
  }
  .lst-gallery-grid > div:nth-child(n) { grid-column: span 2; }
  .lst-gallery-grid > div:nth-child(n+2) { grid-column: span 1; }

  /* Body */
  .lst-body { padding: 48px 22px; }
  .lst-body-inner { gap: 40px; }
  .lst-prose h2 { font-size: clamp(22px, 6vw, 28px); margin-top: 36px; }
  .lst-prose p, .lst-prose li { font-size: 15px; line-height: 1.65; }

  /* Sidebar */
  .lst-side { position: relative; top: 0; }
  .lst-side-card { padding: 24px; border-radius: 18px; }
  .lst-side-card h3 { font-size: 22px; }
  .lst-form input, .lst-form select, .lst-form textarea { padding: 12px 14px; font-size: 14px; }
  .lst-form button { padding: 14px 20px; font-size: 11px; }

  /* Features + phases */
  .lst-feature { padding: 18px 20px; }
  .lst-feature h4 { font-size: 15px; }
  .lst-feature p { font-size: 13px; }
  .lst-phase { padding: 22px; border-radius: 16px; }

  /* Highlights */
  .lst-highlights { padding: 60px 22px; }
  .lst-highlight { padding: 26px 22px; }
  .lst-highlight .num { font-size: 36px; }

  /* Related */
  .lst-related { padding: 56px 22px; }
  .lst-related h2 { font-size: clamp(24px, 6vw, 32px); }
}

@media (max-width: 420px) {
  .lst-hero-price { font-size: 24px; }
  .lst-specs-inner { gap: 10px 14px; }
  .lst-spec .val { font-size: 14px; }
}
