/* ==== Cars Grid ==== */
/* ==== Cars Grid ==== */
.crp-cars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Default desktop: 3 cards */
    gap: 20px;
    margin: 30px 0;
}

/* Tablet (max-width: 991px) → 2 cards */
@media (max-width: 991px) {
    .crp-cars-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 600px) → 1 card */
@media (max-width: 600px) {
    .crp-cars-grid {
        grid-template-columns: 1fr;
    }
}


.crp-car-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease;
    text-align: center;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.crp-car-card:hover {
    transform: translateY(-5px);
}

.crp-car-card img {
/*     width: 100%; */
    height: 200px;
    object-fit: cover; /* ✅ crop karega proportional */
    border-radius: 8px;
}

.crp-car-card h3 {
    font-size: 1.3rem;
    margin: 12px 0 8px;
    color: #222;
    font-weight: 600;
}

.crp-car-card .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #e67e22; /* ✅ highlight price */
    margin: 10px 0;
}

.crp-car-card .desc {
    font-size: 0.9rem;
    color: #555;
    margin: 0 10px 12px;
    min-height: 45px;
}

.crp-car-card .crp-book-btn {
    display: inline-block;
    padding: 10px 22px;
    background: #4d49bd;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.crp-car-card .crp-book-btn:hover {
    background: #4d49bd;
}
.car-img-wrapper {
    width: 100%;
    height: 200px;        /* ✅ fix height */
    display: flex;
    align-items: center;  /* ✅ vertically center */
    justify-content: center; /* ✅ horizontally center */
    background: #f9f9f9;  /* halka grey background for balance */
    border-radius: 8px;
    overflow: hidden;
}

.car-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;  /* ✅ sab image equal space me */
}



/* ==== Modal ==== */
.crp-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    align-items: center;
    justify-content: center;
}

.crp-modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    width: 95%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.crp-modal-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 22px;
    color: #333;
    cursor: pointer;
}

#crp-booking-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

#crp-booking-form input,
#crp-booking-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

#crp-booking-form button[type="submit"] {
    background: #27ae60;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#crp-booking-form button[type="submit"]:hover {
    background: #219150;
}
