:root {
  --bg: #f7f3ee;
  --surface: #ffffff;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e0d8;
  --accent: #c45c26;
  --like: #2f6f4e;
  --like-bg: #e8f5ee;
  --pass: #9b3b3b;
  --pass-bg: #f8ecec;
  --shadow: 0 10px 30px rgba(28, 25, 23, 0.08);
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #ffe8d6 0%, transparent 55%),
    radial-gradient(900px 500px at 100% 0%, #efe7ff 0%, transparent 50%),
    var(--bg);
  line-height: 1.45;
  min-height: 100vh;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
}

.site-header { padding: 1.6rem 0 1rem; }
.site-header h1, .detail-body h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.03em;
  font-weight: 750;
}
.criteria {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 42rem;
}
.header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}
.voter-badge {
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.voter-badge strong { color: var(--ink); }

/* Chooser */
.chooser-page { display: flex; flex-direction: column; min-height: 100vh; }
.chooser {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3rem 0;
  text-align: center;
}
.chooser h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.chooser-prompt {
  margin: 2rem 0 1rem;
  font-size: 1.15rem;
  font-weight: 650;
}
.chooser-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}
.chooser-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10rem;
  padding: 1.1rem 2rem;
  font-size: 1.25rem;
  font-weight: 750;
  text-decoration: none;
  color: #fff;
  background: var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform 0.12s, background 0.15s;
}
.chooser-btn:hover { transform: translateY(-2px); background: #292524; }
.chooser-btn.kathy { background: var(--accent); }
.chooser-btn.kathy:hover { background: #a34c1f; }
.chooser-links { margin-top: 1.5rem; }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 1.1rem 0 1.4rem;
  padding: 0.85rem 1rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 14px;
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0.5rem;
  z-index: 20;
}

.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.filters button,
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.filters button:hover,
.btn:hover { border-color: #cfc4b8; }
.filters button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.btn.accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn:active,
.filters button:active { transform: translateY(1px); }

.actions-row { display: flex; gap: 0.45rem; flex-wrap: wrap; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.15rem;
  padding-bottom: 2.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.card.voted-like { outline: 2px solid rgba(47, 111, 78, 0.35); }
.card.voted-pass { outline: 2px solid rgba(155, 59, 59, 0.28); opacity: 0.92; }

.photo-wrap {
  position: relative;
  aspect-ratio: 16 / 11;
  background: #ddd5cb;
  overflow: hidden;
  display: block;
  text-decoration: none;
}
.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(28,25,23,0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}
.badge.maybe { background: rgba(196, 92, 38, 0.92); }
.vote-pill {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}
.vote-pill.like { background: var(--like-bg); color: var(--like); }
.vote-pill.pass { background: var(--pass-bg); color: var(--pass); }
.photo-count {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  background: rgba(28,25,23,0.75);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
}

.body {
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.body h2, .detail-body h1 { margin: 0; font-size: 1.18rem; letter-spacing: -0.02em; }
.title-link { color: inherit; text-decoration: none; }
.title-link:hover { color: var(--accent); }
.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.price {
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.price span { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.92rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.chip {
  font-size: 0.78rem;
  background: #f4eee7;
  color: #44403c;
  border-radius: 999px;
  padding: 0.22rem 0.55rem;
}
.chip.good { background: var(--like-bg); color: var(--like); }
.chip.warn { background: #fff1e6; color: #9a4b1b; }
.notes { margin: 0; font-size: 0.9rem; color: #57534e; }
.notes.muted { color: var(--muted); font-style: italic; }

.card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
}
.link-out {
  font-size: 0.88rem;
  text-decoration: none;
  font-weight: 600;
}
.link-out:hover { text-decoration: underline; }

.vote-box {
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vote-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.vote-btns button {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  background: #fff;
}
.vote-btns button.like {
  color: var(--like);
  background: var(--like-bg);
  border-color: #c8e5d5;
}
.vote-btns button.pass {
  color: var(--pass);
  background: var(--pass-bg);
  border-color: #efd3d3;
}
.vote-btns button.selected.like {
  background: var(--like);
  color: #fff;
  border-color: var(--like);
}
.vote-btns button.selected.pass {
  background: var(--pass);
  color: #fff;
  border-color: var(--pass);
}
.feedback {
  width: 100%;
  min-height: 2.6rem;
  resize: vertical;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.65rem;
  background: #fff;
  color: var(--ink);
}
.submit-vote {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: var(--ink);
  color: #fff;
}
.submit-vote:disabled { opacity: 0.45; cursor: not-allowed; }
.status-line {
  font-size: 0.82rem;
  color: var(--muted);
  min-height: 1.1em;
}
.status-line.ok { color: var(--like); }
.status-line.err { color: var(--pass); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.2rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden { display: none !important; }
.empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--muted);
  padding: 2.5rem 1rem;
  background: rgba(255,255,255,0.55);
  border-radius: var(--radius);
  border: 1px dashed var(--line);
}

/* Detail */
.detail {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 2.5rem;
}
.detail-body {
  padding: 1.25rem 1.35rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.detail-body h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.detail-body h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.desc p { margin: 0; white-space: pre-wrap; color: #44403c; font-size: 0.95rem; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin: 0;
}
.fact-row {
  background: #f7f3ee;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
}
.fact-row dt {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fact-row dd { margin: 0.15rem 0 0; font-weight: 650; }
.feature-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: #44403c;
  font-size: 0.92rem;
  columns: 2;
}
.detail-vote { margin-top: 0.5rem; }

/* Detail media: desktop 2–3 cols, mobile unified slideshow */
.detail-media { background: #1c1917; }
.desktop-media-grid {
  display: grid;
  grid-template-columns: repeat(var(--media-cols, 2), minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.5rem;
  align-items: start;
}
.media-col {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  background: #292524;
  border-radius: 10px;
  overflow: hidden;
}
.media-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a8a29e;
  padding: 0.45rem 0.65rem 0.2rem;
  font-weight: 650;
}
.media-photos-col .gallery {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.detail-map {
  flex: 0 0 auto;
  display: block;
  width: 100%;
  height: var(--detail-panel-height, 360px);
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 0;
  background: #e7e5e4;
  overflow: hidden;
  z-index: 1;
}
.map-open {
  display: block;
  padding: 0.4rem 0.65rem 0.55rem;
  font-size: 0.8rem;
  color: #fafaf9;
  text-decoration: none;
}
.map-open:hover { text-decoration: underline; }
.floorplan-frame {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: var(--detail-panel-height, 360px);
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}
.floorplan-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.mobile-media-only { display: none; }

/* Gallery (shared) */
.gallery { background: #1c1917; }
.gallery-main {
  position: relative;
  width: 100%;
  height: var(--detail-panel-height, 360px);
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #292524;
  flex: 0 0 auto;
}
.gallery-hero {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1c1917;
}
.gal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--ink);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.gal-nav.prev { left: 0.75rem; }
.gal-nav.next { right: 0.75rem; }
.gal-counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.85rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  z-index: 2;
}
.gallery-thumbs {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem;
  overflow-x: auto;
  background: #292524;
}
.thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #44403c;
  opacity: 0.7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}
.thumb.active { border-color: #fff; opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.thumb-map {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: #0f766e;
}

/* Mobile unified slideshow */
.mobile-slideshow { background: #1c1917; }
.mslide-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  min-height: 0;
  overflow: hidden;
  background: #292524;
}
.mslide-track { width: 100%; height: 100%; position: relative; }
.mslide {
  display: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1c1917;
}
.mslide.active { display: block; }
.mslide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #1c1917;
}
.mslide[data-type="floorplan"] img { background: #fff; object-fit: contain; }
.mslide-map {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #e7e5e4;
  z-index: 1;
}
.mslide-map-open {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  z-index: 3;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 0.75rem;
  text-decoration: none;
}
.mslide-map-open:hover { text-decoration: underline; }
.mslide-tag {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  z-index: 3;
}

/* Map */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.75fr);
  gap: 1rem;
  align-items: start;
}
.all-map {
  height: min(70vh, 640px);
  min-height: 420px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 1;
  overflow: hidden;
}
.map-embed {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-list {
  max-height: min(70vh, 640px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper, #fff);
  box-shadow: var(--shadow);
}
.map-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
}
.map-list-head h2 { margin: 0; font-size: 1.05rem; }
.map-list-head span { color: var(--muted); font-size: 0.8rem; }
.map-list-items { list-style: none; padding: 0; margin: 0; }
.map-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.7rem 0.9rem 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--accent);
}
.map-list-item.is-ne { border-left-color: #4f46e5; }
.map-list-item:last-child { border-bottom: 0; }
.map-list-main { min-width: 0; }
.map-list-title, .map-list-meta { display: block; }
.map-list-title { font-weight: 650; line-height: 1.2; }
.map-list-meta { margin-top: 0.18rem; color: var(--muted); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-list-link { flex: 0 0 auto; font-size: 0.78rem; font-weight: 650; white-space: nowrap; }
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0.85rem 0 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.leg { display: inline-flex; align-items: center; gap: 0.4rem; }
.leg i, .pin span {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
}
.leg i.pin-centro, .pin-centro span { background: var(--accent); }
.leg i.pin-ne, .pin-ne span { background: #4f46e5; }
.pin { background: transparent !important; border: none !important; }
.map-popup { font-size: 0.9rem; line-height: 1.4; }
.map-popup a { font-weight: 600; }

@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-list { max-height: none; }
  .all-map { min-height: 360px; }
  .desktop-media-grid { display: none; }
  .mobile-media-only { display: block; }
  .gallery-main, .mslide-stage { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .toolbar { position: static; }
  .photo-wrap { aspect-ratio: 4 / 3; }
  .feature-list { columns: 1; }
}

@media (min-width: 901px) {
  .detail-media {
    --detail-panel-height: clamp(280px, 42vh, 480px);
  }
}

/* Wider canvas on detail pages for 3-column media */
body[data-page="detail"] .wrap {
  max-width: min(1200px, calc(100vw - 2rem));
}


/* --- Metro + 2-year effective cost --- */
.price-stack {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.eff-price {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--accent);
  max-width: 14rem;
  line-height: 1.25;
  white-space: normal;
}
.eff-note {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.72rem;
}
.metro-line {
  margin: 0;
  font-size: 0.9rem;
  color: #334155;
  font-weight: 600;
}
.cost-box {
  background: #fffaf5;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem 1rem;
}
.cost-box h2 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
}
.cost-footnote {
  margin: 0.65rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.assumptions-note {
  margin: 0 0 2rem;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  background: rgba(255,255,255,0.65);
  border: 1px dashed var(--line);
  border-radius: 12px;
  line-height: 1.4;
}
.sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.sort-label select {
  font: inherit;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: var(--surface);
  color: var(--ink);
}

.vote-tabs { margin-bottom: 0.35rem; }
.area-filters { opacity: 0.95; }
.partner-vote {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.partner-vote.like { background: var(--like-bg); color: var(--like); border-color: transparent; }
.partner-vote.pass { background: #f3ece6; color: #7a4a2b; border-color: transparent; }
.photo-wrap .partner-vote { top: 0.7rem; right: 0.7rem; }
.photo-wrap .vote-pill { top: 2.4rem; right: 0.7rem; left: auto; }
.photo-wrap .badge { z-index: 2; }
.status-pill {
  position: absolute;
  bottom: 0.55rem;
  left: 0.55rem;
  z-index: 2;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.92);
}
.status-pill.favorite { background: #e8f6ee; color: #1b6b3a; }
.status-pill.passed { background: #f3ece6; color: #7a4a2b; }
.partner-line { margin: 0 0 0.65rem; font-size: 0.92rem; }
.partner-line .partner-vote { position: static; box-shadow: none; }
.card.is-favorite { outline: 2px solid #7bc49a; }
.card.is-passed { opacity: 0.92; }

/* "Renders, not real photos" badge (listings with renders: true) */
.renders-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffd23f;
  color: #3b2a00;
  border: 1px solid #b88a00;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.2;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
  white-space: nowrap;
}
.renders-badge::before {
  content: "⚠";
  font-size: 0.9em;
}
.renders-badge.on-card {
  position: absolute;
  top: 2.45rem;
  left: 0.7rem;
  z-index: 3;
  max-width: calc(100% - 1.4rem);
}
.renders-badge.on-media {
  position: absolute;
  top: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  font-size: 0.85rem;
  pointer-events: none;
}
.renders-badge.inline { font-size: 0.85rem; box-shadow: none; }
.renders-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.25rem 0 0.75rem;
  padding: 0.6rem 0.75rem;
  background: #fff6d6;
  border: 1px solid #e8c34a;
  border-radius: 12px;
}
.renders-banner-note { font-size: 0.88rem; color: #5a4300; }
.card.has-renders .photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #ffd23f;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 640px) {
  .renders-badge { font-size: 0.74rem; padding: 0.26rem 0.55rem; }
  .renders-badge.on-card { top: 2.3rem; left: 0.55rem; }
  .renders-badge.on-media { top: 0.55rem; font-size: 0.76rem; }
}

/* Remote-photo fallback: link to the original ad */
.photo-fallback{display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-height:180px;background:#e9e0d6;color:#5a4636;font-weight:600;text-decoration:underline;cursor:pointer;text-align:center;padding:1rem;box-sizing:border-box}
.gallery-main .photo-fallback,.mslide .photo-fallback{min-height:260px}
