/* Brand Selector */
.brand-selector {
    background: #fff;
    padding: 30px 0;
    text-align: center;
}

.brand-list {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.brand-btn {
    background: #f8f9fa;
    color: #222;
    width: 200px;
    border: 2px solid rgb(9, 197, 9);
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.brand-btn.active,
.brand-btn:hover {
    background: rgb(9, 197, 9);
    color: #fff;
    border-color: rgb(9, 197, 9);
}

.container {
    margin: 20px auto;
}

/* Car Collections */
.car-collections {
    background: #f8f9fa;
    padding: 60px 0 40px 0;
}

.car-btn {
    background: black;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin: 15px auto;
    width: 100%;
}

.car-category {
    margin-bottom: 50px;
}

.car-category h2 {
    font-size: 2rem;
    color: #222;
    margin-bottom: 25px;
    border-left: 5px solid rgb(9, 197, 9);
    padding-left: 15px;
    letter-spacing: 1px;
    font-weight: 700;
}

.car-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.car-item {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 24px 18px 18px 18px;
    flex: 1 1 220px;
    max-width: 260px;
    min-width: 220px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
}

.car-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 8px 32px rgba(197, 157, 95, 0.18);
    z-index: 2;
}

.car-item img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 18px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    background: #eee;
}

.car-item h3 {
    font-size: 1.15rem;
    color: rgb(9, 197, 9);
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.car-item p {
    color: #555;
    font-size: 0.98rem;
    margin-bottom: 0;
    letter-spacing: 0.2px;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .car-list {
        gap: 18px;
    }

    .car-item {
        max-width: 48%;
        min-width: 160px;
    }
}

@media (max-width: 600px) {
    .brand-list {
        flex-direction: column;
        gap: 10px;
    }

    .brand-btn {
        width: 100%;
    }

    .car-list {
        flex-direction: column;
        gap: 16px;
    }

    .car-item {
        max-width: 100%;
    }

    .car-category h2 {
        font-size: 1.3rem;
        padding-left: 8px;
    }
}

/* Car Modal Popup */
.car-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
}

.car-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 900px;
    width: 100%;
    position: relative;
    animation: slideIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10;
}

.close-btn:hover {
    color: rgb(9, 197, 9);
}

.modal-body {
    padding: 30px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Image Carousel */
.modal-image-section {
    flex: 1;
    min-width: 350px;
}

.carousel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    overflow: hidden;
}

.modal-car-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
    z-index: 5;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

.carousel-indicators {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: rgb(9, 197, 9);
}

/* Modal Details */
.modal-details {
    flex: 1;
    overflow-y: auto;
    max-height: 500px;
}

.modal-details h2 {
    font-size: 1.8rem;
    color: rgb(9, 197, 9);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Specs Row */
.specs-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.spec-value {
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
    margin-top: 4px;
}

/* Modal Sections */
.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    font-size: 1.1rem;
    color: #222;
    margin-bottom: 10px;
    font-weight: 600;
    border-left: 3px solid rgb(9, 197, 9);
    padding-left: 10px;
}

.modal-description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.features-list li {
    color: #555;
    font-size: 0.95rem;
    padding-left: 20px;
    position: relative;
}

.features-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: rgb(9, 197, 9);
    font-weight: bold;
}

/* Price Section */
.price-section {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.price-value {
    font-size: 1.4rem;
    color: rgb(9, 197, 9);
    font-weight: 700;
}

.modal-contact-btn {
    background: rgb(9, 197, 9);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    width: 100%;
}

.modal-contact-btn:hover {
    background: #08a008;
    transform: scale(1.02);
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-body {
        flex-direction: column;
        gap: 20px;
    }

    .modal-image-section {
        min-width: 100%;
    }

    .modal-car-image {
        height: 250px;
    }

    .modal-details {
        max-height: none;
    }

    .specs-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .modal-content {
        border-radius: 12px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-details h2 {
        font-size: 1.4rem;
    }

    .modal-car-image {
        height: 200px;
    }

    .specs-row {
        grid-template-columns: 1fr;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .carousel-prev,
    .carousel-next {
        padding: 6px 10px;
        font-size: 18px;
    }
}