/* ============================================================
   Carzoon – Featured Cars (Highlighted Card Layout)
   ============================================================ */

/* ---- Section heading (rendered by the shortcode itself, so an
   empty section — no eligible cars — can hide its own title too) ---- */
.czf-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 20px;
}
.czf-section-title {
    font-weight: 700;
    color: #1A3A60;
    margin: 0;
    padding: 0;
    text-align: left;
}
.czf-section-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    margin: -12px 0 20px;
}
@media (max-width: 640px) {
    .czf-section-header { margin-bottom: 14px; }
}

/* ---- Wrapper & Grid ---- */
.czf-wrap {
    width: 100%;
    font-family: inherit;
    color: #071b46;
}

.czf-grid {
    display: grid;
    gap: 28px;
    width: 100%;
}

.czf-cols-1 .czf-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.czf-cols-2 .czf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.czf-cols-3 .czf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.czf-cols-4 .czf-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---- Card ---- */
.czf-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.16);
}

.czf-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.czf-card-link:hover,
.czf-card-link:focus {
    text-decoration: none;
    color: inherit;
}

/* ---- Image Box ---- */
.czf-image-box {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: #ddd;
}

.czf-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.czf-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
}

/* ---- Highlighted Badge (top-left) ---- */
.czf-highlight-badge {
    position: absolute;
    top: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #1069ff;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    z-index: 3;
    pointer-events: none;
}

/* ---- Top-right actions (Save / Share) ---- */
.czf-top-actions {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 10px;
    z-index: 3;
}

.czf-action-item {
    text-align: center;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

.czf-action-icon {
    width: 38px;
    height: 38px;
    background: #ffffff;
    color: #071b46;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin: 0 auto 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

/* ---- Photo Count (bottom-left) ---- */
.czf-photo-count {
    position: absolute;
    left: 14px;
    bottom: 14px;
    background: rgba(0, 0, 0, 0.72);
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    padding: 7px 10px;
    border-radius: 8px;
    z-index: 3;
    pointer-events: none;
}

/* ---- Card Content ---- */
.czf-card-content {
    padding: 10px;
}

/* ---- Title + Price Row ---- */
.czf-title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.czf-car-title {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #071b46;
    margin: 0;
    letter-spacing: -0.3px;
}

.czf-car-price {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 700;
    color: #071b46;
    white-space: nowrap;
    letter-spacing: -0.3px;
}

/* ---- Meta Row ---- */
.czf-wrap .czf-car-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #071b46;
    margin-bottom: 16px;
}

.czf-wrap .czf-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.czf-wrap .czf-meta-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
/* Diesel's droplet is solid-filled (vs the others' outline strokes) so at
   the same nominal box size it reads visually smaller — nudge it up a
   touch to match. It also has more empty margin on its right than the
   other icons, so clip that off instead of resizing/squashing it. */
.czf-wrap .czf-meta-item svg.cz-icon--fuel-diesel {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    clip-path: inset(0 5px 0 0);
    margin-right: -3px;
}

/* Body-type icon: these adaptive silhouettes are wide/short car
   side-profiles sitting in a square viewBox, so plain 20x20 sizing
   would show mostly empty space. Render the SVG bigger (not via
   transform:scale, which would also crop the width) and let this box
   crop the height only — width is sized to match so nothing is cut
   off left/right. Same technique as Available Cars / the homepage
   body-type slider. Scoped to .czf-wrap so it can't collide with
   Available Cars' identically-named classes when both sections load
   on the same page. */
.czf-wrap .czf-bodytype-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 22px;
    overflow: hidden;
    flex-shrink: 0;
}
.czf-wrap .czf-bodytype-icon-box svg {
    height: 55px;
    width: 55px;
    flex-shrink: 0;
}

.czf-wrap .czf-dot {
    width: 4px;
    height: 4px;
    background: #071b46;
    border-radius: 50%;
    display: inline-block;
}

/* ---- Divider ---- */
.czf-divider {
    width: 100%;
    height: 1px;
    background: #cfd4dc;
    margin-bottom: 10px;
}

/* ---- Feature Badges Grid ---- */
/* Scoped to .czf-wrap — these were unscoped before, at risk of the same
   cross-file collision we fixed elsewhere (Available Cars uses the same
   class names) if both sections load on the same page. */
.czf-wrap .czf-features-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 8px;
    column-gap: 22px;
}

.czf-wrap .czf-feature-box {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: none;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #071b46;
    white-space: nowrap;
}

.czf-wrap .czf-feat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
}
.czf-wrap .czf-feat-icon svg,
.czf-wrap .czf-feat-icon img {
    max-width: 100%;
    max-height: 20px;
}

.czf-wrap .czf-feature-box.czf-green  { color: #03b332; }
.czf-wrap .czf-feature-box.czf-blue   { color: #1069ff; }
.czf-wrap .czf-feature-box.czf-orange { color: #071b46; }

/* ---- Browse Button ---- */
.czf-button-wrap {
    margin-top: 32px;
}

.czf-browse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 62px;
    border: 2px solid #1069ff;
    border-radius: 14px;
    background: #ffffff;
    color: #1069ff;
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.22s ease;
}

.czf-browse-btn:hover,
.czf-browse-btn:focus {
    background: #1069ff;
    color: #ffffff;
    text-decoration: none;
}

.czf-browse-btn-icon {
    font-size: 22px;
}

/* ---- No Results ---- */
.czf-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.czf-no-results h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #071b46;
}

/* ============================================================
   Responsive
   ============================================================ */

/* Large tablet */
@media (max-width: 1200px) {
    .czf-cols-4 .czf-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* Tablet */
@media (max-width: 991px) {
    .czf-cols-4 .czf-grid,
    .czf-cols-3 .czf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .czf-image-box {
        height: 210px;
    }
}

/* Mobile landscape */
@media (max-width: 767px) {
    .czf-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
        gap: 20px;
    }

    .czf-image-box {
        height: 230px;
    }

    .czf-title-price-row {
        flex-direction: row;
        gap: 6px;
    }

    .czf-car-title,
    .czf-car-price {
        font-size: 16px;
    }

    .czf-browse-btn {
        font-size: 17px;
        min-height: 54px;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .czf-image-box {
        height: 200px;
    }

    .czf-highlight-badge {
        font-size: 12px;
        padding: 6px 10px;
    }

    .czf-action-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .czf-action-item {
        font-size: 10px;
    }

    .czf-feature-box {
        font-size: 11px;
    }

    .czf-car-title,
    .czf-car-price {
        font-size: 15px;
    }
}
