/* Mansion 7 Google Reviews */
.M7_reviews_widget {
    background: #800000;
    padding: 40px 20px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.M7_reviews_widget::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.M7_reviews_container {
    max-width: 1440px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.M7_reviews_header {
    text-align: center;
    margin-bottom: 60px;
}

.M7_reviews_title {
    color: #C8A544;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.M7_reviews_subtitle {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    letter-spacing: 1px;
    opacity: 0.8;
}

.M7_reviews_carousel {
    position: relative;
    margin-bottom: 40px;
}

/* Desktop: Disable scrolling, use button navigation */
@media (min-width: 769px) {
    .M7_reviews_track_container {
        overflow: hidden; /* Disable scrolling on desktop */
        position: relative;
    }
}

/* Mobile/Tablet: Enable horizontal scrolling */
@media (max-width: 768px) {
    .M7_reviews_track_container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .M7_reviews_track_container::-webkit-scrollbar {
        display: none;
    }
}

.M7_reviews_track {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    width: max-content;
    transition: transform 0.3s ease;
}

.M7_reviews_card {
    flex: 0 0 320px;
    background: #000;
    backdrop-filter: blur(10px);
    border: 1.425px solid #C8A544;
    border-radius: 16px;
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    min-width: 320px;
    max-width: 320px;
}

.M7_reviews_card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.M7_reviews_card:hover::before {
    opacity: 1;
}


.M7_reviews_card_header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.M7_reviews_avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.3);
    margin-right: 15px;
    object-fit: cover;
}

.M7_reviews_user_info {
    flex: 1;
}

.M7_reviews_username {
    color: #C8A544;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
}

.M7_reviews_date {
    color: #888888;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.M7_reviews_rating {
    color: #C8A544;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.M7_reviews_text {
    color: #cccccc;
    line-height: 1.6;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.M7_reviews_nav_btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.9);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: #000000;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.M7_reviews_nav_btn:active {
    transform: translateY(-50%) scale(0.95);
}

.M7_reviews_nav_btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.M7_reviews_nav_btn:not(:disabled):hover {
    background: rgba(212, 175, 55, 1);
    transform: translateY(-50%) scale(1.05);
}

.M7_reviews_prev {
    left: 10px;
}

.M7_reviews_next {
    right: 10px;
}

/* Hide navigation buttons on mobile and tablet devices */
@media (max-width: 768px) {
    .M7_reviews_nav_btn {
        display: none !important;
    }
    
    .M7_reviews_card {
        flex: 0 0 280px;
        min-width: 280px;
        max-width: 280px;
    }
}

.M7_reviews_footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.M7_reviews_google_link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #C8A544;
    text-decoration: none;
    padding: 15px 25px;
    border: 1.425px solid #C8A544;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: #000;
}

.M7_reviews_google_link:hover {
    color: #800000;
    border-color: rgba(212, 175, 55, 0.5);
    background: #C8A544;
    transform: translateY(-2px);
}


.M7_reviews_google_icon {
    height: 24px;
}

.M7_reviews_error {
    text-align: center;
    padding: 60px 20px;
    color: #888888;
    width: 100%;
}

.M7_reviews_error_title {
    color: #d4af37;
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.M7_reviews_loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    color: #d4af37;
    font-size: 1.1rem;
    width: 100%;
}

.M7_reviews_loading::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid #d4af37;
    border-radius: 50%;
    margin-left: 10px;
    animation: M7_spin 1s linear infinite;
}

@keyframes M7_spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .M7_reviews_widget {
        padding: 60px 15px;
    }

    .M7_reviews_track_container {
        margin: 0 20px;
    }

    .M7_reviews_card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .M7_reviews_track_container {
        margin: 0;
        overflow-x: auto;
        scrollbar-width: thin;
        scrollbar-color: rgba(212, 175, 55, 0.3) transparent;
    }

    .M7_reviews_track_container::-webkit-scrollbar {
        height: 4px;
    }

    .M7_reviews_track_container::-webkit-scrollbar-track {
        background: rgba(212, 175, 55, 0.1);
        border-radius: 2px;
    }

    .M7_reviews_track_container::-webkit-scrollbar-thumb {
        background: rgba(212, 175, 55, 0.3);
        border-radius: 2px;
    }

    .M7_reviews_card {
        flex: 0 0 260px;
        min-width: 260px;
        max-width: 260px;
    }
}