/* ============================================================
   FEATURED CARS — fc-style.css
   ============================================================ */

/* ===== FC WRAPPER ===== */
.fc-wrapper {
    margin: 0 auto;
}

.fc-no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 17px;
    color: #888;
}

/* ===== FC GRID ===== */
.fc-grid {
    display: grid;
    grid-template-columns: repeat(var(--fc-columns, 4), 1fr);
    gap: 30px 24px;
    margin-bottom: 30px;
}

@media (max-width: 1199px) {
    .fc-grid { --fc-columns: 3 !important; }
}
@media (max-width: 767px) {
    .fc-grid { --fc-columns: 2 !important; gap: 16px; }
}
@media (max-width: 480px) {
    .fc-grid { --fc-columns: 1 !important; }
}

/* ===== FC CARD ===== */
.fc-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.fc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.13);
}

/* -- Image Area -- */
.fc-card__image-wrap {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #eaeaea;
}
.fc-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
}
.fc-card__image {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.fc-card:hover .fc-card__image {
    transform: scale(1.1);
}

/* -- Top-Left Badges: Performance + Import Status -- */
.fc-card__badges {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

/* Performance badge */
.fc-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.4;
}
.fc-badge--perf.fc-badge--mercedes   { background: #0d0d0d; }
.fc-badge--perf.fc-badge--bmw        { background: #1c69d4; }
.fc-badge--perf.fc-badge--audi       { background: #bb0a1e; }
.fc-badge--perf.fc-badge--porsche    { background: #a88700; }
.fc-badge--perf.fc-badge--vw         { background: #001e50; }
.fc-badge--perf.fc-badge--toyota     { background: #eb0a1e; }
.fc-badge--perf.fc-badge--honda      { background: #cc0000; }
.fc-badge--perf.fc-badge--nissan     { background: #c3002f; }
.fc-badge--perf.fc-badge--subaru     { background: #0033a0; }
.fc-badge--perf.fc-badge--mazda      { background: #91005a; }
.fc-badge--perf.fc-badge--lexus      { background: #1a1a1a; }
.fc-badge--perf.fc-badge--mitsubishi { background: #e60012; }
.fc-badge--perf.fc-badge--default    { background: #444; }

/* Import status badge */
.fc-badge--status.fc-status--uk       { background: #1a7a2e; }
.fc-badge--status.fc-status--transit  { background: #d4880f; }
.fc-badge--status.fc-status--japan    { background: #bc002d; }
.fc-badge--status.fc-status--germany  { background: #1a1a1a; }
.fc-badge--status.fc-status--order    { background: #3a7bd5; }

/* -- Top-Right Heart Icon -- */
.fc-card__heart {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 15px;
    z-index: 2;
    transition: color 0.25s, background 0.25s;
    text-decoration: none;
}
.fc-card__heart:hover {
    color: var(--color-white);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* -- Bottom-Right Warranty Badge -- */
.fc-card__warranty {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    color: #fff;
    line-height: 1.4;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(4px);
}
.fc-card__warranty.fc-warranty--basic {
    background: rgba(26, 122, 46, 0.9);
}
.fc-card__warranty.fc-warranty--manufacturer {
    background: rgba(13, 13, 13, 0.9);
}
.fc-card__warranty i {
    font-size: 10px;
}

/* -- Card Body -- */
.fc-card__body {
    padding: 16px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* -- Type Tag -- */
.fc-card__type {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--e-global-color-accent);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.fc-card__type:hover {
    color: var(--color-primary);
}

/* -- Title -- */
.fc-card__title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.fc-card__title a {
    font-family: var(--font-heading);
    color: var(--color-dark);
    font-weight: var(--font-semi-bold);
    text-decoration: none;
    transition: color 0.2s;
}
.fc-card__title a:hover {
    color: var(--color-primary);
}
.fc-card__trim {
    font-weight: 400;
    color: #777;
    font-size: 14px;
}

/* -- Specs Row: Year | Mileage | RHD/LHD | Fuel | Condition -- */
.fc-card__specs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}
.fc-card__spec {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}
.fc-card__spec i {
    font-size: 12px;
    color: var(--e-global-color-accent);
}
/* -- Attributes Row (taxonomy: 4WD, RWD, Automatic, etc.) -- */
.fc-card__attrs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}
.fc-card__attr {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #f4f4f4;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}
.fc-card__attr i {
    font-size: 12px;
    color: var(--e-global-color-accent);
}

/* -- Features Row (taxonomy: 4 Doors, 5 Seats, etc.) -- */
.fc-card__feats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}
.fc-card__feat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #f4f4f4;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    white-space: nowrap;
}
.fc-card__feat i {
    font-size: 12px;
    color: var(--e-global-color-accent);
}

/* -- Quote Button -- */
.fc-card__quote-btn {
    margin-top: auto;
    width: 100%;
    padding: 10px 16px;
    border: none !important;
    border-radius: 50rem !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s, transform 0.15s;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: inherit;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.fc-card__quote-btn:hover {
    transform: translateY(-1px);
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}
.fc-card__quote-btn:active {
    transform: translateY(0);
    box-shadow: none;
    border: 1px solid var(--color-primary) !important;
}

/* ===== PAGINATION ===== */
.fc-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}
.fc-pagination__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.fc-pagination__btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
}
/* ===== QUOTE POPUP ===== */
.fc-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.fc-popup__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
}
.fc-popup__container {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 32px 28px 28px;
    max-width: 880px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: fcPopupIn 0.3s ease;
}
@keyframes fcPopupIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fc-popup__close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 26px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px;
    z-index: 10;
}
.fc-popup__close:hover { color: #333; }
.fc-popup__layout {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}
.fc-popup__card-side {
    flex: 0 0 320px;
    max-width: 320px;
    min-width: 0;
}
.fc-popup__form-side {
    flex: 1;
    min-width: 0;
}
.fc-card--popup:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.fc-card--popup .fc-card__image {
    transition: none;
}
.fc-card--popup:hover .fc-card__image {
    transform: none;
}
.fc-card--popup .fc-card__heart {
    display: none;
}
.fc-card__view-btn {
    background: transparent !important;
    color: #3813C2 !important;
    border: 1px solid #3813C2 !important;
}
.fc-card__view-btn:hover {
    background: #3813C2 !important;
    color: #fff !important;
    border: 1px solid #3813C2 !important;
}
@media (max-width: 768px) {
    .fc-popup__layout {
        flex-direction: column;
    }
    .fc-popup__card-side {
        flex: none;
        max-width: 100%;
        width: 100%;
    }
    .fc-popup__container {
        max-width: 500px;
        padding: 24px 20px 20px;
    }
    .fc-popup__card-side .fc-card__image-wrap {
        max-height: 200px;
    }
}
.fc-popup__title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}
.fc-popup__car-name {
    font-size: 14px;
    color: #B9944F;
    margin: 0 0 20px;
    font-weight: 500;
}

.fc-popup__field {
    margin-bottom: 16px;
}
.fc-popup__field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #444;
}
.fc-required { color: #e74c3c; }
.fc-popup__field input[type="text"],
.fc-popup__field input[type="email"],
.fc-popup__field input[type="tel"],
.fc-popup__field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    box-sizing: border-box;
}
.fc-popup__field input:focus,
.fc-popup__field textarea:focus {
    outline: none;
    border-color: #B9944F;
    background: #fff;
}
.fc-field--error input,
.fc-field--error textarea {
    border-color: #e74c3c !important;
    background: #fef5f5 !important;
}
.fc-field--error input:focus,
.fc-field--error textarea:focus {
    border-color: #e74c3c !important;
}
.fc-popup__field-error {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.fc-popup__field-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e74c3c;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    flex-shrink: 0;
}
.fc-honeypot {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
}
.fc-popup__submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s;
    font-family: inherit;
}
.fc-popup__submit-btn:hover {
    background: transparent;
    color: var(--color-primary);
}
.fc-popup__submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.fc-popup__message {
    margin-top: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
}
.fc-popup__message.fc-msg--success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.fc-popup__message.fc-msg--error {
    background: #fce4ec;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ===== LOADING STATE ===== */
.fc-wrapper--loading .fc-card {
    opacity: 0.5;
    pointer-events: none;
}

/* ===== NO RESULTS SECTION ===== */
.fc-no-results__main {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
    padding: 0px 0px 50px;
}
.fc-no-results__image {
    width: 220px;
    max-width: 100%;
    height: auto;
    margin: 0 auto 28px;
    display: block;
    opacity: 0.85;
}
.fc-no-results__title {
    font-size: 24px;
    font-weight: 700;
    color: #0d0c1b;
    margin: 0 0 12px;
    font-family: var(--font-heading);
}
.fc-no-results__text {
    font-size: 15px;
    color: #7a7575;
    line-height: 1.7;
    margin: 0 0 28px;
}
.fc-no-results__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: #3813C2;
    color: #fff;
    text-decoration: none;
    border-radius: 50rem;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    border: 1px solid #3813C2;
}
.fc-no-results__btn:hover {
    background: transparent;
    color: #3813C2;
    border-color: #3813C2;
}

/* Featured fallback within no-results */
.fc-no-results__featured {
    margin-top: 20px;
    padding-top: 40px;
    border-top: 1px solid #eee;
}

.fc-no-results__featured-heading {
    font-size: 22px;
    font-weight: 700;
    color: #0d0c1b;
    margin: 0 0 24px;
    text-align: center;
    font-family: var(--font-heading);
}

@media (max-width: 1199px) {
    .fc-no-results__featured .fc-grid {
        --fc-columns: 3 !important;
    }
}
@media (max-width: 767px) {
    .fc-no-results__featured .fc-grid {
        --fc-columns: 2 !important;
    }
    .fc-no-results__image {
        width: 160px;
    }
    .fc-no-results__title {
        font-size: 20px;
    }
}
@media (max-width: 480px) {
    .fc-no-results__featured .fc-grid {
        --fc-columns: 1 !important;
    }
}
/* ===== ADDRESS FIELD ===== */
.fc-popup__field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    font-family: inherit;
    box-sizing: border-box;
    resize: vertical;
    min-height: 72px;
}
.fc-popup__field textarea:focus {
    outline: none;
    border-color: #3813C2;
    background: #fff;
}
.fc-field--error textarea {
    border-color: #e74c3c !important;
    background: #fef5f5 !important;
}
.fc-field--error textarea:focus {
    border-color: #e74c3c !important;
}
