/* ═══════════════════════════════════════════════════════════════
   NESTFINDER — Projects CSS (detail pages + grid)
═══════════════════════════════════════════════════════════════ */

/* ── PROJECTS FILTER BAR ── */
.proj-filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 76px; z-index: 80;
}
.proj-filter-inner {
  display: flex; align-items: center; gap: 10px; padding: 14px 0;
  max-width: var(--max-w); margin: 0 auto; padding: 14px var(--pad-h);
  overflow-x: auto; scrollbar-width: none;
}
.proj-filter-inner::-webkit-scrollbar { display: none; }
.filter-sep { width: 1px; height: 20px; background: var(--border-light); margin: 0 6px; flex-shrink: 0; }
.filter-label-sm {
  font-size: 9px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap; flex-shrink: 0;
}

/* ── PROJECTS GRID ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 32px; margin-top: 40px;
}
@media(max-width: 860px) { .projects-grid { grid-template-columns: 1fr; } }

/* ── PROJECT DETAIL HERO ── */
.proj-hero {
  position: relative; min-height: 600px;
  display: flex; align-items: flex-end; overflow: hidden;
}
.proj-hero-img {
  position: absolute; inset: 0;
}
.proj-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.proj-hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top,
    rgba(8,8,8,.95) 0%,
    rgba(8,8,8,.55) 45%,
    rgba(8,8,8,.15) 75%,
    transparent 100%);
}
.proj-hero-content {
  position: relative; z-index: 2;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad-h) 60px;
}
.proj-hero-eyebrow {
  font-size: 10px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase;
  color: var(--champagne); margin-bottom: 12px;
}
.proj-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(40px, 6.5vw, 88px);
  font-weight: 400; color: var(--white);
  line-height: .97; letter-spacing: .01em; margin-bottom: 14px;
}
.proj-hero-meta {
  display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.proj-hero-meta-item { font-size: 12px; font-weight: 300; color: rgba(255,255,255,.6); }
.proj-hero-meta-item strong { color: var(--white); font-weight: 400; }
.proj-hero-divider { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.proj-hero-chips { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── GALLERY STRIP ── */
.gallery-strip {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 3px;
}
.gallery-main { grid-row: span 2; position: relative; overflow: hidden; cursor: pointer; }
.gallery-thumb { position: relative; overflow: hidden; cursor: pointer; }
.gallery-strip img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.gallery-strip img:hover { transform: scale(1.05); }
.gallery-more-overlay {
  position: absolute; inset: 0;
  background: rgba(8,8,8,.6);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.gallery-more-overlay span {
  font-family: var(--ff-display); font-size: 28px; font-weight: 400; color: var(--white);
}
@media(max-width: 768px) {
  .gallery-strip { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 120px; }
  .gallery-main { grid-column: span 2; grid-row: span 1; }
}

/* ── PROJECT DETAIL LAYOUT ── */
.proj-detail-layout {
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start;
}
@media(max-width: 1100px) { .proj-detail-layout { grid-template-columns: 1fr; } }

/* ── OVERVIEW TABLE ── */
.overview-tbl { width: 100%; border-collapse: collapse; }
.overview-tbl tr { border-bottom: 1px solid var(--border-light); }
.overview-tbl tr:last-child { border-bottom: none; }
.overview-tbl td { padding: 15px 0; font-size: 14px; }
.overview-tbl td:first-child {
  font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); width: 42%;
}
.overview-tbl td:last-child { color: var(--ink); font-weight: 300; }
.overview-tbl td code {
  font-family: 'Courier New', monospace; font-size: 12px;
  background: var(--ivory); padding: 2px 8px; border-radius: var(--r-xs);
  color: var(--champagne-dk);
}

/* ── AMENITY CHIPS ── */
.amenities-wrap {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(170px,1fr)); gap: 10px;
}
.amenity-item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: var(--ivory); border: 1px solid var(--border-light);
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 300; color: var(--ink);
}
.amenity-icon { font-size: 18px; flex-shrink: 0; }

/* ── PROGRESS BAR ── */
.progress-wrap { margin-top: 6px; }
.progress-track { height: 3px; background: var(--border-light); border-radius: 2px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--champagne-dk), var(--champagne-lt)); border-radius: 2px; transition: width 1s var(--ease); }

/* ── ENQUIRY CARD (sidebar) ── */
.enquiry-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
  overflow: hidden;
  position: sticky; top: 92px;
  box-shadow: var(--shadow-sm);
}
.enquiry-card-head {
  background: var(--obsidian);
  padding: 28px;
  border-bottom: 1px solid var(--border-dark);
}
.enquiry-price {
  font-family: var(--ff-display);
  font-size: 36px; font-weight: 400; color: var(--champagne);
}
.enquiry-price-range { font-size: 13px; font-weight: 300; color: rgba(255,255,255,.4); margin-top: 4px; }
.enquiry-card-body { padding: 28px; }
.enquiry-agent { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--border-light); }
.enquiry-agent-img {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--champagne);
}
.enquiry-agent-name { font-size: 15px; font-weight: 400; color: var(--ink); }
.enquiry-agent-role { font-size: 11px; font-weight: 300; color: var(--muted); }
.enquiry-agent-phone { font-size: 13px; color: var(--champagne); margin-top: 3px; font-weight: 400; }

/* ── SIMILAR PROJECTS LINKS ── */
.similar-link {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 14px 0; border-bottom: 1px solid var(--border-light);
  text-decoration: none; transition: var(--transition);
}
.similar-link:last-child { border-bottom: none; }
.similar-link:hover .similar-link-title { color: var(--champagne); }
.similar-thumb {
  width: 70px; height: 70px; border-radius: var(--r-sm);
  overflow: hidden; flex-shrink: 0;
}
.similar-thumb img { width: 100%; height: 100%; object-fit: cover; }
.similar-link-dev { font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--champagne); }
.similar-link-title { font-size: 14px; font-weight: 400; color: var(--ink); margin: 3px 0; transition: color .2s; }
.similar-link-loc { font-size: 11px; font-weight: 300; color: var(--muted); }
.similar-link-price { font-family: var(--ff-display); font-size: 16px; color: var(--champagne); margin-top: 3px; }

/* ── MAP PLACEHOLDER ── */
.map-ph {
  background: var(--ivory); border: 1px solid var(--border-light);
  border-radius: var(--r-md); height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted);
}
.map-ph-icon { font-size: 40px; }

/* ── FLOOR PLAN TABS ── */
.fp-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
.fp-tab {
  padding: 11px 22px; font-size: 10px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
}
.fp-tab.active { color: var(--champagne); border-color: var(--champagne); }
.fp-tab:hover { color: var(--champagne); }

/* ── RELATED GRID (bottom) ── */
.related-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 32px;
}
@media(max-width:900px) { .related-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:580px) { .related-grid { grid-template-columns: 1fr; } }

/* ── QUICK FACTS GRID ── */
.qf-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.qf-item {
  background: var(--obsidian-2);
  border: 1px solid var(--border-dark);
  border-radius: var(--r-sm); padding: 18px;
  text-align: center;
}
.qf-val { font-family: var(--ff-display); font-size: 22px; color: var(--champagne); }
.qf-label { font-size: 9px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.35); margin-top: 5px; }
