/* Badges on vehicle photos (see server/lib/badges.js). Sizes follow the photo width (container units from overlay.css). */
.badges { position: absolute; top: 2cqw; right: 2cqw; z-index: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 1.2cqw; pointer-events: none; }
.badge { background: var(--bb, #e60012); color: var(--bf, #fff); font-size: clamp(10px, 4.4cqw, 22px); font-weight: 800; line-height: 1.2; padding: .22em .7em; border-radius: 1em; white-space: nowrap; box-shadow: 0 1px 3px rgba(0,0,0,.35); letter-spacing: .03em; }
.truck_card .badges .badge:nth-child(n+3), .car .badges .badge:nth-child(n+3), .mini .badges .badge:nth-child(n+2) { display: none; }   /* cards show the first two */
/* stamps across the photo: 商談中 / 成約済 */
.stamp { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%) rotate(-10deg); font-size: clamp(14px, 11cqw, 56px); font-weight: 900; letter-spacing: .14em; padding: .08em .5em .08em .64em; color: var(--sb, #b00020); background: rgba(255,255,255,.88); border: .12em solid var(--sb, #b00020); border-radius: .22em; white-space: nowrap; pointer-events: none; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.stamp-reserved { color: var(--sf, #fff); background: var(--sb, #e08a00); border-color: rgba(255,255,255,.9); font-size: clamp(12px, 8cqw, 44px); opacity: .95; }
.ph:has(.stamp-sold) > img, .car .photo:has(.stamp-sold) > img, .gallery .main:has(.stamp-sold) > img, .mini .ph:has(.stamp-sold) > img,
.ph:has(.ribbon-sold) > img, .car .photo:has(.ribbon-sold) > img, .gallery .main:has(.ribbon-sold) > img, .mini .ph:has(.ribbon-sold) > img { filter: grayscale(.75) brightness(.8); }
.ribbon-sold { z-index: 3; }   /* the sold ribbon uses the corner-ribbon look of 新着 */
