/*
Theme Name: hello-elementor Child
Theme URI:  https://www.wpserveur.net
Author:     WPServeur
Author URI: https://www.wpserveur.net
Template:   hello-elementor
Version:    1.0
License:    GNU General Public License v2 or later
*/

/* Car Cards Styling */
.car-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.car-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Car Image */
.car-image {
    position: relative;
    height: 170px;
    overflow: hidden;
}

.car-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

.car-image-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Price Tag */
.car-price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 16px;
    color: #2c3e50;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 2;
    transition: all 0.3s ease;
}

.car-card:hover .car-price-tag {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.car-price-tag .price {
    font-weight: 800;
    color: #e74c3c;
}

/* Book Button */
.car-book-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    width: 80%;
}

.car-card:hover .car-book-button {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.book-now-btn {
    display: block;
    background: #e74c3c;
    color: white;
    text-align: center;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    width: 100%;
}

.book-now-btn:hover {
    background: #c0392b;
    transform: scale(1.05);
}

/* Car Details */
.car-details {
    padding: 20px;
    flex-grow: 1;
    position: relative;
    overflow: hidden;
}

.car-title {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
}

.car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.spec-item {
   background: #f8f9fa;
  padding: 4px 9px;
  border-radius: 4px;
  font-size: 12px;
  color: #555;
  transition: all 0.3s ease;
	
}

.car-card:hover .spec-item {
    background: #e8f4fc;
    color: #3498db;
}

.spec-item .spec-value {
    font-weight: 500;
}

/* Extra Details - Hidden by Default */
.car-extra-details {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.1s;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.car-card:hover .car-extra-details {
    opacity: 1;
    transform: translateY(0);
}

.extra-spec {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.extra-spec:last-child {
    border-bottom: none;
}

.extra-spec .spec-label {
    color: #7f8c8d;
    font-weight: 500;
}

.extra-spec .spec-value {
    color: #2c3e50;
    font-weight: 600;
}

/* Responsive Grid Container */
.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    padding: 20px 0;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .car-image {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .car-image {
        height: 180px;
    }
}