/* Google Reviews Pro - Carousel Styles */
.grp-wrapper {
    --grp-gold: #FBBC05;
    --grp-bg: #ffffff;
    --grp-surface: #f8f9fa;
    --grp-border: #e2e8f0;
    --grp-text: #1a202c;
    --grp-muted: #718096;
    --grp-radius: 14px;
    --grp-shadow: 0 2px 12px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--grp-bg);
    border-radius: var(--grp-radius);
    padding: 32px 24px;
    border: 1px solid var(--grp-border);
    box-shadow: var(--grp-shadow);
}

/* Dark mode */
.grp-wrapper.grp-dark {
    --grp-bg: #0f172a;
    --grp-surface: #1e293b;
    --grp-border: rgba(255,255,255,0.08);
    --grp-text: #f1f5f9;
    --grp-muted: #94a3b8;
    --grp-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

/* Header */
.grp-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 12px;
}

.grp-business-name {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--grp-muted);
    margin-bottom: 6px;
}

.grp-overall {
    display: flex;
    align-items: center;
    gap: 12px;
}

.grp-score {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--grp-text);
    line-height: 1;
    letter-spacing: -0.03em;
}

.grp-stars-wrap { display: flex; flex-direction: column; gap: 4px; }

.grp-stars { display: flex; gap: 2px; }

.grp-star { font-size: 1.1rem; color: #e2e8f0; }
.grp-star.filled { color: var(--grp-gold); }

.grp-count {
    font-size: 0.78rem;
    color: var(--grp-muted);
}

.grp-google-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--grp-muted);
    font-weight: 500;
}

/* Carousel */
.grp-carousel { position: relative; }

.grp-track-outer {
    overflow: hidden;
    border-radius: 10px;
}

.grp-track {
    display: flex;
    gap: 16px;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Card */
.grp-card {
    flex: 0 0 calc(33.333% - 11px);
    background: var(--grp-surface);
    border: 1px solid var(--grp-border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: box-shadow 0.25s, transform 0.25s;
    min-height: 200px;
}

.grp-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.grp-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.grp-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    overflow: hidden;
}

.grp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.grp-author-info { flex: 1; min-width: 0; }

.grp-author-name {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--grp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.grp-review-date {
    font-size: 0.75rem;
    color: var(--grp-muted);
    margin-top: 2px;
}

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

.grp-card-stars { display: flex; gap: 2px; }
.grp-card-stars .grp-star { font-size: 0.95rem; }

.grp-card-text {
    font-size: 0.84rem;
    line-height: 1.6;
    color: var(--grp-muted);
    flex: 1;
}

.grp-read-more {
    background: none;
    border: none;
    color: #4285F4;
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 0 0;
    font-family: inherit;
    font-weight: 500;
    display: block;
    transition: opacity 0.2s;
}
.grp-read-more:hover { opacity: 0.7; }

/* Nav buttons */
.grp-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--grp-border);
    background: var(--grp-bg);
    color: var(--grp-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s;
    z-index: 2;
}
.grp-nav:hover { background: #4285F4; color: #fff; border-color: #4285F4; }
.grp-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.grp-prev { left: -20px; }
.grp-next { right: -20px; }

/* Dots */
.grp-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}

.grp-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--grp-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.grp-dot.active {
    background: #4285F4;
    width: 20px;
    border-radius: 3px;
}

/* Responsive */
@media (max-width: 900px) {
    .grp-card { flex: 0 0 calc(50% - 8px); }
    .grp-prev { left: -14px; }
    .grp-next { right: -14px; }
}

@media (max-width: 560px) {
    .grp-card { flex: 0 0 100%; }
    .grp-wrapper { padding: 20px 16px; }
    .grp-prev { left: -10px; }
    .grp-next { right: -10px; }
}
