/* ============================================================
   listing.css — property landing pages (p.php)
   Self-contained: fully redefines the .lp-* styles, so it
   supersedes the old landing block in style.css. Loaded in
   <head> after style.css. Reuses the site's design tokens.
   ============================================================ */

/* ---------- Hero (large, full-bleed carousel, corner overlay) ---------- */
.lp-hero{
  position:relative;overflow:hidden;color:#fff;
  min-height:clamp(560px, 90vh, 1040px);
  display:flex;align-items:flex-end;
  background:linear-gradient(178deg,var(--slate) 0%,var(--ink) 42%,var(--dusk) 100%);
}
.lp-hero__carousel{position:absolute;inset:0;z-index:0}
.lp-hero__slide{
  position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;object-position:center 50%;
  opacity:0;transition:opacity .8s ease;
}
.lp-hero__slide.is-active{opacity:1}
/* light scrim: photos stay bright up top, text is anchored low-left */
.lp-hero__scrim{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(to top, rgba(8,11,16,.74) 0%, rgba(8,11,16,.32) 20%, rgba(8,11,16,0) 46%);
}
.lp-hero__inner{
  position:relative;z-index:3;width:100%;
  padding:0 0 clamp(1.8rem,4vw,3rem);
}
.lp-hero--plain{
  min-height:clamp(360px,52vh,520px);
  align-items:center;text-align:center;
}
.lp-hero--plain .lp-hero__inner{padding:clamp(2.2rem,5vw,3.6rem) 0}
.lp-hero--plain .lp-hero__card{max-width:none;text-align:center}
.lp-hero--plain .lp-hero__priceline{justify-content:center}
.lp-hero .hero__horizon{position:absolute;left:0;right:0;bottom:0;z-index:2;pointer-events:none}

/* corner overlay card */
.lp-hero__card{max-width:46rem;text-align:left}
.lp-hero__priceline{
  display:flex;flex-wrap:wrap;align-items:baseline;gap:.55rem .8rem;margin-bottom:.45rem;
}
.lp-hero__price{
  font-family:var(--font-display);font-weight:500;
  font-size:clamp(2rem,4.8vw,3.2rem);line-height:1;color:#fff;
  text-shadow:0 2px 20px rgba(8,11,16,.55);
}
.lp-hero__tag,.lp-hero__flag{
  font-family:var(--font-body);font-weight:700;font-size:.72rem;
  letter-spacing:.1em;text-transform:uppercase;
  padding:.36rem .8rem;border-radius:999px;line-height:1;white-space:nowrap;
}
.lp-hero__tag{
  color:#fff;background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.4);backdrop-filter:blur(2px);
}
.lp-hero__flag{color:#fff;background:var(--blue-deep)}
.lp-hero__flag--pending{background:#C9842B}
.lp-hero__flag--sold{background:#B23B2E}
.lp-hero__flag--coming_soon{background:var(--blue-deep)}
.lp-hero__addr{
  font-family:var(--font-display);font-weight:500;
  font-size:clamp(1.35rem,2.8vw,2rem);line-height:1.14;letter-spacing:-.01em;
  margin:0 0 .25rem;text-shadow:0 1px 16px rgba(8,11,16,.5);
}
.lp-hero__loc{margin:0;color:rgba(255,255,255,.88);font-size:1.05rem;text-shadow:0 1px 14px rgba(8,11,16,.5)}

/* hero nav arrows + dots */
.lp-hero__nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:4;
  width:2.9rem;height:2.9rem;border:0;border-radius:50%;cursor:pointer;
  background:rgba(12,16,24,.4);color:#fff;font-size:1.7rem;line-height:1;
  display:flex;align-items:center;justify-content:center;
  backdrop-filter:blur(3px);transition:background .2s ease;
}
.lp-hero__nav:hover{background:rgba(12,16,24,.72)}
.lp-hero__nav--prev{left:clamp(.6rem,2vw,1.4rem)}
.lp-hero__nav--next{right:clamp(.6rem,2vw,1.4rem)}
.lp-hero__dots{
  position:absolute;left:50%;bottom:1.1rem;transform:translateX(-50%);z-index:4;
  display:flex;gap:.5rem;
}
.lp-hero__dot{
  width:.62rem;height:.62rem;border-radius:50%;cursor:pointer;padding:0;
  border:1px solid rgba(255,255,255,.7);background:rgba(255,255,255,.28);
  transition:background .2s ease,transform .2s ease;
}
.lp-hero__dot.is-active{background:#fff;transform:scale(1.15)}
@media (max-width:600px){ .lp-hero__nav{width:2.4rem;height:2.4rem;font-size:1.4rem} }

/* ---------- Overview (centered block) ---------- */
.lp-overview__inner{max-width:58rem;margin:0 auto;text-align:center}

.lp-stats{
  display:flex;flex-wrap:wrap;justify-content:center;gap:1.4rem 2.4rem;
  padding-bottom:1.4rem;border-bottom:1px solid var(--line);margin-bottom:1.6rem;
}
.lp-stat{display:flex;flex-direction:column;align-items:center;gap:.1rem}
.lp-stat__num{font-family:var(--font-display);font-size:1.8rem;font-weight:500;line-height:1;color:var(--ink)}
.lp-stat__label{font-size:.8rem;font-weight:600;letter-spacing:.04em;color:rgba(32,36,43,.55)}

.lp-highlights{
  list-style:none;margin:0 0 1.8rem;padding:0;
  display:flex;flex-wrap:wrap;justify-content:center;gap:.55rem;
}
.lp-highlight{
  font-size:.86rem;font-weight:600;color:var(--ink);
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:.4rem .95rem;box-shadow:var(--shadow);
}

.lp-desc{max-width:46rem;margin:0 auto;text-align:left}
.lp-desc .eyebrow{text-align:center}
.lp-desc p{margin:0 0 1rem;color:rgba(32,36,43,.85)}
.lp-desc p:last-child{margin-bottom:0}

/* ---------- Video ---------- */
.lp-video{
  position:relative;width:100%;max-width:58rem;margin:1rem auto 0;
  aspect-ratio:16 / 9;border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);background:#000;
}
.lp-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* tighten the gap between the description and the video */
.sect.lp-overview{padding-bottom:clamp(1rem,2.5vw,1.75rem)}
.sect.lp-video-sect{padding-top:clamp(1rem,2.5vw,1.75rem)}

/* ---------- Gallery (full-width, capped at 2 rows) ---------- */
.lp-gallery-head{
  display:flex;align-items:baseline;justify-content:space-between;gap:1rem;
  margin-bottom:1rem;flex-wrap:wrap;
}
.lp-gallery__all{
  font-family:var(--font-body);font-weight:600;font-size:.9rem;color:var(--ink);
  background:#fff;border:1px solid var(--line);border-radius:999px;
  padding:.5rem 1.1rem;cursor:pointer;box-shadow:var(--shadow);
  transition:background .2s ease;
}
.lp-gallery__all:hover{background:var(--sand)}
.lp-gallery{
  display:grid;grid-template-columns:repeat(4,1fr);gap:.5rem;
}
/* show only the first 2 rows; the rest stay in the DOM for the lightbox */
.lp-gallery .lp-gallery__item:nth-child(n+9){display:none}
@media (max-width:1000px){
  .lp-gallery{grid-template-columns:repeat(3,1fr)}
  .lp-gallery .lp-gallery__item:nth-child(n+7){display:none}
}
@media (max-width:600px){
  .lp-gallery{grid-template-columns:repeat(2,1fr)}
  .lp-gallery .lp-gallery__item:nth-child(n+5){display:none}
}
.lp-gallery__item{
  display:block;width:100%;border:0;padding:0;margin:0;cursor:pointer;
  overflow:hidden;aspect-ratio:4 / 3;background:var(--sand);
}
.lp-gallery__item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s ease}
.lp-gallery__item:hover img{transform:scale(1.05)}

/* ---------- Lightbox ---------- */
.lp-lightbox{
  position:fixed;inset:0;z-index:1000;
  background:rgba(8,10,14,.94);
  display:flex;align-items:center;justify-content:center;
}
.lp-lightbox[hidden]{display:none}
.lp-lightbox__img{
  max-width:92vw;max-height:88vh;object-fit:contain;border-radius:6px;
  box-shadow:0 12px 60px rgba(0,0,0,.55);
}
.lp-lightbox__nav,.lp-lightbox__close{
  position:absolute;border:0;cursor:pointer;color:#fff;
  background:rgba(255,255,255,.12);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  transition:background .2s ease;
}
.lp-lightbox__nav:hover,.lp-lightbox__close:hover{background:rgba(255,255,255,.26)}
.lp-lightbox__nav{top:50%;transform:translateY(-50%);width:3.2rem;height:3.2rem;font-size:2rem;line-height:1}
.lp-lightbox__nav--prev{left:clamp(.5rem,3vw,2rem)}
.lp-lightbox__nav--next{right:clamp(.5rem,3vw,2rem)}
.lp-lightbox__close{top:1rem;right:1rem;width:2.6rem;height:2.6rem;font-size:1.7rem;line-height:1}
.lp-lightbox__count{
  position:absolute;left:50%;bottom:1.1rem;transform:translateX(-50%);
  color:rgba(255,255,255,.85);font-size:.9rem;font-weight:600;letter-spacing:.03em;
}
@media (max-width:600px){
  .lp-lightbox__nav{width:2.6rem;height:2.6rem;font-size:1.6rem}
}
body.lp-lb-open{overflow:hidden}

/* ---------- Details ---------- */
.lp-details{
  display:grid;grid-template-columns:repeat(2,1fr);gap:1.3rem;margin-top:2rem;
}
@media (max-width:760px){ .lp-details{grid-template-columns:1fr} }
.lp-detgroup{
  background:#fff;border:1px solid var(--line);border-radius:var(--radius);
  padding:1.3rem 1.4rem;box-shadow:var(--shadow);
}
.lp-detgroup__title{
  margin:0 0 .8rem;font-family:var(--font-display);font-weight:500;font-size:1.15rem;
  padding-bottom:.6rem;border-bottom:1px solid var(--line);
}
.lp-detlist{margin:0;display:flex;flex-direction:column;gap:.55rem}
.lp-detrow{display:grid;grid-template-columns:minmax(8rem,40%) 1fr;gap:1rem;align-items:baseline}
.lp-detrow__label{margin:0;font-size:.85rem;font-weight:600;color:rgba(32,36,43,.55)}
.lp-detrow__val{margin:0;font-size:.95rem;color:var(--ink)}
