/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.bg-primary {
    background-color: #000000 !important;
}

/* Car Card Styles */
.car-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.car-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.car-image {
    height: 200px;
    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-details {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.car-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.car-specs {
    margin-bottom: 15px;
}

.car-spec {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #666;
    white-space: normal;
}

.car-spec i {
    margin-right: 8px;
    color: #000000;
}

.car-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #dc3545;
    margin-top: auto;
}

/* Featured Listings */
.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ffc107;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Search and Filters */
.search-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.filter-group {
    margin-bottom: 15px;
}

/* Form Styles */
.form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25);
}

/* Button Styles */
.btn-primary {
    background-color: #000000;
    border-color: #000000;
}

.btn-primary:hover {
    background-color: #333333;
    border-color: #333333;
}

/* Image Gallery */
.image-gallery {
    margin-top: 20px;
}

.main-image {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
}

.main-image img {
    width: 100%;
    height: auto;
    transition: opacity 0.3s ease;
}

.gallery-prev, .gallery-next {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.gallery-prev:hover, .gallery-next:hover {
    background-color: rgba(255, 255, 255, 1) !important;
    opacity: 1;
    transform: scale(1.1);
}

.gallery-prev i, .gallery-next i {
    font-size: 1.2rem;
    color: #333;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #000000 #f1f1f1;
}

.thumbnail-images::-webkit-scrollbar {
    height: 6px;
}

.thumbnail-images::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.thumbnail-images::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 3px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover, .thumbnail.active {
    border-color: #000000;
    transform: scale(1.05);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Touch and swipe indicators */
.gallery-touch-hint {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image:hover .gallery-touch-hint {
    opacity: 1;
}

/* Admin Panel */
.admin-content {
    padding: 20px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .car-image {
        height: 150px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
}