/* Advanced search form */
.dcbm-advanced-search-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
}
.dcbm-advanced-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.dcbm-search-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}
.dcbm-search-field {
    flex: 1;
    min-width: 140px;
}
.dcbm-search-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #1a1a2e;
}
.dcbm-search-field input,
.dcbm-search-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}
.dcbm-search-submit {
    background: #f68511;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
}
.dcbm-search-extra {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.9rem;
}
.dcbm-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.dcbm-quick-filters-btn {
    background: none;
    border: 1px solid #ccc;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.dcbm-filter-section {
    margin-bottom: 20px;
}
.dcbm-filter-title {
    font-weight: 600;
    margin-bottom: 10px;
}
.dcbm-filter-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.dcbm-modal-footer {
    padding: 15px 20px;
    text-align: right;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}

/* ---------- SEARCH RESULTS GRID (2 rows × 4 columns) ---------- */
#dcbm-advanced-results {
    width: 100%;
    overflow-x: hidden;
}
.dcbm-cars-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
    margin-top: 30px !important;
    width: 100% !important;
}

/* Car card styling – ensures consistency */
.dcbm-car-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s;
    width: 100% !important;
    margin: 0 !important;
}
.dcbm-car-card:hover {
    transform: translateY(-5px);
}

.dcbm-car-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.dcbm-car-info {
    padding: 15px;
}

.dcbm-car-specs {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    font-size: 0.9rem;
    color: #666;
}

.dcbm-car-location {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
}

.dcbm-car-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #f68511;
    margin: 10px 0;
}

.dcbm-car-buttons {
    display: flex;
    gap: 10px;
}

/* Responsive: 2 columns on tablets, 1 on mobile */
@media (max-width: 992px) {
    .dcbm-cars-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}
@media (max-width: 576px) {
    .dcbm-cars-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* ---------- PAGINATION WITH ARROW ICONS ---------- */
.dcbm-pagination {
    text-align: center;
    margin-top: 30px;
}
.dcbm-page-btn {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}
.dcbm-page-btn:hover {
    background: #f0f0f0;
    border-color: #bbb;
}
.dcbm-page-btn.active {
    background: #f68511;
    color: white;
    border-color: #f68511;
}
.dcbm-prev, .dcbm-next {
    font-weight: 600;
    background: #f8f9fa;
}
.dcbm-prev::before {
    content: "« ";
    font-weight: bold;
}
.dcbm-next::after {
    content: " »";
    font-weight: bold;
}

/* ---------- MODAL & FORM STYLES (unchanged) ---------- */
.dcbm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dcbm-modal-content {
    background: #fff;
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    position: relative;
}
.dcbm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.dcbm-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
}
.dcbm-modal-body {
    padding: 20px;
}
.dcbm-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.dcbm-form-group {
    flex: 1;
}
.dcbm-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}
.dcbm-form-group input, .dcbm-form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}
.dcbm-service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}
.dcbm-price-summary {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}
.dcbm-price-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dcbm-price-total {
    font-weight: bold;
    font-size: 1.2em;
    color: #f68511;
}
.dcbm-submit-btn {
    background: #f68511;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}