/* =====================================================
   C2CIMS Featured Vehicle Block
   ===================================================== */

/* ── Layouts ──────────────────────────────────────── */
.c2cims-featured {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}

.c2cims-featured--landscape {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
}

.c2cims-featured--portrait {
    display: flex;
    flex-direction: column;
}

@media (max-width: 700px) {
    .c2cims-featured--landscape {
        grid-template-columns: 1fr;
    }
}

/* ── Photo side ───────────────────────────────────── */
.c2cims-featured-photo-wrap {
    position: relative;
    display: block;
    text-decoration: none;
    overflow: hidden;
    background: #f0f0f0;
}

.c2cims-featured--landscape .c2cims-featured-photo-wrap {
    min-height: 300px;
}

.c2cims-featured--portrait .c2cims-featured-photo-wrap {
    aspect-ratio: 16 / 9;
}

.c2cims-featured-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.c2cims-featured-photo-wrap:hover .c2cims-featured-photo {
    transform: scale(1.03);
}

.c2cims-featured-no-photo {
    width: 100%;
    height: 100%;
    min-height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #aaa;
    font-size: 14px;
    font-style: italic;
}

/* ── Ribbon ───────────────────────────────────────── */
.c2cims-featured-ribbon {
    position: absolute;
    top: 20px;
    left: -2px;
    z-index: 2;
}

.c2cims-featured-ribbon span {
    display: inline-block;
    background: var(--c2cims-accent, #fcba16);
    color: var(--c2cims-dark-bg, #1a1a1a);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 5px 14px 5px 12px;
    border-radius: 0 3px 3px 0;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.2);
    position: relative;
}

/* Folded corner effect */
.c2cims-featured-ribbon span::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-right: 5px solid transparent;
    border-left: 5px solid color-mix(in srgb, var(--c2cims-accent, #fcba16) 60%, black);
}

/* ── Photo badges (Electric / AWD) ───────────────── */
.c2cims-featured-photo-badges {
    position: absolute;
    bottom: 12px;
    left: 12px;
    display: flex;
    gap: 6px;
    z-index: 2;
}

/* ── Details side ─────────────────────────────────── */
.c2cims-featured-details {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.c2cims-featured--portrait .c2cims-featured-details {
    padding: 24px 28px;
}

.c2cims-featured-year-make {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--c2cims-accent, #fcba16);
    margin-bottom: 4px;
}

.c2cims-featured-model {
    font-size: 28px;
    font-weight: 800;
    color: var(--c2cims-body-text, #1a1a1a);
    line-height: 1.15;
}

.c2cims-featured-trim {
    font-size: 14px;
    color: #777;
    margin-top: 4px;
}

/* ── Price block ──────────────────────────────────── */
.c2cims-featured-price-block {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 16px 0;
    padding: 14px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.c2cims-featured-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--c2cims-accent, #fcba16);
    line-height: 1;
}

.c2cims-featured-call-price {
    font-size: 22px;
    font-weight: 700;
    color: #888;
}

.c2cims-featured-kbb {
    font-size: 12px;
    color: #888;
    font-weight: 500;
}

/* ── Specs grid ───────────────────────────────────── */
.c2cims-featured-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    margin-bottom: 24px;
}

.c2cims-featured-spec {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #444;
}

.c2cims-featured-spec-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: var(--c2cims-accent, #fcba16);
    flex-shrink: 0;
}

/* ── CTA button ───────────────────────────────────── */
.c2cims-featured-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 46px;
    padding: 0 28px;
    background: var(--c2cims-accent, #fcba16);
    color: var(--c2cims-dark-bg, #1a1a1a);
    font-size: 15px;
    font-weight: 800;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
    align-self: flex-start;
    letter-spacing: 0.2px;
}

.c2cims-featured-cta:hover {
    opacity: 0.88;
    transform: translateY(-1px);
    color: var(--c2cims-dark-bg, #1a1a1a);
    text-decoration: none;
}

/* ── No-vehicle placeholder ───────────────────────── */
.c2cims-featured-placeholder {
    background: #f9f9f9;
    border: 2px dashed #ddd;
    border-radius: 10px;
    padding: 40px 24px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.c2cims-featured-placeholder .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #ccc;
    display: block;
    margin: 0 auto 10px;
}

/* ── Editor placeholder ───────────────────────────── */
.wp-block-c2cims-featured-vehicle {
    background: #f0f6fc;
    border: 2px dashed #c5d5e8;
    border-radius: 8px;
    padding: 40px 24px;
    text-align: center;
}
