/* ============================================================
   Carzoon – Latest / Available Cars (Shared czf Card Layout)
   ============================================================ */

/* ---- Wrapper & Grid ---- */
.czl-wrap {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    color: #071b46;
}

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

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

/* ---- Shared Card Styles (czf-*) ---- */

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

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

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

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

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

.czl-wrap .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 */
.czl-wrap .czf-highlight-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    gap: 7px;
    background: #1069ff;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 8px;
    z-index: 3;
    pointer-events: none;
}

/* Top-right actions */
.czl-wrap .czf-top-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

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

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

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

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

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

.czl-wrap .czf-car-title {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    color: #071b46;
    margin: 0;
    letter-spacing: -0.2px;
}

.czl-wrap .czf-car-price {
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
    color: #071b46;
    white-space: nowrap;
    letter-spacing: -0.2px;
}

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

.czl-wrap .czf-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

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

/* ---- Feature Badges: 2-col grid (as requested) ---- */
.czl-wrap .czf-features-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.czl-wrap .czf-feature-box {
    min-height: 44px;
    border: 1px solid #cfd4dc;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: #071b46;
    background: #ffffff;
    padding: 6px 5px;
    text-align: center;
    white-space: nowrap;
}

.czl-wrap .czf-feat-icon {
    font-size: 14px;
    line-height: 1;
}

.czl-wrap .czf-green  { color: #03b332; }
.czl-wrap .czf-blue   { color: #1069ff; }
.czl-wrap .czf-orange { color: #f5a623; }

/* ---- 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 var(--e-global-color-f755353);
    border-radius: 14px;
    background: #ffffff;
    color: var(--e-global-color-f755353);
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.22s ease;
}

.czf-browse-btn:hover,
.czf-browse-btn:focus {
    background: var(--e-global-color-f755353);
    color: #ffffff;
    text-decoration: none;
}

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

/* No Results */
.czl-wrap .czf-no-results {
    grid-column: 1 / -1;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px 20px;
    color: #6b7280;
}

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

.czl-wrap .czf-no-results p {
    margin: 0;
}

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

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

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

    .czl-wrap .czf-image-box {
        height: 200px;
    }
}

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

.czf-features-row .czf-feature-box:first-child,
  .czf-features-row .czf-feature-box:last-child {
    display: none;
  }

    .czl-wrap .czf-image-box {
        height: 220px;
    }

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

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

/* Small mobile */
@media (max-width: 480px) {
    .czl-wrap .czf-image-box {
        height: 126px;
    }
    
    .czl-wrap .czf-top-actions {
        gap:4px;
        top: 8px;
        right: 8px;
        flex-direction: column;
    }
    .czl-wrap .czf-photo-count {
            padding: 2px 6px;
            left: 8px;
            bottom: 8px;
    }
    .czl-wrap .czf-highlight-badge {
        font-size: 10px;
        font-weight: 600;
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        border-radius: 4px;
    }
    .czl-wrap .czf-card {
        border-radius: 8px;
    }
    .czl-wrap .czf-car-title,
    .czl-wrap .czf-car-price {
        font-size: 10px;
    }

    .czl-wrap .czf-feature-box {
        font-size: 10px;
        min-height: 26px;
        padding: 3px 4px;
    }
    .czf-meta-item svg {
        width: 15px;
    }
     .czf-action-icon, .czl-wrap .czf-action-icon {
         width: 25px;
        height: 24px;
    }
}
