/* Google reviews carousel — includes/google-reviews.php */

.google-reviews { background: #f8f9fa; }
.google-reviews.gr-white { background: #fff; }

.gr-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 24px;
}
.gr-head h2 { margin-bottom: 6px; }
.gr-summary { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gr-summary strong { font-size: 1.4rem; }

.gr-stars { color: #d0d4d9; letter-spacing: 1px; white-space: nowrap; }
.gr-stars .on { color: #f5a623; }

.gr-nav { display: flex; gap: 8px; flex-shrink: 0; }
.gr-nav[hidden] { display: none; }
.gr-nav button {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1px solid #ccd;
    background: #fff;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
}
.gr-nav button:hover, .gr-nav button:focus-visible { background: #007bff; border-color: #007bff; color: #fff; }

.gr-track {
    list-style: none;
    margin: 0;
    padding: 4px 2px 14px;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
}
.gr-track:focus-visible { outline: 2px solid #007bff; outline-offset: 2px; }

.gr-card {
    flex: 0 0 calc((100% - 40px) / 3);
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #e3e6ea;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}
@media (max-width: 991px) { .gr-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 575px) { .gr-card { flex-basis: 88%; } }

.gr-author { display: flex; align-items: center; gap: 10px; }
.gr-author img, .gr-initial {
    width: 40px; height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
}
.gr-initial {
    display: flex; align-items: center; justify-content: center;
    background: #007bff; color: #fff; font-weight: 600;
}
.gr-author a, .gr-author span { font-weight: 600; color: #1a1a1a; display: block; }
.gr-author small { color: #6c757d; }

.gr-text {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gr-card.open .gr-text { -webkit-line-clamp: unset; display: block; }
.gr-more {
    align-self: flex-start;
    background: none; border: 0; padding: 0;
    color: #007bff; cursor: pointer; font-weight: 600;
}
.gr-more[hidden] { display: none; }

.gr-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    align-items: center;
    margin-top: 10px;
    font-size: .95rem;
}
.gr-attrib { color: #6c757d; margin-right: auto; }
.gr-foot a { color: #007bff; font-weight: 600; }
