/* =============================================================
   WoodlandsCRE — Listing Detail Stylesheet
   Covers: carousel, breadcrumb, detail grid, Pablo's Take (full),
           sidebar, overview, who-is-this-for (full), back section
   Used by: individual listing detail pages only
   ============================================================= */

/* ── LISTING PAGE WRAPPER ── */
.listing-hero { padding: 100px 40px 0; }
.listing-inner { max-width: 1200px; margin: 0 auto; }

/* ── BREADCRUMB ── */
.breadcrumb {
  font-size: 0.82rem; color: var(--gray-500); margin-bottom: 20px;
  display: flex; align-items: center; gap: 8px;
}
.breadcrumb a { color: var(--forest); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ── PHOTO CAROUSEL ── */
.carousel-wrap {
  position: relative; margin-bottom: 44px;
  border-radius: var(--radius-lg); overflow: hidden;
}
/* Slides use min-width:100% so the track expands naturally.
   translateX(-N * 100%) advances to slide N. */
.carousel-track { display: flex; transition: transform 0.4s ease; }
.carousel-slide {
  min-width: 100%; height: 500px; overflow: hidden; background: var(--cream-dark);
  flex-shrink: 0;
}
.carousel-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12); z-index: 2;
  transition: background 0.2s;
}
.carousel-btn:hover { background: var(--white); }
.carousel-btn svg { width: 20px; height: 20px; color: var(--ink); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.5); border: none; cursor: pointer;
  transition: background 0.2s;
}
.carousel-dot.active { background: var(--white); }
.carousel-origin {
  position: absolute; top: 16px; right: 16px;
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,0.9); color: var(--gray-500); z-index: 2;
}

/* Placeholder when no photos available */
.carousel-placeholder {
  height: 400px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--cream-dark), var(--sand));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; margin-bottom: 44px; color: var(--gray-400);
}
.carousel-placeholder svg { width: 40px; height: 40px; opacity: 0.4; }
.carousel-placeholder p { font-size: 0.88rem; opacity: 0.6; }

/* ── DETAIL LAYOUT ── */
.listing-detail { padding: 0 40px 80px; }
.detail-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 360px; gap: 44px;
}

/* ── LISTING TITLE BLOCK ── */
.p-type {
  font-size: 0.82rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--gold); margin-bottom: 8px;
}
.p-name {
  font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 700; line-height: 1.15; margin-bottom: 6px;
}
.p-addr { font-size: 0.92rem; color: var(--gray-500); margin-bottom: 28px; }

/* ── SPECS BAR ── */
.specs {
  display: flex; gap: 32px; padding: 24px 0;
  border-top: 1px solid rgba(0,0,0,0.06); border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 32px; flex-wrap: wrap;
}
/* Note: .spec-val and .spec-lbl are defined in styles.css */
.specs .spec-val { font-size: 1.1rem; }
.specs .spec-lbl { text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* ── PABLO'S TAKE (full detail version) ── */
.take-full {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  border-left: 4px solid var(--forest);
}
.take-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.take-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.take-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.take-name { font-family: 'Playfair Display', serif; font-size: 0.95rem; font-weight: 700; }
/* .take-label reused from styles.css — color overridden here for detail context */
.take-full .take-label { font-size: 0.82rem; color: var(--forest); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0; }
.take-intro {
  font-size: 1rem; font-style: italic; color: var(--ink-soft);
  line-height: 1.7; margin-bottom: 22px;
  padding-bottom: 22px; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.take-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 22px; }
.take-fact { background: rgba(30,58,47,0.04); border-radius: 8px; padding: 12px 14px; }
.fact-val { display: block; font-weight: 700; font-size: 0.95rem; color: var(--forest); margin-bottom: 2px; }
.fact-lbl { display: block; font-size: 0.78rem; color: var(--gray-500); line-height: 1.4; }

/* Pros / Risks grid */
.take-pr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }
.take-pros { background: rgba(30,58,47,0.05); border-radius: 8px; padding: 16px 18px; }
.take-risks { background: rgba(184,148,62,0.08); border-radius: 8px; padding: 16px 18px; }
.take-pr-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; }
.take-pros .take-pr-title  { color: var(--forest); }
.take-risks .take-pr-title { color: var(--gold); }
.take-pr-list { list-style: none; }
.take-pr-list li {
  font-size: 0.84rem; color: var(--gray-600); line-height: 1.5;
  padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
  display: flex; gap: 8px; align-items: flex-start;
}
.take-pr-list li:last-child { border-bottom: none; padding-bottom: 0; }
.take-pr-list li::before { flex-shrink: 0; margin-top: 3px; }
.take-pros  .take-pr-list li::before { content: '✓'; color: var(--forest); font-weight: 700; font-size: 0.82rem; }
.take-risks .take-pr-list li::before { content: '△'; color: var(--gold);   font-weight: 700; font-size: 0.82rem; }

/* Underwriting / risk-mitigation pairs */
.take-underwriting { background: rgba(184,148,62,0.08); border-radius: 8px; padding: 16px 18px; }
.take-underwriting .take-pr-title { color: var(--gold); }
.risk-item { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05); }
.risk-item:last-child { border-bottom: none; padding-bottom: 0; }
.risk-label { font-size: 0.84rem; color: var(--gray-600); line-height: 1.45; display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.risk-label::before { content: '△'; color: var(--gold); font-weight: 700; font-size: 0.82rem; flex-shrink: 0; margin-top: 1px; }
.risk-note { font-size: 0.79rem; color: var(--forest); font-weight: 500; line-height: 1.45; padding-left: 18px; display: flex; gap: 6px; align-items: flex-start; }
.risk-note::before { content: '→'; flex-shrink: 0; font-size: 0.78rem; margin-top: 1px; }

/* Conclusion block */
.take-conclusion {
  background: var(--forest); color: var(--white);
  border-radius: 8px; padding: 16px 20px;
  font-size: 0.92rem; line-height: 1.6; font-style: italic;
}
.take-conclusion strong { font-style: normal; color: var(--gold-light); }

/* ── WHO IS THIS FOR (full detail version) ── */
.who-full {
  background: var(--gold-muted); border-radius: var(--radius-lg);
  padding: 28px 32px; margin-bottom: 28px;
}
.who-header { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.who-header svg { width: 20px; height: 20px; color: var(--gold); }
.who-title { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; }
.who-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.75; }
.who-text strong { color: var(--ink-soft); }
.who-text p { margin-bottom: 12px; }
.who-text p:last-child { margin-bottom: 0; }

/* ── PROPERTY OVERVIEW ── */
.overview {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; margin-bottom: 28px; box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.overview h3 { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 16px; }
.overview-text { font-size: 0.9rem; color: var(--gray-600); line-height: 1.8; }
.overview-text p { margin-bottom: 12px; }
.overview-text p:last-child { margin-bottom: 0; }
.overview-bullets { list-style: none; padding: 0; margin: 0; }
.overview-bullets li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; color: var(--gray-600); line-height: 1.7;
  padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.overview-bullets li:last-child { border-bottom: none; padding-bottom: 0; }
.overview-bullets li::before { content: '—'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.overview-bullets li em { font-style: italic; color: var(--gray-500); }

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 90px; align-self: start; }
.sidebar-contact {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 32px; box-shadow: 0 8px 32px rgba(0,0,0,0.06);
  margin-bottom: 20px; text-align: center;
}
.sidebar-avatar { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; margin: 0 auto 14px; }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 3px; }
.sidebar-role { font-size: 0.82rem; color: var(--gray-500); margin-bottom: 22px; }
.sidebar-contact .btn { width: 100%; justify-content: center; margin-bottom: 8px; }
.sidebar-contact .btn:last-child { margin-bottom: 0; }
.sidebar-dataroom {
  background: var(--forest); border-radius: var(--radius-lg);
  padding: 28px; color: var(--white); text-align: center;
}
.dr-icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.1);
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px; color: var(--gold-light);
}
.sidebar-dataroom h4 { font-family: 'Playfair Display', serif; font-size: 1rem; margin-bottom: 6px; }
.sidebar-dataroom p { font-size: 0.82rem; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 18px; }
.sidebar-dataroom .btn { width: 100%; justify-content: center; background: var(--gold); color: var(--white); }
.sidebar-dataroom .btn:hover { background: var(--gold-light); }
.dr-steps { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.1); text-align: left; }
.dr-step { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.dr-step:last-child { margin-bottom: 0; }
.dr-num {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.82rem; font-weight: 700; color: var(--gold-light); flex-shrink: 0;
}
.dr-text { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.4; }
.dr-text strong { color: rgba(255,255,255,0.8); }

/* ── BACK TO LISTINGS SECTION ── */
.back-section { padding: 60px 40px; text-align: center; background: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .detail-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 14px 20px; }
  .listing-hero, .listing-detail, .back-section { padding-left: 20px; padding-right: 20px; }
  .listing-hero { padding-top: 80px; }
  .carousel-slide { height: 280px; }
  .specs { gap: 20px; }
  .take-facts { grid-template-columns: 1fr 1fr; }
  .take-pr-grid { grid-template-columns: 1fr; }
}
