/* ==========================================================================
   Listing detail pages — extends the "Ink & Air" system in styles.css
   ========================================================================== */

.listing-page { padding-top: 88px; } /* clearance under the fixed paper header */

/* The header on listing pages is always solid paper */
.site-header.always-solid {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--hairline);
}

.site-header.always-solid .nav-cta {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.site-header.always-solid .nav-cta:hover { background: #2A2A2A; border-color: #2A2A2A; }

/* ---- Listing masthead -------------------------------------------------- */

.listing-head {
  padding: clamp(48px, 6vw, 88px) 0 40px;
}

.listing-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.chip-static {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 6px 14px;
}

.listing-head h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.15;
  letter-spacing: 0.2px;
  max-width: 24ch;
  margin-bottom: 16px;
  text-wrap: balance;
}

.listing-price {
  font-family: var(--serif);
  font-weight: 300;
  font-feature-settings: "lnum" 1, "pnum" 1;
  font-size: 28px;
  margin-bottom: 8px;
}

.listing-soi-inline {
  margin-top: 4px;
  margin-bottom: 28px;
}

.listing-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 36px;
  border-top: 1px solid var(--hairline);
  padding-top: 24px;
}

.listing-specs span {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--grey);
}

.listing-specs span b {
  color: var(--ink);
  font-weight: 700;
}

/* ---- Gallery ------------------------------------------------------------ */

.gallery { display: grid; gap: 16px; }

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- Description ---------------------------------------------------------- */

.listing-body {
  padding: clamp(56px, 7vw, 104px) 0;
}

.listing-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}

.listing-desc h2 {
  font-weight: 400;
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 28px;
  text-wrap: balance;
}

.listing-desc p { margin-bottom: 18px; }
.listing-desc ul { margin: 0 0 18px 18px; }
.listing-desc li { margin-bottom: 6px; }
.listing-desc p, .listing-desc li { color: #333; }

/* ---- Compliance / SOI block ---------------------------------------------- */

.listing-aside > div {
  border-top: 1px solid var(--hairline);
  padding: 24px 0 32px;
}

.aside-label {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 16px;
}

.aside-note {
  font-size: 13px;
  color: var(--grey);
  margin-top: 12px;
  line-height: 1.6;
}

/* ---- Agent mini-cards ------------------------------------------------------ */

.agent-mini {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 20px;
}

.agent-mini img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  filter: grayscale(100%);
}

.agent-mini-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.agent-mini a {
  display: block;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  width: fit-content;
  position: relative;
  padding-bottom: 1px;
  overflow: hidden;
}
.agent-mini a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: translateX(-101%);
  transition: transform 0.3s ease;
}
.agent-mini a:hover::after { transform: translateX(0); }

/* ---- Bottom CTA band -------------------------------------------------------- */

.listing-cta {
  background: var(--sand);
  padding: clamp(56px, 7vw, 96px) 0;
  text-align: left;
}

.listing-cta h2 {
  font-size: 32px;
  line-height: 1.3;
  margin-bottom: 28px;
  max-width: 26ch;
  text-wrap: balance;
}

/* ---- Responsive ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .listing-body-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .listing-price { font-size: 22px; }
}
