/* OneStarReviews — Google-style review cards */

.osr-reviews-grid {
    display: grid;
    gap: 20px;
    margin: 24px 0;
}

.osr-cols-1 { grid-template-columns: 1fr; }
.osr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.osr-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .osr-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .osr-cols-2,
    .osr-cols-3 { grid-template-columns: 1fr; }
}

/* Card */
.osr-review-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Google Sans', Roboto, Arial, sans-serif;
    font-size: 14px;
    color: #202124;
    transition: box-shadow .2s ease;
}

.osr-review-card:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,.14);
}

/* Header row */
.osr-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Avatar */
.osr-avatar-wrap {
    flex-shrink: 0;
}

.osr-avatar-img,
.osr-avatar-initials {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.osr-avatar-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    letter-spacing: .5px;
    user-select: none;
}

/* Author info */
.osr-author-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.osr-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #202124;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.osr-review-date {
    font-size: 12px;
    color: #70757a;
}

/* Google logo */
.osr-google-logo {
    flex-shrink: 0;
    margin-left: auto;
}

/* Stars */
.osr-stars {
    display: flex;
    gap: 1px;
    line-height: 1;
}

.osr-star {
    font-size: 18px;
    line-height: 1;
}

.osr-star-filled { color: #fbbc04; }
.osr-star-empty  { color: #dadce0; }

/* Review text */
.osr-card-text p {
    margin: 0;
    line-height: 1.6;
    color: #3c4043;
    font-size: 14px;
}

/* Owner reply */
.osr-owner-reply {
    background: #f8f9fa;
    border-left: 3px solid #dadce0;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    margin-top: 4px;
}

.osr-reply-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #70757a;
    margin-bottom: 4px;
}

.osr-owner-reply p {
    margin: 0;
    font-size: 13px;
    color: #3c4043;
    line-height: 1.5;
}

/* No reviews message */
.osr-no-reviews {
    color: #70757a;
    font-style: italic;
    text-align: center;
    padding: 24px;
}

/* Read more / Read less toggle */
.osr-text-full[hidden] {
    display: none;
}

.osr-read-more,
.osr-read-less {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    cursor: pointer;
    text-decoration: none;
    line-height: inherit;
}

.osr-read-more:hover,
.osr-read-less:hover {
    text-decoration: underline;
    color: #1558b0;
}

.osr-read-more:focus-visible,
.osr-read-less:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
    border-radius: 2px;
}

/* Smooth reveal animation */
.osr-text-full {
    animation: osr-fadein .18s ease;
}

@keyframes osr-fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Inline JS — loaded after styles */

/* ── Carousel ────────────────────────────────────────────────────────────── */

.osr-carousel {
    position: relative;
    margin: 24px auto;
    outline: none;
}

.osr-carousel-track-wrap {
    overflow: hidden;
}

.osr-carousel-slide {
    display: grid;
    gap: 20px;
}

.osr-carousel-slide.osr-slide-hidden {
    display: none !important;
}
.osr-carousel-slide.osr-cols-1 { grid-template-columns: 1fr; }
.osr-carousel-slide.osr-cols-2 { grid-template-columns: repeat(2, 1fr); }
.osr-carousel-slide.osr-cols-3 { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 900px) {
    .osr-carousel-slide.osr-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .osr-carousel-slide.osr-cols-2,
    .osr-carousel-slide.osr-cols-3 { grid-template-columns: 1fr; }
}

.osr-carousel-slide .osr-review-card {
    box-shadow: 0 2px 12px rgba(0,0,0,.10);
}

/* Controls row — arrows flanking the counter */
.osr-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 18px;
}

/* Prev / Next buttons */
.osr-carousel-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dadce0;
    background: #fff;
    color: #3c4043;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    flex-shrink: 0;
}

.osr-carousel-btn:hover {
    background: #f1f3f4;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.osr-carousel-btn:focus-visible {
    outline: 2px solid #1a73e8;
    outline-offset: 2px;
}

/* Counter */
.osr-carousel-counter {
    font-size: 13px;
    color: #70757a;
    min-width: 48px;
    text-align: center;
}
