/* ═══════════════════════════════════════════════════════
   RECOMMENDED FOR YOU SECTION
   ═══════════════════════════════════════════════════════ */

.m77-recommended-section {
    padding: 40px 0;
}

/* Section Header */
.m77-recommended-section .m77-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.m77-recommended-section .m77-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #222;
    margin: 0 0 4px;
    line-height: 1.3;
}

.m77-recommended-section .m77-section-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════ */

.m77-recommended-loading {
    text-align: center;
    padding: 60px 20px;
}

.m77-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #0073aa;
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: m77-spin 0.8s linear infinite;
}

@keyframes m77-spin {
    to {
        transform: rotate(360deg);
    }
}

.m77-recommended-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ═══════════════════════════════════════════════════════
   CAROUSEL STYLES (inherits from find-by-choice)
   ═══════════════════════════════════════════════════════ */

.m77-recommended-section .m77-carousel-container {
    position: relative !important;
    width: 100% !important;
}

.m77-recommended-section .m77-carousel-viewport {
    overflow: hidden !important;
    margin: 0 50px;
}

.m77-recommended-section .m77-carousel-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 20px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.m77-recommended-section .m77-carousel-slide {
    flex: 0 0 24% !important;
    min-width: 24% !important;
    max-width: 24% !important;
}

/* ═══════════════════════════════════════════════════════
   CAR CARD
   ═══════════════════════════════════════════════════════ */

.m77-rec-car-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: all 0.25s ease;
    height: 100%;
    position: relative;
}

.m77-rec-car-card:hover {
    border-color: #ddd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

/* Match badge (shows why recommended) */
.m77-rec-match-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 115, 170, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Car Image */
.m77-rec-car-image {
    height: 140px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.m77-rec-car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.m77-rec-car-placeholder {
    font-size: 32px;
    font-weight: 700;
    color: #ccc;
}

/* Car Info */
.m77-rec-car-info {
    padding: 14px 16px;
}

.m77-rec-car-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    margin: 0 0 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.m77-rec-car-price {
    font-size: 13px;
    color: #e53935;
    font-weight: 600;
}

.m77-rec-car-body-type {
    font-size: 11px;
    color: #888;
    margin-top: 4px;
    text-transform: capitalize;
}

/* ═══════════════════════════════════════════════════════
   ARROWS (same as other carousels)
   ═══════════════════════════════════════════════════════ */

.m77-recommended-section .m77-carousel-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.25s ease;
    z-index: 10;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.m77-recommended-section .m77-carousel-arrow:hover {
    background: #222;
    color: #fff;
}

.m77-recommended-section .m77-carousel-arrow:disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

.m77-recommended-section .m77-carousel-prev {
    left: 0 !important;
}

.m77-recommended-section .m77-carousel-next {
    right: 0 !important;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1199px) and (min-width: 768px) {
    .m77-recommended-section .m77-carousel-slide {
        flex: 0 0 32% !important;
        min-width: 32% !important;
        max-width: 32% !important;
    }
}

@media (max-width: 767px) and (min-width: 576px) {
    .m77-recommended-section .m77-carousel-slide {
        flex: 0 0 48% !important;
        min-width: 48% !important;
        max-width: 48% !important;
    }

    .m77-recommended-section .m77-section-header {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 575px) {
    .m77-recommended-section .m77-carousel-slide {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        max-width: 85% !important;
    }

    .m77-recommended-section .m77-carousel-viewport {
        margin: 0;
        padding: 0 16px;
        overflow-x: auto !important;
    }

    .m77-recommended-section .m77-carousel-arrow {
        display: none !important;
    }
}
