/* =========================================
   Google Reviews Infinite Slider
   ========================================= */

/* Outer row: [prev btn] [slider] [next btn] */
.gr-slider-outer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
}

.gr-nav {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, border-color .2s, transform .15s;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    user-select: none;
}

.gr-nav:hover {
    background: rgba(255, 255, 255, .25);
    border-color: rgba(255, 255, 255, .7);
    transform: scale(1.08);
}

.gr-nav:active {
    transform: scale(.95);
}

.gr-slider-wrapper {
    overflow: hidden;
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}

.gr-track {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: grScroll 35s linear infinite;
}


@keyframes grScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ---- Card ---- */
.gr-card {
    background: #fff;
    color: #1a1a1a;
    border-radius: 16px;
    padding: 20px 22px;
    width: 310px;
    flex-shrink: 0;
    text-align: left;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow .2s;
}

/* ---- Mobile ---- */
@media (max-width: 575px) {
    .gr-slider-outer {
        padding: 0 8px;
        gap: 8px;
    }

    /* Smaller buttons so the slider gets more room */
    .gr-nav {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    /* Remove the fade — on a narrow screen it hides too much of the card */
    .gr-slider-wrapper {
        -webkit-mask-image: none;
        mask-image: none;
    }

    /* Card fills the available width:
       viewport − 2×(button 36px + gap 8px + outer-padding 8px) ≈ viewport − 104px */
    .gr-card {
        width: calc(100vw - 104px);
        min-width: 220px;
        max-width: 310px;
        padding: 16px 18px;
    }
}

.gr-card:hover {
    box-shadow: 0 6px 28px rgba(0, 0, 0, .18);
}

/* ---- Header row ---- */
.gr-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.gr-author {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

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

.gr-avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bs-primary, #f5820f);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

.gr-author-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.gr-author-name {
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #1a1a1a;
}

.gr-time {
    font-size: 12px;
    color: #70757a;
    margin-top: 1px;
}

.gr-google-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* ---- Stars row ---- */
.gr-stars {
    display: flex;
    align-items: center;
    gap: 3px;
}

.gr-star {
    width: 18px;
    height: 18px;
}

.gr-star.filled path { fill: #fbbc04; }
.gr-star.empty  path { fill: #dadce0; }

.gr-verified {
    width: 18px;
    height: 18px;
    margin-left: 4px;
}

/* ---- Review text ---- */
.gr-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #3c4043;
    margin: 0;
}

.gr-read-more {
    background: none;
    border: none;
    padding: 0;
    color: #70757a;
    font-size: 13.5px;
    cursor: pointer;
    margin-left: 2px;
    text-decoration: underline;
}

.gr-read-more:hover {
    color: #1a1a1a;
}
