﻿/* ============================================================================
   GoogleReviewsWidgets.css
   Stijl voor de twee Google-reviews widgets van Hondenopvakantie:
   - .gr-score-widget   (compacte badge met totaalscore)
   - .gr-list-widget    (uitgebreide widget met 5 reviews)
 
   Let op — attributie is verplicht volgens Google's voorwaarden bij gebruik
   van Places API-data: laat het Google-logo en/of "Powered by Google" altijd
   zichtbaar en onveranderd staan.
   https://developers.google.com/maps/documentation/places/web-service/policies
   ============================================================================ */

.gr-widget {
    font-family: "Google Sans", Roboto, Arial, sans-serif;
    color: #202124;
    box-sizing: border-box;
}

    .gr-widget * {
        box-sizing: border-box;
    }

.gr-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 24px;
}

/* ---- Header (logo + naam) ---- */
.gr-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.gr-header-logo {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.gr-header-label {
    font-size: 14px;
    color: #5f6368;
}

.gr-header-title {
    font-size: 15px;
    font-weight: 500;
    color: #202124;
}

/* ---- Score badge (widget 1) ---- */
.gr-score-widget {
    max-width: 320px;
}

.gr-score-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.gr-score-number {
    font-size: 34px;
    font-weight: 500;
    line-height: 1;
    color: #202124;
}

.gr-score-count {
    font-size: 13px;
    color: #5f6368;
    margin: 0 0 14px;
}

.gr-score-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #1a73e8;
    text-decoration: none;
}

    .gr-score-link:hover {
        text-decoration: underline;
    }

/* ---- Sterren (overlay-techniek voor decimale scores, bv. 4.9) ---- */
.gr-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
    letter-spacing: 2px;
    font-size: 18px;
    white-space: nowrap;
}

.gr-stars--sm {
    font-size: 13px;
    letter-spacing: 1px;
}

.gr-stars-bg {
    color: #dadce0;
}

.gr-stars-fg {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    color: #fbbc04;
}

/* ---- Lijst-widget (widget 2) ---- */
.gr-list-widget {
    max-width: 440px;
}

.gr-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.gr-list-header-score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
}

.gr-review {
    border-top: 1px solid #e8e8e8;
    padding-top: 14px;
    margin-top: 14px;
}

    .gr-review:first-of-type {
        border-top: none;
        padding-top: 0;
        margin-top: 0;
    }

.gr-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.gr-review-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: #e8f0fe;
    color: #1a73e8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 500;
}

.gr-review-meta {
    min-width: 0;
}

.gr-review-name {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-review-submeta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.gr-review-date {
    font-size: 12px;
    color: #80868b;
}

.gr-review-text {
    font-size: 13px;
    color: #5f6368;
    margin: 0;
    line-height: 1.5;
}

.gr-footer {
    border-top: 1px solid #e8e8e8;
    margin-top: 16px;
    padding-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.gr-footer-link {
    font-size: 12px;
    color: #1a73e8;
    text-decoration: none;
}

    .gr-footer-link:hover {
        text-decoration: underline;
    }

.gr-powered-by {
    font-size: 11px;
    color: #80868b;
}
