/* ============================================
   GOOGLE RATING BADGES
   ============================================ */

/* Shared badge styles */
.google-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #fff;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.google-rating-badge:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-decoration: none;
}

.google-g-icon {
    flex-shrink: 0;
}

.google-rating-count {
    color: #6b7280;
    font-size: inherit;
}

.google-external-icon {
    color: #9ca3af;
    margin-left: 2px;
}

/* ── Large badge (firm profile page) ── */
.google-rating-lg {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
}

.google-rating-lg .google-rating-stars {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
    font-size: 15px;
}

.google-rating-lg .google-rating-count {
    font-size: 14px;
}

/* ── Small badge (search result cards) ── */
.google-rating-sm {
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 500;
    gap: 4px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .google-rating-lg {
        padding: 6px 12px;
        font-size: 13px;
    }
    .google-rating-lg .google-external-icon {
        display: none;
    }
}

/* ============================================
   GOOGLE REVIEWS SECTION (Firm Profile)
   ============================================ */

.google-reviews-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Header */
.google-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.google-reviews-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.google-reviews-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.google-reviews-summary {
    color: #6b7280;
    font-size: 14px;
}

.google-reviews-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4285F4;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.google-reviews-viewall:hover {
    color: #1a73e8;
    text-decoration: none;
}

/* Review Cards */
.google-reviews-list {
    display: grid;
    gap: 16px;
}

.google-review-card {
    padding: 16px;
    border: 1px solid #f3f4f6;
    border-radius: 10px;
    background: #fafafa;
    transition: border-color 0.2s;
}

.google-review-card:hover {
    border-color: #e5e7eb;
}

.google-review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.google-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.google-review-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #4285F4;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
}

.google-review-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.google-review-author {
    font-size: 14px;
    color: #1f2937;
}

.google-review-time {
    font-size: 12px;
    color: #9ca3af;
}

.google-review-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 8px;
}

.google-review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #374151;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.google-reviews-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
    font-size: 12px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 600px) {
    .google-reviews-section {
        padding: 16px;
    }
    .google-reviews-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .google-review-text {
        -webkit-line-clamp: 3;
    }
}
