/* ============================================================
   Fleet Cars Elementor Widget — fleet-cars.css
   assets/fleet-cars.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── CSS Custom Properties ── */
.fcw-wrapper {
    --fcw-dark:    #0f0f0f;
    --fcw-gold:    #c9a84c;
    --fcw-white:   #ffffff;
    --fcw-gray:    #f5f5f5;
    --fcw-muted:   #6b6b6b;
    --fcw-badge:   #1a1a1a;
    --fcw-shadow:  rgba(0,0,0,0.12);
    --fcw-radius:  16px;
    --fcw-trans:   all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'DM Sans', sans-serif;
}

/* ── Filter Bar ── */
.fcw-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.fcw-filter-btn {
    padding: 10px 24px;
    border: 2px solid #e0e0e0;
    background: transparent;
    color: #333;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--fcw-trans);
    letter-spacing: 0.5px;
    outline: none;
}
.fcw-filter-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    transform: translateY(-1px);
}
.fcw-filter-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ── Grid ── */
.fcw-grid {
    display: grid;
    gap: 28px;
    transition: var(--fcw-trans);
}
.fcw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.fcw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.fcw-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .fcw-cols-3, .fcw-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
    .fcw-cols-2, .fcw-cols-3, .fcw-cols-4 { grid-template-columns: 1fr; }
}

/* ── Card ── */
.fcw-card {
    position: relative;
    background: #efefef;
    border-radius: var(--fcw-radius);
    box-shadow: 0 2px 16px var(--fcw-shadow);
    overflow: hidden;
    transition: var(--fcw-trans);
    transform-style: preserve-3d;
    perspective: 800px;

    /* Hidden by default — JS will show them with stagger */
    opacity: 1;
}
.fcw-card.fcw-hidden {
    display: none;
}

/* 3D tilt — applied via JS on data-3d="1" wrapper */
.fcw-wrapper[data-3d="1"] .fcw-card:hover {
    box-shadow:
        0 24px 60px rgba(0,0,0,0.18),
        0 8px 24px rgba(0,0,0,0.10);
}

/* Card inner — JS manipulates transform on this for tilt */
.fcw-card-inner {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.12s ease;
    will-change: transform;
}

/* ── Image Area ── */
.fcw-img-wrap {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fcw-car-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: block;
}
.fcw-card:hover .fcw-car-img {
    transform: scale(1.05);
}

/* Type ribbon */
.fcw-type-ribbon {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(10, 10, 10, 0.78);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

/* Shine overlay (3D gloss effect) */
.fcw-shine {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.18), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: var(--fcw-radius);
}
.fcw-wrapper[data-3d="1"] .fcw-card:hover .fcw-shine {
    opacity: 1;
}

/* ── Card Body ── */
.fcw-card-body {
    padding: 16px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.fcw-car-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #0f0f0f;
    margin: 0;
    line-height: 1.3;
}

/* ── Badges ── */
.fcw-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.fcw-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 7px;
    line-height: 1;
}
.fcw-badge svg {
    opacity: 0.85;
    flex-shrink: 0;
}

/* ── Book Button ── */
.fcw-book-btn {
    display: inline-block;
    margin-top: 4px;
    background: #0f0f0f;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 28px;
    border-radius: 8px;
    align-self: center;
    transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.fcw-book-btn:hover {
    background: #c9a84c;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.35);
}

/* ── No Cars ── */
.fcw-no-cars {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #888;
    font-size: 16px;
}
.fcw-no-cars a { color: #1a1a1a; font-weight: 600; }

/* ── Filter Animation ── */
@keyframes fcw-fade-in {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fcw-card.fcw-animate-in {
    animation: fcw-fade-in 0.4s ease forwards;
}

/* ── Car Description ── */
.fcw-car-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    text-align: center;
    margin: 0;
    padding: 0 4px;
}
