/* Awesome Car Mark Card Styles - AL MOORIYAT Brand Colors */
.car-mark-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.car-mark-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(255, 107, 53, 0.2);
    border-color: #FF6B35;
}

.card-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
}

.car-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.car-mark-card:hover .car-image {
    transform: scale(1.1);
}

.brand-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    padding: 8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    border: 2px solid #FF6B35;
}

.brand-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(242, 242, 242, 0.8));
    padding: 20px 15px 15px;
}

.overlay-content {
    display: flex;
    justify-content: flex-end;
}

.car-count-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #FF6B35;
    padding: 8px 15px;
    border-radius: 25px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #FF6B35;
}

.car-count-badge i {
    color: #FF6B35;
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-header {
    margin-bottom: 20px;
}

.car-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: center;
}

.company-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 14px;
    font-weight: 500;
}

.company-info i {
    color: #FF6B35;
    font-size: 16px;
}

.card-actions {
    margin-top: auto;
}

.view-cars-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto;
    min-width: 140px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    margin: 0 auto;
}

.view-cars-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.view-cars-btn:hover::before {
    left: 100%;
}

.view-cars-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
}

.view-cars-btn span {
    z-index: 1;
    position: relative;
}

.view-cars-btn i {
    z-index: 1;
    position: relative;
    transition: transform 0.3s ease;
}

.view-cars-btn:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .car-mark-card {
        margin-bottom: 20px;
    }
    
    .card-image-container {
        height: 180px;
    }
    
    .car-title {
        font-size: 1.3rem;
    }
    
    .view-cars-btn {
        padding: 8px 16px;
        font-size: 13px;
        min-width: 120px;
    }
}

@media (max-width: 576px) {
    .card-content {
        padding: 20px;
    }
    
    .car-title {
        font-size: 1.2rem;
    }
    
    .company-info {
        font-size: 13px;
    }
}

/* Animation for card entrance */
.car-mark-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for multiple cards */
.car-mark-card:nth-child(1) { animation-delay: 0.1s; }
.car-mark-card:nth-child(2) { animation-delay: 0.2s; }
.car-mark-card:nth-child(3) { animation-delay: 0.3s; }
.car-mark-card:nth-child(4) { animation-delay: 0.4s; }
.car-mark-card:nth-child(5) { animation-delay: 0.5s; }
.car-mark-card:nth-child(6) { animation-delay: 0.6s; }

/* Car Listing Card Styles - AL MOORIYAT Brand Colors */
.car-listing-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 2px solid transparent;
}

.car-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 53, 0.15);
    border-color: #FF6B35;
}

.car-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.car-listing-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.car-listing-card:hover .car-listing-image {
    transform: scale(1.05);
}

.car-overlay {
    position: absolute;
    top: 15px;
    left: 15px;
}

.car-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #FF6B35;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    display: flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #FF6B35;
}

.car-badge i {
    color: #FF6B35;
    font-size: 14px;
}

.car-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.car-header {
    margin-bottom: 15px;
}

.car-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-align: center;
}

.car-specifications {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 8px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 12px;
    font-weight: 500;
    flex: 1;
    min-width: 80px;
    justify-content: center;
}

.spec-item i {
    color: #FF6B35;
    font-size: 14px;
}

.car-pricing {
    margin-bottom: 15px;
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.price-badge {
    background: linear-gradient(135deg, #DEDBDA 0%, #CACACA 100%);
  color: black;
  border-radius: 6px;
  padding: 6px 4px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1px;
  box-shadow: 0 2px 6px rgba(38, 38, 38, 0.2);
  transition: all 0.3s ease;
}

.price-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
}

.price-duration {
    font-size: 9px;
    font-weight: 500;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.price-amount {
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
}

.total-price {
    text-align: center;
    padding: 10px;
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    border-radius: 8px;
    margin-top: 10px;
}

.total-price span {
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.car-actions {
    margin-top: auto;
    display: flex;
    justify-content: center;
}

.car-actions .btn {
    background: linear-gradient(135deg, #FF6B35 0%, #FF8C42 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.car-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.4);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #FF8C42 0%, #FF6B35 100%);
}

/* Responsive Design for Car Listing Cards */
@media (max-width: 768px) {
    .car-listing-card {
        margin-bottom: 20px;
    }
    
    .car-image-container {
        height: 180px;
    }
    
    .car-title {
        font-size: 1.2rem;
    }
    
    .car-specifications {
        flex-direction: column;
        gap: 5px;
    }
    
    .spec-item {
        justify-content: flex-start;
        min-width: auto;
    }
    
    .price-grid {
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 4px;
    }
    
    .price-badge {
        padding: 4px 3px;
    }
    
    .price-duration {
        font-size: 8px;
    }
    
    .price-amount {
        font-size: 10px;
    }
}

@media (max-width: 576px) {
    .car-content {
        padding: 15px;
    }
    
    .car-title {
        font-size: 1.1rem;
    }
    
    .car-actions .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}