/* ─── Reviews Scroll Section ─────────────────────────────────────────────────
   Horizontal scroll strip for Google reviews. Mirrors the [hoe_het_werkt]
   layout: starts at the Divi row's left content edge, bleeds to the right
   viewport edge. Width is calculated by JS on load and resize.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Outer wrapper ───────────────────────────────────────────────────────── */

.rss-section {
    overflow: visible;
    position: relative;
}

/* ── Scrollable track ────────────────────────────────────────────────────── */

.rss-track {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: visible;
    /* Width set by JS: window.innerWidth - element.getBoundingClientRect().left */
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    /* padding-right is set dynamically by JS to stop the last card at the row boundary */
}

.rss-track::-webkit-scrollbar {
    display: none;
}

.rss-track.is-dragging {
    cursor: grabbing;
}

/* ── Card ────────────────────────────────────────────────────────────────── */

.rss-card {
    background-color: #ede4d6;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 520px;
    min-width: 320px;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* ── Card header: avatar + name + badge ──────────────────────────────────── */

.rss-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

/* ── Avatar ──────────────────────────────────────────────────────────────── */

.rss-avatar-wrap {
    flex-shrink: 0;
}

.rss-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.rss-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #c8b89a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 22px;
    flex-shrink: 0;
}

/* ── Author name + meta ──────────────────────────────────────────────────── */

.rss-author-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    color: #504d49;
    white-space: nowrap;
    overflow: hidden;
}

.rss-author-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rss-author-meta {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1;
    color: #504d49;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Rating badge ────────────────────────────────────────────────────────── */

.rss-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ffffff;
    border-radius: 4px;
    padding: 12px;
}

.rss-star {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.rss-badge-score {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 1;
    color: #79a870;
    white-space: nowrap;
}

/* ── Review text ─────────────────────────────────────────────────────────── */

.rss-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rss-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
    color: #504d49;
    margin: 0;
    padding: 0;
}

.rss-text-full {
    display: none;
}

.rss-card.is-expanded .rss-text-short {
    display: none;
}

.rss-card.is-expanded .rss-text-full {
    display: inline;
}

/* ── Lees meer button ────────────────────────────────────────────────────── */

.rss-lees-meer {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: normal;
    color: #ab9472;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid #ab9472;
    width: fit-content;
}

.rss-lees-meer:hover {
    color: #8c7454;
    border-bottom-color: #8c7454;
}

.rss-card.is-expanded .rss-lees-meer {
    display: none;
}

/* ── Navigation arrows ───────────────────────────────────────────────────── */

.rss-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

.rss-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1.5px solid #364940;
    border-radius: 50%;
    background: transparent;
    color: #364940;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.15s;
}

.rss-nav-btn:hover {
    background: rgba(54, 73, 64, 0.07);
}

.rss-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .rss-card {
        width: 320px;
        padding: 24px;
    }

    .rss-avatar,
    .rss-avatar-placeholder {
        width: 48px;
        height: 48px;
    }

    .rss-author-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .rss-card {
        width: 272px;
        padding: 20px;
        gap: 16px;
    }

    .rss-avatar,
    .rss-avatar-placeholder {
        width: 40px;
        height: 40px;
    }

    .rss-avatar-placeholder {
        font-size: 16px;
    }

    .rss-author-name {
        font-size: 14px;
    }

    .rss-badge {
        padding: 8px;
    }

    .rss-text {
        font-size: 15px;
    }
}
