/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #667eea;
    --secondary-color: #004e89;
    --dark-color: #1a1a1a;
    --light-gray: #f5f5f5;
    --gray: #666;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --primary-light: #7c8ff0;
    --primary-dark: #5568d3;
    --link-color: #004e89; /* Better contrast for links */
}

body {
    font-family: roboto, sans-serif, Arial;
    color: var(--dark-color);
    line-height: 1.6;
    background: #f8f9fa;
}

/* Skip to main content link */
.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    font-weight: 600;
}

.skip-to-main:focus {
    top: 0;
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 20px; */
}

/* Container inside sections gets box styling */
.section > .container {
    padding: 20px 20px;
}

/* Top Bar */
.top-bar {
    background: var(--dark-color);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left span,
.top-bar-right a {
    margin-right: 20px;
    color: var(--white);
    text-decoration: none;
}

.top-bar-right a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Hide top bar on mobile */
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    position: relative;
    gap: 15px;
}

.header-content > .logo {
    flex: 1;
    order: 2;
}

.header-content > .main-nav {
    order: 3;
    flex: 2;
}

.header-content > .header-actions {
    order: 4;
    flex-shrink: 0;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
}

.logo a {
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 14px;
    position: relative;
    padding: 10px 0;
    min-height: 44px; /* Touch target size */
    display: inline-flex;
    align-items: center;
}

.main-nav a:hover {
    color: var(--primary-color);
    text-decoration: none;
}

.main-nav a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    order: 1;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

.main-nav .has-dropdown {
    position: relative;
}

.main-nav .has-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    min-width: 250px;
    padding: 10px 0;
    margin-top: 10px;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    color: var(--dark-color);
}

.dropdown-menu a:hover {
    background: var(--light-gray);
    color: var(--primary-color);
}

.city-selector {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

/* Hero Section */
.modern-hero {
    position: relative;
    /* margin-top: 0px; */
    background: linear-gradient(135deg, #0a0e1a 0%, #0d1220 50%, #0a0e1a 100%);
    color: #ffffff;
    overflow: hidden;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    touch-action: pan-y pinch-zoom; /* Enable touch scrolling */
    cursor: grab; /* Show grab cursor for manual scrolling */
}

.modern-hero:active {
    cursor: grabbing; /* Show grabbing cursor when dragging */
}

.hero-slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide-bg.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
    transition: none; /* No transition on initial load for active slide */
}

/* Re-enable transition after page load for slide changes */
.hero-slider-background.loaded .hero-slide-bg.active {
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.2) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}

.modern-hero .container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
    padding: 80px 0 60px;
}

.hero-light {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.08), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(37, 99, 235, 0.06), transparent 45%);
    z-index: 1;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 90px;
}

.hero-copy {
    max-width: 100%;
    position: relative;
    z-index: 2;
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.hero-copy h1 {
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 20px;
    margin-top: 0;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.hero-copy p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
    margin-top: 0;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 8px;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    min-width: 180px;
}

.hero-btn.primary {
    background: #2563eb;
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.hero-btn.primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.hero-btn.ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-btn.ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    opacity: 0.6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-car-wrapper {
    position: relative;
    width: 100%;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-car {
    position: relative;
    width: 100%;
    max-width: 700px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    z-index: 2;
    transform: scaleX(1);
}

.hero-car-reflection {
    position: absolute;
    bottom: -30px;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.15) 0%,
        rgba(255, 255, 255, 0.08) 15%,
        rgba(255, 255, 255, 0.03) 40%,
        transparent 70%);
    transform: scaleY(-1) scaleX(1);
    mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 25%,
        rgba(0, 0, 0, 0.05) 50%,
        transparent 80%);
    -webkit-mask-image: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.2) 25%,
        rgba(0, 0, 0, 0.05) 50%,
        transparent 80%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
    filter: blur(1px);
}

.hero-search-options {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    z-index: 2;
    position: relative;
    padding: 12px 20px;
    background: rgba(30, 35, 50, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    width: fit-content;
}

.hero-search-options .radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
}

.hero-search-options .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.hero-search-options .radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hero-search-options .radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #2563eb;
    background: #2563eb;
}

.hero-search-options .radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.hero-search-options .radio-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    user-select: none;
}

.hero-search-bar {
    margin-top: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: stretch;
    background: rgba(30, 35, 50, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    width: 100%;
    max-width: 100%;
}

.hero-search-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}

.hero-search-bar .search-field {
    flex: 1;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    z-index: 1;
}

.hero-search-bar .search-field:last-of-type {
    border-right: none;
}

.hero-search-bar select {
    width: 100%;
    padding: 18px 40px 18px 20px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.95);
    font-size: 15px;
    font-weight: 500;
    outline: none;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z' opacity='0.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    z-index: 1;
}

.hero-search-bar select:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.hero-search-bar select:focus {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-search-bar select::after {
    content: '';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.6);
}

.hero-search-bar select option {
    background: #1e2332;
    color: #fff;
    padding: 10px;
}

.hero-search-btn {
    padding: 18px 40px;
    border: none;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-width: 140px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-search-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.hero-search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hero-slider-controls {
    display: none; /* Arrows removed - using manual swipe instead */
}

.hero-slider-prev,
.hero-slider-next {
    display: none; /* Arrows hidden */
}

.hero-slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
    justify-content: center;
}

.hero-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-slider-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    width: 32px;
    border-radius: 6px;
}

@media (max-width: 900px) {
    .modern-hero {
        min-height: 600px;
    }

    .modern-hero .container {
        padding: 60px 0 40px;
    }

    .hero-slider-background {
        width: 100%;
        left: 0;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(10, 14, 26, 0.5) 0%, rgba(10, 14, 26, 0.3) 50%, rgba(10, 14, 26, 0.2) 100%);
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        margin-bottom: 30px;
    }

    .hero-copy {
        text-align: center;
        margin: 0 auto;
        max-width: 100%;
        padding-right: 0;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-slider-controls {
        display: none; /* Arrows removed */
    }

    .hero-slider-prev,
    .hero-slider-next {
        display: none; /* Arrows hidden */
    }

    .hero-slider-dots {
        bottom: 20px;
    }

    .hero-search-options {
        flex-wrap: wrap;
        gap: 16px;
        padding: 10px 16px;
        width: 100%;
        max-width: 100%;
    }

    .hero-search-bar {
        flex-direction: column;
        gap: 0;
    }

    .hero-search-bar .search-field {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .hero-search-bar .search-field:last-of-type {
        border-bottom: none;
    }

    .hero-search-bar select {
        padding: 14px 40px 14px 16px;
        font-size: 14px;
    }

    .hero-search-btn {
        padding: 14px 24px;
        font-size: 15px;
        width: 100%;
        min-width: auto;
    }
}

/* Tablet View (768px and below) */
@media (max-width: 768px) {
    .modern-hero {
        min-height: 550px;
    }

    .modern-hero .container {
        padding: 50px 20px 40px;
    }

    .hero-overlay {
        background: linear-gradient(135deg, rgba(10, 14, 26, 0.4) 0%, rgba(10, 14, 26, 0.25) 50%, rgba(10, 14, 26, 0.15) 100%);
    }

    .hero-slide-bg {
        opacity: 0.9;
    }

    .hero-slide-bg.active {
        opacity: 1;
    }

    .hero-copy h1 {
        font-size: clamp(32px, 6vw, 48px);
        margin-bottom: 16px;
    }

    .hero-copy p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        min-width: auto;
        padding: 14px 24px;
        font-size: 15px;
    }

    .hero-search-options {
        padding: 8px 12px;
        gap: 12px;
    }

    .hero-search-options .radio-label {
        font-size: 14px;
    }

    .hero-search-bar select {
        padding: 12px 36px 12px 14px;
        font-size: 14px;
    }

    .hero-search-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-slider-prev,
    .hero-slider-next {
        display: none; /* Arrows hidden */
    }

    .hero-slider-dots {
        bottom: 15px;
        gap: 8px;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }

    .hero-slider-dot.active {
        width: 24px;
    }
}

/* Mobile View (480px and below) */
@media (max-width: 480px) {
    .modern-hero {
        min-height: 460px;
    }

    .modern-hero .container {
        padding: 40px 15px 35px;
    }

    /* Top part darker for text, bottom much lighter so background-image visible */
    .hero-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10, 14, 26, 0.7) 0%,
            rgba(10, 14, 26, 0.45) 30%,
            rgba(10, 14, 26, 0.2) 60%,
            rgba(10, 14, 26, 0.05) 85%,
            transparent 100%
        );
    }

    /* Show more of the background image and car on mobile */
    .hero-slide-bg {
        opacity: 0.9;
        background-position: center right;
    }

    .hero-slide-bg.active {
        opacity: 1;
    }

    .hero-grid {
        gap: 20px;
        margin-bottom: 25px;
    }

    .hero-copy h1 {
        font-size: clamp(28px, 7vw, 36px);
        margin-bottom: 12px;
        line-height: 1.2;
    }

    .hero-copy p {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero-search-options {
        padding: 8px 10px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-search-options .radio-option {
        width: 100%;
    }

    .hero-search-options .radio-custom {
        width: 18px;
        height: 18px;
    }

    .hero-search-options .radio-label {
        font-size: 13px;
    }

    .hero-search-bar {
        border-radius: 12px;
    }

    .hero-search-bar select {
        padding: 12px 32px 12px 12px;
        font-size: 13px;
    }

    .hero-search-btn {
        padding: 12px 18px;
        font-size: 13px;
    }

    .hero-slider-prev,
    .hero-slider-next {
        display: none; /* Arrows hidden */
    }

    .hero-slider-dots {
        bottom: 12px;
        gap: 6px;
    }

    .hero-slider-dot {
        width: 8px;
        height: 8px;
    }

    .hero-slider-dot.active {
        width: 20px;
    }

}

    .hero-search-options {
        gap: 20px;
        margin-bottom: 14px;
        padding: 10px 16px;
    }

    .hero-search-options .radio-label {
        font-size: 14px;
    }

    .hero-search-bar {
        flex-wrap: wrap;
    }

    .hero-search-bar .search-field {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-search-bar .search-field:nth-child(2) {
        border-right: none;
    }

    .hero-search-bar .search-field:last-of-type {
        border-bottom: none;
    }


@media (max-width: 640px) {
    .modern-hero {
        min-height: 550px;
    }

    .modern-hero .container {
        padding: 50px 0 30px;
    }

    .hero-slider-controls {
        display: none; /* Arrows removed */
    }

    .hero-slider-prev,
    .hero-slider-next {
        display: none; /* Arrows hidden */
    }

    .hero-slider-dots {
        bottom: 15px;
        gap: 10px;
    }

    .hero-slider-dot {
        width: 10px;
        height: 10px;
    }

    .hero-slider-dot.active {
        width: 28px;
    }

    .hero-search-options {
        gap: 16px;
        margin-bottom: 12px;
        padding: 10px 14px;
        width: 100%;
    }

    .hero-search-options .radio-custom {
        width: 18px;
        height: 18px;
    }

    .hero-search-options .radio-label {
        font-size: 14px;
    }

    .hero-search-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search-bar .search-field {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .hero-search-bar .search-field:last-of-type {
        border-bottom: none;
    }

    .hero-search-btn {
        width: 100%;
        border-radius: 0 0 12px 12px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .hero-btn {
        min-width: 160px;
        padding: 14px 24px;
    }
}

/* Mobile Only Image Slideshow */
.mobile-hero-slideshow {
    display: none; /* Default: hidden on desktop/tablet */
    position: relative;
    width: 100%;
    min-height: 220px;
    max-height: 260px;
    overflow: hidden;
    background: transparent;
}

.mobile-slider-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.mobile-slide-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover; /* Image should fully cover area (no black lines) */
    background-position: center center;
    background-repeat: no-repeat;
    background-color: transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.mobile-slide-bg.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.mobile-slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(10, 14, 26, 0.2) 0%,
        rgba(10, 14, 26, 0.1) 50%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
}

.mobile-slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
    justify-content: center;
}

.mobile-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.mobile-slider-dot.active {
    background: #ffffff;
    border-color: #ffffff;
    width: 24px;
    border-radius: 6px;
}

/* Show mobile slideshow only on mobile devices */
@media (max-width: 480px) {
    .mobile-hero-slideshow {
        display: block; /* Visible only on mobile */
    }

    /* Mobile par purana hero (text + search) hide karna hai */
    .modern-hero {
        display: none;
    }
}

.hero-section {
    max-width: 1440px;
    background: transparent;
    color: #ffffff;
    margin: 0 auto 40px;
    position: relative;
}

.hero-inner {
    display: flex;
    gap: 2rem;
    padding: 20px 20px 20px 50px;
    min-height: 546px;
    position: relative;
}

/* Hero Carousel */
.hero-carousel-wrapper {
    flex: 1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    min-height: 546px;
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 546px;
}

.hero-slides {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 546px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 546px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slide .mainbox {
    width: 100%;
    height: 100%;
}

/* Hero Pager Navigation */
.hero-pager {
    position: absolute;
    bottom: 1.5rem;
    left: 2.5rem;
    right: 2.5rem;
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 10;
    align-items: flex-end;
    justify-content: space-evenly;
}

.pager-item {
    color: rgb(255, 255, 255);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding: 0;
    padding-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
}

.pager-item .hover {
    font-size: 0.9rem;
    font-weight: 400;
    white-space: nowrap;
    color: inherit;
}

.pager-item:hover {
    border-color: rgba(255, 255, 255, 0.6);
}

.pager-item.active {
    border-color: rgb(255, 255, 255);
    border-bottom-width: 3px;
}

.hero-left {
    align-content: center;
}

.search-card {
    background: #fff;
    color: #000;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
    width: 100%;
}

.search-card h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.3;
}

.hero-right {
    position: relative;
    flex: 1;
    border-radius: 24px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/Desktop_1686x548px.jpg');
    background-size: cover;
    background-position: center right;
    filter: saturate(1.1);
}

.hero-right::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 2.5rem 2.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 360px;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    background: #ff5c39;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    color: #fff;
}

.hero-content h1 {
    font-size: 2.1rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: #fff;
    font-weight: 600;
}

.hero-content p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    color: #fff;
}

.cta-btn {
    border: none;
    border-radius: 999px;
    padding: 0.75rem 1.6rem;
    font-weight: 600;
    cursor: pointer;
    background: #fff;
    color: #000;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    width: fit-content;
}

.cta-btn:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.hero-bottom-nav {
    position: absolute;
    left: 2.5rem;
    right: 2.5rem;
    bottom: 1.5rem;
    display: flex;
    gap: 1.5rem;
    z-index: 1;
}

.nav-item {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.85rem;
    opacity: 0.75;
    cursor: pointer;
    padding-bottom: 0.35rem;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.nav-item:hover {
    opacity: 1;
}

.nav-item.active {
    opacity: 1;
    border-color: #fff;
}

.search-panel {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 100%;
}

.search-panel h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.car-type-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px 20px;
    border: 1px solid #333;
    background: var(--white);
    cursor: pointer;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: #333;
    color: var(--white);
    border-color: #333;
}

.tab-btn:not(.active) {
    background: var(--white);
    color: #333;
    border: 1px solid #333;
}

.search-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.search-options .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.search-options .radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.radio-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #999;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-options .radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #667eea;
    background: #667eea;
}

.search-options .radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

.radio-label {
    color: #333;
    font-size: 16px;
    font-weight: 400;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    /* margin-bottom: 15px; */
    font-size: 16px;
}

.search-select {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
    cursor: pointer;
}

.search-select:focus {
    outline: none;
    border-color: #667eea;
    background-color: var(--white);
}

.search-select option {
    background: var(--white);
    color: #333;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-search {
    background: #667eea;
    color: var(--white);
    border: none;
    padding: 14px;
    font-weight: 500;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-search:hover {
    background: #5568d3;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(230, 57, 70, 0.3);
}

.advanced-search-link {
    display: block;
    text-align: center;
    margin-top: 12px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    transition: color 0.3s ease;
}

.advanced-search-link:hover {
    color: #667eea;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--dark-color);
}

.btn-white:hover {
    background: var(--light-gray);
}

.btn-block {
    width: 100%;
    text-align: center;
}

.hero-banner {
    position: relative;
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.banner-content {
    position: absolute;
    bottom: 40px;
    left: 40px;
    color: var(--white);
    z-index: 2;
}

.banner-tag {
    background: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 15px;
}

.banner-content h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 18px;
    margin-bottom: 20px;
}

/* Sections */
.section {
    padding: 0;
    margin-bottom: 30px;
}

.section > .container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin-top: 30px;
}

/* Hero section should not have box styling */
.hero-section > .container {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0 20px;
}

.section-title {
    font-size: 23px;
    margin-bottom: 15px;
    font-weight: 500;
    color: var(--dark-color);
}

.category-tabs-wrapper {
    /* margin-bottom: 30px; */
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.category-tabs {
    display: flex;
    gap: 10px;
    /* margin-bottom: 20px; */
    /* padding-top: 20px; */
    flex-wrap: nowrap;
    padding-bottom: 20px;
}

.category-tab {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
    color: var(--dark-color);
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Cars Grid */
.cars-grid-wrapper {
    position: relative;
}

.cars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 16px;
}

.car-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 2px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.car-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: var(--primary-color);
}

.car-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    /*background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 120%;
    max-height: 110%;
    object-fit: contain;
    transition: transform 0.3s ease;
    margin: 0 auto;
}


.car-card:hover .car-image img {
    transform: scale(1.05);
}

/* Badges */
.launch-badge,
.upcoming-badge,
.electric-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(102, 126, 234, 0.95);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.upcoming-badge {
    background: rgba(255, 193, 7, 0.95);
}

.electric-badge {
    background: rgba(76, 175, 80, 0.95);
}

.launch-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.car-info {
    padding: 20px;
}

.car-info h3 {
    font-size: 17px;
    color: var(--dark-color);
    font-weight: 600;
    line-height: 1.4;
    min-height: 30px;
}

.car-price {
    font-size: 15px;
    font-weight: 650;
    color: var(--primary-dark); /* Better contrast for accessibility */
    margin-bottom: 12px;
}

.price-note {
    font-size: 12px;
    font-weight: 400;
    color: var(--gray);
    display: block;
    margin-top: 4px;
}

.car-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.btn-sm {
    padding: 10px 18px;
    font-size: 13px;
    width: 100%;
    flex: 1;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    min-height: 44px; /* Touch target size */
}

.btn-offers {
    padding: 10px 18px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    min-height: 44px; /* Touch target size */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-offers:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.view-all-link {
    text-align: center;
    margin-top: 8px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 8px 12px;
    min-height: 44px; /* Touch target size */
    min-width: 44px;
}

.view-all-btn:hover,
.view-all-btn:focus {
    gap: 12px;
    color: #5568d3;
    text-decoration: none;
    outline: none;
}

.view-all-btn i {
    transition: transform 0.3s;
}

.view-all-btn:hover i {
    transform: translateX(5px);
}

.launch-date {
    font-size: 13px;
    color: var(--gray);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-image {
    height: 180px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    margin-bottom: 10px;
}

.news-content h3 a {
    color: var(--dark-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 650;
}

.news-content h3 a:hover {
    color: var(--primary-color);
}

.news-content p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.news-date {
    font-size: 12px;
    color: var(--gray);
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 18px;
}

.social-links a:hover {
    background: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #ccc;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Auth Pages */
.auth-container {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    background: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.auth-container h2 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark-color);
}

/* Car Details Page */
.car-details-header {
    background: var(--light-gray);
    padding: 40px 0;
}

.car-details-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.car-gallery {
    position: relative;
}

.main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.thumbnail-images {
    display: flex;
    gap: 10px;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
}

.thumbnail-images img.active {
    border-color: var(--primary-color);
}

.car-specs {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.spec-row:last-child {
    border-bottom: none;
}


/* Subtle table-style grid for key comfort features */
.spec-feature-table-wrapper {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.spec-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.04); /* very light outer border */
    overflow: hidden;
}

.spec-feature-item {
    padding: 10px 16px;
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    font-size: 14px;
}

.spec-feature-item:nth-child(2n) {
    border-right: none; /* remove right border for second column */
}

.spec-feature-label {
    color: var(--dark-color);
    font-weight: 600;
}

.spec-feature-value {
    color: #666;
}

@media (max-width: 768px) {
    .spec-feature-grid {
        grid-template-columns: 1fr; /* stack on mobile */
    }
}

/* Admin Panel Styles */
.admin-header {
    background: var(--dark-color);
    color: var(--white);
    padding: 20px 0;
}

.admin-nav {
    display: flex;
    gap: 30px;
}

.admin-nav a {
    color: var(--white);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 4px;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: var(--primary-color);
}

.admin-content {
    padding: 40px 0;
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background: var(--light-gray);
    font-weight: 600;
    width: 10px;
}

.table tr:hover {
    background: var(--light-gray);
}

/* Popular Brands */
.popular-brands {
    background: transparent;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.brand-card {
    background: var(--white);
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 2px solid transparent;
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: var(--primary-color);
}

.brand-logo {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.brand-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto;
}

.brand-card h4 {
    color: var(--dark-color);
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* Brands carousel - single row, 7 per view, next button */
.brands-carousel {
    position: relative;
}

.brands-viewport {
    overflow: hidden;
}

.brands-track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s ease;
}

/* 7 cards per row on desktop */
.brands-carousel .brand-card {
    flex: 0 0 calc((100% - (20px * 6)) / 7);
    margin-top: 10px;
    margin-bottom: 10px;
    ;
}

.brands-prev,
.brands-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: var(--white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    color: var(--dark-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.brands-prev {
    left: -6px;
}

.brands-next {
    right: -6px;
}

.brands-prev:hover,
.brands-next:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.brands-prev:disabled,
.brands-next:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* On desktop, hide brands after 12th initially */
.brand-card.brand-hidden {
    display: none;
}

/* Show all brands when expanded on desktop */
.brands-carousel.show-all .brand-card.brand-hidden {
    display: block;
}

@media (max-width: 1200px) {
    .brands-carousel .brand-card { flex: 0 0 calc((100% - (20px * 5)) / 6); }
}

@media (max-width: 992px) {
    .brands-carousel .brand-card { flex: 0 0 calc((100% - (20px * 4)) / 5); }
}

@media (max-width: 768px) {
    /* Hide navigation arrows on mobile */
    .brands-prev,
    .brands-next {
        display: none;
    }
    
    /* Change carousel to grid layout on mobile */
    .brands-carousel {
        background: var(--white);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        padding: 0;
        overflow: hidden;
    }
    
    .brands-viewport {
        overflow: visible;
    }
    
    .brands-track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
        transform: none !important;
        transition: none;
    }
    
    /* Style brand cards for grid layout */
    .brands-carousel .brand-card {
        flex: none;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        border: 1px solid #e0e0e0;
        padding: 20px 10px;
        border-left: none;
        border-top: none;
        background: var(--white);
    }
    
    /* Add left border to first column */
    .brands-track .brand-card:nth-child(3n + 1) {
        border-left: 1px solid #e0e0e0;
    }
    
    /* Add top border to first row */
    .brands-track .brand-card:nth-child(-n + 3) {
        border-top: 1px solid #e0e0e0;
    }
    
    /* Remove hover effects on mobile grid */
    .brands-carousel .brand-card:hover {
        transform: none;
        box-shadow: none;
        border-color: #e0e0e0;
    }
    
    /* Adjust logo size for mobile grid */
    .brands-carousel .brand-card .brand-logo {
        height: 50px;
        margin-bottom: 10px;
    }
    
    /* Adjust text size for mobile */
    .brands-carousel .brand-card h4 {
        font-size: 13px;
    }
    
    /* Hide brands after the 12th on mobile */
    .brands-carousel .brand-card.brand-hidden {
        display: none;
    }
    
    /* Show all brands when expanded */
    .brands-carousel.show-all .brand-card.brand-hidden {
        display: block;
    }
}

@media (max-width: 520px) {
    /* Keep grid layout for smaller mobile screens */
    .brands-carousel .brand-card {
        padding: 15px 8px;
    }
    
    .brands-carousel .brand-card .brand-logo {
        height: 45px;
        margin-bottom: 8px;
    }
    
    .brands-carousel .brand-card h4 {
        font-size: 12px;
    }
}

/* Section Backgrounds - All sections now use white box design */
/* Styling is applied via .section > .container above */

/* Responsive */
@media (max-width: 900px) {
    .hero-inner {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem 4vw;
    }

    .hero-left, .hero-carousel-wrapper {
        flex: 1 1 auto;
        width: 100%;
    }

    .hero-carousel-wrapper {
        min-height: 320px;
    }

    .hero-carousel {
        min-height: 320px;
    }

    .hero-slides {
        min-height: 320px;
    }

    .hero-slide {
        min-height: 320px;
    }

    .hero-pager {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1rem;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .pager-item .hover {
        font-size: 0.8rem;
    }

    .hero-content {
        padding: 2rem 1.5rem 3rem;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-bottom-nav {
        left: 1.5rem;
        right: 1.5rem;
        flex-wrap: wrap;
        row-gap: 0.5rem;
    }

    .nav-item {
        font-size: 0.8rem;
    }

    .search-card {
        padding: 1.5rem 1.25rem;
    }
    
    /* Show search panel on mobile with adjusted styling */
    .search-panel {
        display: block;
        padding: 25px 20px;
        margin-bottom: 20px;
        width: 100%;
        max-width: 100%;
    }
    
    .search-panel h2 {
        font-size: 18px;
        margin-bottom: 18px;
    }
    
    .car-type-tabs {
        gap: 8px;
        margin-bottom: 18px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .search-options {
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .radio-label {
        font-size: 13px;
    }
    
    .form-control,
    .search-select {
        padding: 11px;
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .btn-search {
        padding: 12px;
        font-size: 13px;
    }
    
    .advanced-search-link {
        font-size: 13px;
        margin-top: 10px;
    }
    
    .hero-banner {
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        padding: 20px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav li {
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav a {
        padding: 15px 0;
        display: block;
    }
    
    .main-nav .dropdown-menu {
        position: static;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        background: var(--light-gray);
    }
    
    .main-nav .dropdown-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .header-content {
        flex-wrap: nowrap;
    }
    
    .header-content > .logo {
        order: 2;
        flex: 1;
    }
    
    .header-content > .main-nav {
        order: 4;
    }
    
    .header-content > .header-actions {
        order: 3;
        flex-shrink: 0;
        width: auto;
        margin-top: 0;
    }
    
    .mobile-menu-toggle {
        order: 1;
    }
    
    /* Hide location icon on mobile */
    .header-actions .location-wrapper,
    .header-actions a[title="Location"],
    .header-actions a[onclick*="citySelector"] {
        display: none !important;
    }
    
    /* Keep search and account icons visible */
    .header-actions a[title="Search"],
    .header-actions a[title="My Account"],
    .header-actions a[title="Login"] {
        display: flex !important;
    }
    
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    @media (max-width: 480px) {
        .cars-grid {
            grid-template-columns: 1fr;
        }
    }
    
    .car-details-content {
        grid-template-columns: 1fr;
    }
    
    .category-tabs {
        gap: 8px;
    }
    
    .category-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 15px;
    }
    
    /* Responsive section boxes */
    .section > .container {
        padding: 25px 20px;
        border-radius: 8px;
    }
    
    /* Responsive car listing cards */
    .cars-list > div[style*="display: flex"] > div[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    .cars-list > div[style*="display: flex"] > div[style*="flex: 0 0 280px"] {
        flex: 0 0 100% !important;
    }
    
    details summary::-webkit-details-marker {
        display: none;
    }
    
    details summary {
        list-style: none;
    }
    
    .car-actions {
        flex-direction: column;
    }
    
    .btn-sm {
        width: 100%;
        text-align: center;
    }
}

/* Filter Sidebar Styles */
details summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
}

details[open] summary i.fa-chevron-down {
    transform: rotate(180deg);
}

.filters-sidebar details {
    transition: all 0.3s ease;
}

.filters-sidebar input[type="checkbox"],
.filters-sidebar input[type="radio"] {
    cursor: pointer;
}

.filters-sidebar label {
    cursor: pointer;
}

.filters-sidebar label:hover {
    background: #f8f9fa;
    padding: 4px;
    border-radius: 4px;
    margin: -4px;
}

/* Vehicle Type Icons - Simple Outline Style */
.iconHolder {
    width: 90px;
    height: 80px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-bottom: -10px;
}

/* Base icon styles - black outline */
.iconHolder[class*="icon-"] {
    background-size: 100% 100%;
}

/* Hatchback - sloped rear with distinct hatch */
.icon-hatchbackIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 30 L 10 25 L 20 20 L 35 20 L 35 15 L 65 15 L 65 20 L 80 20 L 90 25 L 90 30 L 85 30 L 85 35 L 75 35 L 75 30 L 25 30 L 25 35 L 15 35 L 15 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cline x1='35' y1='20' x2='35' y2='15' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

/* Sedan - three-box design */
.icon-sedanIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 30 L 10 25 L 20 20 L 80 20 L 90 25 L 90 30 L 85 30 L 85 35 L 75 35 L 75 30 L 25 30 L 25 35 L 15 35 L 15 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cline x1='20' y1='20' x2='20' y2='15' stroke='%23333' stroke-width='2'/%3E%3Cline x1='80' y1='20' x2='80' y2='15' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

/* SUV - larger, boxier vehicle */
.icon-suvIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 25 L 10 20 L 20 15 L 80 15 L 90 20 L 90 25 L 90 30 L 85 30 L 85 35 L 75 35 L 75 30 L 25 30 L 25 35 L 15 35 L 15 30 L 10 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cline x1='25' y1='15' x2='25' y2='10' stroke='%23333' stroke-width='2'/%3E%3Cline x1='75' y1='15' x2='75' y2='10' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

/* MUV - multi-utility vehicle */
.icon-muvIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 25 L 10 20 L 20 15 L 80 15 L 90 20 L 90 25 L 90 30 L 85 30 L 85 35 L 75 35 L 75 30 L 25 30 L 25 35 L 15 35 L 15 30 L 10 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cline x1='30' y1='20' x2='30' y2='25' stroke='%23333' stroke-width='1.5'/%3E%3Cline x1='50' y1='20' x2='50' y2='25' stroke='%23333' stroke-width='1.5'/%3E%3Cline x1='70' y1='20' x2='70' y2='25' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* Luxury - sleek, elongated */
.icon-luxuryIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 5 30 L 5 25 L 15 18 L 85 18 L 95 25 L 95 30 L 90 30 L 90 35 L 80 35 L 80 30 L 20 30 L 20 35 L 10 35 L 10 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cpath d='M 20 18 L 25 12 L 75 12 L 80 18' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

/* Super Luxury - even more streamlined */
.icon-super-luxuryIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 5 30 L 5 25 L 15 18 L 85 18 L 95 25 L 95 30 L 90 30 L 90 35 L 80 35 L 80 30 L 20 30 L 20 35 L 10 35 L 10 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cpath d='M 20 18 L 25 10 L 75 10 L 80 18' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='20' cy='18' r='2' fill='%23333'/%3E%3Ccircle cx='80' cy='18' r='2' fill='%23333'/%3E%3C/svg%3E");
}

/* Convertible - open top */
.icon-convertibleIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 30 L 10 25 L 20 20 L 80 20 L 90 25 L 90 30 L 85 30 L 85 35 L 75 35 L 75 30 L 25 30 L 25 35 L 15 35 L 15 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cpath d='M 20 20 Q 50 12 80 20' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

/* Coupe - sporty, sloping roofline */
.icon-coupeIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 30 L 10 25 L 20 20 L 30 18 L 70 18 L 80 20 L 90 25 L 90 30 L 85 30 L 85 35 L 75 35 L 75 30 L 25 30 L 25 35 L 15 35 L 15 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cpath d='M 30 18 L 35 15 L 65 15 L 70 18' fill='none' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

/* Pickup Truck - truck with cargo bed */
.icon-pickup-truckIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 30 L 10 20 L 20 15 L 50 15 L 50 20 L 50 30 L 45 30 L 45 35 L 35 35 L 35 30 L 15 30 L 15 35 L 10 35 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cpath d='M 50 30 L 50 25 L 60 25 L 90 25 L 90 30 L 90 35 L 85 35 L 85 30 L 55 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cline x1='50' y1='25' x2='50' y2='30' stroke='%23333' stroke-width='2'/%3E%3C/svg%3E");
}

/* Minivan - larger, boxy passenger van */
.icon-minivanIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 25 L 10 20 L 20 15 L 80 15 L 90 20 L 90 25 L 90 30 L 85 30 L 85 35 L 75 35 L 75 30 L 25 30 L 25 35 L 15 35 L 15 30 L 10 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cline x1='25' y1='20' x2='25' y2='25' stroke='%23333' stroke-width='1.5'/%3E%3Cline x1='40' y1='20' x2='40' y2='25' stroke='%23333' stroke-width='1.5'/%3E%3Cline x1='60' y1='20' x2='60' y2='25' stroke='%23333' stroke-width='1.5'/%3E%3Cline x1='75' y1='20' x2='75' y2='25' stroke='%23333' stroke-width='1.5'/%3E%3C/svg%3E");
}

/* Electric - similar to sedan but with electric indicator */
.icon-electricIcon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50'%3E%3Cpath d='M 10 30 L 10 25 L 20 20 L 80 20 L 90 25 L 90 30 L 85 30 L 85 35 L 75 35 L 75 30 L 25 30 L 25 35 L 15 35 L 15 30 Z' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='25' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Ccircle cx='75' cy='40' r='5' fill='none' stroke='%23333' stroke-width='2'/%3E%3Cpath d='M 50 10 L 52 18 L 50 18 L 48 18 Z' fill='%23333' stroke='%23333' stroke-width='1'/%3E%3C/svg%3E");
}

/* Primary color outline when selected */
label:has(input[type="checkbox"]:checked) .iconHolder,
label:has(input[type="checkbox"]:checked) [class*="icon-"] {
    filter: brightness(0) saturate(100%) invert(38%) sepia(95%) saturate(2000%) hue-rotate(220deg) brightness(1.1) contrast(1);
}

/* Alternative method for selected state - using border color change */
.filters-sidebar label[style*="border-color: var(--primary-color)"] .iconHolder,
.filters-sidebar label[style*="border-color: var(--primary-color)"] [class*="icon-"] {
    filter: brightness(0) saturate(100%) invert(38%) sepia(95%) saturate(2000%) hue-rotate(220deg) brightness(1.1) contrast(1);
}

/* Compare Cars Section */
.compare-cars-section {
    background: #f8f9fa;
}

.compare-cars-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.compare-cars-viewport {
    overflow: hidden;
    width: 100%;
}

.compare-cars-track {
    display: flex;
    gap: 20px;
    transition: transform 0.3s ease;
    padding: 10px 0;
}

.compare-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 0px 5px rgba(0,0,0,0.1);
    padding: 20px;
    min-width: calc(25% - 15px);
    max-width: calc(25% - 15px);
    flex: 0 0 calc(25% - 15px);
    display: flex;
    flex-direction: column;
}

.compare-cars-images {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    position: relative;
}

.compare-car-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compare-car-item img {
    width: 100%;
    max-width: 140px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.compare-car-info {
    text-align: center;
    width: 100%;
}

.compare-car-brand {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.compare-car-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 4px;
    line-height: 1.3;
}

.compare-car-price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

.compare-vs-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: #333;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.compare-btn {
    display: block;
    text-align: center;
    padding: 10px 15px;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.compare-btn:hover {
    background: var(--primary-color);
    color: white;
}

.compare-cars-prev,
.compare-cars-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.compare-cars-prev {
    left: -20px;
}

.compare-cars-next {
    right: -20px;
}

.compare-cars-prev:hover,
.compare-cars-next:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.compare-cars-prev:disabled,
.compare-cars-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.compare-cars-prev:disabled:hover,
.compare-cars-next:disabled:hover {
    background: white;
    color: inherit;
    border-color: #ddd;
}

@media (max-width: 1200px) {
    .compare-card {
        min-width: calc(33.333% - 14px);
        max-width: calc(33.333% - 14px);
        flex: 0 0 calc(33.333% - 14px);
    }
}

@media (max-width: 768px) {
    .compare-card {
        min-width: calc(50% - 10px);
        max-width: calc(50% - 10px);
        flex: 0 0 calc(50% - 10px);
    }
    
    .compare-cars-prev,
    .compare-cars-next {
        width: 35px;
        height: 35px;
    }
    
    .compare-cars-prev {
        left: -15px;
    }
    
    .compare-cars-next {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .compare-card {
        min-width: 100%;
        max-width: 100%;
        flex: 0 0 100%;
    }
}

/* Sticky Filter Bar (Mobile) */
.sticky-filter-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    z-index: 1000;
    border-top: 1px solid var(--border-color);
}

.sticky-filter-bar.active {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.sticky-filter-bar .btn {
    flex: 1;
    padding: 12px 20px;
    font-weight: 600;
}

/* Mobile Modals */
.mobile-modal {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-radius: 20px 20px 0 0;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 2000;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.mobile-modal.active {
    display: block;
    transform: translateY(0);
}

.mobile-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
}

.mobile-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.mobile-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-modal-content {
    padding: 20px;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.mobile-overlay.active {
    display: block;
}

/* Enhanced Car Cards */
.car-card {
    position: relative;
}

.car-card .car-image img {
    transition: transform 0.3s ease;
}

.car-card:hover .car-image img {
    transform: scale(1.05);
}

/* Lazy Loading */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[data-src].loaded {
    opacity: 1;
}

/* Sort Dropdown */
.sort-dropdown {
    position: relative;
}

.sort-dropdown select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 35px;
}

/* Budget Range Slider */
.range-slider {
    width: 100%;
    margin: 20px 0;
}

.range-display {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
}

.range-slider-wrapper {
    position: relative;
    width: 100%;
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin: 20px 0;
    display: block;
}

.range-slider-wrapper::before {
    content: '';
    position: absolute;
    left: var(--min-percent, 0%);
    width: calc(var(--max-percent, 100%) - var(--min-percent, 0%));
    height: 6px;
    background: #667eea;
    border-radius: 3px;
    z-index: 1;
    top: 0;
}

.range-slider input[type="range"] {
    position: absolute;
    width: 100%;
    height: 6px;
    background: transparent !important;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    pointer-events: none;
    z-index: 2;
    margin: 0;
    padding: 0;
    top: 0;
    left: 0;
    border: none;
    box-sizing: border-box;
}

.range-slider input[type="range"]#priceMin {
    z-index: 2;
}

.range-slider input[type="range"]#priceMax {
    z-index: 3;
}

.range-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #667eea;
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    margin-top: -7px;
}

.range-slider input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #667eea;
    cursor: pointer;
    pointer-events: all;
    position: relative;
    z-index: 4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 2px solid #667eea;
    background: #fff;
}

.range-slider input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.range-slider input[type="range"]::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
}

.range-slider input[type="range"]::-moz-range-track {
    background: transparent !important;
    height: 6px;
    border: none;
}

.range-slider input[type="range"]::-webkit-slider-runnable-track {
    background: transparent !important;
    height: 6px;
    border: none;
}

.range-values {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 14px;
    color: var(--gray);
}

/* Quick Filter Buttons */
.quick-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.quick-filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    color: var(--dark-color);
    display: inline-block;
}

.quick-filter-btn:hover,
.quick-filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Enhanced Button Styles */
.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Responsive Enhancements */
@media (max-width: 768px) {
    .filters-sidebar {
        display: none;
    }
    
    .sticky-filter-bar {
        display: flex;
    }
    
    .cars-list {
        width: 100%;
    }
    
    .mobile-filter-btn,
    .mobile-sort-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 12px 20px;
        background: white;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        cursor: pointer;
        font-weight: 500;
        width: 100%;
        justify-content: center;
    }
    
    .mobile-filter-btn i,
    .mobile-sort-btn i {
        font-size: 18px;
    }
}

@media (min-width: 769px) {
    .mobile-filter-btn,
    .mobile-sort-btn,
    .sticky-filter-bar {
        display: none !important;
    }
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    white-space: nowrap;
    flex-direction: row;
}

.location-wrapper {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 10px;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark-color);
    text-decoration: none;
    transition: all 0.3s;
}

.header-icon-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Header Search Form */
.header-search-form {
    display: flex;
    align-items: center;
    position: relative;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s;
    min-width: 250px;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.header-search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--dark-color);
    background: transparent;
}

.header-search-input::placeholder {
    color: var(--gray);
}

.header-search-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    flex-shrink: 0;
}

.header-search-btn:hover {
    background: var(--primary-dark);
}

/* Search Results Page Styles */
.search-results-header {
    margin-bottom: 30px;
}

.search-results-header h1 {
    margin-bottom: 15px;
    color: var(--dark-color);
}

.search-info {
    margin-top: 15px;
}

.search-results-count {
    font-size: 16px;
    color: var(--gray);
    margin-bottom: 15px;
}

.search-results-count strong {
    color: var(--primary-color);
    font-weight: 600;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--dark-color);
}

.remove-filter {
    color: var(--gray);
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
    margin-left: 5px;
    transition: color 0.3s;
}

.remove-filter:hover {
    color: var(--primary-color);
}

.featured-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ffc107;
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

.electric-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #4caf50;
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
}

/* Mobile Responsive for Search */
@media (max-width: 768px) {
    .search-input-wrapper {
        min-width: 200px;
        max-width: 200px;
    }
    
    .header-search-input {
        font-size: 13px;
        padding: 8px 12px;
        width: 100px;
    }
    
    .header-search-btn {
        width: 35px;
        height: 35px;
    }
    
    .search-input-wrapper {
        min-width: 180px;
        max-width: 180px;
    }
}

@media (max-width: 480px) {
    .header-search-form {
        order: -1;
        width: 100%;
    }
    
    .search-input-wrapper {
        min-width: 100%;
        max-width: 100%;
    }
    
    .header-actions {
        flex-direction: row;
        width: 100%;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .header-actions .header-search-form {
        width: 100%;
        order: -1;
    }
    
    .header-actions .location-wrapper,
    .header-actions .header-icon-btn {
        flex-shrink: 0;
    }
}

/* Car Listing Grid View */
.cars-grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.car-card-grid {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.car-card-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Rating Stars */
.rating-stars {
    display: inline-flex;
    gap: 2px;
    color: #ffc107;
}

.rating-stars i {
    font-size: 14px;
}

/* Price Display */
.price-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 8px 0;
}

/* Mileage Badge */
.mileage-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 12px;
    font-size: 12px;
    color: var(--gray);
}

/* View Offers Button */
.btn-offers {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    transition: all 0.3s;
}

.btn-offers:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN ENHANCEMENTS
   ============================================ */

/* ========== iPad & Tablet Landscape (769px - 1024px) ========== */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .hero-inner {
        gap: 1.75rem;
        padding: 1.75rem 3vw;
    }

    .hero-left {
        flex: 0 0 38%;
    }

    .hero-right {
        flex: 1;
    }

    .hero-content {
        padding: 2.25rem 2rem 3.25rem;
    }

    .hero-content h1 {
        font-size: 1.95rem;
    }
    
    .cars-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .car-details-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .main-image {
        height: 350px;
    }
    
    .thumbnail-images {
        gap: 8px;
    }
    
    .thumbnail-images img {
        width: 70px;
        height: 70px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .category-tabs {
        gap: 10px;
    }
    
    .category-tab {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 18px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .search-panel {
        padding: 25px;
    }
    
    .search-panel h2 {
        font-size: 19px;
    }
    
    .car-type-tabs {
        gap: 8px;
    }
    
    .tab-btn {
        padding: 11px 18px;
        font-size: 13px;
    }
    
    .form-control,
    .search-select {
        padding: 11px;
    }
    
    .btn-search {
        padding: 13px;
    }
    
    .car-card {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .car-card:active {
        transform: scale(0.98);
    }
}

/* ========== Tablet Portrait (481px - 768px) ========== */
@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    /* Hero Section */
    .hero-section {
        margin-bottom: 30px;
    }

    .hero-inner {
        padding: 1.5rem 3vw;
        min-height: 380px;
    }

    .hero-content {
        padding: 2rem 1.75rem 3rem;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-bottom-nav {
        left: 1.75rem;
        right: 1.75rem;
    }
    
    .hero-banner {
        height: 350px;
        border-radius: 12px;
    }
    
    .banner-content {
        bottom: 25px;
        left: 25px;
        right: 25px;
    }
    
    .banner-content h2 {
        font-size: 28px;
        margin-bottom: 8px;
    }
    
    .banner-content p {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .banner-tag {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    /* Header Enhancements */
    .header-content {
        padding: 12px 0;
    }
    
    .logo h1 {
        font-size: 24px;
    }
    
    .header-icon-btn {
        width: 38px;
        height: 38px;
    }
    
    .search-input-wrapper {
        min-width: 180px;
        max-width: 180px;
    }
    
    .header-search-input {
        font-size: 13px;
        padding: 9px 12px;
    }
    
    /* Cars Grid */
    .cars-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .car-card {
        border-radius: 10px;
    }
    
    .car-image {
        height: 180px;
    }
    
    .car-info {
        padding: 18px;
    }
    
    .car-info h3 {
        font-size: 16px;
        min-height: 40px;
    }
    
    .car-price {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .car-actions {
        gap: 8px;
    }
    
    .btn-sm {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    /* Sections */
    .section {
        margin-bottom: 25px;
    }
    
    .section > .container {
        padding: 22px 18px;
        border-radius: 10px;
    }
    
    .section-title {
        font-size: 20px;
        margin-bottom: 18px;
    }
    
    /* Category Tabs */
    .category-tabs-wrapper {
        margin-bottom: 20px;
    }
    
    .category-tabs {
        gap: 8px;
        padding-bottom: 15px;
    }
    
    .category-tab {
        padding: 9px 15px;
        font-size: 13px;
        border-radius: 8px;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    
    .news-card {
        border-radius: 10px;
    }
    
    .news-image {
        height: 160px;
    }
    
    .news-content {
        padding: 18px;
    }
    
    .news-content h3 a {
        font-size: 14px;
    }
    
    /* Car Details */
    .car-details-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .main-image {
        height: 300px;
        border-radius: 10px;
    }
    
    .thumbnail-images {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .thumbnail-images img {
        width: 65px;
        height: 65px;
        border-radius: 6px;
    }
    
    .car-specs {
        padding: 25px;
        border-radius: 10px;
    }
    
    .spec-row {
        padding: 12px 0;
        font-size: 14px;
    }
    
    /* Brands */
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 15px;
    }
    
    .brand-card {
        padding: 20px 12px;
        border-radius: 10px;
    }
    
    .brand-logo {
        height: 55px;
        margin-bottom: 10px;
    }
    
    .brand-card h4 {
        font-size: 13px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .main-footer {
        padding: 40px 0 15px;
        margin-top: 50px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .social-links {
        gap: 12px;
        margin-top: 15px;
    }
    
    .social-links a {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    /* Compare Cards */
    .compare-card {
        padding: 18px;
        border-radius: 10px;
    }
    
    .compare-car-item img {
        max-width: 120px;
        height: 90px;
    }
    
    .compare-vs-badge {
        width: 36px;
        height: 36px;
        font-size: 13px;
    }
    
    /* Buttons */
    .btn {
        padding: 11px 22px;
        font-size: 13px;
        border-radius: 6px;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-white {
        min-height: 44px; /* Touch-friendly */
    }
    
    .view-all-btn {
        font-size: 14px;
    }
    
    /* Forms */
    .form-control {
        padding: 11px;
        font-size: 13px;
        min-height: 44px; /* Touch-friendly */
    }
    
    .auth-container {
        max-width: 420px;
        padding: 35px;
        margin: 50px auto;
    }
    
    /* Pagination */
    .pagination {
        gap: 8px;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 14px;
        font-size: 13px;
        min-width: 44px;
        min-height: 44px;
    }
}

/* ========== Mobile Devices (max-width: 480px) ========== */
@media (max-width: 480px) {
    /* Base Container */
    .container {
        padding: 0 15px;
    }
    
    /* Hero Section */
    .hero-section {
        margin-bottom: 25px;
    }

    .hero-inner {
        padding: 1.25rem 3vw;
        min-height: 300px;
        gap: 1.25rem;
    }

    .hero-content {
        padding: 1.75rem 1.5rem 2.75rem;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 0.85rem;
    }

    .hero-bottom-nav {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 1.25rem;
        gap: 1rem;
    }

    .nav-item {
        font-size: 0.75rem;
    }

    .search-card {
        padding: 1.25rem 1rem;
    }
    
    .hero-banner {
        height: 280px;
        border-radius: 10px;
    }
    
    .banner-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
    
    .banner-content h2 {
        font-size: 22px;
        margin-bottom: 6px;
        line-height: 1.3;
    }
    
    .banner-content p {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .banner-tag {
        font-size: 10px;
        padding: 4px 10px;
        margin-bottom: 10px;
    }
    
    .btn-white {
        padding: 10px 18px;
        font-size: 12px;
    }
    
    /* Header */
    .main-header {
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    
    .header-content {
        padding: 10px 0;
        gap: 10px;
    }
    
    .logo h1 {
        font-size: 20px;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-toggle span {
        height: 2.5px;
    }
    
    .header-icon-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .search-input-wrapper {
        min-width: 170px;
        max-width: 170px;
        border-radius: 20px;
    }
    
    .header-search-input {
        font-size: 12px;
        padding: 8px 10px;
    }
    
    .header-search-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    /* Mobile Menu */
    .main-nav {
        padding: 15px;
        border-radius: 0 0 10px 10px;
        animation: slideDown 0.3s ease;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .main-nav a {
        padding: 14px 0;
        font-size: 15px;
    }
    
    .main-nav .dropdown-menu {
        margin-left: 15px;
        border-left: 2px solid var(--primary-color);
        padding-left: 15px;
    }
    
    .main-nav .dropdown-menu a {
        padding: 12px 0;
        font-size: 14px;
    }
    
    /* Cars Grid */
    .cars-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .car-card {
        border-radius: 12px;
        overflow: hidden;
    }
    
    .car-card:active {
        transform: scale(0.98);
    }
    
    .car-image {
        height: 200px;
    }
    
    .car-info {
        padding: 16px;
    }
    
    .car-info h3 {
        font-size: 15px;
        line-height: 1.4;
        min-height: auto;
        margin-bottom: 8px;
    }
    
    .car-price {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .price-note {
        font-size: 11px;
    }
    
    .car-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-sm {
        width: 100%;
        padding: 12px;
        font-size: 13px;
        min-height: 44px;
    }
    
    .btn-offers {
        width: 100%;
        padding: 12px;
        text-align: center;
        font-size: 13px;
        min-height: 44px;
    }
    
    /* Badges */
    .launch-badge,
    .upcoming-badge,
    .electric-badge {
        top: 10px;
        left: 10px;
        padding: 5px 10px;
        font-size: 10px;
    }
    
    .launch-date-badge {
        bottom: 10px;
        left: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 10px;
    }
    
    /* Sections */
    .section {
        margin-bottom: 20px;
    }
    
    .section > .container {
        padding: 20px 15px;
        border-radius: 12px;
        margin-top: 20px;
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 15px;
        font-weight: 600;
    }
    
    /* Category Tabs */
    .category-tabs-wrapper {
        margin-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-tabs {
        gap: 6px;
        padding-bottom: 12px;
        padding-right: 10px;
    }
    
    .category-tab {
        padding: 8px 14px;
        font-size: 12px;
        border-radius: 20px;
        white-space: nowrap;
        min-height: 36px;
        display: flex;
        align-items: center;
    }
    
    /* News Grid */
    .news-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .news-card {
        border-radius: 10px;
    }
    
    .news-image {
        height: 180px;
    }
    
    .news-content {
        padding: 16px;
    }
    
    .news-content h3 a {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .news-content p {
        font-size: 13px;
        margin-bottom: 8px;
    }
    
    .news-date {
        font-size: 11px;
    }
    
    /* Car Details */
    .car-details-header {
        padding: 25px 0;
    }
    
    .car-details-content {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }
    
    .main-image {
        height: 250px;
        border-radius: 10px;
    }
    
    .thumbnail-images {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .thumbnail-images img {
        width: 60px;
        height: 60px;
        border-radius: 6px;
    }
    
    .car-specs {
        padding: 20px;
        border-radius: 10px;
    }
    
    .spec-row {
        padding: 12px 0;
        font-size: 13px;
    }
    
    /* Brands */
    .brands-grid {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
        gap: 12px;
    }
    
    .brand-card {
        padding: 18px 10px;
        border-radius: 10px;
    }
    
    .brand-logo {
        height: 50px;
        margin-bottom: 8px;
    }
    
    .brand-card h4 {
        font-size: 12px;
    }
    
    .brands-prev,
    .brands-next {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
    
    .brands-prev {
        left: -8px;
    }
    
    .brands-next {
        right: -8px;
    }
    
    /* Footer */
    .main-footer {
        padding: 35px 0 15px;
        margin-top: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section h3 {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-section a {
        font-size: 14px;
    }
    
    .social-links {
        gap: 10px;
        margin-top: 15px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .footer-bottom {
        padding-top: 15px;
        font-size: 12px;
    }
    
    /* Compare Cards */
    .compare-card {
        padding: 15px;
        border-radius: 10px;
        min-width: 100%;
        max-width: 100%;
    }
    
    .compare-cars-images {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .compare-car-item img {
        max-width: 100px;
        height: 80px;
    }
    
    .compare-car-brand {
        font-size: 11px;
    }
    
    .compare-car-name {
        font-size: 12px;
    }
    
    .compare-car-price {
        font-size: 12px;
    }
    
    .compare-vs-badge {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .compare-btn {
        padding: 10px;
        font-size: 12px;
        min-height: 44px;
    }
    
    .compare-cars-prev,
    .compare-cars-next {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .compare-cars-prev {
        left: -10px;
    }
    
    .compare-cars-next {
        right: -10px;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 8px;
        min-height: 44px; /* Touch-friendly minimum */
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn-primary,
    .btn-outline,
    .btn-white {
        font-weight: 600;
    }
    
    .view-all-btn {
        font-size: 13px;
        padding: 10px 0;
    }
    
    .view-all-link {
        margin-top: 15px;
    }
    
    /* Forms */
    .form-control {
        padding: 12px;
        font-size: 14px;
        border-radius: 8px;
        min-height: 44px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .auth-container {
        max-width: 100%;
        padding: 25px 20px;
        margin: 30px auto;
        border-radius: 12px;
    }
    
    .auth-container h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    /* Search Panel (Visible on Mobile with adjustments) */
    .search-panel {
        display: block;
        padding: 20px 15px;
    }
    
    .search-panel h2 {
        font-size: 17px;
        margin-bottom: 15px;
    }
    
    .car-type-tabs {
        gap: 6px;
        margin-bottom: 15px;
    }
    
    .tab-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .search-options {
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .radio-custom {
        width: 16px;
        height: 16px;
    }
    
    .radio-label {
        font-size: 12px;
    }
    
    .form-control,
    .search-select {
        padding: 10px;
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .btn-search {
        padding: 12px;
        font-size: 12px;
    }
    
    .advanced-search-link {
        font-size: 12px;
        margin-top: 8px;
    }
    
    /* Pagination */
    .pagination {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        margin-top: 30px;
    }
    
    .pagination a,
    .pagination span {
        padding: 10px 12px;
        font-size: 13px;
        min-width: 44px;
        min-height: 44px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Sticky Filter Bar */
    .sticky-filter-bar {
        padding: 12px 15px;
        border-radius: 0;
    }
    
    .sticky-filter-bar .btn {
        padding: 12px 16px;
        font-size: 13px;
    }
    
    /* Mobile Modals */
    .mobile-modal {
        border-radius: 15px 15px 0 0;
        max-height: 85vh;
    }
    
    .mobile-modal-header {
        padding: 18px 20px;
    }
    
    .mobile-modal-header h3 {
        font-size: 17px;
    }
    
    .mobile-modal-content {
        padding: 18px 20px;
    }
    
    .mobile-modal-close {
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
    
    /* Quick Filters */
    .quick-filters {
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .quick-filter-btn {
        padding: 10px 16px;
        font-size: 13px;
        border-radius: 20px;
        min-height: 40px;
    }
    
    /* Range Slider */
    .range-slider {
        margin: 15px 0;
    }
    
    .range-display {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .range-slider-wrapper {
        height: 6px;
        margin: 15px 0;
    }
    
    .range-slider-wrapper::before {
        height: 6px;
    }
    
    .range-slider input[type="range"] {
        height: 6px;
    }
    
    .range-slider input[type="range"]::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }
    
    .range-slider input[type="range"]::-moz-range-thumb {
        width: 18px;
        height: 18px;
    }
    
    .range-values {
        font-size: 13px;
        margin-top: 8px;
    }
    
    /* Vehicle Type Icons */
    .iconHolder {
        width: 70px;
        height: 60px;
        margin-bottom: -8px;
    }
    
    /* Filters Sidebar (Hidden on Mobile) */
    .filters-sidebar {
        display: none;
    }
    
    /* Car Listing Cards */
    .cars-list > div[style*="display: flex"] {
        flex-direction: column !important;
    }
    
    .cars-list > div[style*="display: flex"] > div[style*="flex: 0 0 280px"] {
        flex: 0 0 100% !important;
        width: 100%;
    }
    
    /* View All Links */
    .view-all-link {
        text-align: center;
        margin-top: 12px;
    }
    
    /* Hero Banner Responsive */
    .hero-banner {
        background-size: cover;
        background-position: center;
    }
    
    /* Enhanced Touch Targets */
    a, button, input, select, textarea {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }
    
    /* Smooth Scrolling */
    html {
        scroll-behavior: smooth;
    }
    
    /* Better Text Readability */
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Improved Focus States */
    *:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
    
    button:focus,
    a:focus {
        outline: 2px solid var(--primary-color);
        outline-offset: 2px;
    }
}

/* ========== Extra Small Mobile (max-width: 360px) ========== */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .logo h1 {
        font-size: 18px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 17px;
    }
    
    .car-info h3 {
        font-size: 14px;
    }
    
    .btn {
        padding: 11px 18px;
        font-size: 13px;
    }
    
    .category-tab {
        padding: 7px 12px;
        font-size: 11px;
    }
}

/* ========== Landscape Orientation Adjustments ========== */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-banner {
        height: 250px;
    }
    
    .banner-content h2 {
        font-size: 20px;
    }
    
    .main-nav {
        max-height: calc(100vh - 60px);
    }
    
    .mobile-modal {
        max-height: 90vh;
    }
}

/* ========== Car Details Page Specific Responsive Styles ========== */

/* Tablet Portrait - Car Details */
@media (min-width: 481px) and (max-width: 768px) {
    /* Main content grid - stack on tablet */
    .car-details-page-main-content {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }
    
    /* Header section */
    .car-details-header-section {
        padding: 25px !important;
    }
    
    .car-details-header-section h1 {
        font-size: 22px !important;
    }
    
    /* Key specs grid - single column on tablet */
    .car-details-key-specs-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Feature grid - 2 columns on tablet */
    .feature-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    }
    
    /* Main image */
    #mainImage {
        height: 350px !important;
    }
    
    /* Thumbnail images */
    .car-details-thumbnails img {
        width: 70px !important;
        height: 55px !important;
    }
    
    /* Spec tabs */
    .modern-spec-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .spec-tab-nav-wrapper {
        flex-wrap: nowrap;
        min-width: max-content;
    }
    
    .modern-spec-tab-btn {
        white-space: nowrap;
        padding: 10px 16px !important;
        font-size: 12px !important;
    }
    
    .modern-spec-tab-btn span {
        display: none;
    }
    
    .modern-spec-tab-btn i {
        margin-right: 0 !important;
    }
}

/* Mobile - Car Details */
@media (max-width: 480px) {
    /* Universal override for 2-column grids on car details page */
    .section .container > div[style*="grid-template-columns: 2fr 1fr"],
    .section .container > div[style*="grid-template-columns:2fr 1fr"] {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Universal override for any grid with 2 columns */
    .section .container div[style*="grid-template-columns: 1fr 1fr"],
    .section .container div[style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Header section - use more specific selector */
    .section > .container > div:first-child {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }
    
    .section > .container > div:first-child > div {
        flex-direction: column !important;
        gap: 15px !important;
    }
    
    /* Car title */
    .section h1 {
        font-size: 20px !important;
        line-height: 1.3 !important;
    }
    
    /* Rating badge */
    .section > .container > div:first-child div[style*="background: #f0f0f0"] {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Variant selector */
    #variantSelector {
        padding: 12px !important;
        font-size: 14px !important;
        min-height: 44px !important;
    }
    
    /* Price display */
    #priceDisplay {
        font-size: 16px !important;
    }
    
    /* Price breakdown */
    #priceBreakdown {
        padding: 12px !important;
    }
    
    #priceBreakdown h4 {
        font-size: 15px !important;
        margin-bottom: 12px !important;
    }
    
    /* Action buttons container */
    .section > .container > div:first-child > div > div:last-child {
        flex-direction: column !important;
        gap: 10px !important;
    }
    
    .section > .container > div:first-child > div > div:last-child a.btn {
        flex: 1 !important;
        width: 100% !important;
        padding: 12px 16px !important;
        font-size: 13px !important;
        text-align: center !important;
        min-height: 44px !important;
    }
    
    /* Image gallery section */
    .section > .container > div[style*="grid-template-columns"] > div:first-child > div:first-child {
        padding: 15px !important;
    }
    
    /* Gallery heading */
    .section > .container > div[style*="grid-template-columns"] > div:first-child > div:first-child h2 {
        font-size: 18px !important;
        margin-bottom: 15px !important;
    }
    
    /* Main image */
    #mainImage {
        height: 250px !important;
        border-radius: 8px !important;
    }
    
    /* Image count badge - target by position and content */
    #mainImage ~ div[style*="position: absolute"] {
        bottom: 10px !important;
        right: 10px !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
    
    /* Thumbnail container - target by overflow-x */
    div[style*="overflow-x: auto"][style*="display: flex"] {
        gap: 8px !important;
        padding: 8px 0 !important;
    }
    
    /* Thumbnail images - target by onclick attribute */
    img[onclick*="mainImage"] {
        width: 60px !important;
        height: 45px !important;
        min-width: 60px !important;
    }
    
    /* Quick links - target by flex-wrap */
    div[style*="flex-wrap: wrap"][style*="margin-top: 15px"] {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 12px !important;
    }
    
    div[style*="flex-wrap: wrap"][style*="margin-top: 15px"] span {
        display: none !important;
    }
    
    div[style*="flex-wrap: wrap"][style*="margin-top: 15px"] a {
        font-size: 13px !important;
        padding: 8px 0 !important;
    }
    
    /* Key specifications section */
    .section > .container > div[style*="grid-template-columns"] > div:first-child > div[style*="background: white"] {
        padding: 20px 15px !important;
        max-width: 660px;
    }
    
    .section > .container > div[style*="grid-template-columns"] > div:first-child > div[style*="background: white"] h2 {
        font-size: 18px !important;
        margin-bottom: 18px !important;
    }
    
    /* Key specs grid - single column on mobile */
    .section > .container > div[style*="grid-template-columns"] > div:first-child > div[style*="background: white"] > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    
    /* Specification tables */
    .section table {
        font-size: 13px !important;
    }
    
    .section table td {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }
    
    /* Feature grid - single column on mobile */
    .feature-grid-container {
        grid-template-columns: 1fr !important;
    }
    
    /* Feature items */
    .feature-item {
        padding: 12px 14px !important;
        min-height: 48px !important;
    }
    
    /* Specs container */
    .specs-container-modern {
        margin-bottom: 20px !important;
    }
    
    .specs-header-modern h2 {
        font-size: 18px !important;
        padding: 15px !important;
    }
    
    /* Spec tab navigation */
    .modern-spec-tab-nav {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px;
    }
    
    .spec-tab-nav-wrapper {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        min-width: max-content;
        padding-bottom: 10px;
    }
    
    .modern-spec-tab-btn {
        white-space: nowrap;
        padding: 10px 14px !important;
        font-size: 11px !important;
        min-width: auto !important;
    }
    
    .modern-spec-tab-btn span {
        display: none !important;
    }
    
    .modern-spec-tab-btn i {
        margin-right: 0 !important;
        font-size: 14px !important;
    }
    
    /* Spec tab content */
    .spec-tab-content {
        padding: 15px !important;
    }
    
    .spec-tab-content h3 {
        font-size: 16px !important;
        padding: 15px 0 12px 0 !important;
    }
    
    .spec-tab-content table {
        font-size: 13px !important;
    }
    
    .spec-tab-content td {
        padding: 10px 15px !important;
        font-size: 13px !important;
    }
    
    /* Additional features grid */
    .spec-tab-content div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
}

/* Extra Small Mobile - Car Details */
@media (max-width: 360px) {
    .car-details-header-section,
    div[style*="background: white"][style*="padding: 30px"] {
        padding: 15px 12px !important;
    }
    
    h1[style*="font-size: 26px"] {
        font-size: 18px !important;
    }
    
    #mainImage,
    img[style*="height: 400px"] {
        height: 220px !important;
    }
    
    .car-details-thumbnails img,
    img[style*="width: 80px"][style*="height: 60px"] {
        width: 55px !important;
        height: 40px !important;
    }
    
    .modern-spec-tab-btn {
        padding: 8px 12px !important;
        font-size: 10px !important;
    }
}

/* ========== Content Pages Responsive Styles ========== */

/* About, Terms, Privacy, Careers Pages */
.content-page {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.content-page h1 {
    margin-bottom: 20px;
    font-size: 28px;
    font-weight: 700;
}

.content-page h2 {
    margin-top: 40px;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 600;
}

.content-page p {
    margin-bottom: 20px;
    font-size: 16px;
}

.content-page ul {
    margin-bottom: 20px;
    padding-left: 30px;
}

.content-page li {
    margin-bottom: 8px;
}

/* Contact Cards Grid */
.contact-cards-grid {
    display: grid;
    grid-template-columns: 27% 28% 45%;
    width: 100%;
    gap: 20px;
    margin-bottom: 40px;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.contact-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-card p {
    font-size: 16px;
    color: #666;
    margin-bottom: 5px;
}

.contact-card .contact-meta {
    font-size: 14px;
    color: #999;
    margin-top: 5px;
}

/* Form Grid Layouts */
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

/* Car Details Header Section */
.car-header-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.car-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
}

.car-image-section {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    flex: 1;
    min-width: 400px;
}

.media-action-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.media-action-btn {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: none;
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

.media-action-btn:hover {
    transform: scale(1.05);
}

.media-action-btn i,
.media-action-btn .icon-360 {
    font-size: 20px;
}

.main-car-image-container {
    flex: 1;
    position: relative;
    min-width: 300px;
}

.main-car-image {
    width: 100%;
    height: 400px;
    object-fit: contain;
    display: block;
}

.car-details-section {
    flex: 1;
    min-width: 300px;
}

.car-title {
    margin: 0 0 5px 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--dark-color);
}

/* Responsive adjustments for content pages */
@media (max-width: 768px) {
    .content-page {
        padding: 0 10px;
    }
    
    .content-page h1 {
        font-size: 24px;
    }
    
    .content-page h2 {
        font-size: 20px;
        margin-top: 30px;
    }
    
    .content-page p {
        font-size: 15px;
    }
    
    .content-page ul {
        padding-left: 20px;
    }
    
    /* Contact Cards Grid - Stack on mobile */
    .contact-cards-grid {
        grid-template-columns: 1fr !important;
        gap: 15px;
        margin-bottom: 30px;
    }
    
    .contact-card {
        padding: 25px;
    }
    
    .contact-card h3 {
        font-size: 18px;
    }
    
    .contact-card p {
        font-size: 15px;
    }
    
    /* Form Grids - Stack on mobile */
    .form-grid-2,
    .form-grid-3 {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
    
    /* Car Details Header */
    .car-header-section {
        padding: 20px;
    }
    
    .car-header-wrapper {
        flex-direction: column;
    }
    
    .car-image-section {
        flex-direction: column;
        min-width: 100%;
        width: 100%;
    }
    
    .media-action-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        order: 2;
    }
    
    .media-action-btn {
        width: 70px;
        height: 70px;
        font-size: 10px;
    }
    
    .main-car-image-container {
        min-width: 100%;
        width: 100%;
        order: 1;
    }
    
    .main-car-image {
        height: 300px;
    }
    
    .car-details-section {
        min-width: 100%;
        width: 100%;
    }
    
    .car-title {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .content-page h1 {
        font-size: 22px;
    }
    
    .content-page h2 {
        font-size: 18px;
        margin-top: 25px;
    }
    
    .content-page p {
        font-size: 14px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-card h3 {
        font-size: 16px;
    }
    
    .media-action-btn {
        width: 60px;
        height: 60px;
        font-size: 9px;
    }
    
    .media-action-btn i,
    .media-action-btn .icon-360 {
        font-size: 16px;
    }
    
    .main-car-image {
        height: 250px;
    }
    
    .car-title {
        font-size: 20px;
    }
    
    .car-header-section {
        padding: 15px;
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .contact-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    
    .contact-cards-grid > a:last-child {
        grid-column: 1 / -1;
    }
    
    .form-grid-3 {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-grid-3 > div:last-child {
        grid-column: 1 / -1;
    }
}

/* ========== Print Styles ========== */
@media print {
    .main-header,
    .top-bar,
    .main-footer,
    .mobile-menu-toggle,
    .sticky-filter-bar,
    .compare-cars-prev,
    .compare-cars-next,
    .brands-prev,
    .brands-next {
        display: none !important;
    }
    
    .section > .container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .car-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


