:root {
    --primary: #1769e0;
    --primary-dark: #1054bb;
    --dark: #142033;
    --muted: #6e7b8e;
    --bg: #f5f8fc;
    --border: #e6ebf2;
    --white: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', Arial, sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

.container { width: min(1160px, calc(100% - 40px)); margin: auto; }

.header {
    height: 78px;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav { display: flex; align-items: center; justify-content: space-between; }

.logo { font-size: 27px; font-weight: 800; letter-spacing: -1.5px; }
.logo > span:first-child { color: var(--primary); }
.logo-dot { color: #ff9c43; }

.nav-links { display: flex; gap: 34px; color: #536176; font-size: 14px; font-weight: 600; }
.nav-links a:hover, .login-link:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 700; }
.login-link { color: var(--dark); }
.mobile-menu { display: none; border: 0; background: none; font-size: 25px; cursor: pointer; }

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 21px;
    transition: .2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: white; box-shadow: 0 5px 14px rgba(23,105,224,.16); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-large { padding: 15px 23px; }
.btn-outline { border-color: #d7e0ec; color: var(--dark); background: white; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: white; color: var(--primary); margin-top: 24px; }

.hero { background: linear-gradient(115deg, #f4f8ff 0%, #fff 65%); padding: 76px 0 95px; overflow: hidden; }
.hero-content { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 55px; }
.eyebrow { color: var(--primary); font-size: 11px; letter-spacing: 1.6px; font-weight: 800; display: inline-flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 8px; height: 8px; background: #25bd82; border-radius: 50%; }
.hero h1 { font-size: clamp(39px, 5vw, 59px); line-height: 1.12; letter-spacing: -2.7px; margin: 22px 0; max-width: 630px; }
.hero h1 span, .business-banner h2 span { color: var(--primary); }
.hero-text > p { color: var(--muted); font-size: 16px; max-width: 550px; line-height: 1.8; }
.hero-buttons { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 30px; }
.hero-trust { display: flex; gap: 30px; margin-top: 47px; }
.trust-item { display: flex; flex-direction: column; gap: 3px; }
.trust-item strong { font-size: 17px; color: var(--primary); }
.trust-item span { font-size: 11px; color: var(--muted); }

.hero-visual { position: relative; padding: 0 0 18px 18px; }
.hero-image {
    height: 420px;
    border-radius: 20px;
    position: relative;
    background: #dce7f2 url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1100&q=85') center/cover;
    box-shadow: 0 25px 55px rgba(35,60,95,.15);
}
.image-overlay { position: absolute; inset: 0; border-radius: 20px; background: linear-gradient(0deg, rgba(9,23,42,.7), transparent 55%); }
.floating-card { position: absolute; left: -35px; top: 45px; background: white; border-radius: 12px; padding: 15px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 10px 35px #263c5b1a; }
.floating-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #e4f8ef; color: #16a66b; font-weight: 800; }
.floating-card strong, .floating-card small { display: block; }
.floating-card strong { font-size: 12px; }
.floating-card small { font-size: 10px; color: var(--muted); margin-top: 3px; }
.hero-image-label { position: absolute; bottom: 25px; left: 28px; color: white; }
.hero-image-label span { font-size: 10px; letter-spacing: 2px; }
.hero-image-label strong { display: block; font-size: 24px; }
.visual-decoration { position: absolute; width: 130px; height: 130px; right: -22px; bottom: -5px; border: 2px solid #8cb8f5; border-radius: 20px; z-index: -1; }

.search-section { margin-top: 0; padding: 32px 0 20px; position: relative; z-index: 2; }
.search-box { background: white; border: 1px solid var(--border); border-radius: 15px; box-shadow: 0 14px 40px rgba(31,54,84,.09); padding: 21px 25px; display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 20px; }
.search-heading { display: flex; gap: 12px; align-items: center; }
.search-icon { font-size: 32px; color: var(--primary); }
.search-heading strong, .search-heading small { display: block; }
.search-heading strong { font-size: 14px; }
.search-heading small { color: var(--muted); font-size: 11px; }
.search-form { display: flex; gap: 10px; }
.search-form input, .search-form select { min-width: 0; height: 47px; padding: 0 13px; border: 1px solid var(--border); border-radius: 8px; outline: none; background: #fbfcfe; color: var(--dark); font: inherit; font-size: 12px; }
.search-form input { flex: 1.5; }
.search-form select { flex: 1; }
#carFilters {
    display: flex;
    flex: 1.5;
    gap: 10px;
    min-width: 0;
}

#carFilters[hidden] {
    display: none;
}

#carFilters select {
    width: 50%;
    min-width: 0;
    height: 47px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--dark);
    font: inherit;
    font-size: 12px;
}

#carFilters select:focus {
    border-color: var(--primary);
}

@media (max-width: 768px) {
    #carFilters {
        flex-direction: column;
        width: 100%;
    }

    #carFilters select {
        width: 100%;
    }
}
.search-form input:focus, .search-form select:focus { border-color: var(--primary); }
.search-message { grid-column: 2; color: var(--primary); font-size: 12px; }

.section { padding: 90px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; }
.section-heading h2, .business-banner h2 { font-size: 34px; letter-spacing: -1.3px; line-height: 1.2; margin: 10px 0; }
.section-heading p, .business-banner p { color: var(--muted); font-size: 14px; }
.text-link { color: var(--primary); font-size: 13px; font-weight: 700; padding-bottom: 5px; }

.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.category-card { border: 1px solid var(--border); border-radius: 13px; padding: 24px; position: relative; transition: .2s; background: white; }
.category-card:hover { border-color: #a9c9f7; transform: translateY(-4px); box-shadow: 0 12px 30px rgba(31,54,84,.06); }
.category-icon { width: 49px; height: 49px; border-radius: 12px; display: grid; place-items: center; background: #edf4ff; font-size: 23px; margin-bottom: 18px; }
.category-card h3 { font-size: 16px; margin-bottom: 5px; }
.category-card p { font-size: 12px; color: var(--muted); }
.category-arrow { position: absolute; right: 22px; top: 25px; color: #91a0b3; font-size: 18px; }

.quote-section { background: #142b4a; color: white; padding: 75px 0; }
.quote-content { display: grid; grid-template-columns: 1fr .9fr; gap: 80px; align-items: center; }
.eyebrow-light { color: #9ec5ff; }
.quote-content h2 { font-size: 37px; line-height: 1.2; letter-spacing: -1.4px; margin: 15px 0; max-width: 500px; }
.quote-content h2 span { color: #8dbbff; }
.quote-content > div:first-child > p { color: #c0cede; max-width: 500px; font-size: 14px; line-height: 1.8; }
.quote-steps { display: grid; gap: 22px; }
.quote-step { display: flex; gap: 17px; align-items: start; }
.quote-step > span { font-size: 14px; font-weight: 800; color: #8dbbff; border: 1px solid #49627f; border-radius: 8px; padding: 8px 10px; }
.quote-step strong, .quote-step small { display: block; }
.quote-step strong { font-size: 15px; margin-bottom: 4px; }
.quote-step small { color: #c0cede; font-size: 12px; }

.business-section { padding-top: 85px; }
.business-banner { background: #f2f7ff; border: 1px solid #e3edfb; border-radius: 20px; padding: 55px 65px; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; overflow: hidden; }
.business-banner h2 { max-width: 540px; font-size: 37px; }
.business-banner p { max-width: 560px; line-height: 1.8; }
.business-banner .btn { margin-top: 25px; }
.business-graphic { min-height: 220px; display: flex; justify-content: center; align-items: center; position: relative; }
.graphic-circle { width: 155px; height: 155px; border-radius: 50%; background: var(--primary); color: white; display: grid; place-items: center; font-size: 43px; font-weight: 800; box-shadow: 0 0 0 20px #1769e018, 0 0 0 42px #1769e00b; }
.graphic-caption { position: absolute; right: 0; bottom: 10px; font-size: 10px; letter-spacing: 2px; color: #657994; }
.graphic-caption strong { font-size: 13px; color: var(--primary); }

.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-content { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer .logo { font-size: 22px; }
.footer p, .footer-content > span { font-size: 11px; color: var(--muted); }

@media (max-width: 850px) {
    .nav-links { gap: 15px; }
    .hero-content { gap: 25px; }
    .hero-image { height: 350px; }
    .search-box { grid-template-columns: 1fr; }
    .search-message { grid-column: 1; }
    .quote-content { gap: 35px; }
    .business-banner { padding: 40px; }
}

@media (max-width: 650px) {
    .container { width: min(100% - 30px, 500px); }
    .header { height: 68px; }
    .nav-links, .nav-actions { display: none; }
    .mobile-menu { display: block; }
    .nav.menu-open { position: relative; }
    .nav.menu-open .nav-links { display: flex; position: absolute; top: 55px; left: 0; right: 0; background: white; padding: 20px; border: 1px solid var(--border); border-radius: 12px; flex-direction: column; z-index: 20; }
    .hero { padding: 55px 0 75px; }
    .hero-content { grid-template-columns: 1fr; }
    .hero h1 { font-size: 42px; letter-spacing: -1.8px; }
    .hero-text > p { font-size: 14px; }
    .hero-trust { gap: 17px; margin-top: 30px; }
    .trust-item span { font-size: 10px; }
    .hero-visual { margin: 15px 8px 0; }
    .hero-image { height: 290px; }
    .floating-card { left: -8px; top: 18px; }
    .search-box { padding: 18px; }
    .search-form { flex-direction: column; }
    .search-form input, .search-form select, .search-form button { width: 100%; flex: auto; }
    .section { padding: 65px 0; }
    .section-heading { align-items: start; gap: 15px; flex-direction: column; }
    .section-heading h2, .business-banner h2 { font-size: 29px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
    .category-card { padding: 17px; }
    .category-card h3 { font-size: 13px; }
    .category-card p { font-size: 10px; }
    .category-icon { width: 42px; height: 42px; font-size: 20px; }
    .quote-section { padding: 60px 0; }
    .quote-content { grid-template-columns: 1fr; }
    .quote-content h2 { font-size: 31px; }
    .business-banner { grid-template-columns: 1fr; padding: 30px 23px; }
    .business-graphic { min-height: 190px; }
    .footer-content { flex-direction: column; text-align: center; gap: 8px; }
}
/* Authentication Modal */

.auth-modal[hidden] {
    display: none !important;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-overlay {
    position: absolute;
    inset: 0;
    background: rgba(20, 32, 51, 0.55);
    backdrop-filter: blur(3px);
}

.auth-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 35px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(20, 32, 51, 0.2);
}

.auth-close {
    position: absolute;
    top: 12px;
    right: 17px;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 28px;
    cursor: pointer;
}

.auth-logo {
    display: inline-block;
    margin-bottom: 22px;
}

.auth-box h2 {
    font-size: 25px;
    margin-bottom: 7px;
    letter-spacing: -0.7px;
}

.auth-description {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 22px;
}

.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.auth-box form[hidden] {
    display: none !important;
}

.auth-box label {
    font-size: 13px;
    font-weight: 700;
    margin-top: 7px;
}

.auth-box input {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    background: #fbfcfe;
    color: var(--dark);
    font: inherit;
    font-size: 13px;
}

.auth-box input:focus {
    border-color: var(--primary);
}

.auth-submit {
    width: 100%;
    margin-top: 15px;
}

.auth-message {
    font-size: 12px;
    margin-top: 13px;
    color: var(--primary);
}

.auth-switch {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.auth-switch button {
    border: 0;
    background: none;
    color: var(--primary);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

@media (max-width: 480px) {
    .auth-box {
        padding: 28px 22px;
    }
}


/* AutoHub marketplace homepage categories */
main > #services.section {
    padding: 28px 0 20px;
}

main > #services .category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

main > #services .category-card {
    padding: 20px;
}

main > #services .category-icon {
    margin-bottom: 12px;
}

@media (max-width: 650px) {
    main > #services.section {
        padding: 18px 0 12px;
    }

    main > #services .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    main > #services .category-card {
        padding: 14px;
    }

    main > #services .category-icon {
        margin-bottom: 10px;
    }

    main > #services .category-arrow {
        right: 12px;
        top: 15px;
    }
}


/* AutoHub search-first spacing */
main > .search-section {
    padding: 24px 0 8px;
    margin-top: 0;
}

main > .search-section + #services.section {
    padding-top: 14px;
}

@media (max-width: 650px) {
    main > .search-section {
        padding: 16px 0 6px;
    }

    main > .search-section + #services.section {
        padding-top: 10px;
    }
}

/* AutoHub Dark Mode */
html[data-theme="dark"] {
    color-scheme: dark;

    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --dark: #e5e7eb;
    --muted: #9ca3af;
    --bg: #111827;
    --border: #374151;
    --white: #1f2937;
}

html[data-theme="dark"] body {
    background: #111827;
    color: var(--dark);
}

html[data-theme="dark"] .header {
    background: rgba(17, 24, 39, .97);
}

html[data-theme="dark"] .nav-links {
    color: #cbd5e1;
}

html[data-theme="dark"] .mobile-menu {
    color: var(--dark);
}

html[data-theme="dark"] .hero {
    background: linear-gradient(115deg, #17243a, #111827 65%);
}

html[data-theme="dark"] .search-box,
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .floating-card,
html[data-theme="dark"] .profile-box,
html[data-theme="dark"] .directory-card,
html[data-theme="dark"] .directory-empty,
html[data-theme="dark"] .business-lightbox {
    background: #1f2937;
    color: var(--dark);
    border-color: var(--border);
}

html[data-theme="dark"] .search-form input,
html[data-theme="dark"] .search-form select,
html[data-theme="dark"] #carFilters select,
html[data-theme="dark"] .auth-box input {
    background: #111827;
    color: var(--dark);
    border-color: var(--border);
}

html[data-theme="dark"] .btn-outline {
    background: #1f2937;
    color: var(--dark);
    border-color: var(--border);
}

html[data-theme="dark"] .business-banner {
    background: #1e293b;
    border-color: var(--border);
}

html[data-theme="dark"] .directory,
html[data-theme="dark"] .profile-page {
    background: #111827;
}

html[data-theme="dark"] .nav.menu-open .nav-links {
    background: #1f2937;
    border-color: var(--border);
}

html[data-theme="dark"] .auth-box {
    background: #1f2937;
    color: var(--dark);
}

html[data-theme="dark"] .service-item {
    border-color: var(--border);
}

html[data-theme="dark"] .quote-section {
    background: #0b1220;
}

html[data-theme="dark"] .footer {
    border-color: var(--border);
}

html[data-theme="dark"] .category-icon {
    background: #263b59;
}

html[data-theme="dark"] .directory-filter {
    background: #1f2937;
    color: var(--dark);
    border-color: var(--border);
}

html[data-theme="dark"] .directory-filter.active {
    background: var(--primary);
    color: #111827;
}

html[data-theme="dark"] .business-lightbox {
    background: #1f2937;
}

html[data-theme="dark"] .profile-description,
html[data-theme="dark"] .profile-detail {
    color: #cbd5e1;
}

html[data-theme="dark"] .btn-primary {
    color: #fff;
}


/* AutoHub Theme Toggle */
.theme-toggle {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--white);
    color: var(--dark);
    font-size: 19px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: .2s ease;
}

.theme-toggle:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

@media (max-width: 650px) {
    .theme-toggle {
        position: absolute;
        right: 48px;
        top: 13px;
        z-index: 15;
    }
}

/* AutoHub Cars Page - Dark Mode Fix */

html[data-theme="dark"] .cars-filters {
    background: #1f2937;
    border-color: #374151;
}

html[data-theme="dark"] .cars-field label {
    color: #e5e7eb;
}

html[data-theme="dark"] .cars-field input,
html[data-theme="dark"] .cars-field select {
    background: #111827;
    color: #f3f4f6;
    border-color: #4b5563;
}

html[data-theme="dark"] .cars-field input::placeholder {
    color: #9ca3af;
}

html[data-theme="dark"] .car-card {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

html[data-theme="dark"] .car-photo {
    background: #263449;
}

html[data-theme="dark"] .car-specs span {
    background: #374151;
    color: #d1d5db;
}

html[data-theme="dark"] .cars-empty {
    background: #1f2937;
    border-color: #374151;
    color: #9ca3af;
}

html[data-theme="dark"] .cars-page {
    background: #111827;
}

html[data-theme="dark"] #resultsCount {
    color: #93c5fd;
}

html[data-theme="dark"] .cars-filter-actions .btn-outline {
    background: #374151;
    color: #f3f4f6;
    border-color: #4b5563;
}


/* Dashboard heading refinement */
.profile-page > h1 {
    font-size: clamp(28px, 3vw, 34px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin: 14px 0 10px;
    color: var(--dark);
}

html[data-theme="dark"] .profile-page > h1 {
    color: #f8fafc;
}

.profile-page > #welcomeMessage {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 30px;
}


/* AutoHub Unified Dashboard Theme */

html[data-theme="dark"] .profile-page,
html[data-theme="dark"] .profile-header {
    color: #f1f5f9;
}

html[data-theme="dark"] .profile-page h1,
html[data-theme="dark"] .profile-page h2,
html[data-theme="dark"] .profile-page h3,
html[data-theme="dark"] .profile-page h4 {
    color: #f1f5f9;
}

html[data-theme="dark"] .profile-page .profile-card {
    background: #1f2937;
    color: #e5e7eb;
    border-color: #374151;
    box-shadow: 0 4px 18px rgba(0,0,0,.15);
}

html[data-theme="dark"] .profile-page .profile-card p,
html[data-theme="dark"] .profile-page .vehicle-item p,
html[data-theme="dark"] .profile-page #welcomeMessage {
    color: #a8b8cc;
}

html[data-theme="dark"] .profile-page .form-group label,
html[data-theme="dark"] .profile-page #businessForm > label,
html[data-theme="dark"] .profile-page #businessForm h4 {
    color: #e5e7eb;
}

html[data-theme="dark"] .profile-page input,
html[data-theme="dark"] .profile-page select,
html[data-theme="dark"] .profile-page textarea {
    background: #111827;
    color: #f3f4f6;
    border-color: #4b5563;
}

html[data-theme="dark"] .profile-page input::placeholder,
html[data-theme="dark"] .profile-page textarea::placeholder {
    color: #9ca3af;
}

html[data-theme="dark"] .profile-page input:disabled {
    background: #374151;
    color: #9ca3af;
}

html[data-theme="dark"] .profile-page .vehicle-item {
    background: #263449;
    border-color: #475569;
}

html[data-theme="dark"] .profile-page .edit-button {
    background: #1e3a5f;
    color: #93c5fd;
}

html[data-theme="dark"] .profile-page .delete-button {
    background: #4c252b;
    color: #fca5a5;
}

html[data-theme="dark"] .profile-page .cancel-button {
    background: #374151;
    color: #f3f4f6;
}

html[data-theme="dark"] .profile-page .profile-back-link {
    color: #60a5fa;
}

@media (max-width: 650px) {
    .profile-page {
        padding-left: 15px;
        padding-right: 15px;
    }
}


/* AutoHub - Latest car listings */
.latest-cars-section {
    padding: 75px 0;
    background: var(--bg, #f8fafc);
}

.latest-cars-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.latest-cars-heading h2 {
    font-size: clamp(25px, 3vw, 34px);
    letter-spacing: -1px;
    margin: 9px 0;
    color: var(--text, #142b4a);
}

.latest-cars-heading p {
    color: var(--muted, #64748b);
    font-size: 14px;
}

.latest-cars-all {
    color: var(--primary, #1769e0);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

.latest-cars-all:hover {
    text-decoration: underline;
}

.latest-cars-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.latest-car-card {
    background: #fff;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.latest-car-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(31,54,84,.09);
}

.latest-car-photo {
    height: 205px;
    background: #eaf1fb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.latest-car-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-car-placeholder {
    font-size: 60px;
    opacity: .55;
}

.latest-car-content {
    padding: 19px;
}

.latest-car-content h3 {
    font-size: 17px;
    margin-bottom: 10px;
    color: #142b4a;
}

.latest-car-price {
    font-size: 23px;
    font-weight: 800;
    color: var(--primary, #1769e0);
    margin-bottom: 13px;
}

.latest-car-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 13px;
}

.latest-car-specs span {
    background: #f2f6fc;
    color: #536176;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 11px;
}

.latest-car-city {
    font-size: 12px;
    color: #64748b;
}

.latest-cars-message {
    grid-column: 1 / -1;
    padding: 30px;
    text-align: center;
    color: #64748b;
    background: #fff;
    border-radius: 12px;
}

@media(max-width: 900px) {
    .latest-cars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media(max-width: 600px) {
    .latest-cars-section {
        padding: 45px 0;
    }

    .latest-cars-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .latest-cars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .latest-car-photo {
        height: 135px;
    }

    .latest-car-content {
        padding: 12px;
    }

    .latest-car-content h3 {
        font-size: 14px;
    }

    .latest-car-price {
        font-size: 17px;
    }

    .latest-car-specs {
        gap: 5px;
    }

    .latest-car-specs span {
        font-size: 10px;
        padding: 5px 6px;
    }
}


/* AutoHub - Compact latest car cards */

/* Tünd fonda oxunaqlı başlıq */
.latest-cars-section {
    background: #0f172a;
    padding: 55px 0 65px;
}

.latest-cars-heading h2 {
    color: #f8fafc;
    font-size: clamp(25px, 3vw, 32px);
    letter-spacing: -0.5px;
}

.latest-cars-heading p {
    color: #cbd5e1;
}

.latest-cars-all {
    color: #93c5fd;
}

/* Kompakt kartlar */
.latest-cars-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.latest-car-card {
    min-width: 0;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.latest-car-photo {
    height: 155px;
}

.latest-car-content {
    padding: 13px;
}

.latest-car-content h3 {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 7px;
}

.latest-car-price {
    font-size: 19px;
    margin-bottom: 10px;
}

.latest-car-specs {
    gap: 5px;
    margin-bottom: 10px;
}

.latest-car-specs span {
    font-size: 10px;
    padding: 5px 6px;
}

.latest-car-city {
    font-size: 11px;
}

.latest-car-card:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .latest-cars-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 750px) {
    .latest-cars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .latest-car-photo {
        height: 125px;
    }
}

@media (max-width: 400px) {
    .latest-car-photo {
        height: 105px;
    }

    .latest-car-content {
        padding: 10px;
    }

    .latest-car-price {
        font-size: 16px;
    }
}


/* AutoHub Business Partnership Section v2 */

.business-section {
    padding: 75px 0;
}

.business-v2 {
    background: linear-gradient(135deg, #101e35 0%, #172f52 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 48px;
    overflow: hidden;
}

.business-v2-top {
    display: grid;
    grid-template-columns: 1.5fr .7fr;
    gap: 35px;
    align-items: center;
}

.business-v2-label {
    color: #93c5fd;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.business-v2-intro h2 {
    color: #ffffff;
    font-size: clamp(27px, 3.5vw, 42px);
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 16px 0;
    max-width: 680px;
}

.business-v2-intro h2 span {
    color: #93c5fd;
}

.business-v2-intro p {
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.9;
    max-width: 630px;
}

.business-v2-visual {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.business-v2-logo {
    width: 145px;
    height: 145px;
    display: grid;
    place-items: center;
    border-radius: 32px;
    background: #1769e0;
    color: white;
    font-size: 49px;
    font-weight: 800;
    box-shadow: 0 0 0 16px rgba(96,165,250,.09),
                0 0 0 35px rgba(96,165,250,.04);
}

.business-v2-logo span {
    color: #93c5fd;
}

.business-v2-visual-text {
    text-align: center;
    color: #cbd5e1;
    font-size: 13px;
}

.business-v2-visual-text strong {
    display: block;
    color: #ffffff;
    font-size: 18px;
    margin-top: 4px;
}

.business-v2-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-top: 38px;
}

.business-v2-feature {
    background: rgba(255,255,255,.065);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 15px;
    padding: 23px;
}

.business-v2-icon {
    width: 47px;
    height: 47px;
    display: grid;
    place-items: center;
    background: rgba(96,165,250,.13);
    border-radius: 12px;
    font-size: 23px;
    margin-bottom: 16px;
}

.business-v2-feature h3 {
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 9px;
}

.business-v2-feature p {
    color: #cbd5e1;
    font-size: 12px;
    line-height: 1.7;
}

.business-v2-bottom {
    margin-top: 30px;
    padding-top: 27px;
    border-top: 1px solid rgba(255,255,255,.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.business-v2-bottom strong {
    color: #ffffff;
    font-size: 17px;
}

.business-v2-bottom p {
    color: #94a3b8;
    font-size: 12px;
    margin-top: 7px;
}

.business-v2-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: #1769e0;
    color: #ffffff;
    border-radius: 10px;
    padding: 15px 23px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .2s, transform .2s;
}

.business-v2-button:hover {
    background: #3283f3;
    transform: translateY(-2px);
}

.business-v2-button:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}

@media(max-width: 850px) {
    .business-v2 {
        padding: 32px;
    }

    .business-v2-top {
        grid-template-columns: 1fr;
    }

    .business-v2-visual {
        display: none;
    }
}

@media(max-width: 650px) {
    .business-section {
        padding: 45px 0;
    }

    .business-v2 {
        padding: 25px 19px;
        border-radius: 18px;
    }

    .business-v2-features {
        grid-template-columns: 1fr;
        gap: 11px;
        margin-top: 25px;
    }

    .business-v2-feature {
        padding: 18px;
    }

    .business-v2-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .business-v2-button {
        width: 100%;
    }
}

/* Business section without decorative AH logo */
.business-v2-top {
    display: block;
}

.business-v2-intro {
    max-width: 850px;
}

.business-v2-intro h2 {
    max-width: 800px;
}

.business-v2-intro p {
    max-width: 750px;
}


/* AUTOHUB COMPACT BRAND DROPDOWN V1 */
#carFilters .ah-brand-dropdown {
    position: relative;
    flex: 1;
    width: 50%;
    min-width: 0;
}
#carFilters .ah-native-select {
    display: none;
}
#carFilters .ah-brand-trigger {
    width: 100%;
    height: 47px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fbfcfe;
    color: var(--dark);
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}
#carFilters .ah-brand-trigger:focus {
    outline: none;
    border-color: var(--primary);
}
#carFilters .ah-brand-trigger span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#carFilters .ah-brand-arrow {
    font-size: 19px;
    color: var(--muted);
}
#carFilters .ah-brand-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0,0,0,.13);
}
#carFilters .ah-brand-menu[hidden] {
    display: none;
}
#carFilters #brandSearch {
    display: block;
    width: 100%;
    height: 35px;
    padding: 0 9px;
    margin-bottom: 5px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #fbfcfe;
    font-size: 12px;
}
#carFilters .ah-brand-options {
    max-height: 200px;
    overflow-y: auto;
}
#carFilters .ah-brand-option {
    display: block;
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--dark);
    text-align: left;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}
#carFilters .ah-brand-option:hover,
#carFilters .ah-brand-option:focus {
    background: rgba(59,130,246,.10);
}
html[data-theme="dark"] #carFilters .ah-brand-trigger,
html[data-theme="dark"] #carFilters .ah-brand-menu,
html[data-theme="dark"] #carFilters #brandSearch {
    background: #111827;
    color: var(--dark);
    border-color: var(--border);
}
@media (max-width: 768px) {
    #carFilters .ah-brand-dropdown {
        width: 100%;
        flex: auto;
    }
}


/* AUTOHUB HOME COMPACT CARS V1 */

.latest-cars-section {
    padding: 38px 0 45px;
}

.latest-cars-heading {
    margin-bottom: 20px;
}

.latest-cars-heading h2 {
    font-size: clamp(23px, 2.5vw, 29px);
}

.latest-cars-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 13px;
}

.latest-car-card {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    transition: border-color .2s, transform .2s;
}

.latest-car-card:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: none;
}

.latest-car-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #edf2f7;
}

.latest-car-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-car-placeholder {
    font-size: 38px;
}

.latest-car-content {
    padding: 10px 11px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.latest-car-price {
    order: -1;
    font-size: 17px;
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
    color: var(--dark);
}

.latest-car-content h3 {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    color: var(--dark);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.latest-car-specs {
    gap: 4px 7px;
    margin: 2px 0 0;
}

.latest-car-specs span {
    padding: 0;
    background: transparent;
    border-radius: 0;
    font-size: 10px;
    color: var(--muted);
}

.latest-car-specs span:nth-child(n+3) {
    display: none;
}

.latest-car-city {
    font-size: 10px;
    margin: 0;
    color: var(--muted);
}

html[data-theme="dark"] .latest-car-card {
    background: #1f2937;
    border-color: var(--border);
}

html[data-theme="dark"] .latest-car-photo {
    background: #111827;
}

@media (max-width: 1200px) {
    .latest-cars-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .latest-cars-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .latest-cars-section {
        padding: 28px 0 35px;
    }

    .latest-cars-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .latest-car-content {
        padding: 9px;
    }

    .latest-car-price {
        font-size: 15px;
    }

    .latest-car-content h3 {
        font-size: 11px;
    }

    .latest-cars-heading {
        gap: 10px;
    }
}


/* AUTOHUB HOME PARTS V1 */
.latest-parts-section {
    padding-top: 15px;
}

.latest-part-card {
    display: block;
    color: inherit;
    text-decoration: none;
}

.latest-part-card:hover {
    text-decoration: none;
}

.latest-part-card .latest-car-price {
    order: 0;
}

.latest-part-card:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}


/* AUTOHUB LATEST NEWS HOME CSS V1 */
.latest-news-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.latest-news-card .latest-car-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px;
}

.latest-news-date {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
}

.latest-news-card h3 {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.latest-news-summary {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.latest-news-more {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    margin-top: auto;
}

.latest-news-card:hover .latest-news-more {
    text-decoration: underline;
}

html[data-theme="dark"] .latest-news-card {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
}

html[data-theme="dark"] .latest-news-card h3 {
    color: #e5e7eb;
}

html[data-theme="dark"] .latest-news-card .latest-car-photo {
    background: #263449;
}

@media (max-width: 600px) {
    .latest-news-card .latest-car-content {
        padding: 18px;
    }
}


/* AUTOHUB_HOME_LAYOUT_REFINEMENT_V1 */

/* Ana səhifə kateqoriyaları */
main > #services.section {
    padding: 40px 0 35px;
}

main > #services .category-grid {
    gap: 16px;
}

main > #services .category-card {
    min-height: 165px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 15px;
}

main > #services .category-icon {
    margin-bottom: 14px;
}

main > #services .category-card h3 {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 5px;
}

main > #services .category-card p {
    font-size: 12px;
    line-height: 1.5;
}

/* Elan və xəbər bölmələri */
main > .latest-cars-section {
    padding: 52px 0;
}

main > .latest-parts-section,
main > .latest-news-section {
    padding-top: 38px;
}

main > .latest-cars-section .latest-cars-heading {
    margin-bottom: 24px;
}

main > .latest-cars-section .latest-cars-heading h2 {
    font-size: clamp(25px, 2.8vw, 31px);
}

/* Biznes bölməsi */
main > #business.business-section {
    padding: 55px 0 70px;
}

/* Mobil uyğunluq */
@media (max-width: 650px) {
    main > #services.section {
        padding: 25px 0;
    }

    main > #services .category-grid {
        gap: 11px;
    }

    main > #services .category-card {
        min-height: 155px;
        padding: 15px;
    }

    main > #services .category-card h3 {
        font-size: 14px;
    }

    main > .latest-cars-section {
        padding: 36px 0;
    }

    main > .latest-parts-section,
    main > .latest-news-section {
        padding-top: 25px;
    }

    main > #business.business-section {
        padding: 40px 0 50px;
    }
}


/* AUTOHUB_HOME_PREMIUM_CARDS_V1 */

main > #services .category-grid {
    gap: 18px;
}

main > #services .category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 185px;
    padding: 25px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .035);
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

main > #services .category-card:hover {
    transform: translateY(-5px);
    border-color: #b6ccef;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .10);
}

main > #services .category-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    background: #edf4ff;
    display: grid;
    place-items: center;
    font-size: 25px;
    margin-bottom: 19px;
}

main > #services .category-card h3 {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.3px;
    line-height: 1.35;
    margin-bottom: 6px;
}

main > #services .category-card p {
    font-size: 12px;
    line-height: 1.6;
    color: #64748b;
    padding-right: 22px;
}

main > #services .category-arrow {
    position: absolute;
    right: 21px;
    top: 24px;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #475569;
    display: grid;
    place-items: center;
    font-size: 17px;
    transition: background .2s ease, color .2s ease;
}

main > #services .category-card:hover .category-arrow {
    background: #1769e0;
    color: #ffffff;
}

/* Dark Mode */
html[data-theme="dark"] main > #services .category-card {
    background: #1f2937;
    border-color: #334155;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .12);
}

html[data-theme="dark"] main > #services .category-card:hover {
    border-color: #527db8;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
}

html[data-theme="dark"] main > #services .category-card p {
    color: #aab8ca;
}

html[data-theme="dark"] main > #services .category-arrow {
    background: #334155;
    color: #cbd5e1;
}

/* Mobil görünüş */
@media (max-width: 650px) {
    main > #services .category-grid {
        gap: 12px;
    }

    main > #services .category-card {
        min-height: 170px;
        padding: 17px;
        border-radius: 15px;
    }

    main > #services .category-icon {
        width: 45px;
        height: 45px;
        font-size: 22px;
        margin-bottom: 15px;
    }

    main > #services .category-card h3 {
        font-size: 14px;
    }

    main > #services .category-card p {
        font-size: 11px;
        padding-right: 0;
    }

    main > #services .category-arrow {
        top: 15px;
        right: 14px;
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    main > #services .category-card,
    main > #services .category-arrow {
        transition: none;
    }
}


/* AUTOHUB_HOME_CONTINUOUS_SECTIONS_V1 */

/* Ehtiyat hissələri və xəbərlər — vahid fon */
body:has(#homeHero) #latestPartsSection,
body:has(#homeHero) #latestNewsSection {
    background: #111827;
    color: #ffffff;
}

/* Bölmələr arasında ağ zolaq olmamalıdır */
body:has(#homeHero) #latestPartsSection {
    padding-bottom: 35px;
}

body:has(#homeHero) #latestNewsSection {
    width: 100%;
    margin: 0;
    padding: 35px 0 75px;
    border-radius: 0;
}

/* Başlıqlar */
body:has(#homeHero) #latestPartsSection .latest-cars-heading h2,
body:has(#homeHero) #latestNewsSection .latest-cars-heading h2 {
    color: #ffffff;
}

body:has(#homeHero) #latestPartsSection .latest-cars-heading p,
body:has(#homeHero) #latestNewsSection .latest-cars-heading p {
    color: #cbd5e1;
}

body:has(#homeHero) #latestPartsSection .eyebrow,
body:has(#homeHero) #latestNewsSection .eyebrow,
body:has(#homeHero) #latestPartsSection .latest-cars-all,
body:has(#homeHero) #latestNewsSection .latest-cars-all {
    color: #93c5fd;
}

/* Kartlar */
body:has(#homeHero) #latestPartsSection .latest-car-card,
body:has(#homeHero) #latestNewsSection .latest-news-card {
    border-radius: 17px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

/* Mobil */
@media (max-width: 650px) {
    body:has(#homeHero) #latestPartsSection {
        padding-bottom: 25px;
    }

    body:has(#homeHero) #latestNewsSection {
        padding: 25px 0 45px;
    }
}
