/* Kent Motors - Premium Car Dealership Styles */

:root {
    --primary-color: #000000;
    --secondary-color: #a24b4b;
    --accent-color: #4facfe;
    --success-color: #00d4aa;
    --warning-color: #f093fb;
    --danger-color: #ff6b6b;
    --dark-color: #1a1a2e;
    --light-color: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-light: 0 8px 32px rgba(31, 38, 135, 0.15);
    --shadow-medium: 0 15px 35px rgba(31, 38, 135, 0.2);
    --shadow-heavy: 0 25px 50px rgba(31, 38, 135, 0.25);
    --gradient-primary: linear-gradient(135deg, #000 0%, #222 100%);
    --gradient-secondary: linear-gradient(135deg, #fe4f4f 0%, #fe0000 100%);
    --gradient-accent: linear-gradient(135deg, #000 0%, #222 100%);
    --border-radius: 16px;
}

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

/* Ionicons base styles */
ion-icon {
    font-size: 1em;
    vertical-align: -0.125em;
    display: inline-block;
    line-height: 1;
    pointer-events: none;
}

ion-icon.icon-xs { font-size: 0.75rem; }
ion-icon.icon-sm { font-size: 0.875rem; }
ion-icon.icon-md { font-size: 1.25rem; }
ion-icon.icon-lg { font-size: 1.5rem; }
ion-icon.icon-xl { font-size: 2rem; }
ion-icon.icon-2x { font-size: 2rem; }
ion-icon.icon-3x { font-size: 3rem; }

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom 5-column layout for brand section */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 auto;
        width: 20%;
    }
}

.pagination .page-item {
    margin-right: 10px;
}

/* ==========================================
   SITE NAVIGATION
   ========================================== */
.site-nav {
    padding: 0.6rem 0;
    z-index: 1050;
    transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Homepage: transparent over hero */
.site-nav--home {
    background: transparent;
}

.site-nav--home .nav-link { color: rgba(255,255,255,0.85) !important; }
.site-nav--home .nav-link:hover,
.site-nav--home .nav-link.show { color: #fff !important; }
.site-nav--home .navbar-toggler-icon { filter: brightness(10); }
.site-nav--home .nav-cta-btn { background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.site-nav--home .nav-cta-btn:hover { background: #fff; color: #111; }
.site-nav--home .nav-mobile-btn { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.25); }

/* Inner pages: white solid */
.site-nav--inner {
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.site-nav--inner .nav-link { color: #444 !important; }
.site-nav--inner .nav-link:hover,
.site-nav--inner .nav-link.show { color: #000 !important; }
.site-nav--inner .nav-cta-btn { background: #111; color: #fff; }
.site-nav--inner .nav-cta-btn:hover { background: #333; }
.site-nav--inner .nav-mobile-btn { color: #444; border-color: #ddd; }

/* Scrolled state (applied via JS) */
.site-nav.scrolled {
    background: rgba(255,255,255,0.97) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}

.site-nav.scrolled .nav-link { color: #444 !important; }
.site-nav.scrolled .nav-link:hover,
.site-nav.scrolled .nav-link.show { color: #000 !important; }
.site-nav.scrolled .navbar-toggler-icon { filter: none; }
.site-nav.scrolled .nav-cta-btn { background: #111; color: #fff; }
.site-nav.scrolled .nav-mobile-btn { color: #444; border-color: #ddd; }

/* Brand / Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    padding: 0;
    margin-right: 1rem;
}

.navbar-brand img {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Nav Links */
.site-nav .nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.site-nav .nav-link:hover {
    background: rgba(0,0,0,0.04);
}

/* Dropdown Toggle Caret */
.site-nav .dropdown-toggle::after {
    font-size: 0.6rem;
    vertical-align: 0.15em;
    margin-left: 0.3rem;
}

/* Dropdown Menu */
.modern-dropdown {
    background: #fff;
    border-radius: 12px;
    padding: 6px 0;
    margin-top: 4px;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    animation: dropdownFadeIn 0.15s ease;
}

@keyframes dropdownFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.modern-dropdown-item {
    padding: 10px 16px;
    color: #444;
    font-size: 0.85rem;
    font-weight: 450;
    transition: all 0.15s ease;
    border: none;
    background: none;
}

.modern-dropdown-item:hover {
    background: #f5f5f5;
    color: #000;
}

.dropdown-divider {
    margin: 6px 12px;
    border-color: #eee;
}

/* CTA Button */
.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    margin-left: 0.75rem;
    white-space: nowrap;
}

.nav-cta-btn ion-icon {
    font-size: 0.9rem;
}

/* Mobile Phone Button */
.nav-mobile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.2s ease;
}

/* Hamburger */
.site-nav .navbar-toggler {
    border: none;
    padding: 4px;
}

.site-nav .navbar-toggler:focus {
    box-shadow: none;
}

/* ==========================================
   MOBILE NAV (below xl breakpoint)
   ========================================== */
@media (max-width: 1199.98px) {
    .site-nav .navbar-collapse {
        background: #fff;
        border-radius: 16px;
        margin-top: 0.75rem;
        padding: 1rem 0;
        box-shadow: 0 12px 40px rgba(0,0,0,0.12);
        border: 1px solid rgba(0,0,0,0.06);
        max-height: 80vh;
        overflow-y: auto;
    }

    .site-nav .navbar-nav {
        padding: 0 0.75rem;
    }

    .site-nav .nav-link {
        color: #333 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .site-nav .nav-link:hover {
        background: #f5f5f5;
    }

    .site-nav .modern-dropdown {
        box-shadow: none;
        border: none;
        padding: 0 0 0 1rem;
        margin: 0;
        background: transparent;
    }

    .site-nav .modern-dropdown-item {
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 0.875rem;
        color: #666;
    }

    .site-nav .modern-dropdown-item:hover {
        background: #f5f5f5;
    }

    .site-nav .nav-cta-btn {
        display: flex;
        justify-content: center;
        margin: 0.75rem;
        padding: 12px 20px;
        background: #111;
        color: #fff;
        border-radius: 12px;
    }
}

.text-primary {
    color: var(--primary-color) !important;
}

.text-secondary {
    color: var(--secondary-color) !important;
}

.alert-info {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

/* Glass morphism effects */
.glass-card {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    background: rgba(255, 255, 255, 0.3);
}

/* Legacy glass-nav kept for any remaining references */

.glass-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.glass-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.glass-btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: var(--shadow-light);
}

.glass-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    filter: brightness(1.1);
}

/* Old navbar rules replaced by .site-nav above */

/* Hero Section */
.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    line-height: 1.6;
}

/* ==========================================
   HERO CONDITION TABS
   ========================================== */
.hero-condition-tabs {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50px;
    padding: 4px;
    display: inline-flex;
}

.hero-tab {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.hero-tab:hover {
    color: white;
}

.hero-tab.active {
    background: white;
    color: #111;
    font-weight: 600;
}

/* ==========================================
   HERO SEARCH BAR
   ========================================== */
.search-form-container {
    margin-bottom: 2rem;
}

.hero-search-bar {
    max-width: 900px;
    margin: 0 auto;
}

.hero-search-fields {
    display: flex;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.hero-search-field {
    flex: 1;
    padding: 12px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.hero-search-field label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-search-field label i {
    font-size: 0.65rem;
}

.hero-search-field select {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 500;
    color: #333;
    padding: 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
    padding-right: 16px;
}

.hero-search-field select:focus {
    outline: none;
}

.hero-search-field select:disabled {
    color: #bbb;
    cursor: default;
}

.hero-search-divider {
    width: 1px;
    background: #e5e5e5;
    margin: 10px 0;
}

.hero-search-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    color: white;
    border: none;
    padding: 16px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.hero-search-btn:hover {
    background: #333;
}

/* ==========================================
   HERO QUICK TAGS
   ========================================== */
.hero-quick-tags {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags-label {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    font-weight: 500;
    margin-right: 4px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.hero-tag:hover {
    background: rgba(255, 255, 255, 0.22);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* ==========================================
   INVENTORY FILTER PANEL
   ========================================== */
.filter-panel {
    background: white;
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.filter-condition-tabs {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
}

.condition-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 14px 20px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #888;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    text-align: center;
}

.condition-tab:hover {
    color: #333;
    background: #f5f5f5;
}

.condition-tab.active {
    color: #111;
    font-weight: 600;
    border-bottom-color: #111;
    background: white;
}

/* Filter Grid */
.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-field {
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-right: 1px solid #f0f0f0;
}

.filter-field:last-child {
    border-right: none;
}

.filter-field label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
}

.filter-field label i {
    font-size: 0.65rem;
    color: #bbb;
}

.filter-select {
    border: none;
    background: transparent;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    padding: 4px 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ccc'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 2px center;
    padding-right: 16px;
    min-width: 0;
    width: 100%;
}

.filter-select:focus {
    outline: none;
    color: #000;
}

.filter-select:disabled {
    color: #ccc;
    cursor: default;
}

.filter-select-sm {
    font-size: 0.82rem;
    padding: 4px 18px 4px 0;
}

/* Filter Actions Row */
.filter-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 16px;
    min-height: 48px;
}

.active-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1;
}

.active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 50px;
    background: #f0f0f0;
    color: #333;
    font-size: 0.78rem;
    font-weight: 500;
    border: none;
}

.chip-remove {
    background: none;
    border: none;
    color: #999;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}

.chip-remove:hover {
    color: #e53e3e;
}

.clear-all-filters {
    font-size: 0.78rem;
    color: #e53e3e;
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.clear-all-filters:hover {
    text-decoration: underline;
}

.filter-right-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.sort-control {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-control label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    margin: 0;
    white-space: nowrap;
}

.results-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: #111;
    white-space: nowrap;
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 50px;
}

/* ==========================================
   RESPONSIVE FILTERS
   ========================================== */
@media (max-width: 992px) {
    .hero-search-fields {
        flex-direction: column;
        border-radius: 16px;
    }

    .hero-search-divider {
        width: 100%;
        height: 1px;
        margin: 0;
    }

    .hero-search-field {
        padding: 12px 20px;
    }

    .hero-search-btn {
        justify-content: center;
        padding: 16px 28px;
    }

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filter-field {
        border-bottom: 1px solid #f5f5f5;
    }

    .filter-field:nth-child(even) {
        border-right: none;
    }

    .filter-actions-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .filter-right-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 576px) {
    .hero-condition-tabs {
        width: 100%;
    }

    .hero-tab {
        flex: 1;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

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

    .filter-field {
        border-right: none;
    }

    .condition-tab {
        font-size: 0.82rem;
        padding: 12px 10px;
    }

    .hero-quick-tags {
        gap: 6px;
    }

    .hero-tag {
        padding: 5px 12px;
        font-size: 0.78rem;
    }
}

/* Legacy search form - kept for any remaining references */

.hero-car {
    position: relative;
    z-index: 3;
}

.hero-car img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.3));
}

/* Floating animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Fade in animation */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
}

.brands-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f8fa 100%);
    overflow: hidden;
}

.brand-marquee {
    overflow: hidden;
    width: 100%;
    padding: 2rem 0 3rem;
    margin: -2rem 0 -3rem;
    -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
    mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.brand-marquee-track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    animation: marquee-scroll 40s linear infinite;
}

.brand-marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.brand-marquee-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    text-decoration: none;
    flex-shrink: 0;
    width: 230px;
    height: 210px;
    padding: 2.5rem 2rem;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-marquee-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.brand-marquee-item img {
    width: 100%;
    max-width: 160px;
    height: 100px;
    object-fit: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-marquee-item:hover img {
    transform: scale(1.1);
}

.brand-logo-dark {
    filter: brightness(0);
}

.brand-marquee-item:hover .brand-logo-dark {
    filter: brightness(0.2);
}

.brand-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: #222;
    letter-spacing: 0.02em;
    margin-bottom: 0;
}

/* Vehicle Cards */
.vehicle-card {
    transition: all 0.3s ease;
}

.vehicle-card:hover {
    transform: translateY(-10px);
}

.vehicle-card .card {
    border: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.vehicle-card .card:hover {
    box-shadow: var(--shadow-heavy);
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.spec-item {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    align-items: center;
}

.spec-item i {
    color: var(--primary-color);
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
}

.filter-tab {
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    opacity: 0.2;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Features Section */
.features-section {
    padding: 5rem 0;
}

.feature-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.icon-bg {
    width: 80px;
    height: 80px;
    background: var(--gradient-secondary);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.feature-card:hover .icon-bg {
    transform: scale(1.1);
    box-shadow: var(--shadow-light);
}

.feature-title {
    font-weight: 600;
    color: #333;
}

/* Popular Makes Section */
.popular-makes-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    position: relative;
}

.popular-makes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1470224114660-3f6686c562eb?ixlib=rb-4.0.3&auto=format&fit=crop&w=2000&q=80') center/cover no-repeat;
    opacity: 0.1;
    z-index: 1;
}

.popular-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.popular-card:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
}

.object-cover {
    object-fit: cover;
}

/* Category Section */
.category-section {
    padding: 3rem 0;
}

.category-link {
    transition: all 0.3s ease;
}

.category-link:hover {
    transform: translateY(-5px);
}

.category-link a {
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-link:hover a {
    color: var(--primary-color) !important;
}

/* Testimonial Section */
.testimonial-section {
    background: var(--gradient-primary);
    padding: 5rem 0;
    position: relative;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.testimonial-avatar img {
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-light);
}

.stars i {
    font-size: 1.25rem;
}

blockquote {
    font-size: 1.25rem;
    font-style: italic;
    line-height: 1.8;
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
}

.blog-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.blog-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-title {
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

/* Footer CTA */
.footer-cta {
    position: relative;
}

.cta-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.cta-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.15);
}

.cta-icon {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: #222;
    padding: 4rem 0 2rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.footer-links a:hover {
    color: white !important;
    transform: translateX(5px);
    text-decoration: none !important;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

.app-buttons .btn {
    transition: all 0.3s ease;
}

.app-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filter-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-search-bar {
        padding: 0 1rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-search-fields {
        padding: 0 !important;
    }

    .brand-marquee-item {
        width: 160px;
        height: 155px;
        padding: 1.5rem 1rem;
    }

    .brand-marquee-item img {
        max-width: 110px;
        height: 65px;
    }

    .brand-marquee-track {
        gap: 1.25rem;
        animation-duration: 28s;
    }

    .feature-card {
        padding: 2rem !important;
    }
}

/* Animation delays for staggered effects */
.vehicle-card:nth-child(1) {
    animation-delay: 0.1s;
}

.vehicle-card:nth-child(2) {
    animation-delay: 0.2s;
}

.vehicle-card:nth-child(3) {
    animation-delay: 0.3s;
}

.vehicle-card:nth-child(4) {
    animation-delay: 0.4s;
}


/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Button hover effects */
.btn {
    transition: all 0.3s ease;
    font-weight: 500;
    border-radius: 10px;
}

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

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

.btn-primary:hover {
    background: var(--gradient-primary);
    filter: brightness(1.1);
}

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

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

/* Additional iOS-style elements */
.rounded-pill {
    border-radius: 50px !important;
    /* background-color: #222 !important; */
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(10px) !important;
    color: white !important;
    border: none !important;
}

.rounded-4 {
    border-radius: var(--border-radius) !important;
}

/* Loading animations */
@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.loading-shimmer {
    position: relative;
    overflow: hidden;
}

.loading-shimmer::after {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
    content: '';
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Form enhancements */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Badge styles */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
}

.badge.rounded-pill {
    background-color: #222 !important;
    color: white !important;
    border: none !important;
}

/* Button pills */
.btn.rounded-pill {
    background-color: #222 !important;
    color: white !important;
    border: 1px solid #222 !important;

}

.btn.rounded-pill-t {
    color: white !important;
    border: 1px solid rgba(0, 0, 0, 0.5) !important;
    background: rgba(0, 0, 0, 0) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 50px;

}

.btn.rounded-pill:hover {
    background-color: #333 !important;
    border-color: #333 !important;
    color: white !important;
}

/* Exception for outline pills */
.btn-outline-primary.rounded-pill {
    background-color: transparent !important;
    color: #222 !important;
    border: 1px solid #222 !important;
}

.btn-outline-primary.rounded-pill:hover {
    background-color: #222 !important;
    border-color: #222 !important;
    color: white !important;
}

/* Price highlighting */
.price h4 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

/* Vehicle Detail Page Styles */
.vehicle-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.vehicle-badges .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
}

.vehicle-quick-specs {
    font-size: 0.95rem;
}

.vehicle-quick-specs .spec-item {
    display: flex;
    align-items: center;
    color: #6c757d;
}

.gallery-main-image {
    height: 400px;
    object-fit: cover;
}

.thumbnail-image {
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail-image:hover,
.thumbnail-image.active {
    border-color: var(--primary-color);
    opacity: 1;
    transform: scale(1.05);
}

.vehicle-info-card .info-item {
    font-size: 0.9rem;
}

.vehicle-info-card .info-item .fw-medium {
    min-width: 120px;
}

.financing-calculator .form-label {
    font-weight: 600;
    color: #495057;
}

.spec-list .spec-row {
    font-size: 0.9rem;
}

/* Vehicle detail section headings */
.glass-card h3 ion-icon {
    opacity: 0.85;
}

/* Description text styling */
.description-text {
    color: #555;
    line-height: 1.85;
}

.description-text p:last-child {
    margin-bottom: 0;
}

.feature-item {
    padding: 0.5rem 0;
    font-size: 0.95rem;
}

.similar-vehicle-item {
    padding: 1rem 0;
}

.similar-vehicle-item:last-child {
    border-bottom: none !important;
    padding-bottom: 0;
}

/* Vehicle Listing Page Styles */
.page-header-compact {
    padding: 5.5rem 0 0.75rem;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.page-header-compact .breadcrumb {
    font-size: 0.8rem;
}

.page-header-compact .breadcrumb-item a {
    color: #999;
    text-decoration: none;
}

.page-header-compact .breadcrumb-item a:hover {
    color: #333;
}

.page-header-compact .breadcrumb-item.active {
    color: #555;
}

.search-filters {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
}

.results-summary {
    font-size: 1.1rem;
    color: #6c757d;
}

.vehicle-card {
    transition: all 0.4s ease;
}

.vehicle-card:hover {
    transform: translateY(-8px);
}

.vehicle-card .card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.vehicle-card .card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.vehicle-card .card-img-top {
    transition: all 0.4s ease;
}

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

.vehicle-specs {
    font-size: 0.85rem;
    color: #6c757d;
}

.vehicle-actions .btn {
    font-size: 0.875rem;
    font-weight: 600;
}

.quick-actions {
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
}

.no-results .glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
}

/* Breadcrumb Styles */
.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    font-size: 0.9rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    content: "›";
    font-size: 0.9rem;
    color: #6c757d;
    vertical-align: middle;
}

.breadcrumb-item a {
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color);
}

/* Modal Enhancements */
.modal-content.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.vehicle-summary {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Newsletter Section */
.newsletter {
    background: var(--gradient-primary);
    position: relative;
}

.newsletter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1449824913935-59a10b8d2000?ixlib=rb-4.0.3') center/cover;
    opacity: 0.1;
    z-index: 1;
}

.newsletter>.container {
    position: relative;
    z-index: 2;
}

/* Carousel Enhancements */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

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

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

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-indicators {
    bottom: 20px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 4px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Enhancements for Vehicle Pages */
@media (max-width: 768px) {
    .vehicle-header .display-4 {
        font-size: 2rem;
    }

    .vehicle-quick-specs {
        flex-direction: column;
        gap: 1rem !important;
    }

    .gallery-main-image {
        height: 250px;
    }

    .filter-panel {
        border-radius: 12px;
    }

    .vehicle-card .card-img-top {
        height: 200px;
    }

    .results-summary h5 {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .inventory-stats {
        padding: 2rem !important;
    }

    .filter-panel {
        margin: 0 -0.5rem;
    }

    .vehicle-badges {
        text-align: center;
    }

    .vehicle-quick-specs .spec-item {
        justify-content: center;
    }
}

/* ============================================
   AI CHATBOT WIDGET
   ============================================ */

.chat-widget-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.chat-widget-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}
.chat-widget-btn ion-icon {
    font-size: 26px;
    transition: transform 0.3s;
}
.chat-widget-btn.open ion-icon {
    transform: rotate(90deg);
}
.chat-widget-btn .chat-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger-color);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border: 2px solid #fff;
}

.chat-widget-panel {
    position: fixed;
    bottom: 96px;
    right: 24px;
    width: 380px;
    max-height: 560px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.18);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.chat-widget-panel.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chat-header {
    background: var(--gradient-primary);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.chat-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.chat-header-avatar ion-icon {
    font-size: 22px;
}
.chat-header-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.chat-header-info span {
    font-size: 0.72rem;
    opacity: 0.8;
}
.chat-header-close {
    margin-left: auto;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    padding: 4px;
}
.chat-header-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    max-height: 360px;
    scroll-behavior: smooth;
}

.chat-msg {
    display: flex;
    gap: 8px;
    max-width: 88%;
    animation: chatMsgIn 0.3s ease-out;
}
.chat-msg.assistant {
    align-self: flex-start;
}
.chat-msg.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

@keyframes chatMsgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.84rem;
    line-height: 1.5;
    word-wrap: break-word;
}
.chat-msg.assistant .chat-msg-bubble {
    background: #f1f3f5;
    color: #1a1a2e;
    border-bottom-left-radius: 4px;
}
.chat-msg.user .chat-msg-bubble {
    background: var(--dark-color);
    color: #fff;
    border-bottom-right-radius: 4px;
}

.chat-msg-bubble a {
    color: var(--accent-color);
    text-decoration: underline;
}
.chat-msg.user .chat-msg-bubble a {
    color: #8cc8ff;
}

.chat-vehicle-cards {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    max-width: 100%;
}
.chat-vehicle-card {
    flex-shrink: 0;
    width: 180px;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}
.chat-vehicle-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.chat-vehicle-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
}
.chat-vehicle-card-body {
    padding: 8px 10px;
}
.chat-vehicle-card-body h6 {
    font-size: 0.75rem;
    font-weight: 600;
    margin: 0 0 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.chat-vehicle-card-body .price {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}
.chat-vehicle-card-body .details {
    font-size: 0.68rem;
    color: #6c757d;
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    align-self: flex-start;
}
.chat-typing span {
    width: 8px;
    height: 8px;
    background: #adb5bd;
    border-radius: 50%;
    animation: typingDot 1.4s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    background: #fff;
}
.chat-input-area input {
    flex: 1;
    border: 1px solid #dee2e6;
    border-radius: 24px;
    padding: 10px 16px;
    font-size: 0.84rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}
.chat-input-area input:focus {
    border-color: var(--dark-color);
}
.chat-input-area button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--dark-color);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.chat-input-area button:hover {
    background: #333;
}
.chat-input-area button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.chat-input-area button ion-icon {
    font-size: 18px;
}

.chat-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 16px 12px;
}
.chat-quick-btn {
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    background: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
    white-space: nowrap;
}
.chat-quick-btn:hover {
    background: var(--dark-color);
    color: #fff;
    border-color: var(--dark-color);
}

@media (max-width: 480px) {
    .chat-widget-panel {
        right: 8px;
        left: 8px;
        bottom: 88px;
        width: auto;
        max-height: calc(100vh - 120px);
    }
    .chat-widget-btn {
        bottom: 16px;
        right: 16px;
    }
}