/* ============================================
   Zackconnect - Vehicle Dealership Styles
   ============================================ */

/* CSS Variables for consistent theming */
:root {
    --primary-color: #E31837;
    --primary-dark: #b9122a;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f5f5;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --error-color: #dc3545;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Promo Banner */
.promo-banner {
    background-color: var(--bg-light);
    padding: 40px 0;
    text-align: center;
}

.promo-banner h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.promo-banner p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Why Choose Section */
.why-choose {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.feature-card-link {
    color: inherit;
    text-decoration: none;
}

.feature-card-link:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
}

.home-feature-icon {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 8px;
    background: rgba(227, 24, 55, 0.1);
    color: var(--primary-color);
}

.home-vehicle-feature-icon {
    position: relative;
    display: block;
}

.home-vehicle-feature-icon .fa-image {
    position: absolute;
    top: 7px;
    left: 5px;
    font-size: 32px;
}

.home-vehicle-feature-icon .fa-circle-arrow-down {
    position: absolute;
    right: 0;
    bottom: 2px;
    border-radius: 50%;
    background: #fff;
    font-size: 20px;
}

.home-import-assistance-icon .fa-file-heart {
    position: relative;
    font-size: 27px;
}

.home-import-assistance-icon .fa-file-heart::before {
    content: "\f15c";
    font-family: "Font Awesome 6 Free";
    font-weight: 400;
}

.home-import-assistance-icon .fa-file-heart::after {
    position: absolute;
    top: 2px;
    right: -7px;
    padding: 2px;
    border-radius: 50%;
    background: #fff;
    color: var(--primary-color);
    content: "\f004";
    font-family: "Font Awesome 6 Free";
    font-size: 12px;
    font-weight: 900;
}

.home-quotation-icon .fa-circle-plus {
    font-size: 27px;
}

.home-quotation-icon .fa-circle-plus::before {
    content: "\f055";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.home-customer-service-icon .fa-message-question {
    position: relative;
    font-size: 27px;
}

.home-customer-service-icon .fa-message-question::before {
    content: "\f27a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

.home-customer-service-icon .fa-message-question::after {
    position: absolute;
    top: -5px;
    right: -7px;
    color: var(--primary-color);
    content: "\f128";
    font-family: "Font Awesome 6 Free";
    font-size: 13px;
    font-weight: 900;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.feature-card h3 {
    margin: 15px 0 10px;
    color: var(--primary-color);
}

.feature-card p {
    color: var(--text-light);
}

/* How It Works Section */
.how-it-works {
    padding: 72px 0;
    background: linear-gradient(180deg, #fff 0%, #fff7f8 100%);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    margin-top: 44px;
}

.step-card {
    position: relative;
    min-width: 0;
    min-height: 250px;
    padding: 28px 20px 24px;
    overflow: hidden;
    border: 1px solid #f1dfe3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(37, 25, 27, 0.06);
    text-align: center;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.step-card::before {
    position: absolute;
    top: 0;
    right: 18px;
    left: 18px;
    height: 4px;
    border-radius: 0 0 4px 4px;
    background: var(--primary-color);
    content: "";
    opacity: 0.72;
    transition: right 0.22s ease, left 0.22s ease, opacity 0.22s ease;
}

.step-card:hover {
    transform: translateY(-7px);
    border-color: #efb8c3;
    box-shadow: 0 16px 32px rgba(227, 24, 55, 0.13);
}

.step-card:hover::before {
    right: 0;
    left: 0;
    opacity: 1;
}

.step-number {
    width: 58px;
    height: 58px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0 auto 20px;
    box-shadow: 0 7px 16px rgba(227, 24, 55, 0.2);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.step-card:hover .step-number {
    transform: scale(1.08);
    box-shadow: 0 10px 22px rgba(227, 24, 55, 0.28);
}

.step-card h3 {
    min-height: 48px;
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-size: 17px;
    line-height: 1.4;
}

.step-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.7;
}

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

@media (max-width: 700px) {
    .how-it-works {
        padding: 56px 0;
    }

    .steps-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin-top: 32px;
    }

    .step-card {
        min-height: 230px;
        padding: 24px 16px 20px;
    }
}

@media (max-width: 420px) {
    .steps-container {
        grid-template-columns: 1fr;
    }

    .step-card {
        min-height: 0;
        padding: 24px 20px;
    }

    .step-card h3 {
        min-height: 0;
    }
}

/* Availability Badges */
.availability-badge-card {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.availability-badge-card.available {
    background-color: var(--success-color);
    color: white;
}

.availability-badge-card.sold {
    background-color: var(--error-color);
    color: white;
}

.availability-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

.availability-badge.available {
    background-color: var(--success-color);
    color: white;
}

.availability-badge.sold {
    background-color: var(--error-color);
    color: white;
}

/* Vehicle Details Page */
.vehicle-details-page {
    padding: 40px 0;
}

.vehicle-details-header {
    margin-bottom: 30px;
}

.vehicle-details-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.vehicle-details-header .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
}

.vehicle-gallery {
    margin-bottom: 40px;
}

.gallery-main {
    margin-bottom: 15px;
}

.gallery-main img {
    width: 100%;
    border-radius: var(--radius-lg);
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
}

.gallery-thumbnail {
    cursor: pointer;
    border-radius: var(--radius);
    overflow: hidden;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    opacity: 1;
}

.gallery-thumbnail img {
    width: 80px;
    height: 60px;
    object-fit: cover;
}

.vehicle-specs {
    margin-bottom: 30px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.spec-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.dealership-info {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

.contact-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.contact-actions a {
    flex: 1;
    min-width: 150px;
}

/* WhatsApp CTA */
.whatsapp-cta {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.whatsapp-content h2 {
    margin-bottom: 10px;
}

.whatsapp-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.btn-whatsapp {
    background-color: white;
    color: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    background-color: #f0f0f0;
    color: #25D366;
}

/* Demo Notes */
.demo-note {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-top: 15px;
}

/* About Page */
.about-section {
    padding: 60px 0;
}

.about-intro {
    position: relative;
    max-width: 1040px;
    margin: 0 auto 48px;
    padding: 42px 56px;
    overflow: hidden;
    border: 1px solid rgba(227, 24, 55, 0.09);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff8f9 0%, #fff 54%, #fff3f5 100%);
    box-shadow: 0 16px 42px rgba(26, 26, 26, 0.06);
    text-align: center;
    isolation: isolate;
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.about-intro::before {
    position: absolute;
    z-index: -1;
    top: -115px;
    right: -62px;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(227, 24, 55, 0.12);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 24, 55, 0.09), rgba(227, 24, 55, 0) 70%);
    content: "";
}

.about-intro:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(26, 26, 26, 0.09), 0 8px 22px rgba(227, 24, 55, 0.05);
}

.about-intro h2 {
    position: relative;
    display: inline-block;
    margin: 0 0 22px;
    color: var(--secondary-color);
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 750;
    letter-spacing: -0.04em;
}

.about-intro h2::after {
    position: absolute;
    right: 50%;
    bottom: -10px;
    width: 48px;
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), rgba(227, 24, 55, 0.28));
    content: "";
    transform: translateX(50%);
    transition: width 240ms ease;
}

.about-intro:hover h2::after {
    width: 76px;
}

.about-intro p {
    position: relative;
    max-width: 76ch;
    margin: 0 auto;
    color: var(--text-light);
    font-size: 17px;
    line-height: 1.8;
}

.about-intro p + p {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
    color: var(--text-color);
}

@media (max-width: 600px) {
    .about-intro {
        margin-bottom: 36px;
        padding: 30px 22px;
        border-radius: 18px;
        text-align: left;
    }

    .about-intro h2 {
        margin-bottom: 20px;
    }

    .about-intro h2::after {
        right: auto;
        left: 0;
        transform: none;
    }

    .about-intro p {
        font-size: 15px;
        line-height: 1.75;
    }
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.about-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius-lg);
}

.about-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.about-services {
    margin-top: 48px;
}

.about-services > h2 {
    margin-bottom: 24px;
    font-size: clamp(26px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.service-card {
    position: relative;
    overflow: hidden;
    background: white;
    padding: 32px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
    margin-bottom: 22px;
    isolation: isolate;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.about-services .service-card::before {
    position: absolute;
    z-index: -1;
    top: -85px;
    right: -70px;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(227, 24, 55, 0.12);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 24, 55, 0.08), rgba(227, 24, 55, 0) 70%);
    content: "";
    transition: transform 300ms ease;
}

.about-services .service-card::after {
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 20px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), rgba(227, 24, 55, 0.24));
    content: "";
    transition: width 240ms ease;
}

.about-services .service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(227, 24, 55, 0.2);
    box-shadow: 0 20px 42px rgba(26, 26, 26, 0.11), 0 8px 20px rgba(227, 24, 55, 0.07);
}

.about-services .service-card:hover::before {
    transform: scale(1.15);
}

.about-services .service-card:hover::after {
    width: 72px;
}

.service-icon {
    display: grid;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    place-items: center;
    border: 1px solid rgba(227, 24, 55, 0.1);
    border-radius: 18px;
    background: linear-gradient(145deg, #fff0f2, #fff);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.service-icon svg {
    width: 48px;
    height: 48px;
}

.about-services .service-card:hover .service-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 8px 18px rgba(227, 24, 55, 0.1);
}

.about-services .service-card h3 {
    position: relative;
    margin: 0 0 10px;
    color: var(--secondary-color);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.about-services .service-card p {
    position: relative;
    max-width: 90ch;
    margin: 0;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.75;
}

/* Tricycle Categories Tabs */
.tricycle-categories {
    margin-bottom: 30px;
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    background: white;
    cursor: pointer;
    transition: var(--transition);
}

.category-tab:hover,
.category-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Search Section */
.search-section {
    margin-bottom: 30px;
}

.search-section .search-input {
    width: 100%;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
}

.search-section .search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-text {
    background-color: transparent;
    color: var(--text-color);
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.055);
    backdrop-filter: blur(14px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 28px;
    padding: 12px 0;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: clamp(18px, 2.6vw, 38px);
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 6px 0;
    color: #3b3b3b;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.015em;
    white-space: nowrap;
    transition: color 180ms ease;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 2px;
    left: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--primary-color);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 200ms ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-link:focus-visible,
.mobile-nav-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 5px;
    border-radius: 3px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.location-selector select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    border: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 12px;
    background: #fff;
    transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hamburger:hover,
.hamburger.active {
    border-color: rgba(227, 24, 55, 0.24);
    background: #fff6f7;
    box-shadow: 0 4px 12px rgba(227, 24, 55, 0.08);
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 82px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    border-radius: 0 0 20px 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 36px rgba(26, 26, 26, 0.13);
    backdrop-filter: blur(16px);
}

.mobile-menu.active {
    display: block;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-nav-link {
    display: block;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #3b3b3b;
    font-size: 16px;
    font-weight: 600;
    transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
    transform: translateX(3px);
    border-color: rgba(227, 24, 55, 0.1);
    background: #fff4f5;
    color: var(--primary-color);
}

.mobile-logout-item {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.mobile-logout-btn {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #171717;
    border-radius: 11px;
    background: #171717;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.mobile-logout-btn:hover,
.mobile-logout-btn:focus-visible {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    background: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1920&h=1080&fit=crop') center/cover no-repeat;
    color: white;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
}

/* Search Bar */
.search-bar {
    background-color: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.search-inputs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.search-input,
.search-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn {
    width: 100%;
}

/* Section Styles */
section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 48px;
}

/* Categories Section */
.categories {
    background-color: var(--bg-light);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.category-card {
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.category-image {
    height: 200px;
    overflow: hidden;
    background: var(--bg-light);
}

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

.category-content {
    padding: 24px;
}

.category-content h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.category-content p {
    color: var(--text-light);
    margin-bottom: 16px;
    font-size: 14px;
}

/* Listings Section */
.listings {
    background-color: white;
}

/* Filters */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.filter-group select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
}

/* Sorting */
.sorting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.sorting label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
}

.sorting select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    cursor: pointer;
}

.listing-count {
    font-size: 14px;
    color: var(--text-light);
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 32px;
}

/* Vehicle Card */
.vehicle-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.vehicle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.vehicle-image {
    position: relative;
    height: 200px;
    flex: 0 0 200px;
    overflow: hidden;
    background: var(--bg-light);
}

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

.vehicle-image-nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.vehicle-image-nav:hover,
.vehicle-image-nav:focus-visible {
    background: var(--primary-color);
}

.vehicle-image-nav:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.vehicle-image-previous {
    left: 10px;
}

.vehicle-image-next {
    right: 10px;
}

.vehicle-image-count {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 5;
    padding: 3px 8px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.62);
    color: #fff;
    font-size: 12px;
}

.vehicle-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: var(--radius);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-new {
    background-color: var(--success-color);
    color: white;
}

.badge-used {
    background-color: var(--primary-color);
    color: white;
}

.badge-featured {
    background-color: #FFD700;
    color: var(--secondary-color);
}

.favourite-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background-color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.favourite-btn:hover {
    transform: scale(1.1);
}

.favourite-btn.active svg {
    fill: var(--primary-color);
    stroke: var(--primary-color);
}

.favourite-btn svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-light);
    fill: none;
    transition: var(--transition);
}

.vehicle-details {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 20px;
}

.vehicle-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
    min-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.vehicle-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.vehicle-price-note {
    margin: 0 0 3px;
    color: var(--text-light);
    font-size: 12px;
}

.vehicle-info {
    display: flex;
    min-height: 38px;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 13px;
    color: var(--text-light);
}

.vehicle-info-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vehicle-info-item svg {
    width: 16px;
    height: 16px;
}

.vehicle-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
}

.vehicle-location {
    color: var(--text-light);
}

.vehicle-seller {
    font-weight: 500;
    color: var(--text-color);
}

.vehicle-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 16px;
}

.vehicle-actions .btn {
    flex: 1;
    font-size: 13px;
    padding: 10px 16px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state svg {
    margin: 0 auto 24px;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.empty-state p {
    color: var(--text-light);
    margin-bottom: 24px;
}

.view-all-container {
    text-align: center;
    margin-top: 32px;
}

/* Bajaj Section */
.bajaj-section {
    background-color: var(--bg-light);
}

.bajaj-filters {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
    justify-content: center;
}

/* Import Section */
.import-section {
    padding: 56px 0 76px;
    background:
        radial-gradient(ellipse at 10% 0%, rgba(227, 24, 55, 0.055), transparent 34%),
        linear-gradient(180deg, #fff 0%, #fffafb 100%);
}

.import-content {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
}

.import-info {
    min-width: 0;
}

.import-eyebrow,
.import-form-eyebrow {
    margin: 0 0 10px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.import-info > .section-title {
    margin: 0 0 32px;
    color: var(--secondary-color);
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-align: left;
}

.import-steps,
.cost-breakdown,
.import-countries {
    margin: 0 0 24px;
    padding: 26px;
    border: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(26, 26, 26, 0.045);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.import-steps:hover,
.cost-breakdown:hover,
.import-countries:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 24, 55, 0.17);
    box-shadow: 0 16px 34px rgba(26, 26, 26, 0.08);
}

.import-steps h3,
.cost-breakdown h3,
.import-countries h3 {
    margin: 0 0 18px;
    color: var(--secondary-color);
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.import-steps ol {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: import-step;
}

.import-steps li {
    position: relative;
    min-height: 40px;
    margin: 0;
    padding: 7px 0 7px 52px;
    color: var(--text-color);
    line-height: 1.55;
    counter-increment: import-step;
}

.import-steps li::before {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(227, 24, 55, 0.12);
    border-radius: 12px;
    background: #fff1f3;
    color: var(--primary-color);
    content: counter(import-step, decimal-leading-zero);
    font-size: 12px;
    font-weight: 800;
}

.cost-breakdown > p:not(.note) {
    margin: -6px 0 14px;
    color: var(--text-light);
}

.cost-breakdown ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cost-breakdown li {
    position: relative;
    margin: 0;
    padding-left: 22px;
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

.cost-breakdown li::before {
    position: absolute;
    top: 0;
    left: 0;
    color: var(--primary-color);
    content: "\2713";
    font-weight: 800;
}

.cost-breakdown .note {
    margin: 20px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(227, 24, 55, 0.1);
    border-radius: 12px;
    background: #fff6f7;
    color: #65565a;
    font-size: 13px;
    line-height: 1.65;
}

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

.country-card {
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #fff7f8);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.country-card:hover {
    transform: translateY(-3px);
    border-color: rgba(227, 24, 55, 0.22);
    box-shadow: 0 8px 20px rgba(227, 24, 55, 0.08);
}

.country-card h4 {
    margin: 0 0 6px;
    color: var(--secondary-color);
    font-size: 15px;
}

.country-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.5;
}

/* Forms */
.import-form-container,
.sell-form-container,
.auth-container {
    max-width: 600px;
    margin: 0 auto;
}

.import-form-container {
    position: sticky;
    top: 108px;
    max-width: none;
}

.import-form {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(26, 26, 26, 0.09);
}

.import-form > h3 {
    margin: 0 0 8px;
    color: var(--secondary-color);
    font-size: clamp(23px, 2.4vw, 29px);
    font-weight: 750;
    letter-spacing: -0.035em;
}

.import-form-description {
    margin: 0 0 24px;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.import-form .form-group {
    margin-bottom: 17px;
}

.import-form .form-group label {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 650;
}

.import-form .form-group input,
.import-form .form-group select,
.import-form .form-group textarea {
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 11px;
    background-color: #fff;
    font-size: 14px;
}

.import-form .form-group textarea {
    min-height: 96px;
}

.import-form .btn-full {
    min-height: 50px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(227, 24, 55, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.import-form .btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(227, 24, 55, 0.24);
}

.import-form .form-note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    background: #f8f9fa;
    font-size: 12px;
    line-height: 1.55;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
}

.form-group textarea {
    resize: vertical;
}

.help-text {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 4px;
}

.form-note {
    font-size: 12px;
    color: var(--text-light);
    text-align: center;
    margin-top: 16px;
    padding: 12px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.selected-import-vehicle {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius);
    background: #fff3f5;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
}

.selected-import-vehicle[hidden] {
    display: none;
}

.note {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 16px;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 48px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-light);
}

.toggle-password:hover {
    color: var(--primary-color);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
}

.forgot-link {
    color: var(--primary-color);
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Image Preview */
.image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.preview-image {
    position: relative;
    aspect-ratio: 4:3;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

/* Ad Preview */
.ad-preview {
    background-color: var(--bg-light);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin-top: 24px;
}

.preview-card {
    background-color: white;
    padding: 24px;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* Auth Section */
.auth-section {
    background-color: var(--bg-light);
}

.auth-container {
    background-color: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-tabs {
    display: flex;
    margin-bottom: 32px;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h3 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--secondary-color);
}

.auth-note {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--text-light);
}

/* Favourites Section */
.favourites-section {
    background-color: var(--bg-light);
}

/* About Section */
.about-section {
    background-color: white;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 48px;
    font-size: 18px;
    color: var(--text-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    align-items: stretch;
    gap: 24px;
}

.about-card {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
}

.about-grid .about-principle-card {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    padding: 32px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    background: linear-gradient(145deg, #fff 0%, #fff 58%, #fff5f6 100%);
    box-shadow: 0 10px 30px rgba(26, 26, 26, 0.06);
    isolation: isolate;
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.about-grid .about-principle-card::before {
    position: absolute;
    z-index: -1;
    top: -75px;
    right: -65px;
    width: 190px;
    height: 190px;
    border: 1px solid rgba(227, 24, 55, 0.12);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(227, 24, 55, 0.08), rgba(227, 24, 55, 0) 70%);
    content: "";
    transition: transform 300ms ease, opacity 300ms ease;
}

.about-grid .about-principle-card::after {
    display: block;
    width: 42px;
    height: 4px;
    margin-top: 22px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary-color), rgba(227, 24, 55, 0.24));
    content: "";
    transition: width 240ms ease;
}

.about-grid .about-principle-card:hover {
    transform: translateY(-8px);
    border-color: rgba(227, 24, 55, 0.22);
    box-shadow: 0 20px 44px rgba(26, 26, 26, 0.12), 0 8px 20px rgba(227, 24, 55, 0.08);
}

.about-grid .about-principle-card:hover::before {
    transform: scale(1.18);
}

.about-grid .about-principle-card:hover::after {
    width: 72px;
}

.about-grid .about-principle-card h3 {
    position: relative;
    margin: 12px 0 16px;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--secondary-color);
}

.about-grid .about-principle-card p {
    position: relative;
    max-width: 42ch;
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
}

.about-grid .about-values-card ul {
    position: relative;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-grid .about-values-card li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

.about-grid .about-values-card li::before {
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--primary-color);
    content: "";
    box-shadow: 0 0 0 4px rgba(227, 24, 55, 0.1);
}

.about-grid .about-values-card:hover {
    transform: translateY(-5px);
}

.about-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.about-card p {
    color: var(--text-light);
    font-size: 14px;
}

.about-card ul {
    padding-left: 24px;
}

.about-card li {
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
}

/* Safety Section */
.safety-section {
    background-color: var(--bg-light);
}

.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.safety-card {
    background-color: white;
    padding: 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
}

.safety-card svg {
    margin: 0 auto 16px;
}

.safety-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.safety-card p {
    font-size: 14px;
    color: var(--text-light);
}

/* Contact Section */
.contact-section {
    padding: 56px 0 72px;
    background:
        radial-gradient(ellipse at 8% 0%, rgba(227, 24, 55, 0.055), transparent 34%),
        linear-gradient(180deg, #fff 0%, #fffafb 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    align-items: start;
    gap: clamp(28px, 5vw, 64px);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.contact-info > h2 {
    margin: 0 0 2px;
    color: var(--secondary-color);
    font-size: clamp(30px, 3.5vw, 42px);
    font-weight: 750;
    letter-spacing: -0.04em;
}

.contact-info > p {
    margin: 0 0 12px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.7;
}

.contact-item {
    display: flex;
    gap: 15px;
    align-items: center;
    min-height: 78px;
    padding: 14px 16px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 18px rgba(26, 26, 26, 0.035);
    transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.contact-item:hover {
    transform: translateY(-2px);
    border-color: rgba(227, 24, 55, 0.18);
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.075);
}

.contact-item svg {
    flex-shrink: 0;
    display: grid;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 9px;
    border-radius: 12px;
    background: #fff0f2;
}

.contact-item h4 {
    margin: 0 0 3px;
    color: var(--secondary-color);
    font-size: 15px;
    font-weight: 700;
}

.contact-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.55;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    padding: clamp(24px, 3vw, 36px);
    border: 1px solid rgba(26, 26, 26, 0.07);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(26, 26, 26, 0.085);
}

.contact-form h3 {
    margin: 0 0 24px;
    color: var(--secondary-color);
    font-size: clamp(23px, 2.4vw, 29px);
    font-weight: 750;
    letter-spacing: -0.035em;
}

.contact-form .form-group {
    margin-bottom: 17px;
}

.contact-form .form-group label {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 650;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    min-height: 46px;
    padding: 11px 13px;
    border-radius: 11px;
    background: #fff;
    font-size: 14px;
}

.contact-form .form-group textarea {
    min-height: 120px;
}

.contact-form .btn-full {
    min-height: 50px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(227, 24, 55, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.contact-form .btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(227, 24, 55, 0.24);
}

.contact-form .form-note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    background: #f8f9fa;
    font-size: 12px;
    line-height: 1.55;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-lg);
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background-color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background-color: var(--bg-light);
}

/* Vehicle Details */
.vehicle-details {
    padding: 32px;
}

.vehicle-gallery {
    margin-bottom: 32px;
}

.gallery-main {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--bg-light);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.gallery-thumbnail {
    width: 100px;
    height: 75px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    border: 2px solid transparent;
}

.gallery-thumbnail.active {
    border-color: var(--primary-color);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.vehicle-header {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
}

.vehicle-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--secondary-color);
}

.vehicle-header .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: var(--bg-light);
    border-radius: var(--radius);
}

.spec-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.spec-item span {
    font-size: 14px;
    color: var(--text-color);
}

.vehicle-description {
    margin-bottom: 32px;
}

.vehicle-description h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.vehicle-description p {
    color: var(--text-color);
    line-height: 1.8;
}

.seller-info {
    background-color: var(--bg-light);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
}

.seller-info h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

.seller-details {
    margin-bottom: 16px;
}

.seller-details p {
    margin-bottom: 8px;
    color: var(--text-color);
}

.seller-details strong {
    color: var(--secondary-color);
}

.seller-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.safety-tips {
    background-color: #fff3cd;
    padding: 24px;
    border-radius: var(--radius-lg);
    border-left: 4px solid #ffc107;
    margin-bottom: 32px;
}

.safety-tips h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #856404;
}

.safety-tips ul {
    padding-left: 24px;
}

.safety-tips li {
    margin-bottom: 8px;
    color: #856404;
    font-size: 14px;
}

.similar-vehicles {
    margin-top: 32px;
}

.similar-vehicles h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--secondary-color);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: var(--secondary-color);
    color: white;
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    z-index: 3000;
    display: none;
    align-items: center;
    gap: 12px;
    max-width: 400px;
}

.toast.active {
    display: flex;
}

.toast.success {
    background-color: var(--success-color);
}

.toast.error {
    background-color: var(--error-color);
}

.toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 48px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer-brand .logo a {
    color: white;
}

.footer-brand .tagline {
    margin-top: 12px;
    font-size: 14px;
    opacity: 0.8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 32px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-column a {
    font-size: 14px;
    opacity: 0.8;
}

.footer-column a:hover {
    opacity: 1;
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 14px;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .import-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .import-form-container {
        position: static;
        max-width: 720px;
        width: 100%;
        margin: 0 auto;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header-actions #logoutBtn {
        display: none !important;
    }

    .import-section {
        padding: 36px 0 52px;
    }

    .contact-section {
        padding: 36px 0 52px;
    }

    .contact-content {
        gap: 28px;
    }

    .contact-info {
        gap: 12px;
    }

    .contact-info > h2 {
        font-size: clamp(30px, 8vw, 38px);
    }

    .contact-item {
        min-height: 72px;
        padding: 12px 14px;
    }

    .contact-form {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .import-content {
        gap: 28px;
    }

    .import-info > .section-title {
        margin-bottom: 24px;
        font-size: clamp(30px, 8vw, 40px);
    }

    .import-steps,
    .cost-breakdown,
    .import-countries {
        padding: 22px;
    }

    .countries-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
    }
    
    .header-actions .btn-text,
    .header-actions .btn-primary {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .search-inputs {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .filters {
        flex-direction: column;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .filter-group select {
        width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .about-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    section {
        padding: 48px 0;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero h1 {
        font-size: 24px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .search-bar {
        padding: 16px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .vehicle-header h2 {
        font-size: 24px;
    }
    
    .vehicle-header .price {
        font-size: 28px;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .vehicle-details {
        padding: 16px;
    }
}

/* Accessibility */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.auth-page {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at top right, rgba(227, 24, 55, 0.08), transparent 36rem),
        var(--bg-light);
}

.auth-background-video {
    position: fixed;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.signup-page::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: linear-gradient(135deg, rgba(12, 16, 22, 0.48), rgba(12, 16, 22, 0.22));
    content: "";
    pointer-events: none;
}

.auth-header {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(24px, calc((100% - 1120px) / 2));
    background: #fff;
    box-shadow: var(--shadow);
}

.signup-page .auth-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.signup-page .auth-card {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(12, 16, 22, 0.2);
}

.login-page {
    background: var(--secondary-color);
}

.login-page::before,
.login-page::after {
    position: fixed;
    inset: 0;
    content: "";
    pointer-events: none;
}

.login-page::before {
    z-index: -1;
    background: linear-gradient(135deg, rgba(12, 16, 22, 0.48), rgba(12, 16, 22, 0.22));
}

.login-page::after {
    z-index: -2;
    background: url("../assets/login-background.webp") center / cover no-repeat;
    animation: login-background-motion 7s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes login-background-motion {
    from {
        transform: scale(1.04) translate3d(-0.5%, 0.3%, 0);
    }
    to {
        transform: scale(1.13) translate3d(0.8%, -0.5%, 0);
    }
}

.login-page .auth-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
}

.login-page .auth-card {
    border-color: rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 50px rgba(12, 16, 22, 0.2);
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.auth-brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: contain;
}

.auth-header-link,
.auth-switch a {
    color: var(--primary-color);
    font-weight: 700;
}

.auth-header-link:hover,
.auth-switch a:hover {
    text-decoration: underline;
}

.auth-main {
    display: grid;
    min-height: calc(100vh - 76px);
    padding: 48px 20px;
    place-items: center;
}

.auth-card {
    width: min(100%, 480px);
    padding: 36px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(26, 26, 26, 0.09);
}

@media (prefers-reduced-motion: reduce) {
    .auth-background-video {
        display: none;
    }

    .login-page::after {
        animation: none;
        transform: none;
    }

    .about-grid .about-principle-card,
    .about-grid .about-principle-card::before,
    .about-grid .about-principle-card::after,
    .about-intro,
    .about-intro h2::after,
    .contact-item,
    .contact-form .btn-full,
    .import-steps,
    .cost-breakdown,
    .import-countries,
    .country-card,
    .import-form .btn-full,
    .about-services .service-card,
    .about-services .service-card::before,
    .about-services .service-card::after,
    .about-services .service-icon {
        transition: none;
    }

    .nav-link::after,
    .mobile-nav-link,
    .mobile-logout-btn,
    .hamburger {
        transition: none;
    }

    .about-grid .about-principle-card:hover,
    .about-grid .about-values-card:hover,
    .about-intro:hover,
    .contact-item:hover,
    .contact-form .btn-full:hover,
    .about-services .service-card:hover,
    .about-services .service-card:hover .service-icon {
        transform: none;
    }
}

.auth-back-link {
    display: inline-block;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 14px;
}

.auth-back-link:hover {
    color: var(--primary-color);
}

.auth-eyebrow {
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-card h1 {
    margin-bottom: 8px;
    color: var(--secondary-color);
    font-size: 30px;
    line-height: 1.2;
}

.auth-intro {
    margin-bottom: 26px;
    color: var(--text-light);
    font-size: 15px;
}

.auth-screen-form .form-group {
    margin-bottom: 17px;
}

.auth-forgot-password {
    margin: -4px 0 14px;
    text-align: right;
    font-size: 14px;
}

.auth-forgot-password a {
    color: var(--primary-color);
    font-weight: 700;
}

.auth-forgot-password a:hover {
    text-decoration: underline;
}

.auth-screen-form .form-group label {
    color: var(--secondary-color);
}

.auth-screen-form .form-group input {
    min-height: 48px;
    border-color: #d9dee3;
    border-radius: 10px;
}

.auth-screen-form .form-group input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(227, 24, 55, 0.1);
}

.auth-screen-form .btn {
    min-height: 48px;
    margin-top: 4px;
    border-radius: 10px;
}

.auth-message {
    min-height: 20px;
    margin: 0 0 10px;
    color: var(--error-color);
    font-size: 14px;
}

.auth-message.is-success {
    color: #176b3a;
}

.auth-switch {
    margin-top: 22px;
    text-align: center;
    font-size: 14px;
}

.auth-status-note {
    margin-top: 22px;
    padding: 12px;
    border-radius: 8px;
    background: #fff6e8;
    color: #75551f;
    font-size: 12px;
    line-height: 1.5;
}

.admin-page {
    min-height: 100vh;
    background: #f3f5f8;
}

.admin-page [hidden] {
    display: none !important;
}

.admin-header {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 10px max(20px, calc((100% - 1380px) / 2));
    background: #fff;
    box-shadow: var(--shadow);
}

.admin-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: 800;
}

.admin-brand img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.admin-brand small {
    display: inline-block;
    margin-left: 5px;
    color: var(--primary-color);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-store-link {
    color: var(--primary-color);
    font-weight: 700;
}

.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

button.admin-store-link {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
}

.admin-prototype-warning {
    padding: 12px max(20px, calc((100% - 1380px) / 2));
    background: #fff2d9;
    color: #684b0a;
    font-size: 13px;
}

.admin-layout {
    display: grid;
    max-width: 1420px;
    min-height: calc(100vh - 118px);
    grid-template-columns: 230px minmax(0, 1fr);
    margin: 0 auto;
}

.admin-sidebar {
    padding: 30px 16px;
    border-right: 1px solid #e4e8ed;
    background: #fff;
}

.admin-sidebar-label,
.admin-eyebrow {
    margin: 0 0 12px;
    color: #8a949e;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.admin-tab {
    display: block;
    width: 100%;
    margin: 4px 0;
    padding: 11px 13px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #505963;
    cursor: pointer;
    text-align: left;
}

.admin-tab:hover,
.admin-tab.active {
    background: #fff0f2;
    color: var(--primary-color);
    font-weight: 700;
}

.admin-content {
    min-width: 0;
    padding: 34px;
}

.admin-panel {
    display: block;
}

.admin-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.admin-page-heading-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.admin-page-heading h1 {
    margin: 0 0 5px;
    color: var(--secondary-color);
    font-size: 30px;
}

.admin-page-heading p:last-child {
    margin: 0;
    color: var(--text-light);
}

.admin-eyebrow {
    margin-bottom: 5px;
    color: var(--primary-color);
}

.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.admin-stat-card,
.admin-card {
    border: 1px solid #e7eaee;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(27, 38, 49, 0.035);
}

.admin-stat-card {
    display: flex;
    min-height: 108px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
}

.admin-stat-card span {
    color: var(--text-light);
    font-size: 13px;
}

.admin-stat-card strong {
    color: var(--secondary-color);
    font-size: 28px;
}

.admin-card {
    margin-bottom: 20px;
    padding: 22px;
}

.admin-card-heading {
    margin-bottom: 18px;
}

.admin-card-heading h2 {
    margin: 0 0 4px;
    color: var(--secondary-color);
    font-size: 18px;
}

.admin-card-heading p {
    margin: 0;
    color: var(--text-light);
    font-size: 13px;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.admin-form-grid label {
    display: grid;
    gap: 6px;
    color: #3b4249;
    font-size: 13px;
    font-weight: 650;
}

.admin-field-note {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 400;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 1px solid #d9dee4;
    border-radius: 7px;
    background: #fff;
    color: var(--text-color);
}

.admin-form-grid textarea {
    resize: vertical;
}

.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
    border-color: var(--primary-color);
    outline: 2px solid rgba(227, 24, 55, 0.12);
}

.admin-form-wide {
    grid-column: 1 / -1;
}

.admin-form-grid .admin-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    align-self: center;
}

.admin-checkbox input {
    width: 17px;
    min-height: 17px;
    accent-color: var(--primary-color);
}

.admin-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th,
.admin-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf0f3;
    font-size: 13px;
    vertical-align: middle;
}

.admin-table th {
    color: #76818c;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.admin-delete-button {
    padding: 6px 9px;
    border: 1px solid #f0cbd1;
    border-radius: 6px;
    background: #fff7f8;
    color: var(--primary-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.admin-delete-button:hover {
    background: #fde8ec;
}

.admin-record-list {
    display: grid;
    gap: 12px;
}

.admin-record {
    padding: 16px;
    border: 1px solid #e9edf1;
    border-radius: 9px;
    background: #fff;
}

.admin-record-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.admin-record-heading h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 15px;
}

.admin-record time {
    color: #89929c;
    font-size: 11px;
}

.admin-record dl {
    display: grid;
    grid-template-columns: minmax(90px, 150px) minmax(0, 1fr);
    gap: 6px 14px;
    margin: 0 0 14px;
    font-size: 13px;
}

.admin-record dt {
    color: #7b858f;
}

.admin-record dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-record > p {
    margin: 0 0 14px;
    color: var(--text-light);
    white-space: pre-wrap;
}

.admin-category-record {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-category-icon {
    display: block;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: var(--radius);
    background: var(--bg-light);
    object-fit: contain;
}

.admin-home-tile-thumb {
    width: 88px;
    height: 64px;
    object-fit: cover;
}

.admin-category-image-preview {
    display: flex;
    min-height: 150px;
    grid-column: 1 / -1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px dashed #d9dee4;
    border-radius: 10px;
    background: #f8f9fb;
    color: var(--text-light);
    font-size: 13px;
    text-align: center;
}

.admin-vehicle-image-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
    grid-column: 1 / -1;
    padding: 10px;
    overflow: auto;
    border: 1px dashed #d9dee4;
    border-radius: 10px;
    background: #f8f9fb;
}

.admin-vehicle-image-preview img {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-vehicle-image-preview[hidden] {
    display: none;
}

.admin-vehicle-image-placeholder {
    display: grid;
    min-height: 150px;
    grid-column: 1 / -1;
    place-items: center;
    border: 1px dashed #d9dee4;
    border-radius: 10px;
    background: #f8f9fb;
    color: var(--text-light);
    font-size: 13px;
    text-align: center;
}

.admin-vehicle-image-placeholder[hidden] {
    display: none;
}

.admin-category-image-preview img {
    width: 100%;
    height: 190px;
    object-fit: contain;
}

.admin-category-image-preview img[hidden] {
    display: none;
}

.admin-multi-image-preview {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 10px;
}

.admin-multi-image-preview img {
    width: 100%;
    height: 120px;
    border-radius: 6px;
    object-fit: cover;
}

.admin-multi-image-preview[hidden] {
    display: none;
}

.admin-category-info {
    min-width: 0;
    flex: 1;
}

.admin-category-info h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 15px;
}

.admin-category-info p {
    margin: 2px 0 0;
    color: var(--text-light);
    font-size: 12px;
}

.admin-category-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.admin-edit-button {
    padding: 6px 10px;
    border: 1px solid #cddbed;
    border-radius: 6px;
    background: #f6f9fd;
    color: #315a87;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.admin-edit-button:hover {
    background: #eaf1fa;
}

.admin-activity-list {
    display: grid;
}

.admin-activity-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf0f3;
    font-size: 13px;
}

.admin-activity-item:last-child {
    border-bottom: 0;
}

.admin-activity-item strong,
.admin-activity-item span {
    display: block;
}

.admin-activity-item strong {
    color: var(--secondary-color);
}

.admin-activity-item span {
    color: var(--text-light);
}

.admin-activity-item time {
    flex: 0 0 auto;
    color: #89929c;
    font-size: 11px;
}

.admin-message {
    min-height: 0;
    margin-bottom: 10px;
    color: #226a3a;
    font-size: 13px;
}

.admin-message:empty {
    display: none;
}

.admin-message.error {
    padding: 11px 14px;
    border-radius: 7px;
    background: #fff0f0;
    color: #9e1b28;
}

/* Print Styles */
@media print {
    .header,
    .hero,
    .filters,
    .sorting,
    .footer,
    .modal-close,
    .toast {
        display: none !important;
    }
    
    .vehicle-card {
        break-inside: avoid;
    }
}

/* Marketplace-style homepage */
.marketplace-home .header,
.marketplace-home .marketplace-hero {
    background: var(--primary-color);
    color: #fff;
}

.marketplace-home .header {
    box-shadow: none;
}

.marketplace-home .header-content {
    padding: 12px 0;
}

.marketplace-home .nav {
    display: none;
}

.marketplace-home .logo a {
    color: #fff;
    font-size: clamp(24px, 4vw, 38.4px);
    font-weight: 800;
    letter-spacing: 0.025em;
}

.marketplace-home .header-actions {
    gap: 12px;
}

.marketplace-home .sell-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.2);
    font-weight: 500;
}

.marketplace-home .sell-link span {
    font-size: 1.25rem;
    line-height: 1;
}

.marketplace-home .sell-link:hover {
    background: rgba(255, 255, 255, 0.3);
    box-shadow: none;
}

.marketplace-home .marketplace-hero {
    min-height: 150px;
    padding: 16px 0 44px;
    background-image: linear-gradient(rgba(227, 24, 55, 0.78), rgba(227, 24, 55, 0.78)), url('../images/carimport.jpg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.marketplace-home .hero-content {
    max-width: 640px;
}

.marketplace-home .search-bar {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.marketplace-home .search-inputs {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
    margin: 0;
}

.marketplace-home .search-select,
.marketplace-home .marketplace-keyword {
    height: 52px;
    border: 0;
    border-radius: 28px;
    background: #fff;
    color: #77838b;
}

.marketplace-home .search-select {
    padding: 0 18px;
    font-size: 15px;
}

.marketplace-home .marketplace-keyword {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
}

.marketplace-home .marketplace-keyword > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: var(--primary-color);
    stroke-linecap: round;
    stroke-width: 2;
}

.marketplace-home .marketplace-keyword .search-input {
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
    font-size: 15px;
}

.marketplace-home .marketplace-keyword .search-input:focus {
    outline: none;
}

.marketplace-home .marketplace-keyword .search-input::placeholder {
    color: #9aa7af;
    opacity: 1;
}

.marketplace-home .marketplace-categories {
    padding: 28px 0 52px;
    background: #fff;
}

.home-vehicle-pages {
    padding: 8px 0 48px;
    background: #fff;
}

.home-vehicle-pages-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.home-vehicle-tile-wrap {
    min-width: 0;
}

.home-vehicle-page-card {
    display: block;
    position: relative;
    width: 100%;
    height: 300px;
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #555;
    color: #fff;
    isolation: isolate;
    text-decoration: none;
    transition: box-shadow 0.2s ease;
}

.home-vehicle-page-card:hover,
.home-vehicle-page-card:focus-visible {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.home-vehicle-page-slides {
    position: absolute;
    z-index: -2;
    inset: 0;
}

.home-vehicle-page-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.18) 55%, rgba(0, 0, 0, 0.42));
    content: "";
}

.home-vehicle-page-slides img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.home-vehicle-page-slides img.is-active {
    opacity: 1;
}

.home-vehicle-page-card:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
}

.home-vehicle-page-type {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #fff;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75);
}

.home-vehicle-image-credit {
    margin: 10px 0 0;
    color: #65717a;
    font-size: 11px;
    text-align: right;
}

.home-vehicle-image-credit a {
    color: inherit;
    text-decoration: underline;
}

.marketplace-home .categories-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 58px 16px;
}

.market-category {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 186px;
    padding: 12px 8px;
    border-top: 4px solid transparent;
    border-radius: 12px;
    background: transparent;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.market-category:hover,
.market-category:focus-visible {
    border-top-color: var(--primary-color);
    background: #fde8ec;
    box-shadow: 0 6px 18px rgba(227, 24, 55, 0.12);
    transform: translateY(-3px);
}

.market-category:focus-visible {
    outline: 2px solid var(--primary-dark);
    outline-offset: 3px;
}

.market-category-icon {
    display: grid;
    width: 64px;
    height: 64px;
    margin-bottom: 5px;
    place-items: center;
    border-radius: 50%;
    background: #fff3f5;
    font-size: 35px;
    line-height: 1;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.market-category-icon.fa-solid {
    color: var(--primary-color);
    font-size: 32px;
}

.market-category-upload-icon {
    position: relative;
    display: block;
    padding: 0;
}

.market-category-upload-icon .fa-image {
    position: absolute;
    top: 9px;
    left: 5px;
    color: var(--primary-color);
    font-size: 38px;
}

.market-category-upload-icon .fa-circle-arrow-down {
    position: absolute;
    right: 0;
    bottom: 2px;
    color: var(--primary-color);
    font-size: 24px;
    background: #fff3f5;
    border-radius: 50%;
}

.market-category:hover .market-category-icon,
.market-category:focus-visible .market-category-icon {
    background: #fbd0d9;
}

.market-category-name {
    max-width: 140px;
    color: #111;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
}

.market-category-count {
    margin-top: 3px;
    color: #84919a;
    font-size: 11px;
    line-height: 1.2;
}

.home-announcements {
    padding: 18px 0 0;
}

.announcements-list {
    display: grid;
    gap: 12px;
}

.announcement-card {
    padding: 18px 22px;
    border: 1px solid #f0c8d0;
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius);
    background: #fff8f9;
}

.announcement-card h2 {
    margin-bottom: 4px;
    color: var(--secondary-color);
    font-size: 1.05rem;
}

.announcement-card p {
    margin: 0;
    color: var(--text-light);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

@media (max-width: 900px) {
    .marketplace-home .categories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .marketplace-home .header-actions .hamburger {
        display: flex;
    }

    .marketplace-home .hamburger span {
        background: #fff;
    }

    .marketplace-home .mobile-menu {
        top: 85px;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 5px;
        overflow: visible;
        padding: 10px 16px;
        border-right: 0;
        border-bottom: 1px solid #e4e8ed;
    }

    .admin-sidebar-label {
        display: none;
    }

    .admin-tab {
        width: 100%;
        margin: 0;
        text-align: center;
    }

    .admin-content {
        padding: 22px 16px;
    }

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

    .admin-stat-card {
        min-height: 90px;
        padding: 14px;
    }

    .admin-card {
        padding: 16px;
    }
}

@media (max-width: 520px) {
    .admin-header {
        min-height: 62px;
    }

    .admin-header-actions {
        gap: 10px;
        font-size: 0.9rem;
    }

    .admin-brand {
        font-size: 1rem;
    }

    .admin-brand img {
        width: 38px;
        height: 38px;
    }

    .admin-prototype-warning {
        font-size: 12px;
    }

    .admin-page-heading {
        align-items: flex-start;
    }

    .admin-page-heading-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .admin-page-heading h1 {
        font-size: 25px;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-wide {
        grid-column: auto;
    }

    .admin-category-image-preview {
        grid-column: auto;
    }

    .admin-category-record {
        flex-wrap: wrap;
    }

    .admin-category-info {
        flex-basis: calc(100% - 60px);
    }

    .admin-category-actions {
        width: 100%;
        justify-content: flex-end;
    }

    .admin-table th,
    .admin-table td {
        padding: 10px 7px;
    }
}

@media (max-width: 768px) {
    .home-vehicle-page-card {
        height: 240px;
    }

    .marketplace-home .header-actions .sell-link {
        display: inline-flex;
    }

    .marketplace-home .marketplace-hero {
        min-height: auto;
        padding: 18px 0 30px;
    }

    .marketplace-home .search-inputs {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .marketplace-home .header .header-content .logo a {
        font-size: 1.5rem;
    }

    .marketplace-home .header-actions {
        gap: 6px;
    }

    .marketplace-home .sell-link {
        gap: 6px;
        padding: 8px 12px;
    }

    .marketplace-home .marketplace-categories {
        padding-top: 24px;
    }

    .marketplace-home .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 12px;
    }
}

.car-model-year-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 170px;
    gap: 24px;
    margin: 28px 0 40px;
}

.car-model-year-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: #5a5a5a;
    color: #fff;
    isolation: isolate;
}

.car-model-year-tile::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 55%, rgba(0, 0, 0, 0.48));
    content: "";
}

.car-model-year-tile img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.car-model-year-tile:hover img,
.car-model-year-tile:focus-visible img {
    transform: scale(1.04);
}

.car-model-year-label,
.car-model-year-count {
    position: absolute;
    left: 14px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
}

.car-model-year-label {
    top: 14px;
    font-size: 17px;
    font-weight: 700;
}

.car-model-year-count {
    bottom: 14px;
    font-size: 13px;
}

.car-model-year-tile.is-large {
    grid-row: span 2;
}

.car-groups-back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 700;
}

.car-groups-back-link:hover {
    text-decoration: underline;
}

.car-listings-page #carsGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 180px;
}

.car-listings-page #carsGrid .vehicle-card {
    min-height: 0;
}

.car-listings-page #carsGrid .vehicle-card:first-child {
    grid-row: span 2;
}

.car-listings-page #carsGrid .vehicle-image {
    position: absolute;
    inset: 0;
    height: auto;
    flex: none;
}

.car-listings-page #carsGrid .vehicle-image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 38%, rgba(0, 0, 0, 0.72));
    content: "";
}

.car-listings-page #carsGrid .vehicle-badge {
    display: none;
}

.car-listings-page #carsGrid .vehicle-details {
    position: absolute;
    z-index: 2;
    inset: 0;
    padding: 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.24), transparent 45%, rgba(0, 0, 0, 0.4));
    color: #fff;
}

.car-listings-page #carsGrid .vehicle-title {
    min-height: 0;
    color: #fff;
    font-size: 17px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.car-listings-page #carsGrid .vehicle-price {
    color: #fff;
    font-size: 18px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.65);
}

.car-listings-page #carsGrid .vehicle-info,
.car-listings-page #carsGrid .vehicle-meta {
    display: none;
}

.car-listings-page #carsGrid .vehicle-actions {
    gap: 8px;
}

.car-listings-page #carsGrid .vehicle-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.92);
    color: var(--secondary-color);
}

@media (max-width: 768px) {
    .car-model-year-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 160px;
    }

    .car-listings-page #carsGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 165px;
    }
}

@media (max-width: 480px) {
    .car-model-year-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 190px;
    }

    .car-model-year-tile.is-large {
        grid-row: auto;
    }

    .car-listings-page #carsGrid {
        grid-template-columns: 1fr;
        grid-auto-rows: 210px;
    }

    .car-listings-page #carsGrid .vehicle-card:first-child {
        grid-row: auto;
    }

    .market-category-icon {
        width: 60px;
        height: 60px;
    }
}

.car-listings-page .inventory {
    padding-top: 24px;
    background: #f1f4f6;
}

.car-listings-page > .page-header {
    padding: 30px 0;
}

.car-listings-page > .page-header h1 {
    margin-bottom: 6px;
    font-size: 2rem;
}

.car-listings-page > .page-header p {
    font-size: 1rem;
}

.car-marketplace-layout {
    display: grid;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.car-marketplace-layout.no-car-inventory > .car-marketplace-main {
    grid-column: 1 / -1;
}

.car-filter-sidebar {
    display: grid;
    gap: 14px;
}

.car-filter-sidebar[hidden],
.car-results-heading[hidden],
.search-section[hidden],
.car-browse-groups[hidden] {
    display: none;
}

.car-filter-panel,
.car-browse-groups {
    padding: 18px;
    border: 1px solid #dce2e7;
    border-radius: 10px;
    background: #fff;
}

.car-filter-panel h2 {
    margin-bottom: 12px;
    color: #263238;
    font-size: 17px;
}

.car-filter-categories p {
    margin: 0 0 8px;
    color: #53616b;
    font-size: 14px;
}

.car-filter-categories a {
    display: flex;
    justify-content: space-between;
    padding: 8px 4px;
    color: #34434c;
    font-size: 14px;
}

.car-filter-categories .car-category-active {
    color: var(--primary-color);
    font-weight: 700;
}

.car-filter-sidebar #carBrowseResults .filters {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    background: transparent;
}

.car-filter-sidebar .filter-group {
    display: grid;
    gap: 6px;
}

.car-filter-sidebar .filter-group label {
    color: #47545c;
    font-size: 13px;
    font-weight: 600;
}

.car-filter-sidebar .filter-group select {
    width: 100%;
    min-width: 0;
    background-color: #fff;
}

.car-filter-sidebar #clearFilters {
    width: 100%;
    margin-top: 4px;
}

.car-marketplace-main {
    min-width: 0;
}

.car-model-heading,
.car-results-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.car-model-heading h2,
.car-results-heading h2 {
    margin: 0;
    color: #263238;
    font-size: 18px;
}

.car-model-heading p {
    margin: 4px 0 0;
    color: #74818a;
    font-size: 13px;
}

.car-model-heading > a {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-weight: 700;
}

.car-model-year-grid {
    display: flex;
    grid-auto-rows: auto;
    gap: 8px;
    margin: 16px 0 0;
    overflow-x: auto;
    padding: 2px 1px 8px;
    scrollbar-width: thin;
}

.car-model-year-tile {
    display: flex;
    width: 100px;
    min-width: 100px;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 5px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: #1e2930;
    text-align: center;
}

.car-model-year-tile::after {
    display: none;
}

.car-model-year-tile img {
    position: static;
    z-index: auto;
    width: 82px;
    height: 55px;
    object-fit: contain;
}

.car-model-year-tile:hover,
.car-model-year-tile:focus-visible {
    border-color: #c8e9dd;
    background: #f2fbf7;
}

.car-model-year-label,
.car-model-year-count {
    position: static;
    left: auto;
    color: #27343a;
    text-shadow: none;
}

.car-model-year-label {
    max-width: 100%;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.car-model-year-make {
    color: #728089;
    font-size: 11px;
}

.car-model-year-count {
    color: #829099;
    font-size: 10px;
}

.car-results-heading {
    margin: 14px 0 12px;
}

.car-results-heading label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #59666e;
    font-size: 13px;
}

.car-results-heading select {
    padding: 8px 12px;
    border: 1px solid #dce2e7;
    border-radius: 20px;
    background: #e6faf2;
}

.car-marketplace-main .search-section {
    margin-bottom: 12px;
}

.car-marketplace-main .search-input {
    width: 100%;
    min-height: 42px;
    border: 1px solid #dce2e7;
    border-radius: 8px;
    background: #fff;
}

.car-marketplace-main > .listing-count {
    display: block;
    margin: 0 0 10px;
}

.car-listings-page #carsGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
    gap: 16px;
}

.car-listings-page #carsGrid .vehicle-card,
.car-listings-page #carsGrid .vehicle-card:first-child {
    display: grid;
    min-width: 0;
    min-height: 176px;
    height: 100%;
    grid-row: auto;
    grid-template-columns: minmax(110px, 44%) minmax(0, 1fr);
    border: 1px solid #dce2e7;
    border-radius: 7px;
    box-shadow: none;
}

.car-listings-page #carsGrid .vehicle-image {
    position: relative;
    inset: auto;
    height: 100%;
    min-height: 176px;
    flex: none;
}

.car-listings-page #carsGrid .vehicle-image::after {
    display: none;
}

.car-listings-page #carsGrid .vehicle-badge {
    display: block;
}

.car-listings-page #carsGrid .vehicle-details {
    position: static;
    inset: auto;
    z-index: auto;
    min-width: 0;
    padding: 12px;
    background: #fff;
    color: #263238;
}

.car-listings-page #carsGrid .vehicle-title {
    min-height: 0;
    margin-bottom: 5px;
    color: #263238;
    font-size: 14px;
    text-shadow: none;
}

.car-listings-page #carsGrid .vehicle-price {
    margin-bottom: 7px;
    color: #169c73;
    font-size: 17px;
    text-shadow: none;
}

.car-listings-page #carsGrid .vehicle-info {
    display: flex;
    min-height: 0;
    gap: 5px 10px;
    margin-bottom: 6px;
    font-size: 11px;
}

.car-listings-page #carsGrid .vehicle-meta {
    display: none;
}

.car-listings-page #carsGrid .vehicle-actions {
    gap: 6px;
    padding-top: 6px;
}

.car-listings-page #carsGrid .vehicle-actions .btn {
    min-width: 0;
    padding: 7px 6px;
    font-size: 11px;
}

.car-listings-page #carsGrid .vehicle-actions .btn-outline {
    border-color: #dce2e7;
    background: #fff;
    color: #263238;
}

.car-marketplace-layout > .demo-note {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .car-marketplace-layout {
        grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
        gap: 16px;
    }

    .car-listings-page #carsGrid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .car-marketplace-layout {
        grid-template-columns: 1fr;
    }

    .car-filter-sidebar {
        grid-template-columns: 1fr;
    }

    .car-filter-sidebar #carBrowseResults .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .car-filter-sidebar #clearFilters {
        align-self: end;
    }
}

@media (max-width: 420px) {
    .car-listings-page #carsGrid .vehicle-card,
    .car-listings-page #carsGrid .vehicle-card:first-child {
        grid-template-columns: 40% minmax(0, 1fr);
    }

    .car-listings-page #carsGrid .vehicle-details {
        padding: 10px;
    }

    .car-filter-sidebar #carBrowseResults .filters {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .marketplace-home .header .header-content .logo a {
        gap: 6px;
        font-size: 18px;
    }

    .marketplace-home .logo img {
        width: 38px;
        height: 38px;
    }

    .marketplace-home .header-actions {
        gap: 4px;
    }

    .marketplace-home .sell-link {
        padding: 6px 8px;
        font-size: 12px;
    }

    .marketplace-home .sell-link span {
        font-size: 18px;
    }
}

@media (max-width: 340px) {
    .marketplace-home .header .header-content .logo a {
        gap: 5px;
        font-size: 16px;
    }

    .marketplace-home .logo img {
        width: 34px;
        height: 34px;
    }

    .marketplace-home .sell-link {
        padding: 5px 6px;
        font-size: 11px;
    }

    .marketplace-home .sell-link span {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .admin-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .admin-sidebar {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 10px 16px;
        border-right: 0;
        border-bottom: 1px solid #e4e8ed;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .admin-tab {
        width: auto;
        flex: 0 0 auto;
        margin: 0;
        white-space: nowrap;
    }

    .admin-content,
    .admin-panel,
    .admin-card,
    .admin-form-grid {
        min-width: 0;
    }

    .admin-table-wrap {
        max-width: 100%;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }

    .admin-table {
        min-width: 680px;
    }

    .auth-header {
        min-height: 68px;
        padding: 10px 20px;
    }

    .auth-main {
        min-height: calc(100vh - 68px);
        padding: 32px 16px;
    }

    .auth-card {
        padding: clamp(22px, 5vw, 32px);
    }

    .admin-page-heading {
        flex-wrap: wrap;
    }

    .admin-page-heading-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .auth-header {
        gap: 12px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .auth-brand {
        gap: 6px;
        font-size: clamp(1.05rem, 5vw, 1.35rem);
    }

    .auth-brand img {
        width: 40px;
        height: 40px;
    }

    .auth-header-link {
        flex-shrink: 0;
        font-size: 14px;
    }

    .auth-main {
        padding: 24px 12px;
    }

    .auth-card {
        border-radius: 14px;
    }

    .auth-card h1 {
        font-size: clamp(25px, 7vw, 30px);
    }

    .admin-header {
        flex-wrap: wrap;
        gap: 8px 12px;
        padding-right: 16px;
        padding-left: 16px;
    }

    .admin-brand {
        min-width: 0;
        flex: 1 1 180px;
    }

    .admin-brand span {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-header-actions {
        flex-wrap: wrap;
        gap: 8px 12px;
    }

    .admin-content {
        padding: 18px 12px;
    }

    .admin-card {
        padding: 14px;
    }

    .admin-page-heading > div {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-page-heading-actions .btn {
        flex: 1 1 auto;
        min-height: 44px;
    }

    .admin-form-actions .btn {
        flex: 1 1 130px;
        min-height: 44px;
    }

    .admin-form-grid input[type="file"] {
        max-width: 100%;
        font-size: 12px;
    }

    .admin-record {
        min-width: 0;
        padding: 12px;
    }

    .admin-record dl {
        grid-template-columns: minmax(75px, 110px) minmax(0, 1fr);
        gap: 6px 10px;
    }
}

@media (max-width: 360px) {
    .auth-header {
        padding-right: 12px;
        padding-left: 12px;
    }

    .auth-brand {
        font-size: 1rem;
    }

    .auth-brand img {
        width: 34px;
        height: 34px;
    }

    .admin-header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .admin-stat-grid {
        grid-template-columns: 1fr;
    }
}

.vehicle-actions .btn.view-details,
.car-listings-page #carsGrid .vehicle-actions .btn.view-details {
    flex: 0 0 auto;
    width: fit-content;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid rgba(227, 24, 55, 0.28);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.vehicle-actions .btn.view-details:hover,
.car-listings-page #carsGrid .vehicle-actions .btn.view-details:hover {
    transform: translateY(-1px);
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 5px 12px rgba(227, 24, 55, 0.2);
}
