/* Shared styles — full listing property-details mockups */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a0a0a;
  --paper: #f5f2ec;
  --card: #ffffff;
  --border: #e0dbd2;
  --muted: #7a7570;
  --text2: #475467;
  --gold: #c9a84c;
  --gold-dim: rgba(201, 168, 76, 0.14);
  --green: #2d6a4f;
  --green-l: rgba(45, 106, 79, 0.1);
  --green-go: #1a9850;
  --red: #c1121f;
  --new-bg: rgba(26, 152, 80, 0.08);
  --new-border: #1a9850;
  --new-chip: #157a40;
  --condo-bg: rgba(201, 168, 76, 0.1);
  --condo-border: #c9a84c;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: #dcd7cd;
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
}

.mock-banner {
  background: var(--ink);
  color: #fff;
  padding: 14px 20px;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--gold);
}

.mock-banner strong { color: var(--gold); }

.mock-banner a {
  color: #fff;
  margin-left: 16px;
  font-weight: 600;
}

.url-box {
  max-width: 920px;
  margin: 12px auto 0;
  padding: 12px 16px;
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 10px;
  font-size: 13px;
}

.url-box .label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.url-box a {
  display: block;
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 4px;
  word-break: break-all;
}

.url-box a:hover { text-decoration: underline; }

.legend {
  max-width: 920px;
  margin: 20px auto 0;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13px;
}

.legend h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  margin-bottom: 8px;
}

.legend p { color: var(--text2); margin-bottom: 12px; }

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.pill {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
}

.pill-new { background: var(--new-chip); color: #fff; }
.pill-condo { background: var(--gold); color: #1a1208; }
.pill-existing { background: #e5e7eb; color: var(--muted); }

.app {
  max-width: 920px;
  margin: 20px auto 48px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(10, 10, 10, 0.15);
  overflow: hidden;
}

.listing-nav {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  font-size: 12px;
  overflow-x: auto;
}

.listing-nav .back { font-weight: 700; padding-right: 12px; border-right: 1px solid var(--border); white-space: nowrap; }
.listing-nav .tab { padding: 0 10px; color: var(--muted); white-space: nowrap; height: 44px; display: flex; align-items: center; border-bottom: 2px solid transparent; }
.listing-nav .tab.on { color: var(--ink); border-bottom-color: var(--red); font-weight: 600; }

.content { padding: 18px 20px 32px; }

.gallery {
  height: 220px;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, #cbbfae, #cbbfae 20px, #c2b6a3 20px, #c2b6a3 40px);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5d5040;
  font-size: 12px;
  font-weight: 600;
  position: relative;
}

.hero { margin-top: 16px; }

.price-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

.price {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--red);
}

.status-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.addr {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 19px;
  font-weight: 700;
  margin-top: 8px;
}

.mls-line { font-size: 11px; color: var(--muted); margin-top: 4px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.chip {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.chip-new {
  border-color: var(--new-border);
  background: var(--new-bg);
  position: relative;
}

.chip-new .pill { position: absolute; top: -8px; right: -4px; font-size: 8px; }

.chip-occ { border-color: #d4702a; background: rgba(212, 112, 42, 0.1); }

.occ-examples {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px dashed var(--border);
}

.occ-examples .occ-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.occ-examples .chips { margin-top: 0; }

.chip-occ-demo {
  border-color: #d4702a;
  background: rgba(212, 112, 42, 0.08);
  opacity: 0.85;
}

.chip-occ-active {
  border-color: #d4702a;
  background: rgba(212, 112, 42, 0.18);
  box-shadow: 0 0 0 2px rgba(212, 112, 42, 0.35);
}

.section {
  margin-top: 20px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.section h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
}

.section-stub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.subsection {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.subsection:first-of-type { border-top: none; padding-top: 0; margin-top: 14px; }

.subsection-new {
  border: 1px dashed var(--new-border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--new-bg);
  margin-top: 14px;
}

.subsection-condo {
  border: 1px dashed var(--condo-border);
  background: var(--condo-bg);
}

.sub-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.sub-head h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
}

.pd-grid dt { font-size: 11px; color: var(--muted); }
.pd-grid dd { font-size: 13px; font-weight: 700; margin-top: 1px; }

.row-new {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  padding: 8px 10px;
  margin: 0 -10px;
  border-radius: 8px;
  background: rgba(26, 152, 80, 0.06);
  border-left: 3px solid var(--new-border);
}

.row-new dt::after {
  content: ' NEW';
  font-size: 8px;
  font-weight: 800;
  color: var(--new-chip);
  letter-spacing: 0.05em;
}

.callout {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text2);
  background: var(--paper);
  border-radius: 8px;
  padding: 8px 10px;
  line-height: 1.45;
}

.callout code { font-size: 10px; color: var(--ink); }

.anchor-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
  background: #f3f4f6;
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.section-faded { opacity: 0.55; pointer-events: none; }

@media (max-width: 640px) {
  .pd-grid, .row-new { grid-template-columns: 1fr; }
}
