/* ===== Google Reviews Frontend v2 ===== */

.gr-reviews-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    margin: 20px 0;
}

/* ── Header ── */
.gr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.gr-header-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.gr-google-icon { border-radius: 2px; }
.gr-overall-score {
    font-size: 32px;
    font-weight: 700;
    color: #202124;
}
.gr-total-count {
    font-size: 13px;
    color: #70757a;
}
.gr-write-review-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: #1a73e8;
    color: #fff !important;
    border-radius: 24px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s;
    border: none;
    cursor: pointer;
}
.gr-write-review-btn:hover { background: #1557b0; }

/* ── Stars ── */
.gr-stars { display: inline-flex; gap: 1px; direction: ltr; }
.gr-star { font-size: 18px; line-height: 1; }
.gr-star-full { color: #fbbc04; }
.gr-star-half { color: #fbbc04; display: inline-block; width: 0.55em; overflow: hidden; }
.gr-star-empty { color: #dadce0; }
.gr-review-stars .gr-star { font-size: 15px; }

/* ── Cards ── */
.gr-layout-cards .gr-reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}
.gr-layout-cards .gr-review-item {
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 12px;
    padding: 20px;
    transition: box-shadow 0.2s;
}
.gr-layout-cards .gr-review-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* ── List ── */
.gr-layout-list .gr-reviews-container {
    display: flex;
    flex-direction: column;
}
.gr-layout-list .gr-review-item {
    padding: 20px 0;
    border-bottom: 1px solid #e8eaed;
}
.gr-layout-list .gr-review-item:last-child { border-bottom: none; }

/* ── Slider ── */
.gr-slider-container {
    position: relative;
    overflow: hidden;
}
.gr-slider-track { overflow: hidden; }
.gr-layout-slider .gr-reviews-container {
    display: flex;
    transition: transform 0.4s ease;
}
.gr-layout-slider .gr-slide {
    min-width: 100%;
    padding: 20px;
    box-sizing: border-box;
}
.gr-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: background 0.2s;
}
.gr-slider-btn:hover { background: #f1f3f4; }
.gr-slider-prev { right: auto; left: 8px; }
.gr-slider-next { left: auto; right: 8px; }
.gr-slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}
.gr-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #dadce0;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}
.gr-dot.active { background: #1a73e8; }

/* ── Review Item ── */
.gr-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.gr-author-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.gr-default-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a73e8;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
}
.gr-author-info { display: flex; flex-direction: column; }
.gr-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #202124;
}
.gr-review-time {
    font-size: 12px;
    color: #70757a;
}
.gr-review-text {
    font-size: 14px;
    color: #3c4043;
    margin-top: 8px;
    line-height: 1.7;
}
.gr-read-more {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    font-size: 13px;
    padding: 4px 0;
    font-weight: 500;
}
.gr-read-more:hover { text-decoration: underline; }

/* ── Pagination ── */
.gr-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8eaed;
}
.gr-page-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #dadce0;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
    color: #202124;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gr-page-btn:hover { background: #f1f3f4; }
.gr-page-btn.active {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

/* ── Attribution ── */
.gr-attribution {
    text-align: center;
    padding: 12px 0;
    margin-top: 16px;
    border-top: 1px solid #e8eaed;
}
.gr-attribution a {
    color: #70757a;
    font-size: 12px;
    text-decoration: none;
}

/* ── Badge ── */
.gr-badge-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 10px;
    text-decoration: none;
    transition: box-shadow 0.2s;
}
.gr-badge-link:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.1); }
.gr-badge-info { display: flex; flex-direction: column; gap: 2px; }
.gr-badge-rating { display: flex; align-items: center; gap: 6px; }
.gr-badge-score {
    font-size: 20px;
    font-weight: 700;
    color: #202124;
}
.gr-badge-stars .gr-star { font-size: 14px; }
.gr-badge-count { font-size: 12px; color: #70757a; }

/* ── Dark Theme ── */
.gr-theme-dark {
    background: #1e1e1e;
    border-radius: 12px;
    padding: 24px;
}
.gr-theme-dark .gr-header { border-bottom-color: #333; }
.gr-theme-dark .gr-overall-score,
.gr-theme-dark .gr-author-name { color: #e8eaed; }
.gr-theme-dark .gr-total-count,
.gr-theme-dark .gr-review-time { color: #9aa0a6; }
.gr-theme-dark .gr-review-text { color: #bdc1c6; }
.gr-theme-dark .gr-review-item {
    background: #2d2d2d;
    border-color: #3c3c3c;
}
.gr-theme-dark .gr-attribution { border-top-color: #333; }
.gr-theme-dark .gr-attribution a { color: #9aa0a6; }
.gr-theme-dark .gr-star-empty { color: #5f6368; }
.gr-theme-dark .gr-page-btn {
    background: #2d2d2d;
    border-color: #3c3c3c;
    color: #e8eaed;
}
.gr-theme-dark .gr-page-btn.active {
    background: #8ab4f8;
    color: #1e1e1e;
    border-color: #8ab4f8;
}
.gr-theme-dark .gr-pagination { border-top-color: #333; }

/* Dark Badge */
.gr-theme-dark.gr-badge .gr-badge-link {
    background: #2d2d2d;
    border-color: #3c3c3c;
}
.gr-theme-dark.gr-badge .gr-badge-score { color: #e8eaed; }
.gr-theme-dark.gr-badge .gr-badge-count { color: #9aa0a6; }

/* ── Responsive ── */
@media (max-width: 600px) {
    .gr-header { flex-direction: column; align-items: flex-start; }
    .gr-layout-cards .gr-reviews-container { grid-template-columns: 1fr; }
    .gr-overall-score { font-size: 26px; }
}

.gr-error {
    text-align: center;
    color: #70757a;
    padding: 20px;
    font-style: italic;
}
