body {
    background-color: var(--light);
    color: var(--dark);
}

.navbar {
    backdrop-filter: blur(10px);
    background-color: rgba(15, 23, 42, 0.9) !important;
    padding: 1rem 0;
}

.navbar-brand {
    position: static;
    margin: 0;
    width: auto;
    height: auto;
}

.navbar-brand img {
    width: 180px;
    height: auto;
}

.nav-link {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    font-weight: 700;
    border-radius: 12px;
    padding: 0.6rem 1.5rem;
}

/* Footer Styling */
.site-footer {
    background-color: #f3f3f3;
    padding: 60px 0 30px;
    color: #333;
    border-top: 1px solid #e2e8f0;
}

.footer-logo {
    width: 150px;
    margin-bottom: 20px;
}

.footer-description {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.footer-title {
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-contact {
    font-size: 0.9rem;
    color: #475569;
    line-height: 2;
}

.footer-contact i {
    color: var(--primary);
    width: 20px;
}

.social-icon {
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff !important;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #000;
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}

@media (max-width: 767.98px) {
    .site-footer {
        padding: 20px 0 10px;
    }
    .site-footer [class*="col-"] {
        margin-bottom: 5px !important;
    }
    .footer-logo {
        margin-bottom: 5px !important;
        width: 100px;
    }
    .footer-description {
        margin-bottom: 5px !important;
        font-size: 0.8rem;
    }
    .footer-title {
        margin-bottom: 5px !important;
        margin-top: 5px !important;
        font-size: 0.9rem;
    }
    .footer-links li {
        margin-bottom: 2px !important;
    }
    .footer-links a {
        font-size: 0.8rem;
    }
    .footer-contact {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    .footer-bottom {
        margin-top: 5px !important;
        padding-top: 5px !important;
    }
}

[data-theme="dark"] {
    --light: #0f172a;
    --dark: #f8fafc;
}

.hero-modern {
    width: 100%;
    padding: 100px 0;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/website/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.navbar {
    background-color: #000000 !important;
}

.search-card {
    margin-top: -60px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    padding: 8px;
}

.search-card .btn-primary {
    background: var(--primary) !important;
    border-radius: 10px !important;
    padding: 12px 24px;
}

.search-card .btn-light {
    background: #f8fafc;
    color: #64748b;
    border-radius: 10px !important;
}

.search-card .btn-light:hover {
    background: #e2e8f0;
}

.search-card .form-select {
    padding: 14px 20px;
    font-weight: 500;
    color: #334155;
    background-color: #f8fafc;
    border-radius: 10px !important;
    margin-right: 8px;
}

.search-card .vr {
    opacity: 0.1;
    margin: 0 10px;
}

.search-card form {
    background: white !important;
    border: none !important;
    gap: 8px;
}

.motor-card {
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.motor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1) !important;
}

.price-tag {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
}

.btn-rounded {
    border-radius: 14px;
    padding: 12px 28px;
    font-weight: 700;
}

.section-title {
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

/* Navbar Mobile Fixes */
.navbar-toggler {
    border: none !important;
    padding: 0;
}
.navbar-toggler:focus {
    box-shadow: none !important;
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--dark);
        margin: 0 -1rem;
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
    .navbar-nav {
        margin-bottom: 1rem;
    }
    .navbar .d-flex {
        justify-content: center;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }
}

/* ... previous content ... */

.motor-view-page .sticky-top {
    z-index: 1000;
}

.motor-view-page .view-card,
.motor-view-page .price-card,
.motor-view-page .seller-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

@media (max-width: 991.98px) {
    .motor-view-page .sticky-top {
        position: relative;
        top: 0 !important;
    }
}

/* Modern Breadcrumbs */
.breadcrumb {
    font-size: 0.9rem;
    font-weight: 500;
    --bs-breadcrumb-divider: '›';
}
.breadcrumb-item a {
    color: var(--primary) !important;
    text-decoration: none !important;
    transition: opacity 0.2s;
}
.breadcrumb-item a:hover {
    opacity: 0.7;
}
.breadcrumb-item + .breadcrumb-item::before {
    color: #94a3b8;
    padding: 0 0.5rem;
}
.breadcrumb-item.active {
    color: #64748b !important;
}

/* Modern Pagination */
.pagination .page-link {
    border-radius: 12px;
    margin: 0 4px;
    border: none;
    color: var(--dark);
    font-weight: 600;
    padding: 0.6rem 1rem;
    transition: all 0.2s;
}
.pagination .page-link:hover {
    background: #e2e8f0;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}
.pagination .page-item.disabled .page-link {
    background: transparent;
    color: #cbd5e1;
}


/* Navbar Sticky and Logo Alignment */
.navbar {
    width: 100%;
    z-index: 1050;
    background-color: #000000 !important;
}

.navbar-fixed {
    position: fixed !important;
    top: 0;
}
.navbar-brand {
    position: static;
    margin: 0;
    width: auto;
    height: auto;
}

.navbar-brand img {
    width: 180px;
    height: auto;
}

.navbar-brand img {
    width: 297px;
    height: 36px;
}

.navbar .form-control::placeholder {
    color: #ffffff !important;
    opacity: 0.7;
}
/* Mobile Menu Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #000;
    z-index: 3000;
    transition: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    padding: 60px 0;
    display: block;
    box-shadow: 5px 0 15px rgba(0,0,0,0.5);
    overflow-y: auto;
}

[dir="rtl"] .mobile-menu {
    left: auto;
    right: -280px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.5);
}

.mobile-menu.active {
    left: 0;
}

[dir="rtl"] .mobile-menu.active {
    right: 0;
}

.btn-close-menu {
    color: #ffffff;
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    padding: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
}

[dir="rtl"] .btn-close-menu {
    right: auto;
    left: 15px;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 5px 15px;
    margin: 0 20px;
}

.mobile-search-form .form-control {
    background: transparent !important;
    border: none !important;
    color: #fff !important;
    box-shadow: none !important;
    padding: 10px 0;
}

.mobile-search-form .btn {
    color: #fff !important;
    padding: 0;
    background: transparent !important;
    border: none !important;
}

.mobile-menu.active {
    left: 0;
}
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    z-index: 2999;
    display: none;
    backdrop-filter: blur(5px);
}
.menu-overlay.active {
    display: block;
}
.mobile-menu .navbar-nav {
    text-align: left;
}
.mobile-menu .nav-link {
    font-size: 1.2rem !important;
    text-transform: uppercase;
    color: #fff !important;
    font-weight: 600;
}

.navbar-brand {
    margin-right: 50px !important;
}

@media (max-width: 991.98px) {
    .navbar .d-flex {
        margin-left: 0 !important;
    }
}

/* TomSelect Customization */
.ts-wrapper.form-select.rounded-pill {
    padding: 0 !important;
    border: none !important;
}
.ts-wrapper.form-select.rounded-pill .ts-control {
    border-radius: 50rem !important;
    padding: 0.375rem 2.25rem 0.375rem 1rem !important;
    border: 1px solid #dee2e6 !important;
    background-color: #fff !important;
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
}
.ts-wrapper.bg-light.border-0 .ts-control {
    background-color: #f8f9fa !important;
    border: none !important;
}
.ts-wrapper.rounded-pill .ts-dropdown {
    border-radius: 15px !important;
    margin-top: 5px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* Favorite Button - Unified Style (Matches Homepage) */
.hp-fav-btn {
    background: #ffffff !important;
    color: #94a3b8 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid #e2e8f0 !important;
    z-index: 10 !important;
    font-size: 1.1rem !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

.hp-fav-btn:hover {
    color: #e62e2e !important;
    transform: scale(1.1) !important;
    border-color: #e62e2e !important;
    box-shadow: 0 10px 15px -3px rgba(230, 46, 46, 0.2) !important;
}

.hp-fav-btn.active {
    color: #e62e2e !important;
    background: #fff5f5 !important;
    border-color: #e62e2e !important;
}

/* Specific variant for the Motor View page (relative positioning) */
.view-action-btn.hp-fav-btn {
    position: relative !important;
    top: 0 !important;
    right: 0 !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 16px !important;
    font-size: 1.4rem !important;
}

/* Ensure FontAwesome icons inside buttons don't capture clicks */
.hp-fav-btn i {
    pointer-events: none;
}
