/* ══════════════════════════════════════════════════════════════════════════
   PropertEase — Listing page (v3 "fresh") design system
   ---------------------------------------------------------------------------
   ONE template for every /<slug>/ property page. Built entirely on the
   homepage brand tokens from v2.css (ivory canvas, red/gold/blue, DM Serif
   Display + DM Sans + JetBrains Mono). No per-listing colour treatments.
   Namespaced `.pl-` so it never collides with shared component CSS.
   Loaded AFTER v2.css + v2-components.css.
   ══════════════════════════════════════════════════════════════════════════ */

/* ---- section rhythm (tighter + richer than the generic .section) ---------- */
.pl-sec { padding: 92px 0; position: relative; }
.pl-sec--tight { padding: 64px 0; }
.pl-sec--cream { background: var(--bg-2); }
.pl-sec--warm  { background: var(--bg-3); }
.pl-sec--dark  { background: var(--night); color: rgba(255,255,255,0.85); }
.pl-sec--dark .h-section { color: #fff; }
.pl-sec--dark .h-section em { color: var(--gold); }
.pl-sec--dark .eyebrow { color: rgba(255,255,255,0.55); }
.pl-sec--dark .lede { color: rgba(255,255,255,0.7); }

.pl-head { max-width: 760px; margin-bottom: 48px; }
.pl-head .h-section { margin-top: 14px; }
.pl-head .lede { margin-top: 16px; }
.pl-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.pl-head--center .eyebrow { justify-content: center; }
.pl-head--center .lede { margin-left: auto; margin-right: auto; }

/* ═══════════════ BREADCRUMB ═══════════════ */
.pl-crumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 18px 0 4px;
}
.pl-crumb a { color: var(--ink-3); transition: color .15s; }
.pl-crumb a:hover { color: var(--red); }
.pl-crumb .sep { opacity: .5; }
.pl-crumb .here { color: var(--ink); }

/* ═══════════════ HERO — image-forward ═══════════════ */
.pl-hero {
  position: relative;
  min-height: clamp(520px, 78vh, 800px);
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: var(--night);
  isolation: isolate;
}
.pl-hero-media {
  position: absolute; inset: 0; z-index: 0;
  background-position: center; background-size: cover;
  transform: scale(1.03);
}
/* legibility scrim — bottom-heavy so text always reads */
.pl-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(10,8,5,.90) 2%, rgba(10,8,5,.55) 34%, rgba(10,8,5,.20) 66%, rgba(10,8,5,.42) 100%);
}
/* faint brand grid texture, echoes homepage hero */
.pl-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; opacity: .12;
  background-image:
    linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 90% at 20% 100%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 90% at 20% 100%, #000 0%, transparent 72%);
}
.pl-hero-inner { position: relative; z-index: 2; width: 100%; padding: 44px 0 52px; color: #fff; }
.pl-hero-stamp {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.82); margin-bottom: 20px;
}
.pl-hero-stamp .badge {
  background: var(--red); color: #fff; padding: 5px 11px; border-radius: 999px;
  letter-spacing: .1em; font-weight: 500;
}
.pl-hero-stamp .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.pl-hero h1 {
  font-family: var(--display); font-weight: 400;
  font-size: clamp(42px, 6.4vw, 92px); line-height: .98; letter-spacing: -.02em;
  color: #fff; max-width: 16ch;
}
.pl-hero h1 em {
  font-style: italic; color: var(--gold); position: relative; white-space: nowrap;
}
.pl-hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: 3px;
  background: var(--gold); border-radius: 2px; opacity: .85;
}
.pl-hero-blurb {
  margin-top: 22px; max-width: 54ch; font-size: 17px; font-weight: 300;
  line-height: 1.6; color: rgba(255,255,255,.82);
}
.pl-hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.pl-hero-cta .btn-light {
  background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.pl-hero-cta .btn-light:hover { background: rgba(255,255,255,.24); }

/* ═══════════════ KEY-FACTS BAR ═══════════════ */
.pl-facts {
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 20px 48px -34px rgba(20,17,11,.28);
}
.pl-facts-row {
  display: grid; grid-template-columns: repeat(5, 1fr);
}
.pl-fact {
  padding: 26px 26px; border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 7px; min-width: 0;
}
.pl-fact:first-child { border-left: 0; }
.pl-fact .l {
  font-family: var(--mono); font-size: 10px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3);
}
.pl-fact .v {
  font-family: var(--display); font-size: clamp(19px, 1.5vw, 24px); line-height: 1.15;
  color: var(--ink); overflow-wrap: anywhere;
}
.pl-fact .v.accent { color: var(--red); }

/* ═══════════════ OVERVIEW (2-col editorial) ═══════════════ */
.pl-overview-grid { display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.pl-overview-aside { position: sticky; top: 96px; }
.pl-prose > p { color: var(--ink-2); font-size: 16px; line-height: 1.8; font-weight: 300; }
.pl-prose > p + p { margin-top: 18px; }
.pl-prose > p:first-child { font-size: 19px; line-height: 1.7; color: var(--ink); font-weight: 400; }
.pl-highlight {
  margin: 30px 0 4px; padding: 22px 26px; border-radius: var(--r-lg);
  background: var(--gold-l); border: 1px solid var(--gold);
  display: flex; gap: 16px; align-items: flex-start;
}
.pl-highlight .ico { font-size: 22px; line-height: 1; }
.pl-highlight p { color: var(--ink); font-size: 15px; line-height: 1.6; font-weight: 500; margin: 0; }

/* property detail definition list */
.pl-detail {
  margin-top: 8px; border-top: 1px solid var(--line);
}
.pl-detail > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.pl-detail dt { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.pl-detail dd { font-size: 15px; font-weight: 500; color: var(--ink); text-align: right; overflow-wrap: anywhere; }

/* ═══════════════ GALLERY (mosaic + lightbox) ═══════════════ */
.pl-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  grid-auto-rows: 200px;
}
.pl-gallery figure {
  margin: 0; position: relative; overflow: hidden; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--bg-2); cursor: zoom-in;
}
.pl-gallery figure.big { grid-column: span 2; grid-row: span 2; }
.pl-gallery img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.pl-gallery figure:hover img { transform: scale(1.05); }
.pl-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 14px 10px; font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; color: #fff;
  background: linear-gradient(to top, rgba(10,8,5,.72), transparent);
  opacity: 0; transition: opacity .25s;
}
.pl-gallery figure:hover figcaption { opacity: 1; }
.pl-gallery-more { margin-top: 22px; text-align: center; }

/* lightbox */
.pl-lb { position: fixed; inset: 0; z-index: 10000; display: none; background: rgba(8,6,4,.94); }
.pl-lb.open { display: flex; align-items: center; justify-content: center; }
.pl-lb img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 6px; }
.pl-lb-cap {
  position: absolute; bottom: 22px; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.8); font-family: var(--mono); font-size: 12px; letter-spacing: .06em;
}
.pl-lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.pl-lb-btn:hover { background: rgba(255,255,255,.22); }
.pl-lb-prev { left: 20px; } .pl-lb-next { right: 20px; }
.pl-lb-close { top: 20px; right: 20px; transform: none; }

/* ═══════════════ AMENITIES ═══════════════ */
.pl-amen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.pl-amen-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .2s;
}
.pl-amen-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(20,17,11,.2); border-color: var(--line-2); }
.pl-amen-card .ph { aspect-ratio: 4/3; background: var(--bg-2) center/cover; }
.pl-amen-card .bd { padding: 20px 22px; }
.pl-amen-card h3 { font-family: var(--display); font-size: 20px; line-height: 1.2; color: var(--ink); }
.pl-amen-card p { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--ink-2); font-weight: 300; }
/* chip list fallback when there are extra amenities without photos */
.pl-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.pl-chip {
  font-family: var(--sans); font-size: 13px; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 8px 15px;
}
.pl-chip::before { content: "✦"; color: var(--gold-d); margin-right: 8px; font-size: 11px; }

/* ═══════════════ UNIT TYPES ═══════════════ */
.pl-unit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 22px; }
.pl-unit {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .2s;
}
.pl-unit:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -26px rgba(20,17,11,.2); }
.pl-unit.feat { border-color: var(--gold); }
.pl-unit .fp { aspect-ratio: 16/10; background: var(--bg-2) center/cover; border-bottom: 1px solid var(--line); }
.pl-unit .bd { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.pl-unit .tag { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-d); }
.pl-unit h3 { font-family: var(--display); font-size: 23px; line-height: 1.15; color: var(--ink); }
.pl-unit .sz { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.pl-unit dl { display: flex; flex-direction: column; gap: 9px; margin: 0; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pl-unit dl > div { display: flex; justify-content: space-between; gap: 12px; }
.pl-unit dt { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pl-unit dd { font-size: 14px; font-weight: 600; color: var(--ink); text-align: right; }
.pl-unit dd.accent { color: var(--red); }
.pl-unit .go { margin-top: auto; }

/* ═══════════════ SAMPLE COMPUTATION ═══════════════ */
.pl-comp { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.pl-comp .card { padding: 30px; }
.pl-comp-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pl-comp-rows span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pl-comp-rows span:last-child { font-size: 15px; font-weight: 600; color: var(--ink); text-align: right; }
.pl-comp-dark { background: var(--night); border-color: var(--night); color: #fff; display: flex; flex-direction: column; }
.pl-comp-dark .k { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.pl-comp-dark .big { font-family: var(--display); font-size: 46px; line-height: 1; margin-top: 12px; }
.pl-comp-dark .big span { font-size: 16px; color: rgba(255,255,255,.6); font-family: var(--sans); }
.pl-comp-dark .split { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 12px; }
.pl-comp-dark .split > div { display: flex; justify-content: space-between; gap: 12px; }
.pl-comp-dark .split .a { font-size: 13px; color: rgba(255,255,255,.55); }
.pl-comp-dark .split .b { font-size: 14px; color: #fff; font-weight: 600; text-align: right; }
.pl-comp-note { text-align: center; font-size: 12px; color: var(--ink-3); max-width: 640px; margin: 24px auto 0; line-height: 1.6; }

/* ═══════════════ LOCATION (map + categorised landmarks) ═══════════════ */
.pl-loc { display: flex; flex-direction: column; gap: 40px; }
.pl-map {
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 24px 56px -30px rgba(20,17,11,.30);
}
.pl-map iframe { width: 100%; height: 420px; border: 0; display: block; background: var(--bg-2); }
.pl-loc-map iframe { height: 480px; }
.pl-map-addr {
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 16px 22px; background: var(--paper); border-top: 1px solid var(--line);
  font-size: 14px; color: var(--ink-2);
}
.pl-map-addr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-map-addr a { color: var(--red); font-weight: 600; white-space: nowrap; flex: 0 0 auto; }

.pl-loc-near-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pl-loc-count {
  font-family: var(--display); font-size: 52px; line-height: .9; color: var(--red);
  flex: 0 0 auto;
}
.pl-loc-count-l {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); line-height: 1.4;
}
.pl-near-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.pl-lm {
  display: flex; gap: 16px; align-items: center; min-width: 0;
  padding: 16px 18px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pl-lm:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 16px 34px -24px rgba(20,17,11,.22); }
.pl-lm-ic {
  width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.pl-lm-tx { min-width: 0; }
.pl-lm-name { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.pl-lm-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 5px; }
@media (max-width: 860px) { .pl-loc-map iframe { height: 400px; } }
@media (max-width: 640px) {
  .pl-loc { gap: 30px; }
  .pl-map iframe, .pl-loc-map iframe { height: 300px; }
  .pl-near-grid { grid-template-columns: 1fr; }
  .pl-loc-count { font-size: 44px; }
}

/* ═══════════════ RELATED (homepage card motif) ═══════════════ */
.pl-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pl-pcard {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .2s;
}
.pl-pcard:hover { transform: translateY(-5px); box-shadow: 0 28px 54px -28px rgba(20,17,11,.22); border-color: var(--line-2); }
.pl-pcard-media { position: relative; aspect-ratio: 4/3; background: var(--bg-2) center/cover; }
.pl-pcard-pill {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(20,17,11,.82); color: #fff; padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(4px);
}
.pl-pcard-ribbon {
  position: absolute; top: 12px; right: 12px; max-width: 62%;
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase;
  background: var(--gold); color: var(--ink); padding: 5px 10px; border-radius: 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pl-pcard-bd { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.pl-pcard-loc { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pl-pcard-name { font-family: var(--display); font-size: 22px; line-height: 1.1; color: var(--ink); margin: 6px 0 12px; }
.pl-pcard-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.pl-pcard-from { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.pl-pcard-price { font-family: var(--display); font-size: 24px; color: var(--ink); line-height: 1.1; margin-top: 2px; }
.pl-pcard-mo { font-size: 13px; color: var(--red); font-weight: 600; margin-top: 6px; }

/* ═══════════════ CONTACT trust strip ═══════════════ */
.pl-trust { display: flex; gap: 16px; align-items: center; margin-top: 26px; }
.pl-trust-ph { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.25); flex: 0 0 auto; background: var(--night-2); }
.pl-trust .nm { font-family: var(--display); font-size: 20px; color: #fff; }
.pl-trust .ti { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-top: 3px; }

/* ═══════════════ STICKY MOBILE ACTION BAR ═══════════════ */
.pl-mobar { display: none; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1040px) {
  .pl-overview-grid { grid-template-columns: 1fr; gap: 34px; }
  .pl-overview-aside { position: static; }
  .pl-loc-grid { grid-template-columns: 1fr; gap: 30px; }
  .pl-facts-row { grid-template-columns: repeat(3, 1fr); }
  .pl-fact:nth-child(4) { border-left: 0; }
}
@media (max-width: 860px) {
  .pl-related-grid { grid-template-columns: 1fr 1fr; }
  .pl-comp { grid-template-columns: 1fr; }
  .pl-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 168px; }
  .pl-gallery figure.big { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 640px) {
  .pl-sec { padding: 60px 0; }
  .pl-sec--tight { padding: 44px 0; }
  .pl-head { margin-bottom: 32px; }
  .pl-facts-row { grid-template-columns: repeat(2, 1fr); }
  .pl-fact { padding: 18px 16px; border-top: 1px solid var(--line); }
  .pl-fact:nth-child(odd) { border-left: 0; }
  .pl-facts-row .pl-fact:nth-child(-n+2) { border-top: 0; }
  .pl-related-grid { grid-template-columns: 1fr; }
  .pl-hero-inner { padding: 32px 0 40px; }
  .pl-hero h1 { font-size: clamp(38px, 11vw, 60px); }
  .pl-hero-blurb { font-size: 15px; }
  .pl-gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 130px; }

  /* sticky mobile action bar — appears only on phones */
  .pl-mobar {
    display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 9500;
    background: var(--paper); border-top: 1px solid var(--line);
    box-shadow: 0 -14px 34px -20px rgba(20,17,11,.4);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }
  .pl-mobar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    padding: 11px 6px; font-family: var(--sans); font-size: 12px; font-weight: 600;
    color: var(--ink); border-left: 1px solid var(--line);
  }
  .pl-mobar a:first-child { border-left: 0; }
  .pl-mobar a .ic { font-size: 17px; line-height: 1; }
  .pl-mobar a.wa { color: #128C4B; }
  .pl-mobar a.primary { background: var(--red); color: #fff; border-left: 0; }
  /* keep the floating chat button clear of the bar */
  body.pl-haspagebar .fchat-btn { bottom: 84px !important; }
  /* room so the bar never covers the footer’s last line */
  body.pl-haspagebar { padding-bottom: 60px; }
}

/* ---- lightbox affordance ---- */
[data-lb] { cursor: zoom-in; }

/* ---- form controls: never let a long <option> stretch the layout ---------- */
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; min-width: 0; max-width: 100%; }
.contact-form .field, .contact-row, .contact-grid > * { min-width: 0; }
