/* =====================================================
   C2CIMS Vehicle Search Block
   ===================================================== */

.c2cims-search {
    width: 100%;
}

/* ── Search title ─────────────────────────────────────── */
.c2cims-search-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--c2cims-body-text, #1a1a1a);
    margin: 0 0 12px;
    padding: 0;
}

/* ── Search Form ──────────────────────────────────────── */
.c2cims-search-form {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.c2cims-search-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
    align-items: end;
}

.c2cims-search-row--2     { grid-template-columns: 1fr 1fr; }
.c2cims-search-row--3     { grid-template-columns: 2fr 1fr 1fr; }
.c2cims-search-row--actions {
    grid-template-columns: 1fr auto;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .c2cims-search-row--3,
    .c2cims-search-row--4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 540px) {
    .c2cims-search-row--3,
    .c2cims-search-row--4,
    .c2cims-search-row--actions {
        grid-template-columns: 1fr;
    }
}

.c2cims-search-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.c2cims-search-field label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

.c2cims-search-field input[type="text"],
.c2cims-search-field select {
    height: 40px;
    padding: 0 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.c2cims-search-field input[type="text"]:focus,
.c2cims-search-field select:focus {
    outline: none;
    border-color: var(--c2cims-accent, #fcba16);
    box-shadow: 0 0 0 3px rgba(252, 186, 22, 0.2);
}

/* ── Action buttons ───────────────────────────────────── */
.c2cims-search-actions {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    padding-bottom: 1px;
}

.c2cims-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}

.c2cims-search-btn--primary {
    background: var(--c2cims-accent, #fcba16);
    color: var(--c2cims-dark-bg, #1a1a1a);
}

.c2cims-search-btn--primary:hover {
    opacity: 0.88;
}

.c2cims-search-btn--reset {
    background: #e0e0e0;
    color: #444;
}

.c2cims-search-btn--reset:hover {
    background: #d0d0d0;
    color: #1a1a1a;
}

/* ── Results header ───────────────────────────────────── */
.c2cims-search-results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    min-height: 24px;
}

.c2cims-search-count {
    font-size: 14px;
    font-weight: 600;
    color: #555;
}

/* ── No results / prompt ──────────────────────────────── */
.c2cims-search-no-results,
.c2cims-search-prompt {
    text-align: center;
    padding: 48px 24px;
    color: #888;
    font-size: 15px;
    background: #fafafa;
    border: 1px dashed #ddd;
    border-radius: 8px;
}

.c2cims-search-no-results p,
.c2cims-search-prompt p {
    margin: 0 0 16px;
}

/* ── Editor placeholder ───────────────────────────────── */
.c2cims-search-block-icon {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--c2cims-badge-blue, #5c98d7);
    display: block;
    margin: 0 auto 10px;
}

.c2cims-search-block-label {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.c2cims-search-block-meta {
    font-size: 13px;
    color: #888;
}

.wp-block-c2cims-vehicle-search {
    background: #f0f6fc;
    border: 2px dashed #c5d5e8;
    border-radius: 8px;
    padding: 40px 24px;
    text-align: center;
}
