/* Stairtop proposal mockup — comp set rail, interior listing page only.
   Loaded by listing.html after style.css; leans on its tokens and reuses
   .card, .mtag, .pill, .btn, .note. Everything here is namespaced cx-. */

/* the rail is its own card in the right column of .ldgrid — beside the
   ladder on desktop; the grid itself stacks it below at 980px. */
.cx-railcard { min-width: 0; } /* stacked cards abut, same as the coach cue and listing sheet */
.cx-count { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- the feed ---------- */

.cx-feed { display: flex; flex-direction: column; gap: 10px; }

.cx-card {
  position: relative;
  display: flex;
  gap: 11px;
  padding: 9px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cx-card:hover { border-color: #C9D2D2; }
.cx-card.on { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }

.cx-thumb {
  flex: 0 0 86px;
  width: 86px;
  height: 66px;
  border-radius: 7px;
  overflow: hidden;
  background: #E8ECEC;
}
.cx-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cx-thumb.sm { flex: 0 0 58px; width: 58px; height: 44px; border-radius: 6px; }

.cx-body { flex: 1; min-width: 0; }

.cx-addr {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cx-card .cx-addr { padding-right: 52px; } /* room for the two icon buttons */

.cx-price { font-size: 12.5px; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 1px; }
.cx-price b { font-weight: 600; }

.cx-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.cx-meta .st.pending { color: #8A5A00; }
.cx-meta .st.sold { color: var(--ok); }
.cx-meta .cx-best { margin-left: 4px; vertical-align: 1px; }
.cx-rail .pill.sm { padding: 2px 8px; font-size: 10.5px; }

.cx-read { font-size: 12px; line-height: 1.45; color: var(--muted); margin-top: 4px; }

/* icon buttons: star + remove, quiet until needed */
.cx-acts { position: absolute; top: 7px; right: 7px; display: flex; gap: 2px; }
.cx-ib {
  appearance: none;
  border: 0;
  background: transparent;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cx-ib:hover { background: #EEF2F2; color: var(--ink); }
.cx-ib.star.on { color: var(--warn); }
.cx-ib.star.on svg { fill: currentColor; }
.cx-ib.x:hover { color: var(--bad); }

.cx-empty { font-size: 12.5px; color: var(--muted); margin: 4px 0; }

/* ---------- add a comp ---------- */

.cx-add { margin-top: 12px; }
.cx-cands { margin-top: 10px; }
.cx-candhead {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 6px;
}
.cx-cand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 2px;
  border-top: 1px solid var(--line);
}
.cx-cand-b { flex: 1; min-width: 0; }
.cx-cand .cx-addr { font-weight: 500; }
.cx-candadd { flex: 0 0 auto; padding: 5px 14px; font-size: 12px; }

.cx-note { margin-top: 12px; }

/* ---------- ladder echoes of the rail ---------- */

/* starred: the rung carries the same star, gold, solid fill — no outlines */
.lrung.cx-star .lr-label::before { content: "\2605\00a0"; color: var(--warn); }
.lrung.subject.cx-star .lr-label::before { color: var(--yellow); }

/* removed from the set: the MLS record stays, dimmed and labeled */
.lrung.cx-out { opacity: 0.42; }
.lrung.cx-out .lr-status::after { content: " · out of the set"; }

/* added by the agent: slots in at its price with a soft highlight */
.lrung.cx-added { background: rgba(232, 227, 110, 0.16); border-radius: 7px; border-top-color: transparent; }
.lrung.cx-added + .lrung { border-top-color: transparent; }
