/* ========================================
   Google Reviews Display Plugin v1.1
   ======================================== */

.gr-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.gr-header { text-align: center; margin-bottom: 30px; }
.gr-header-title { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 8px; }
.gr-header-info { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.gr-place-name { font-size: 16px; font-weight: 600; color: #333; }
.gr-overall-rating { display: flex; align-items: center; gap: 4px; }
.gr-rating-num { font-weight: 700; color: #333; }
.gr-review-count { color: #666; font-size: 14px; }

/* Masonry */
.gr-layout-masonry { column-count: 3; column-gap: 16px; }
.gr-layout-masonry .gr-card { break-inside: avoid; margin-bottom: 16px; }

/* Grid */
.gr-layout-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* Slider */
.gr-layout-slider {
    display: flex; gap: 16px; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 12px;
}
.gr-layout-slider .gr-card { min-width: 320px; max-width: 360px; flex-shrink: 0; scroll-snap-align: start; }
.gr-layout-slider::-webkit-scrollbar { height: 6px; }
.gr-layout-slider::-webkit-scrollbar-track { background: #f0f0f0; border-radius: 3px; }
.gr-layout-slider::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

/* Card */
.gr-card {
    background: #fff; border: 1px solid #e8e8e8; border-radius: 12px;
    padding: 20px; transition: box-shadow 0.2s ease;
}
.gr-card:hover { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }

.gr-card-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.gr-avatar-wrap { flex-shrink: 0; }
.gr-avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.gr-avatar-initial {
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; font-weight: 700; text-transform: uppercase;
}
.gr-author-info { flex: 1; min-width: 0; }
.gr-author-name {
    font-size: 15px; font-weight: 700; color: #1a1a1a; text-decoration: none;
    display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gr-author-name:hover { text-decoration: underline; }
.gr-date { font-size: 13px; color: #888; margin-top: 2px; }
.gr-google-icon { flex-shrink: 0; display: flex; opacity: 0.85; transition: opacity 0.2s; }
.gr-google-icon:hover { opacity: 1; }

/* Stars */
.gr-stars-row { display: flex; align-items: center; gap: 4px; margin-bottom: 10px; }
.gr-stars { display: inline-flex; gap: 1px; line-height: 1; }
.gr-star { font-size: 18px; }
.gr-star-full { color: #FBBC05; }
.gr-star-half { color: #FBBC05; opacity: 0.6; }
.gr-star-empty { color: #ddd; }
.gr-verified { flex-shrink: 0; }

/* Text */
.gr-text { font-size: 14px; line-height: 1.65; color: #333; word-wrap: break-word; }
.gr-read-more {
    display: inline; background: none; border: none; color: #1a73e8;
    cursor: pointer; padding: 0; font-size: 14px; margin-top: 4px;
}
.gr-read-more:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 960px) {
    .gr-layout-masonry { column-count: 2; }
    .gr-layout-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .gr-layout-masonry { column-count: 1; }
    .gr-layout-grid { grid-template-columns: 1fr; }
    .gr-layout-slider .gr-card { min-width: 280px; }
    .gr-card { padding: 16px; }
}
