/* ═══════════════════════════════════════════════
   RIGHT COLUMN — listing widget
   /css/right_column/listing_widget.css
   ═══════════════════════════════════════════════ */

/* ── Внешняя обёртка (меняй цвет рамки здесь) ── */
.lw-outer {
    border: 1.5px solid #d0d0d0;   /* ← цвет внешней рамки */
    border-radius: 18px;
    padding: 10px;
    background: #f7f7f7;           /* ← фон между рамками */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── Внутренние карточки ── */
.lw-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.lw-card--head {
    padding: 13px 14px 11px;
}

/* ── Заголовок ── */
.lw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.lw-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
    margin-bottom: 3px;
    line-height: 1.3;
}

.lw-desc-link {
    font-size: 12px;
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.15s;
}

.lw-desc-link:hover { opacity: 0.7; }

.lw-btn-new {
    display: inline-flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    background: linear-gradient(90deg, #e84393, #a855f7);
    box-shadow: 0 3px 10px rgba(232,67,147,0.28);
    transition: transform 0.15s, filter 0.15s;
}

.lw-btn-new:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

/* ── Слайдер ── */
.lw-card--slider {
    padding: 0;
}

.lw-slider {
    position: relative;
    width: 100%;
}

.lw-slide {
    display: none;
    text-decoration: none;
    color: inherit;
    flex-direction: column;
}

.lw-slide--active {
    display: flex;
}

/* Фото */
.lw-slide-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    flex-shrink: 0;
}

.lw-slide-img--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f0f1f4, #e5e7eb);
}

.lw-slide-img--empty span {
    font-size: 36px;
}

/* Описание под фото */
.lw-slide-body {
    padding: 10px 13px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.lw-slide-cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #e91e63;
    background: rgba(233,30,99,0.08);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    align-self: flex-start;
}

.lw-slide-title {
    font-size: 13px;
    font-weight: 700;
    color: #1a1d23;
    line-height: 1.35;
}

.lw-slide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.lw-slide-price {
    font-size: 14px;
    font-weight: 700;
    color: #e91e63;
}

.lw-slide-city {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dots */
.lw-dots {
    display: flex;
    justify-content: center;
    gap: 5px;
    padding: 8px 0 10px;
    border-top: 1px solid #f0f0f0;
}

.lw-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: none;
    background: #ddd;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.lw-dot--active {
    background: #e91e63;
    transform: scale(1.25);
}

/* Пустое */
.lw-empty {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    padding: 18px;
}