/* Social Proof — minimalist white pills, colored dots, soft shadow.
   No animations except the live-views dot. See docs/SOCIAL_PROOF_LOGIC.md. */

.sp-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    color: #1a1a1a;
    padding: 5px 11px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    line-height: 1;
    white-space: nowrap;
}
.sp-badge .sp-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Card overlay placement (catalog photo). Bottom-left to avoid colliding with
   .card-top-actions (heart + cashback at top). */
.sp-badge--overlay {
    position: absolute;
    bottom: 26px;
    left: 12px;
    z-index: 5;
}

/* Stats line (per-badge copy) under product title or under highway block */
.sp-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #555;
    margin: 6px 0;
    line-height: 1.4;
}
.sp-stats strong {
    color: inherit;
    font-weight: 600;
}
.sp-stats .sp-sep {
    width: 1px;
    height: 12px;
    background: #e0e0e0;
}

/* Per-badge color modifiers (mockup colors). Default sp-stats keeps #555 for fast/top. */
.sp-stats--fast { color: #c4351c; }       /* Быстро бронируют */
.sp-stats--top { color: #8a4d00; }        /* ★ Топ */
.sp-stats--new { color: #1850b3; }        /* Новинка */
.sp-stats--trend { color: #006d63; }      /* В тренде */
.sp-stats--deal { color: #1a6b32; }       /* Выгодно */
.sp-stats--scarce { color: #5a2da0; }     /* Скоро не будет (room-level scarcity) */

/* Live dot — only animation in the system */
.sp-live-dot {
    width: 7px;
    height: 7px;
    background: #2ea44f;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
    animation: sp-pulse 1.6s infinite;
    flex-shrink: 0;
}
@keyframes sp-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}
@media (prefers-reduced-motion: reduce) {
    .sp-live-dot {
        animation: none;
    }
}

/* Urgency pills (product page meta-row, mockup §7): «Смотрят X», «Бронь X ч назад» */
.sp-urgency-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.sp-urgency-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid;
    font-size: 12px;
    line-height: 1.2;
}
.sp-urgency-row strong { font-weight: 600; }

/* Live viewers — мягкий зелёный */
.sp-urgency-row--live {
    background: #e8f5e9;
    border-color: #c8e6c9;
    color: #1a4d1a;
}
.sp-urgency-row--live strong { color: #0d3a1a; }

/* Recent booking — мягкий жёлтый */
.sp-urgency-row--booking {
    background: #fff8e7;
    border-color: #ffe6a0;
    color: #8a4d00;
}
.sp-urgency-row--booking strong { color: #5a3300; }

/* Clock dot (для last_booking) — статичная оранжевая точка */
.sp-clock-dot {
    width: 7px;
    height: 7px;
    background: #f5a623;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Page-level catalog banner */
.sp-page-banner {
    background: #f7fdf9;
    border: 1px solid #c8e6c9;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 14px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #1a4d1a;
}
.sp-page-banner strong {
    color: #0d3a1a;
    font-weight: 700;
}
