/* Variables */
:root {
    --primary-color: #ffc107;
    --secondary-color: #ffb300;
    --text-color: #1f2937;
    --light-gray: #f3f4f6;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Hero Section */
.hero-section {
    padding: 200px 0;
    color: #fff;
    position: relative;
    width: 100%;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.search-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

/* Listing Cards */
.listing-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.2s;
    height: 100%;
    overflow: hidden;
}

.listing-card:hover {
    transform: translateY(-5px);
}

.listing-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 193, 7, 0.9);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
}

.listing-details {
    padding: 1rem;
}

.listing-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: #28a745;
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    height: 100%;
    transition: transform 0.2s;
    padding: 2rem;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 123, 255, 0.1);
    border-radius: 50%;
    margin-bottom: 1rem;
}

/* Section Styles */
.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #ffc107;
}

.bg-light {
    background-color: var(--light-gray) !important;
}

/* Links */
a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffb300;
}

/* Price Tag */
.price-tag {
    font-weight: bold;
    color: #28a745;
}

/* Location */
.location {
    font-size: 0.875rem;
    color: #666;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Home Page Styles */
.home-page .navbar-wrapper {
    background: transparent;
    position: relative;
    z-index: 1000;
}

.home-page .navbar {
    background: transparent;
}

.home-page .navbar-light .navbar-nav .nav-link,
.home-page .navbar-brand {
    color: white;
}

/* Footer Styles */
.footer-area {
    width: 100%;
    background: #f8f9fa;
    padding: 40px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0;
    }
    
    .listing-image {
        height: 160px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section .lead {
        font-size: 1.125rem;
    }
    
    .listing-features {
        flex-wrap: wrap;
    }
}

/* Latest Vehicles */
.latest-vehicles .listing-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

/* Brands */
.brand-item {
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.brand-item img {
    max-width: 100px;
    height: auto;
}

/* Brand Carousel */
.brand-item {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.brand-logo-wrapper {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.brand-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.vehicle-count {
    font-size: 0.875rem;
    color: #6b7280;
}

#brandCarousel .carousel-control-prev,
#brandCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}

#brandCarousel .carousel-control-prev {
    left: -50px;
}

#brandCarousel .carousel-control-next {
    right: -50px;
}

#brandCarousel .carousel-control-prev:hover,
#brandCarousel .carousel-control-next:hover {
    opacity: 1;
}

#brandCarousel .carousel-control-prev-icon,
#brandCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Locations */
.location-item {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 1px 1px 20px 3px #eee;
}

.location-item i {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

/* About Marketplace */
.about-marketplace {
    background-color: #fff;
}

.about-marketplace .section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.about-marketplace .section-title:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ffc107;
    margin-top: 0.5rem;
}

.about-marketplace .features {
    margin-top: 2rem;
}

.about-marketplace .feature {
    font-size: 1rem;
    color: #333;
}

.about-marketplace .feature i {
    color: #28a745;
    font-size: 1.2rem;
}

.about-marketplace img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Animations */
[data-aos] {
    pointer-events: none;
}

[data-aos].aos-animate {
    pointer-events: auto;
}

/* Cleaning Services */
.duration {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Vehicle Cards */
.vehicle-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.vehicle-images {
    position: relative;
    height: 100%;
    background: #f8f9fa;
}

.main-image {
    height: 100%;
    overflow: hidden;
    margin-bottom: 4px;
    background: #f8f9fa;
}

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

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

.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 0 4px;
}

.thumb-img {
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.thumb-img:hover {
    border-color: #ffc107;
}

.thumb-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vehicle-details {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: white;
}

.vehicle-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.vehicle-brand {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.vehicle-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: inline-block;
}

.vehicle-info {
    display: flex;
    gap: 2rem;
    margin: 1.5rem 0;
    flex-wrap: wrap;
    padding: 1rem 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.info-item {
    display: flex;
    align-items: center;
    color: #666;
}

.info-item i {
    color: #fff;
    margin-right: 8px;
    font-size: 1.1rem;
}

.vehicle-location {
    display: flex;
    align-items: center;
    color: #666;
    margin-bottom: 1.5rem;
}

.vehicle-location i {
    color: #fff;
    margin-right: 8px;
}

.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-align: center;
    display: inline-block;
}

.btn-warning:hover {
    background-color: #ffb300;
    border-color: #ffb300;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

/* Override Bootstrap's default warning button styles */
.btn-warning:active,
.btn-warning:focus {
    background-color: #ffc107 !important;
    border-color: #ffc107 !important;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.3) !important;
}

/* Latest Vehicles Carousel */
#latestVehiclesCarousel {
    position: relative;
    padding: 0 0px;
}

#latestVehiclesCarousel .carousel-control-prev,
#latestVehiclesCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: #ffc107;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

#latestVehiclesCarousel .carousel-control-prev {
    left: -50px;
}

#latestVehiclesCarousel .carousel-control-next {
    right: -50px;
}

#latestVehiclesCarousel .carousel-control-prev:hover,
#latestVehiclesCarousel .carousel-control-next:hover {
    background: #ffb300;
    opacity: 1;
}

#latestVehiclesCarousel .carousel-control-prev-icon,
#latestVehiclesCarousel .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Vehicle Cards for 2-column layout */
.vehicle-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Make all icons use yellow */
.fas, .far, .fab {
    color: #fff;
}

/* Update pagination colors if present */
.page-link {
    color: #ffc107;
}

.page-item.active .page-link {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

/* Update form elements */
.form-control:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}

/* Update dropdown menus */
.dropdown-item:active {
    background-color: #ffc107;
}

/* Update badges */
.badge-warning {
    background-color: #ffc107;
    color: #000;
}

/* Update alerts */
.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #000;
}

/* Update progress bars */
.progress-bar-warning {
    background-color: #ffc107;
}

/* Brand Cards */
.brand-card {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.brand-image {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.brand-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-name {
    color: var(--text-color);
    margin: 1rem 0 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

/* City Cards */
.city-card {
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.city-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.city-icon {
    color: #ffc107;
    margin-bottom: 1rem;
}

.city-name {
    color: var(--text-color);
    margin: 0.5rem 0;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Cleaning Services Section */
.cleaning-services .card {
    border: none;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.cleaning-services .card:hover {
    transform: translateY(-5px);
}

.cleaning-services .card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

.cleaning-services .card-text {
    color: #666;
    margin-bottom: 1rem;
}

.cleaning-services .price-tag {
    font-size: 1.5rem;
    color: #ffc107;
    font-weight: bold;
    margin-bottom: 1rem;
}

.cleaning-services .btn-outline-primary {
    border-color: #ffc107;
    color: #ffc107;
}

.cleaning-services .btn-outline-primary:hover {
    background-color: #ffc107;
    color: white;
}

.cleaning-services .btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: white;
}

.cleaning-services .btn-warning:hover {
    background-color: #388E3C;
    border-color: #388E3C;
}

/* Section Backgrounds */
.bg-light {
    background-color: #f8f9fa;
}

/* Alternating sections */
section {
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-image {
        width: 80px;
        height: 80px;
    }

    .service-card,
    .city-card {
        padding: 1.5rem;
    }

    .service-title {
        font-size: 1.2rem;
    }

    .service-price {
        font-size: 1.5rem;
    }
}

/* Featured Vehicles Section */
.featured-vehicles .vehicle-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: transform 0.2s;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.featured-vehicles .vehicle-card:hover {
    transform: translateY(-5px);
}

.featured-vehicles .vehicle-images {
    position: relative;
    overflow: hidden;
    height: 100%;
}

.featured-vehicles .vehicle-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 250px;
}

.featured-vehicles .vehicle-details {
    padding: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.featured-vehicles .vehicle-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.featured-vehicles .vehicle-price {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--primary-color);
}

.featured-vehicles .vehicle-info {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
}

.featured-vehicles .info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
}

.featured-vehicles .vehicle-location {
    color: #666;
    margin-bottom: 1rem;
}

.featured-vehicles .sold-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.featured-vehicles .btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
    font-weight: 500;
    margin-top: auto;
}

.featured-vehicles .btn-warning:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Vehicle Info Icons */
.vehicle-info .info-item i,
.vehicle-location i,.featured-vehicles .vehicle-details i {
    background-color: #ffc107;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Carousel Controls */
.featured-vehicles .carousel-control-prev,
.featured-vehicles .carousel-control-next {
    width: 40px;
    height: 40px;
    background: #ffc107;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
}

.featured-vehicles .carousel-control-prev {
    left: -20px;
}

.featured-vehicles .carousel-control-next {
    right: -20px;
}

.featured-vehicles .carousel-control-prev:hover,
.featured-vehicles .carousel-control-next:hover {
    background: #ffb300;
    opacity: 1;
}

.featured-vehicles .carousel-control-prev-icon,
.featured-vehicles .carousel-control-next-icon {
    width: 20px;
    height: 20px;
    filter: invert(1) grayscale(100%) brightness(200%);
}

@media (max-width: 768px) {
    .featured-vehicles .carousel-control-prev,
    .featured-vehicles .carousel-control-next {
        display: none;
    }
}
