/* ==========================================================
   Listing Vertical Widget – rpl-vl
   ========================================================== */

/* Wrapper */
.rpl-vl {
    position: relative;
}

/* List (vertical stack) */
.rpl-vl__list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Card – shared */
.rpl-vl__card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

/* Card – horizontal variant */
.rpl-vl__card--horizontal {
    flex-direction: row;
    align-items: stretch;
}

/* Card link overlay (entire card clickable) */
.rpl-vl__card-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    text-decoration: none;
    color: inherit;
}

/* Image container */
.rpl-vl__image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    height: 240px;
}

.rpl-vl__card--horizontal .rpl-vl__image {
    height: auto;
    flex: 0 0 40%;
    max-width: 40%;
}

.rpl-vl__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.rpl-vl__image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.rpl-vl__placeholder {
    width: 100%;
    height: 100%;
    background: #e5e7eb;
}

/* Body */
.rpl-vl__body {
    display: flex;
    flex-direction: column;
    padding: 16px 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}

/* Badges */
.rpl-vl__badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.rpl-vl__badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 4px;
    line-height: 1.4;
    white-space: nowrap;
}

.rpl-vl__badge--type {
    background: #1a1a2e;
    color: #fff;
}

.rpl-vl__badge--agency {
    background: #dc2626;
    color: #fff;
}

/* Title */
.rpl-vl__title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.rpl-vl__title a {
    color: inherit;
    text-decoration: none;
    position: relative;
    z-index: 3;
}

.rpl-vl__title a:hover {
    text-decoration: underline;
}

/* Description */
.rpl-vl__desc {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* Load More – re-use shared .rpl-loadmore */
.rpl-vl__loadmore {
    margin-top: 24px;
}

.rpl-loadmore {
    display: flex;
}

.rpl-loadmore__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    border: 1px solid #ccc;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.rpl-loadmore__btn:hover {
    background: #f5f5f5;
}

.rpl-loadmore__ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Pagination hidden items */
.rpl-vl__card.is-hidden {
    display: none;
}

/* Responsive: horizontal → vertical on mobile */
@media (max-width: 767px) {
    .rpl-vl__card--horizontal {
        flex-direction: column;
    }

    .rpl-vl__card--horizontal .rpl-vl__image {
        flex: none;
        max-width: 100%;
        height: 200px;
    }
}
