/* =========================================================
   Car Rental Pro - Global Styles (COMPLETE AND FINAL CODE)
   ========================================================= */

/* --- Elementor Grid Container --- */
.crp-car-grid-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px; 
    justify-content: center;
    padding: 30px 0;
}

/* --- Premium Car Card Styling (Home Page Grid) --- */
.crp-car-card.premium-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    width: calc(33.33% - 20px); 
    min-width: 300px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.crp-car-card.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

/* Card Header (Image & Price Tag) */
.crp-card-header {
    position: relative;
    overflow: hidden;
    height: 200px; 
    background-color: #f5f5f5; 
}

.crp-card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.crp-car-card.premium-card:hover .crp-card-header img {
    transform: scale(1.05);
}

/* crp-card-price-tag CSS REMOVED (Element has been removed from HTML) */

/* Card Content */
.crp-card-content-premium {
    padding: 20px 25px 25px;
}

.crp-card-title-group {
    margin-bottom: 20px;
}

.crp-car-make {
    display: block;
    font-size: 14px;
    color: #999;
    font-weight: 500;
    text-transform: uppercase;
}

/* UPDATED: Car Model Title (H4) - Bada aur Poora Bold */
.crp-car-model-title {
    font-size: 28px; /* Bigger Size */
    color: #333;
    margin: 5px 0 0;
    line-height: 1.2;
    font-weight: 900; /* Fully Bold */
    text-transform: uppercase;
    display: block; /* Make sure it behaves like a block */
}
/* Previous style: .crp-card-content-premium h4 { ... } is replaced by .crp-car-model-title { ... } */


/* Specs List (Four Icons) */
.crp-specs-list {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.crp-spec-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 25%;
}

.crp-spec-item i {
    font-size: 20px;
    color: #FF0000; 
    margin-bottom: 5px;
}

.crp-spec-item span {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.crp-spec-item small {
    font-size: 12px;
    color: #777;
    margin-top: 2px;
}

/* View More Button */
.crp-view-more-button-premium {
    display: block;
    background: #FF0000;
    color: white;
    padding: 12px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin-top: 15px;
    font-weight: 600;
    transition: background-color 0.3s;
    text-transform: uppercase;
    font-size: 14px;
}

.crp-view-more-button-premium:hover {
    background: #cc0000;
}

/* Overlay Link for entire card */
.crp-card-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; 
}

.crp-view-more-button-premium {
    z-index: 10; 
    position: relative;
}

/* =========================================================
   Single Car Detail Widget Styles (View More Page)
   ========================================================= */

.crp-single-detail-wrapper {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    font-family: Arial, sans-serif;
}

.crp-single-detail-wrapper h2 {
    border-bottom: 2px solid #ff0000;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.crp-detail-sections {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.crp-specs-block, .crp-details-block {
    flex: 1;
    min-width: 250px;
}

.crp-specs-block h3, .crp-details-block h3 {
    font-size: 22px;
    color: #333;
    margin-top: 0;
    margin-bottom: 15px;
}

.crp-specs-block table {
    width: 100%;
    border-collapse: collapse;
}

.crp-specs-block th, .crp-specs-block td {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    text-align: left;
    font-size: 15px;
}

.crp-specs-block th {
    font-weight: 600;
    width: 45%;
    background: #f1f1f1;
    color: #555;
}

.crp-details-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crp-details-block li {
    padding: 10px 0;
    font-size: 16px;
    border-bottom: 1px solid #eee;
}

.crp-details-block li:last-child {
    border-bottom: none;
}

.crp-details-block li i {
    color: #ff0000; /* Red color for checkmarks */
    margin-right: 10px;
}

.crp-book-now-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #ff0000;
    color: white;
    padding: 15px 20px;
    font-size: 20px;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
    margin-top: 25px; 
}

.crp-book-now-button:hover {
    background: #cc0000;
}


/* =========================================================
   Responsive Adjustments
   ========================================================= */

@media (max-width: 992px) {
    .crp-car-card.premium-card {
        width: calc(50% - 15px); 
    }
    .crp-detail-sections {
        flex-direction: column; 
    }
    .crp-specs-block, .crp-details-block {
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .crp-car-card.premium-card {
        width: 100%; 
        min-width: unset;
    }
    /* Title size thoda chota karein mobile par */
    .crp-car-model-title {
        font-size: 24px;
    }
}

/* =========================================================
   Filter Bar Styles (Premium Design Update)
   ========================================================= */

.crp-filter-bar-container {
    text-align: center;
    margin: 0 auto 5px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Gap badhaya */
    padding: 10px 0;
}

.crp-filter-button {
    background: #f5f5f5; /* Off-white/light background */
    color: #333;
    border: none; /* Border hata diya */
    padding: 12px 25px; /* Padding badhaya */
    border-radius: 30px; /* Pill/Capsule shape */
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05); /* Soft shadow */
}

.crp-filter-button:hover {
    background: #e0e0e0;
}

/* Active State */
.crp-filter-button.active {
    background: #FF0000; /* Red color matching the theme */
    color: white;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.3); /* Striking shadow for active state */
}

/* Mobile Adjustments */
@media (max-width: 600px) {
    .crp-filter-bar-container {
        justify-content: flex-start;
        gap: 10px;
        padding: 0 10px;
        overflow-x: auto; /* Agar space kam ho to scroll kare */
    }
    .crp-filter-button {
        flex-shrink: 0;
        padding: 10px 15px;
    }
}

/* =========================================================
   CRP Single Car Details Block - Premium Styling
   ========================================================= */

.crp-single-car-details-block {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif; /* A modern font choice */
}

/* Car Title */
.crp-detail-car-title {
    font-size: 36px;
    font-weight: 800; /* Extra bold */
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Price Section */
.crp-detail-price-section {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.crp-price-label {
    font-size: 16px;
    color: #777;
    font-weight: 500;
}

.crp-price-value {
    font-size: 32px;
    font-weight: 900;
    color: #FF0000; /* Red emphasis */
    line-height: 1;
}

.crp-price-unit {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

/* Section Headings */
.crp-detail-section .crp-section-heading {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Specifications Table */
.crp-specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.crp-specs-table th,
.crp-specs-table td {
    padding: 12px 0;
    text-align: left;
    border-bottom: 1px solid #eee;
    font-size: 16px;
}

.crp-specs-table th {
    font-weight: 600;
    color: #555;
    width: 40%; /* Label width */
}

.crp-specs-table td {
    font-weight: 700;
    color: #333;
}

.crp-specs-table tr:last-child th,
.crp-specs-table tr:last-child td {
    border-bottom: none;
}

/* Features/Inclusions List */
.crp-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.crp-features-list li {
    padding: 8px 0;
    font-size: 16px;
    color: #444;
    display: flex;
    align-items: center;
}

.crp-features-list li i {
    color: #FF0000; /* Red checkmark */
    margin-right: 12px;
    font-size: 18px;
}

/* Booking Options (Buttons) */
.crp-booking-options {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px; /* Space between buttons */
}

.crp-booking-button,
.crp-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.crp-booking-button {
    background: #FF0000;
    color: white;
}

.crp-booking-button:hover {
    background: #cc0000;
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.3);
}

.crp-whatsapp-button {
    background: #25D366; /* WhatsApp Green */
    color: white;
}

.crp-whatsapp-button:hover {
    background: #1DA851;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.crp-whatsapp-button i {
    margin-right: 10px;
    font-size: 20px;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .crp-detail-car-title {
        font-size: 28px;
    }
    .crp-detail-price-section {
        flex-direction: column;
        align-items: flex-start;
    }
    .crp-price-value {
        font-size: 28px;
    }
    .crp-detail-section .crp-section-heading {
        font-size: 20px;
    }
    .crp-booking-options {
        flex-direction: column;
        gap: 10px;
    }
    .crp-booking-button,
    .crp-whatsapp-button {
        width: 100%;
    }
}