/* ===================================================
   JUICE LINE - GOOGLE BUSINESS & REVIEWS STYLING
   Based on Google Business Profile UI & Juice Line Aesthetics
   =================================================== */

/* Google Business Profile Card */
.gb-card {
    background: #ffffff;
    border: 1px solid #dadce0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.08), 0 2px 8px rgba(60, 64, 67, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin-bottom: 30px;
}

.gb-card:hover {
    box-shadow: 0 4px 16px rgba(60, 64, 67, 0.15);
}

/* Review Card Media Slider */
.gb-slider-container {
    position: relative;
    width: 100%;
    height: 220px;
    background: #202124;
    overflow: hidden;
    user-select: none;
}

.gb-slider {
    width: 100%;
    height: 100%;
}

.gb-slider-inner {
    width: 100%;
    height: 100%;
}

.gb-slider-item {
    width: 100%;
    height: 220px;
    position: relative;
    cursor: pointer;
    background: #18191a;
}

.gb-slider-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.gb-slider-item:hover .gb-slider-img {
    transform: scale(1.03);
}

/* Slide Badge / Tag */
.gb-slide-tag {
    position: absolute;
    top: 10px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
    padding: 3px 10px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 2;
    pointer-events: none;
}

/* Slider Controls (Prev / Next Buttons) */
.gb-slider-arrow {
    width: 46px;
    height: 100%;
    opacity: 0.85;
    z-index: 4;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.gb-slider-arrow:hover {
    opacity: 1;
}

.gb-arrow-circle {
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 13px;
    transition: background 0.2s ease, transform 0.2s ease;
    backdrop-filter: blur(3px);
}

.gb-slider-arrow:hover .gb-arrow-circle {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.08);
}

.gb-slider-arrow-prev {
    left: 4px;
}

.gb-slider-arrow-next {
    right: 4px;
}

/* Carousel Indicators */
.gb-slider-indicators {
    bottom: 8px;
    margin-bottom: 0;
    z-index: 3;
}

.gb-slider-indicators li {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.55);
    border: none;
    margin: 0 4px;
    transition: all 0.25s ease;
    cursor: pointer;
}

.gb-slider-indicators li.active {
    width: 20px;
    border-radius: 10px;
    background-color: #ffffff;
}

/* Slider Badge Pill Buttons */
.gb-slider-badge-wrap {
    position: absolute;
    bottom: 10px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 4;
}

.gb-badge-pill {
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    transition: all 0.2s ease;
    text-decoration: none !important;
    outline: none;
}

.gb-badge-pill:hover {
    background: rgba(0, 0, 0, 0.92);
    color: #ffffff !important;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 576px) {
    .gb-slider-container,
    .gb-slider-item {
        height: 180px;
    }
    .gb-badge-pill {
        font-size: 10.5px;
        padding: 3px 8px;
    }
}

/* Media Collage Header */
.gb-collage {
    display: flex;
    height: 190px;
    gap: 3px;
    background: #e8eaed;
    position: relative;
    user-select: none;
}

.gb-collage-left {
    position: relative;
    flex: 1 1 50%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    background: #202124;
}

.gb-collage-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gb-collage-left:hover img {
    transform: scale(1.04);
}

.gb-collage-right {
    display: flex;
    flex-direction: column;
    flex: 1 1 50%;
    height: 100%;
    gap: 3px;
}

.gb-collage-map,
.gb-collage-street {
    position: relative;
    flex: 1 1 50%;
    overflow: hidden;
    cursor: pointer;
    background: #f1f3f4;
}

.gb-collage-map img,
.gb-collage-street img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.gb-collage-map:hover img,
.gb-collage-street:hover img {
    transform: scale(1.04);
}

/* Overlay Badges */
.gb-badge-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff !important;
    font-size: 11.5px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.1px;
    backdrop-filter: blur(2px);
    transition: background-color 0.2s;
    text-decoration: none;
}

.gb-badge-overlay:hover {
    background: rgba(0, 0, 0, 0.88);
    color: #ffffff !important;
}

.gb-badge-expand {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    font-size: 11px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: background-color 0.2s, color 0.2s;
}

.gb-badge-expand:hover {
    background: #ffffff;
    color: #1a73e8;
}

/* Card Content Details */
.gb-body {
    padding: 22px 24px 20px 24px;
}

.gb-title {
    font-size: 24px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: -0.2px;
}

/* Customer Rating Average Row (Above Google 4.3) */
.gb-customer-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 6px;
    font-size: 14.5px;
    background: #f4fbf6;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #d4edda;
    width: fit-content;
}

.gb-customer-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #155724;
    background: #d4edda;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.gb-customer-badge i {
    color: #e53935;
}

.gb-google-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #1a73e8;
    background: #e8f0fe;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.gb-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 6px;
    font-size: 14.5px;
}

.gb-score {
    font-size: 15px;
    font-weight: 700;
    color: #202124;
}

.gb-stars {
    color: #fbbc04;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 14px;
}

.gb-review-count {
    color: #1a73e8 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s ease, text-decoration 0.15s ease;
}

.gb-review-count:hover {
    text-decoration: underline !important;
    color: #1557b0 !important;
}

.gb-meta-row {
    font-size: 14px;
    color: #70757a;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gb-dot-separator {
    color: #70757a;
    font-weight: bold;
}

/* Action Pill Buttons Row */
.gb-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.gb-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 20px;
    border: 1px solid #dadce0;
    background: #ffffff;
    color: #1a73e8 !important;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    user-select: none;
    line-height: 1.3;
}

.gb-pill:hover {
    background-color: #f8fafd;
    border-color: #c2d7fa;
    color: #1557b0 !important;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.18);
    transform: translateY(-1px);
}

.gb-pill:active {
    background-color: #edf3fd;
    transform: translateY(0);
}

.gb-pill.active {
    background-color: #e8f0fe;
    border-color: #1a73e8;
    color: #1a73e8 !important;
}

.gb-pill-icon {
    font-size: 13.5px;
    color: #1a73e8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Quick Info Strip in Card */
.gb-info-strip {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f3f4;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    font-size: 13px;
    color: #3c4043;
}

.gb-info-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gb-info-item i {
    color: #5f6368;
    margin-top: 2px;
    font-size: 14px;
}

/* ===================================================
   Reviews Page Extra Components
   =================================================== */

/* Stats Summary Card */
.review-stats-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.review-big-score {
    font-size: 48px;
    font-weight: 700;
    color: #202124;
    line-height: 1;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #5f6368;
    margin-bottom: 6px;
}

.review-progress {
    flex-grow: 1;
    height: 8px;
    background-color: #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}

.review-progress-fill {
    height: 100%;
    background-color: #fbbc04;
    border-radius: 4px;
}

/* Customer Reviews Scrollable Area */
.customer-reviews-container {
    position: relative;
}

.customer-reviews-scroll-body.is-scrollable {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
    scroll-behavior: smooth;
    overscroll-behavior: contain;
}

/* Custom Scrollbar */
.customer-reviews-scroll-body.is-scrollable::-webkit-scrollbar {
    width: 6px;
}

.customer-reviews-scroll-body.is-scrollable::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 8px;
}

.customer-reviews-scroll-body.is-scrollable::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 8px;
}

.customer-reviews-scroll-body.is-scrollable::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Scroll Down Floating Indicator Pill */
.reviews-scroll-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.reviews-scroll-indicator .indicator-pill {
    background: rgba(32, 33, 36, 0.9);
    color: #ffffff;
    font-size: 11.5px;
    font-weight: 500;
    padding: 6px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
    display: inline-flex;
    align-items: center;
    backdrop-filter: blur(4px);
    letter-spacing: 0.2px;
}

.reviews-scroll-indicator.hide-indicator {
    opacity: 0;
    transform: translate(-50%, 8px);
    pointer-events: none;
}

/* Review Cards List */
.review-item-card {
    background: #ffffff;
    border: 1px solid #ebebeb;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    transition: box-shadow 0.2s ease;
}

.review-item-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.reviewer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #ffffff;
    font-size: 16px;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    margin-bottom: 1px;
}

.reviewer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    color: #e37400;
    font-weight: 500;
}

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

.review-text {
    font-size: 14px;
    line-height: 1.55;
    color: #3c4043;
    margin-top: 10px;
}

/* Toast Notification */
.gb-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #323232;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.gb-toast.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Star rating selector for write review */
.star-rating-select {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 6px;
}

.star-rating-select input {
    display: none;
}

.star-rating-select label {
    font-size: 26px;
    color: #dadce0;
    cursor: pointer;
    transition: color 0.15s ease;
    margin: 0;
}

.star-rating-select input:checked ~ label,
.star-rating-select label:hover,
.star-rating-select label:hover ~ label {
    color: #fbbc04;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .gb-collage {
        height: 160px;
    }
    .gb-body {
        padding: 16px;
    }
    .gb-title {
        font-size: 20px;
    }
    .gb-pill {
        padding: 6px 12px;
        font-size: 12.5px;
    }
}
