/* Fast-Car Google Reviews - Compact Trustindex Style CSS (4-5 Cards) */

.fc-reviews-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    max-width: 1400px !important;
    margin: 20px auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
    position: relative !important;
    clear: both !important;
}

.fc-reviews-container * {
    box-sizing: border-box !important;
}

/* Nasconde categoricamente la testata media voto */
.fc-badge-header {
    display: none !important;
}

/* Carousel Outer & Track */
.fc-carousel-wrapper {
    position: relative !important;
    width: 100% !important;
}

.fc-cards-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 16px !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    scroll-behavior: smooth !important;
    padding: 10px 4px 18px 4px !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
    cursor: grab;
}

.fc-cards-track::-webkit-scrollbar {
    display: none !important;
}

/* Card Compatta per mostrare 4-5 recensioni su desktop */
.fc-review-card {
    flex: 0 0 calc((100% - (4 * 16px)) / 4.5) !important; /* Mostra ~4.5 recensioni contemporaneamente */
    width: calc((100% - (4 * 16px)) / 4.5) !important;
    min-width: 250px !important;
    max-width: 290px !important;
    scroll-snap-align: start !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 18px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    min-height: 200px !important;
}

.fc-review-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08) !important;
}

/* Intestazione Card Compatta */
.fc-card-top {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 10px !important;
    position: relative !important;
}

.fc-avatar-box {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
    background: #f1f5f9 !important;
}

.fc-avatar-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 50% !important;
}

.fc-avatar-placeholder {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #1d4ed8, #2563eb) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
}

.fc-author-details {
    flex-grow: 1 !important;
    overflow: hidden !important;
}

.fc-author-name {
    margin: 0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.fc-review-date {
    display: block !important;
    font-size: 11px !important;
    color: #94a3b8 !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
}

.fc-google-mini-logo {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
}

.fc-google-mini-logo svg {
    width: 18px !important;
    height: 18px !important;
}

/* Rating Stars e Badge Verificata Compatti */
.fc-card-rating {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 10px !important;
}

.fc-card-stars {
    font-size: 15px !important;
    letter-spacing: 1.5px !important;
    line-height: 1 !important;
}

.star-filled {
    color: #fbbc04 !important;
}

.star-empty {
    color: #e2e8f0 !important;
}

.fc-verified-check {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    color: #059669 !important;
    background: #ecfdf5 !important;
    padding: 2px 6px !important;
    border-radius: 12px !important;
}

.fc-verified-check svg {
    width: 12px !important;
    height: 12px !important;
}

/* Testo Recensione */
.fc-card-body {
    flex-grow: 1 !important;
}

.fc-review-text {
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #475569 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* Frecce di Navigazione Carosello Compatti */
.fc-nav-button {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12) !important;
    cursor: pointer !important;
    z-index: 20 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 15px !important;
    color: #1e293b !important;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}

.fc-nav-button:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    transform: translateY(-50%) scale(1.08) !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16) !important;
}

.fc-prev {
    left: -16px !important;
}

.fc-next {
    right: -16px !important;
}

/* Responsiveness Tablet e Mobile */
@media (max-width: 1024px) {
    .fc-review-card {
        flex: 0 0 260px !important;
        width: 260px !important;
        min-width: 260px !important;
        max-width: 260px !important;
    }
}

@media (max-width: 768px) {
    .fc-review-card {
        flex: 0 0 240px !important;
        width: 240px !important;
        min-width: 240px !important;
        max-width: 240px !important;
        padding: 16px 14px !important;
    }
    .fc-nav-button {
        display: none !important;
    }
}
