/* CSS Variables */
:root {
    --primary: #d9232d;
    --primary-dark: #a81c23;
    --secondary: #2d3e50;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --light-gray: #e9ecef;
}

/* Base Styles */
body {
    font-family: 'Open Sans', sans-serif;
    color: var(--dark);
    line-height: 1.6;
}

h1, h2, h3, h4, h5 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Navigation */
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
}

.navbar-brand span {
    color: var(--primary);
}

/* Section Titles */
.section-title {
    position: relative;
    margin-bottom: 3rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 60px;
    height: 4px;
    background-color: var(--primary);
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    padding: 10px 30px;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    padding: 10px 30px;
    font-weight: 600;
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    margin-bottom: 20px;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

/* Badge Price */
.badge-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary);
    color: white;
    font-size: 1.1rem;
    padding: 8px 15px;
    border-radius: 30px;
    font-weight: 600;
}

/* Feature Icon */
.feature-icon {
    width: 70px;
    height: 70px;
    background-color: rgba(217, 35, 45, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.8rem;
}

/* Car Detail Images */
.car-detail-img {
    height: 300px;
    object-fit: cover;
    width: 100%;
    border-radius: 10px;
}

/* Footer */
.footer {
    background-color: var(--secondary);
    color: white;
    padding: 60px 0 30px;
}

.footer h5 {
    margin-bottom: 25px;
    position: relative;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 40px;
    height: 3px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.7);
}

/* Contact Info */
.contact-info {
    margin-bottom: 20px;
}

.contact-info i {
    color: var(--primary);
    margin-right: 10px;
    width: 20px;
}

/* Social Icons */
.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: white;
    margin-right: 10px;
    transition: all 0.3s;
}

.social-icons a:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

/* Car Detail Modal */
.car-detail-modal .modal-dialog {
    max-width: 900px;
}

.car-detail-modal .car-images {
    margin-bottom: 20px;
}

.car-detail-modal .car-thumbnail {
    width: 100px;
    height: 70px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.car-detail-modal .car-thumbnail:hover {
    transform: scale(1.05);
}

.car-detail-modal .car-thumbnail.active {
    border-color: var(--primary);
}

.car-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.car-spec-item {
    display: flex;
    justify-content: space-between;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-gray);
}

/* Responsive */
@media (max-width: 768px) {
    .car-specs {
        grid-template-columns: 1fr;
    }
    
    .navbar-brand {
        font-size: 1.5rem;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-link {
    display: flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
}

.whatsapp-link:hover {
    background-color: #128C7E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    color: white;
    text-decoration: none;
}

.whatsapp-link i {
    font-size: 24px;
    margin-right: 10px;
}

.whatsapp-text {
    font-size: 14px;
}

/* WhatsApp Quick Contact in Car Detail Modal */
.whatsapp-quick-contact {
    margin-top: 10px;
    text-align: center;
}

.whatsapp-quick-contact a {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.3s;
}

.whatsapp-quick-contact a:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.whatsapp-quick-contact i {
    margin-right: 8px;
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right:  15px;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-link {
        padding: 12px;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .whatsapp-link i {
        margin-right: 0;
        font-size: 28px;
    }
}