/* ================================================================
   Google Reviews Carousel — Module googlereviews
   Maison Sushi
   ================================================================ */

/* ── Section wrapper ──────────────────────────────────────────── */
.gr-section {
    padding: 48px 0;
    background: #fff;
    overflow: hidden;
    margin-bottom: 4%;
    margin-top: 4%;
}

/* ── Header ───────────────────────────────────────────────────── */
.gr-header {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto 46px;
    padding: 0 20px;
    flex-wrap: wrap;
}

.gr-logo svg { flex-shrink: 0; }

.gr-header-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.gr-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #202124;
}

.gr-place {
    font-size: 0.85rem;
    color: #5f6368;
}

.gr-global-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.gr-global-score {
    font-size: 2rem;
    font-weight: 700;
    color: #202124;
    line-height: 1;
}

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

.gr-total {
    font-size: 0.85rem;
    display: none;
    color: #5f6368;
}

/* ── Étoiles ──────────────────────────────────────────────────── */
.gr-star         { font-size: 1.1rem; line-height: 1; }
.gr-star--full   { color: #fbbc04; }
.gr-star--half   { color: #fbbc04; position: relative; }
.gr-star--empty  { color: #dadce0; }

/* ── Carrousel ────────────────────────────────────────────────── */
.gr-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 78%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.gr-track-outer {
    flex: 1;
    overflow: hidden;
}

.gr-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    transition: transform 0.45s cubic-bezier(.4,0,.2,1);
}

/* ── Boutons navigation ───────────────────────────────────────── */
.gr-btn {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid #dadce0;
    background: #fff;
    color: #202124;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.gr-btn:hover {
    background: #f1f3f4;
    box-shadow: 0 2px 8px rgba(0,0,0,.18);
}

/* ── Carte avis ───────────────────────────────────────────────── */
.gr-card {
    flex: 0 0 calc((100% - 40px) / 3);
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 9px rgba(0,0,0,.06);
    transition: box-shadow 0.25s;
    position: relative;
    min-width: 0;
}

.gr-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
}

.gr-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gr-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.gr-avatar--fallback {
    background: #4285f4;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gr-card-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gr-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gr-date {
    font-size: 0.78rem;
    color: #70757a;
}

.gr-stars {
    display: flex;
    gap: 2px;
    margin-bottom: 10px;
}

.gr-text {
    font-size: 0.9rem;
    color: #3c4043;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-google-link {
    position: absolute;
    top: 16px;
    right: 16px;
    opacity: 0.5;
    transition: opacity 0.2s;
}

.gr-google-link:hover { opacity: 1; }

/* ── Dots ─────────────────────────────────────────────────────── */
.gr-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.gr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dadce0;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.gr-dot--active {
    background: #4285f4;
    transform: scale(1.3);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
    .gr-card { flex-basis: calc((100% - 20px) / 2); }
    .gr-global-rating { margin-left: 0; }
}

@media (max-width: 600px) {
    .gr-section { padding: 32px 0; }
    .gr-card { flex-basis: 100%; }

    .gr-btn {
        width: 34px;
        height: 34px;
        font-size: 1.3rem;
    }

    .gr-carousel-wrap { gap: 8px; padding: 0 10px; }
    .gr-header { padding: 0 10px; }
    .gr-title { font-size: 1.2rem; }
    .gr-global-score { font-size: 1.6rem; }
}

.gr-section{
    display: none;
}

.page-index .gr-section{
    display: block;
}