/* ===========================================================
   The Luxury Folio — Single Project styles (v1.4)
   Fraunces serif, fixed gallery, proper image aspect ratios.
   =========================================================== */

:root {
  --lf-bg:        #F3EEE7;
  --lf-surface:   #FAF6EF;
  --lf-ink:       #1F1D1A;
  --lf-ink-soft:  #2B2722;
  --lf-muted:     #6E665B;
  --lf-bronze:    #A88A5C;
  --lf-line:      #D9D0C2;
  --lf-serif:     "Fraunces", "Times New Roman", Georgia, serif;
  --lf-sans:      "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.single-project {
  background: var(--lf-bg);
  color: var(--lf-ink);
  font-family: var(--lf-sans);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums tabular-nums;
}
body.single-project * { font-variant-numeric: inherit; }

/* Container */
.lf-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem 8rem;
}

/* Hero band */
.lf-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: 38vh;
  min-height: 280px;
  max-height: 500px;
  background-color: #2a2520;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  margin-bottom: 3rem;
  overflow: hidden;
}
@media (max-width: 600px) {
  .lf-hero { height: 32vh; min-height: 220px; }
}
.lf-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.10) 50%, transparent 100%);
}
.lf-hero__inner {
  position: relative; z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  color: #FAF6EF;
}
.lf-hero__eyebrow {
  font-family: var(--lf-sans);
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .9;
  margin: 0 0 .75rem;
}
.lf-hero__title {
  font-family: var(--lf-serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  line-height: 1;
  letter-spacing: -.005em;
  margin: 0;
  color: #FAF6EF;
}

/* Two-column hero (meta + gallery) */
.lf-cols {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.7fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 5rem;
}
.lf-cols > * { min-width: 0; }   /* allow grid items to shrink properly */
@media (max-width: 900px) {
  .lf-cols { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* Meta card */
.lf-meta {
  background: var(--lf-surface);
  padding: 2.25rem 2rem;
  border: 1px solid var(--lf-line);
}
.lf-meta__tagline {
  font-family: var(--lf-serif);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--lf-muted);
  margin: 0 0 1.25rem;
  font-style: italic;
}
.lf-row {
  display: grid;
  grid-template-columns: 40% 1fr;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--lf-line);
  align-items: baseline;
}
.lf-row:first-of-type { padding-top: 0; }
.lf-row:last-of-type { border-bottom: 0; padding-bottom: 0; }
.lf-row__k {
  font-family: var(--lf-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lf-bronze);
}
.lf-row__v {
  font-family: var(--lf-serif);
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--lf-ink);
  line-height: 1.4;
}
.lf-row__v a { color: var(--lf-ink); text-decoration: none; border-bottom: 1px solid var(--lf-line); padding-bottom: 2px; }
.lf-row__v a:hover { border-bottom-color: var(--lf-bronze); }

/* Signature amenities (bottom of meta card) */
.lf-meta__signature {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--lf-line);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .15rem;
  align-items: baseline;
  line-height: 1.6;
}
.lf-meta__sig-item {
  font-family: var(--lf-serif);
  font-size: .92rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--lf-muted);
  white-space: nowrap;
  font-style: italic;
}
.lf-meta__sig-item:not(:last-child)::after {
  content: "·";
  margin-left: .5rem;
  color: var(--lf-line);
  font-weight: 400;
}

/* ----- Gallery (main on top, thumbnail row below with arrows) ----- */
.lf-gallery {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  width: 100%;
  min-width: 0;       /* lets it shrink within the grid column */
}
.lf-gallery__main {
  position: relative;
  width: 100%;
  height: 0;                       /* hard reset */
  padding-bottom: 62.5%;            /* 16:10 ratio enforced by padding (rock-solid technique) */
  background: #ddd5c5;
  overflow: hidden;
}
.lf-gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: opacity .35s ease;
}

/* Thumbnail row */
.lf-gallery__strip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  width: 100%;
  min-width: 0;
}
.lf-gallery__thumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 .25rem;
  -ms-overflow-style: none;
}
.lf-gallery__thumbs::-webkit-scrollbar { display: none; }
.lf-gallery__thumb {
  flex: 0 0 calc((100% - 2rem) / 5);   /* exactly 5 visible by default */
  min-width: 110px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  opacity: .55;
  transition: opacity .25s ease;
  display: block;
  background: #e8e0d0;
}
.lf-gallery__thumb:hover,
.lf-gallery__thumb.is-active { opacity: 1; }

.lf-gallery__arrow {
  flex: 0 0 36px;
  height: 80px;
  background: var(--lf-surface);
  border: 1px solid var(--lf-line);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--lf-ink);
  font-family: var(--lf-sans);
  font-size: 1.1rem;
  line-height: 1;
  transition: background .2s ease, color .2s ease, opacity .2s ease;
  user-select: none;
  padding: 0;
}
.lf-gallery__arrow:hover { background: var(--lf-ink); color: var(--lf-bg); }
.lf-gallery__arrow:disabled { opacity: .3; cursor: default; background: var(--lf-surface); color: var(--lf-ink); }
.lf-gallery__arrow--prev { margin-right: .35rem; }
.lf-gallery__arrow--next { margin-left: .35rem; }

@media (max-width: 600px) {
  .lf-gallery__thumb { flex-basis: calc((100% - 1.5rem) / 3); min-width: 90px; height: 70px; }
  .lf-gallery__arrow { height: 70px; }
}

/* Global image safety net — never blow past container */
.single-project img { max-width: 100%; height: auto; }

/* Sections */
.lf-section { margin: 5rem 0; }
.lf-section__eyebrow {
  font-family: var(--lf-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lf-bronze);
  margin: 0 0 .75rem;
}
.lf-section__title {
  font-family: var(--lf-serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.005em;
  margin: 0 0 2.5rem;
  color: var(--lf-ink);
}

/* Description */
.lf-description {
  max-width: 760px;
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--lf-ink);
}
.lf-description p { margin: 0 0 1.25rem; }
.lf-description h2 { font-family: var(--lf-serif); font-weight: 400; font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.lf-description h3 { font-family: var(--lf-serif); font-weight: 500; font-size: 1.25rem; margin: 2rem 0 .75rem; }

/* Floor plans */
.lf-fp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.lf-fp {
  background: var(--lf-surface);
  border: 1px solid var(--lf-line);
  display: flex;
  flex-direction: column;
}
.lf-fp__image {
  aspect-ratio: 4/3;
  background: #e8e0d0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.lf-fp__image img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 1rem; box-sizing: border-box; }
.lf-fp__body { padding: 1.5rem; }
.lf-fp__name {
  font-family: var(--lf-serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin: 0 0 .75rem;
  color: var(--lf-ink);
}
.lf-fp__specs {
  font-family: var(--lf-sans);
  font-size: .82rem;
  letter-spacing: .04em;
  color: var(--lf-muted);
  margin: 0 0 1rem;
}
.lf-fp__specs span + span::before { content: " · "; opacity: .5; padding: 0 .15rem; }
.lf-fp__price {
  font-family: var(--lf-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--lf-ink);
}
.lf-fp__price small {
  font-family: var(--lf-sans);
  font-size: .64rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lf-bronze);
  display: block;
  margin-bottom: .15rem;
}
.lf-fp__availability {
  font-family: var(--lf-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lf-bronze);
  border-top: 1px solid var(--lf-line);
  padding-top: 1rem;
  margin-top: 1rem;
}

/* Deposit schedule */
.lf-deposit {
  max-width: 640px;
  width: 100%;
  border-collapse: collapse;
}
.lf-deposit td {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--lf-line);
  vertical-align: baseline;
}
.lf-deposit tr:last-child td { border-bottom: 0; }
.lf-deposit td:first-child {
  font-family: var(--lf-serif);
  font-size: 1.05rem;
  color: var(--lf-ink);
}
.lf-deposit td:first-child small {
  display: block;
  font-family: var(--lf-sans);
  font-size: .78rem;
  color: var(--lf-muted);
  margin-top: .25rem;
}
.lf-deposit td:last-child {
  font-family: var(--lf-serif);
  font-size: 1.5rem;
  font-weight: 500;
  text-align: right;
  color: var(--lf-bronze);
  white-space: nowrap;
}

/* Building facts */
.lf-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2.5rem 2rem;
  border-top: 1px solid var(--lf-line);
  border-bottom: 1px solid var(--lf-line);
  padding: 2.5rem 0;
}
/* Top variant — sits right under hero, slightly tighter */
.lf-facts--top {
  margin: 0 0 3.5rem;
  padding: 2rem 0;
}
@media (max-width: 600px) {
  .lf-facts--top { padding: 1.5rem 0; gap: 1.5rem 1rem; margin-bottom: 2.5rem; }
}
.lf-fact__k {
  font-family: var(--lf-sans);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lf-bronze);
  display: block;
  margin-bottom: .5rem;
}
.lf-fact__v {
  font-family: var(--lf-serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--lf-ink);
  line-height: 1.2;
}

/* Amenities */
.lf-amenities {
  font-family: var(--lf-serif);
  font-size: 1.1rem;
  line-height: 2.1;
  color: var(--lf-ink);
  font-weight: 400;
  columns: 2;
  column-gap: 3rem;
  max-width: 920px;
}
@media (max-width: 700px) { .lf-amenities { columns: 1; } }

/* Video */
.lf-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  max-width: 1080px;
  margin: 0 auto;
}
.lf-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Brochure link */
.lf-brochure-link {
  display: inline-block;
  font-family: var(--lf-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--lf-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--lf-ink);
  padding-bottom: 4px;
}
.lf-brochure-link:hover { color: var(--lf-bronze); border-bottom-color: var(--lf-bronze); }

/* Sticky CTA */
.lf-sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--lf-ink);
  color: var(--lf-bg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  z-index: 100;
  font-family: var(--lf-sans);
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
}
.lf-sticky-cta__name {
  font-family: var(--lf-serif);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--lf-bg);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lf-sticky-cta__meta {
  font-family: var(--lf-sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: lowercase;
  color: var(--lf-bronze);
  margin: 0 0 .15rem;
}
.lf-sticky-cta__info { min-width: 0; flex: 1; }
.lf-sticky-cta__btn {
  display: inline-block;
  background: transparent;
  color: var(--lf-bg);
  border: 1px solid var(--lf-bg);
  padding: .9rem 1.6rem;
  font-family: var(--lf-sans);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-decoration: none;
  transition: background .3s ease, color .3s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.lf-sticky-cta__btn:hover { background: var(--lf-bg); color: var(--lf-ink); }
@media (max-width: 600px) {
  .lf-sticky-cta { padding: .75rem 1rem; gap: .75rem; }
  .lf-sticky-cta__info { display: none; }
  .lf-sticky-cta__btn { width: 100%; text-align: center; padding: 1rem; }
}

/* Inquiry section */
.lf-inquiry {
  margin: 6rem 0 2rem;
  padding: 4rem 2rem;
  background: var(--lf-surface);
  text-align: center;
  border: 1px solid var(--lf-line);
}
.lf-inquiry h2 { font-family: var(--lf-serif); font-weight: 400; font-size: 2rem; margin: 0 0 1rem; }
.lf-inquiry p { font-family: var(--lf-serif); color: var(--lf-muted); font-size: 1.05rem; max-width: 520px; margin: 0 auto 1.75rem; line-height: 1.7; }
.lf-inquiry a {
  display: inline-block;
  font-family: var(--lf-sans);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .16em;
  color: var(--lf-ink);
  text-decoration: none;
  border: 1px solid var(--lf-ink);
  padding: 1rem 2.25rem;
  transition: background .3s ease, color .3s ease;
}
.lf-inquiry a:hover { background: var(--lf-ink); color: var(--lf-bg); }
