@font-face {
    font-family: 'Lexend';
    src: url('fonts/Lexend-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

:root {
    /* WP Preset Aspect Ratios */
    --wp--preset--aspect-ratio--square: 1;
    --wp--preset--aspect-ratio--4-3: 4 / 3;
    --wp--preset--aspect-ratio--3-4: 3 / 4;
    --wp--preset--aspect-ratio--3-2: 3 / 2;
    --wp--preset--aspect-ratio--2-3: 2 / 3;
    --wp--preset--aspect-ratio--16-9: 16 / 9;
    --wp--preset--aspect-ratio--9-16: 9 / 16;

    /* WP Preset Colors */
    --wp--preset--color--black: #000000;
    --wp--preset--color--cyan-bluish-gray: #abb8c3;
    --wp--preset--color--white: #ffffff;
    --wp--preset--color--pale-pink: #f78da7;
    --wp--preset--color--vivid-red: #cf2e2e;
    --wp--preset--color--luminous-vivid-orange: #ff6900;
    --wp--preset--color--luminous-vivid-amber: #fcb900;
    --wp--preset--color--light-green-cyan: #7bdcb5;
    --wp--preset--color--vivid-green-cyan: #00d084;
    --wp--preset--color--pale-cyan-blue: #8ed1fc;
    --wp--preset--color--vivid-cyan-blue: #0693e3;
    --wp--preset--color--vivid-purple: #9b51e0;

    /* Theme Mapping - Light Mode (Default) */
    --primary-color: var(--wp--preset--color--luminous-vivid-orange);
    --secondary-color: var(--wp--preset--color--black);
    --text-color: #222222;
    --light-text: #666666;
    --bg-main: var(--wp--preset--color--white);
    --bg-light: #f7f9fb;
    --bg-card: var(--wp--preset--color--white);
    --border-color: #eeeeee;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.95);

    --header-height: 90px;
    --container-width: 1240px;
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --text-color: #e0e0e0;
    --light-text: #abb8c3;
    --bg-main: #000000;
    --bg-light: #0a0a0a;
    --bg-card: #111111;
    --border-color: #222222;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(0, 0, 0, 0.95);
    --secondary-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: inherit;
}

body {
    font-family: "Lexend", "Lexend Placeholder", sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-main);
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--wp--preset--color--white) !important;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    transition: var(--transition);
}

.navbar.scrolled .theme-toggle-btn {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

.theme-toggle-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.sun-icon {
    display: block;
}

.moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

[data-theme="dark"] .moon-icon {
    display: block;
}

/* Navbar */
.navbar {
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.navbar.scrolled {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 30px;
}

.logo {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -1px;
    color: white;
    flex-shrink: 0;
    transition: var(--transition);
}

.navbar.scrolled .logo {
    color: var(--secondary-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-menu {
    flex-grow: 1;
}

.nav-menu ul {
    display: flex;
    gap: 40px;
    justify-content: center;
}

.nav-menu a {
    font-weight: 600;
    color: white;
    font-size: 16px;
    position: relative;
    transition: var(--transition);
}

.navbar.scrolled .nav-menu a {
    color: var(--text-color);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active,
.navbar.scrolled .nav-menu a:hover,
.navbar.scrolled .nav-menu a.active {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.login-link,
.register-link {
    font-weight: 700;
    color: white;
    font-size: 15px;
    transition: var(--transition);
}

.nav-separator {
    color: rgba(255, 255, 255, 0.5);
}

.navbar.scrolled .login-link,
.navbar.scrolled .register-link {
    color: var(--text-color);
}

.navbar.scrolled .nav-separator {
    color: var(--border-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: var(--border-radius);
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: 15px;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 8px 20px rgba(255, 105, 0, 0.25);
}

.btn-primary:hover {
    background: #e65f00;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 105, 0, 0.35);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border: 3px solid #ff6900;
    border-radius: var(--border-radius);
    padding: 9px 24px;
    font-weight: 700;
    transition: var(--transition);
}

.btn-outline-white:hover {
    background: white;
    color: var(--secondary-color);
}

.navbar.scrolled .btn-outline-white {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.navbar.scrolled .btn-outline-white:hover {
    background: var(--primary-color);
    color: white;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: url('img/hero-bg.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    padding: 150px 0 100px;
    color: white;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.5));
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
}

.hero h1 {
    font-size: 72px;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.1;
    letter-spacing: -2px;
}

.hero .highlight {
    color: var(--primary-color);
}

.hero p {
    font-size: 22px;
    max-width: 750px;
    margin: 0 auto 50px;
    opacity: 0.95;
}

/* Search Box */
.search-box {
    background: #000000c7;
    padding: 15px;
    border-radius: 24px;
    border: 1px solid #ff690066;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.search-fields-location {
    display: flex;
    gap: 15px;
    align-items: center;
}

.input-group {
    flex: 1;
    display: flex;
    align-items: center;
    border: 2px solid var(--primary-color);
    border-radius: 15px;
    padding: 12px 20px;
    background: #000000bf;
    transition: var(--transition);
}

.input-group:focus-within {
    box-shadow: 0 0 10px rgba(255, 105, 0, 0.2);
}

.input-group input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    outline: none;
    width: 100%;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.input-icon {
    color: var(--primary-color);
    margin-right: 15px;
    flex-shrink: 0;
}

.clear-btn {
    color: #ef4444;
    font-size: 22px;
    font-weight: 800;
    cursor: pointer;
    margin-left: 5px;
    padding: 10px;
    line-height: 1;
    user-select: none;
}

.distance-group {
    flex: 0.4;
    min-width: 200px;
    position: relative;
    cursor: pointer;
}

.location-group,
.city-group {
    position: relative;
}

.distance-dropdown,
.location-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.distance-group.show-dropdown .distance-dropdown,
.location-group.show-dropdown .location-dropdown,
.city-group.show-dropdown .location-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item,
.location-dropdown-item {
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #444;
    transition: 0.2s;
    cursor: pointer;
}

.location-dropdown-item:hover {
    background: rgba(255, 105, 0, 0.1);
    color: var(--primary-color);
}

.dropdown-item:hover {
    background: #fff5f0;
    color: var(--primary-color);
}

.dropdown-item.active {
    background: #fff5f0;
    color: var(--primary-color);
}

.btn-search {
    background: var(--primary-color);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.btn-search:hover {
    background: #e65f00;
    transform: scale(1.05);
}

/* Hero Categories */
.hero-categories {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.category-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    color: white;
}

.category-item:hover {
    background: white;
    color: black;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

.category-item img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.category-item:hover img {
    filter: none;
}

/* Section Common */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
}

.subtitle {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 48px;
    font-weight: 800;
    color: var(--text-color);
    line-height: 1.1;
}

.section-nav {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-filter {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-color);
    transition: var(--transition);
}

.btn-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-view-all {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    border: none;
    cursor: pointer;
}

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
}

.listing-card {
    background: #242731;
    border-radius: 12px;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
}

.listing-card-img {
    flex-grow: 1;
    min-height: 120px;
    position: relative;
    overflow: hidden;
}

.listing-card-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.listing-card:hover .listing-card-img img {
    transform: scale(1.05);
}

.image-gallery-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    opacity: 0.8;
}

.listing-content {
    background: #242731;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.listing-card h3 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-price {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 10px;
}

.listing-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #999;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 10px;
    flex-wrap: wrap;
}

.year-badge {
    background: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #fff !important;
}

/* Random Listings Grid */
.random-listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.random-card {
    background: #242731;
    border-radius: 12px;
    overflow: hidden;
    color: white;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.random-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
}

.random-card-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.random-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.random-card:hover .random-card-img img {
    transform: scale(1.05);
}

.random-rating {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    padding: 5px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
}

.random-rating .stars {
    display: flex;
    gap: 2px;
}

.star.full,
.star.half {
    color: var(--primary-color);
}

.star.empty {
    color: rgba(255, 255, 255, 0.3);
}

.google-icon {
    width: 14px !important;
    height: 14px !important;
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
    object-fit: contain;
}

.random-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.random-card-title {
    font-size: 18px;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.random-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #ccc;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
    margin-top: auto;
}

.random-card-meta .reviews strong {
    color: var(--primary-color);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.feature-item {
    padding: 40px;
    border-radius: 24px;
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--bg-light);
    transform: translateY(-10px);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 105, 0, 0.1);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--primary-color);
}

/* Team Section */
.dark-section {
    background: #000000;
    color: white;
}

/* Featured Header Styles */
.featured-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.featured-main-title {
    font-size: 38px;
    font-weight: 850;
    color: white;
    margin-bottom: 15px;
    letter-spacing: -2px;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.featured-cities-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 105, 0, 0.08);
    /* Transparent orange tint */
    border: 1px solid rgba(255, 105, 0, 0.25);
    padding: 10px 24px;
    border-radius: 50px;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.featured-cities-badge:hover {
    background: rgba(255, 105, 0, 0.15);
    border-color: rgba(255, 105, 0, 0.4);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

.badge-content {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.3px;
    text-transform: capitalize;
}

@media (max-width: 768px) {
    .featured-main-title {
        font-size: 40px;
    }

    .featured-cities-badge {
        padding: 8px 16px;
    }

    .badge-content {
        font-size: 14px;
    }
}

.team-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 80px;
    align-items: center;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    opacity: 0.9;
}

.check-list li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: 900;
}

.team-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    color: var(--text-color);
}

.team-card img {
    height: 350px;
    width: 100%;
    object-fit: cover;
}

.team-card-info {
    padding: 35px;
}

/* Info Grid / App */
.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.app-promo {
    background: var(--wp--preset--gradient--luminous-vivid-orange-to-vivid-red);
    border-radius: 24px;
    padding: 60px;
    display: flex;
    align-items: center;
    gap: 60px;
    color: #000000;
    overflow: hidden;
    border: 3px solid black;
}

.app-promo h2 {
    font-size: 46px;
    margin-bottom: 30px;
    line-height: 1.1;
}

.app-image img {
    width: 220px;
    transform: rotate(5deg) translateY(30px);
}

.guide-box {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.85)), url('img/car_mechanic.jpg') center/cover no-repeat;
    border-radius: 24px;
    padding: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: var(--transition);
}

.guide-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.guide-box h2 {
    font-size: 38px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.guide-box h3 {
    font-size: 22px;
    font-weight: 400;
    opacity: 0.9;
}

.guide-box a {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
}

.guide-box a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.guide-box a:hover {
    color: white;
}

.guide-box a:hover::after {
    background: white;
}

/* Footer */
footer {
    background: #000000;
    color: white;
    padding: 100px 0 40px;
}

.footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter form {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    max-width: 500px;
}

.newsletter input {
    flex: 1;
    padding: 18px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-col h2 {
    font-size: 20px;
    margin-bottom: 30px;
}

.footer-col ul li {
    margin-bottom: 15px;
    opacity: 0.7;
    transition: 0.3s;
}

.footer-col ul li:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    opacity: 0.8;
    font-size: 14px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    color: white;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 32px;
    height: 3px;
    background: white;
    border-radius: 4px;
    transition: var(--transition);
}

.navbar.scrolled .mobile-menu-toggle span {
    background: var(--text-color);
}

/* Mobile Sidebar Overlay */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Sidebar Drawer */
.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100%;
    background: #111319;
    z-index: 1030;
    overflow-y: auto;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.mobile-sidebar-header {
    background: #1a1c22;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-sidebar {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 0 20px;
}

.mobile-sidebar-nav a {
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sidebar-nav a:last-child {
    border-bottom: none;
}

.mobile-sidebar-contact {
    margin-top: auto;
    padding: 30px 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-sidebar-contact a {
    color: #d1d1d1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 15px;
}

.mobile-sidebar-contact a svg {
    color: var(--primary-color);
}

.category-item span {
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {

    .inventory-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .random-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .team-layout,
    .info-grid,
    .footer-main {
        grid-template-columns: 1fr;
    }

    .nav-menu,
    .nav-actions {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 52px;
    }

    .app-image {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }

    .search-box {
        padding: 15px;
        border-radius: 20px;
    }

    .search-fields-location {
        flex-direction: column;
        gap: 12px;
    }

    .input-group,
    .distance-group {
        width: 100%;
        min-width: 100%;
        border-radius: 12px;
    }

    .btn-search {
        width: 100%;
        height: 42px;
        border-radius: 12px;
        margin-top: 5px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-categories {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 20px;
    }

    .category-item {
        padding: 8px 10px;
        justify-content: center;
        text-align: center;
    }

    .category-item:nth-child(n+7) {
        display: none;
    }

    .inventory-grid,
    .random-listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }
}

/* Lazy Loading Styles */
.lazy-img {
    opacity: 0;
    transition: opacity 0.6s ease-out;
}

.lazy-loaded {
    opacity: 1;
}