/* ──────────────────────────────────────────────────────────
   Property page — specific styles
   Variant prefixes: .layout-A, .layout-B, .layout-C
   ────────────────────────────────────────────────────────── */

.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ─── Address block (used in all layouts) ─── */
.address-block { display: flex; flex-direction: column; gap: 10px; }
.address-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}
.address-crumb a { color: var(--ink-muted); }
.address-crumb a:hover { color: var(--ink); text-decoration: underline; }
.address-crumb span:nth-child(even) { color: var(--ink-soft); }

.address-h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.018em;
}
.address-h1 .address-city {
  color: var(--ink-muted);
  font-weight: 400;
}
.address-sep { color: var(--ink-soft); font-weight: 400; }
.address-meta {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-muted);
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}
.address-meta > span { white-space: nowrap; }
.address-meta strong { color: var(--ink); font-weight: 600; }
.address-meta .dot { color: var(--ink-soft); }

/* ─── Section heads ─── */
.block { margin-top: 64px; }
.section-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}
.section-sub { font-size: 15px; max-width: 560px; margin-top: 14px; }
.h-section {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-2);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

/* ─── Deal card ─── */
.deal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.deal-card-rail {
  position: sticky;
  top: 100px;
}

.deal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.deal-card-id {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  font-weight: 500;
}

.deal-card-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.price-big {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--ink);
  line-height: 1;
  margin-top: 2px;
}
.price-sub { font-size: 13px; margin-top: 2px; }

.equity-band {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 18px;
  background: var(--surface-warm);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.equity-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ink-muted);
}
.equity-row span:last-child { color: var(--ink); font-weight: 500; }
.equity-label { font-weight: 400; }
.equity-row-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 15px;
}
.equity-row-total .equity-label { color: var(--ink); font-weight: 600; }
.equity-num {
  color: var(--equity) !important;
  font-weight: 700 !important;
  font-size: 17px;
}

.deal-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deal-card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.meta-pair { display: flex; flex-direction: column; gap: 2px; }
.meta-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); font-weight: 600; }
.meta-val { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

/* ─── Gallery: Combined (default) ─── */
.combo-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.combo-main {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  box-shadow: var(--shadow-2);
}
.combo-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.combo-main:hover img { transform: scale(1.015); }

.combo-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(14,22,34,0.18) transparent;
}
.combo-strip::-webkit-scrollbar { height: 6px; }
.combo-strip::-webkit-scrollbar-thumb { background: rgba(14,22,34,0.18); border-radius: 3px; }
.combo-strip::-webkit-scrollbar-track { background: transparent; }
.combo-thumb {
  flex: 0 0 112px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper-2);
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.combo-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.7; transition: opacity 0.15s; }
.combo-thumb:hover img { opacity: 1; }
.combo-thumb.is-active { border-color: var(--brand-2); }
.combo-thumb.is-active img { opacity: 1; }
.combo-main video { width: 100%; height: 100%; object-fit: contain; background: #0a0e16; }
.combo-thumb-video {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  background: #161c28; color: rgba(255,255,255,0.85);
}
.combo-sold-flag {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-6deg);
  background: var(--sold);
  color: #fff;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 44px;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(14,22,34,0.35);
  pointer-events: none;
  z-index: 4;
}
.lightbox video { max-width: 92vw; max-height: 90vh; border-radius: 4px; background: #000; }

/* ─── Gallery: Hero (legacy, kept for fallback) ─── */
.hero-gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-main {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--paper-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
}
.hero-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.hero-main:hover img { transform: scale(1.02); }
.hero-count {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14,22,34,0.78);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  font-feature-settings: "tnum" 1;
}
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(14,22,34,0.06);
  color: var(--ink);
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(6px);
}
.hero-nav:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.hero-nav.prev { left: 14px; }
.hero-nav.next { right: 14px; }

.hero-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.hero-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  background: var(--paper-2);
  border: 2px solid transparent;
  transition: all 0.15s ease;
}
.hero-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.hero-thumb:not(.is-active) img { opacity: 0.75; }
.hero-thumb:hover img { opacity: 1; }
.hero-thumb.is-active { border-color: var(--brand-2); }
.thumb-more {
  position: absolute;
  inset: 0;
  background: rgba(14,22,34,0.62);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 0.01em;
}

/* ─── Gallery: Mosaic (layout B) ─── */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 10px;
  aspect-ratio: 18 / 8;
  max-height: 560px;
}
.mosaic-main {
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-2);
}
.mosaic-main img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mosaic-main:hover img { transform: scale(1.04); }
.mosaic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.mosaic-cell {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--paper-2);
}
.mosaic-cell:nth-child(2) { border-top-right-radius: var(--r-lg); }
.mosaic-cell:nth-child(4) { border-bottom-right-radius: var(--r-lg); }
.mosaic-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mosaic-cell:hover img { transform: scale(1.04); }
.mosaic-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,22,34,0.55);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.mosaic-overlay span { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.mosaic-overlay small { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.85; }

/* ─── Gallery: Full-bleed (layout C) ─── */
.fullbleed {
  margin: 0;
  width: 100%;
  background: #0a0e16;
}
.fullbleed-main {
  position: relative;
  height: 72vh;
  min-height: 480px;
  max-height: 780px;
  cursor: zoom-in;
  overflow: hidden;
}
.fullbleed-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.fb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  backdrop-filter: blur(8px);
}
.fb-nav:hover { background: rgba(255,255,255,0.28); }
.fb-nav.prev { left: 24px; }
.fb-nav.next { right: 24px; }
.fb-count {
  position: absolute;
  bottom: 18px;
  right: 24px;
  background: rgba(14,22,34,0.7);
  color: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-feature-settings: "tnum" 1;
  font-weight: 500;
}
.fb-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px 40px 14px;
  background: #0a0e16;
  scrollbar-width: thin;
}
.fb-thumb {
  flex: 0 0 110px;
  height: 70px;
  border-radius: 6px;
  overflow: hidden;
  background: #161c28;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fb-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0.6; transition: opacity 0.15s; }
.fb-thumb:hover img { opacity: 0.9; }
.fb-thumb.is-active { border-color: var(--brand-2); }
.fb-thumb.is-active img { opacity: 1; }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 18, 0.96);
  display: grid;
  place-items: center;
  z-index: 10000;
  padding: 40px;
}
.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
}
.lb-close, .lb-nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,0.22); }
.lb-close { top: 24px; right: 24px; font-size: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; }
.lb-nav.prev { left: 24px; }
.lb-nav.next { right: 24px; }
.lb-count {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* ─── Specs ─── */
.specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.spec-cell {
  background: var(--surface);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.spec-cell-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #f4f1ea;
  color: var(--brand-2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.spec-cell-value {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.spec-cell-label {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 1px;
}

.prose {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.7;
  max-width: 68ch;
}

/* Optional custom fields */
.custom-fields {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.custom-field {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.custom-field:last-child { border-bottom: 0; }
.custom-field-label { color: var(--ink-muted); font-weight: 500; }
.custom-field-value { color: var(--ink); font-weight: 500; }

/* Vimeo video grid */
.vimeo-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.vimeo-grid iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  background: var(--paper-2);
}

/* Loading / error state */
.property-state {
  max-width: 1100px;
  margin: 0 auto;
  padding: 120px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.property-state h1 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

.exit-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.exit-chips .muted {
  font-size: 13px;
  font-weight: 500;
  margin-right: 4px;
}
.chip {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
}

/* ─── Financials ─── */
.financials {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.fin-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.spec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.spec-row-label {
  font-size: 13px;
  color: var(--ink-muted);
  font-weight: 500;
}
.spec-row-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.012em;
}

.fin-row-equity {
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  padding: 22px 24px;
  background: var(--equity-tint);
  border-radius: var(--r-md);
}
.equity-callout .eyebrow { color: var(--equity); }
.equity-big {
  font-size: 42px;
  font-weight: 700;
  color: var(--equity);
  letter-spacing: -0.028em;
  margin: 2px 0 6px;
  line-height: 1;
}
.equity-callout .muted { font-size: 13px; }
.equity-margin {
  text-align: right;
  border-left: 1px solid rgba(20, 106, 63, 0.22);
  padding-left: 32px;
}
.equity-margin .muted {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.equity-margin .num {
  font-size: 36px;
  font-weight: 700;
  color: var(--equity);
  letter-spacing: -0.025em;
}

/* ─── Map ─── */
.map-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.map-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 8px;
  gap: 4px;
}
.map-tab {
  border: 0;
  background: transparent;
  padding: 8px 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.map-tab:hover { color: var(--ink); background: var(--paper); }
.map-tab.is-active { background: var(--ink); color: #fff; }
.map-frame { aspect-ratio: 16 / 9; min-height: 380px; background: var(--paper-2); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-note { padding: 14px 20px; font-size: 12.5px; }

/* ─── Contact / Lock the deal ─── */
.contact-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: stretch;
  box-shadow: var(--shadow-1);
}
.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.contact-lines {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-left: 40px;
  border-left: 1px solid var(--line);
  justify-content: center;
}
.contact-line {
  display: grid;
  grid-template-columns: 80px 1fr;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
  font-size: 15.5px;
}
.contact-line:last-child { border-bottom: 0; }
.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ink-muted);
}
.contact-link {
  color: var(--brand);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.contact-link:hover { color: var(--brand-2); text-decoration: underline; }

.disclaimer {
  max-width: 1200px;
  margin: 16px auto 0;
  padding: 0 40px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-style: italic;
  text-align: center;
}

/* ─── Layout (single canonical) ─── */
.layout-A { max-width: 1440px; margin: 0 auto; padding: 56px 40px 24px; }
.lA-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

/* Gallery sits full content width */
.lA-gallery {
  margin-bottom: 56px;
}

/* All sections stack in a single readable column */
.lA-content {
  max-width: 1100px;
  margin: 0 auto;
}
.lA-content .block-first { margin-top: 0; }

/* Lock the deal sits below the map */
.lA-contact {
  margin-top: 72px;
}
.lA-contact .section-head { margin-bottom: 24px; }

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  .lA-content { max-width: 100%; }
}

@media (max-width: 760px) {
  .container, .layout-A { padding-left: 18px; padding-right: 18px; }
  .layout-A { padding-top: 28px; }
  .lA-top { flex-direction: column; align-items: flex-start; gap: 12px; }
  .lA-gallery { margin-bottom: 32px; }
  .lA-contact { margin-top: 48px; padding-top: 32px; }
  .specs { grid-template-columns: 1fr 1fr; }
  .fin-row { grid-template-columns: 1fr; gap: 20px; }
  .fin-row-equity { grid-template-columns: 1fr; gap: 16px; }
  .equity-margin { border-left: 0; padding-left: 0; text-align: left; border-top: 1px solid rgba(20,106,63,0.22); padding-top: 16px; }
  .combo-main { aspect-ratio: 4 / 3; }
  .combo-thumb { flex: 0 0 84px; height: 56px; }
  .price-big { font-size: 36px; }
  .equity-big { font-size: 32px; }
  .contact-block { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
  .contact-lines { padding-left: 0; border-left: 0; padding-top: 8px; border-top: 1px solid var(--line); }
  .contact-line { padding: 12px 0; }
}

/* Tweaks-specific hints */
.tweak-hint {
  font-size: 10.5px;
  line-height: 1.55;
  color: rgba(41,38,27,.55);
  margin-top: 4px;
}
