/* --- 1. CORE TOKENS & VARIABLES --- */
:root {
    /* Brand Colors */
    --primary-color: #e60000;
    --primary-dark: #cc0000;
    --primary-glow: rgba(230, 0, 0, 0.15);
    --white: #ffffff;
    --black: #050505;

    /* Semantic Colors (Light - Default) */
    --bg-body: #ffffff;
    --bg-alt: #f8f9fa;
    --text-main: #050505;
    --text-muted: #666666;
    --border-main: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --card-bg: #ffffff;
    --nav-bg: rgba(255, 255, 255, 0.82);

    /* Design Tokens */
    --font-heading: 'Playfair Display', serif;
    --font-main: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 40px var(--primary-glow);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --container-width: 1200px;

    /* Cyber-Luxe Tokens */
    --accent-glow: 0 0 20px var(--primary-glow);
    --card-hover-bg: rgba(230, 0, 0, 0.03);
    --mesh-gradient: radial-gradient(circle at 50% 50%, rgba(230, 0, 0, 0.05) 0%, transparent 70%);
}

/* Dark Mode Theme Tokens */
[data-theme="dark"] {
    --bg-body: #050505;
    --bg-alt: #111111;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border-main: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 10, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-bg: #111111;
    --nav-bg: rgba(10, 10, 10, 0.85);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 15px 50px rgba(0, 0, 0, 0.6);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-body: #050505;
        --bg-alt: #111111;
        --text-main: #ffffff;
        --text-muted: #aaaaaa;
        --border-main: rgba(255, 255, 255, 0.1);
        --glass-bg: rgba(10, 10, 10, 0.8);
        --glass-border: rgba(255, 255, 255, 0.12);
        --card-bg: #111111;
        --nav-bg: rgba(10, 10, 10, 0.85);
        --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 15px 50px rgba(0, 0, 0, 0.6);
    }
}

/* --- MODERN SCROLLBAR --- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(120, 120, 120, 0.3);
    border-radius: 10px;
    transition: background 0.3s;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(120, 120, 120, 0.5);
}

/* Firefox Support */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(120, 120, 120, 0.3) transparent;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 85px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container { padding: 0 1rem; }
}

.section {
    padding: 6rem 0;
    scroll-margin-top: 100px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: -0.5px;
    font-weight: 800;
}

.bg-light {
    background-color: var(--bg-alt);
}

.bg-black {
    background-color: var(--black);
}

.text-white {
    color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Reveal Animations (Premium Scroll Effects) */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    text-align: center;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 0, 0, 0.3);
}

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

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

.navbar {
    background-color: var(--nav-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.2rem 0;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: var(--transition);
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.navbar.scrolled .nav-container {
    height: 75px;
}

.logo img,
.footer-logo {
    height: 75px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

/* Symmetrical Theme Swapping */
.logo-dark {
    display: none;
}

[data-theme="dark"] .logo-light {
    display: none;
}

[data-theme="dark"] .logo-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo-light {
        display: none;
    }

    :root:not([data-theme="light"]) .logo-dark {
        display: block;
    }
}

/* Common Dark Theme Enhancements */
@media (prefers-color-scheme: dark) {

    .logo img,
    .footer-logo {
        filter: brightness(1.1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
    }
}

[data-theme="dark"] .logo img,
[data-theme="dark"] .footer-logo {
    filter: brightness(1.1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

.navbar.scrolled .logo img {
    height: 55px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links li a {
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 0.5rem 0;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-links li a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-links li a:not(.btn):hover::after,
.nav-links li a.active:not(.btn)::after {
    width: 100%;
}

.nav-links li a:hover {
    color: var(--primary-color);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


/* ── Theme Toggle Button ───────────────────────────────────── */
.theme-toggle {
    background: var(--bg-alt);
    border: 1px solid var(--border-main);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    transform: rotate(20deg) scale(1.1);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* Light mode: show moon icon */
.theme-toggle .sun-icon {
    display: none;
}

.theme-toggle .moon-icon {
    display: block;
}

/* Dark mode (manual): show sun icon */
[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

/* Dark mode (system preference, no manual override) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .sun-icon {
        display: block;
    }

    :root:not([data-theme="light"]) .theme-toggle .moon-icon {
        display: none;
    }
}

/* Dark Mode Variable Overrides (Manual) */
[data-theme="dark"] {
    --bg-body: #050505;
    --bg-alt: #111111;
    --text-main: #ffffff;
    --text-muted: #aaaaaa;
    --border-main: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(10, 10, 10, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    --card-bg: #111111;
    --nav-bg: rgba(10, 10, 10, 0.85);
}

[data-theme="dark"] .card {
    background-color: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

/* Mobile Toggle Color */
.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px 0;
    background-color: var(--text-main);
    transition: var(--transition);
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Kai & Karo Marketplace Style Hero (Adaptive Theme) */
.hero.market-style {
    height: auto;
    min-height: 90vh;
    background: var(--bg-body);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 160px 0 100px;
    transition: background-color 0.4s ease;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-main);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -5px;
}

.hero-overlay-mesh {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 80% 20%, rgba(230, 0, 0, 0.05) 0%, transparent 40%),
        linear-gradient(to bottom, var(--bg-body) 0%, var(--bg-alt) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

.hero-market-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4rem;
    position: relative;
    z-index: 3;
}

.hero-main-content {
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out forwards;
}

.hero-badge-small {
    background: rgba(230, 0, 0, 0.08);
    color: var(--primary-color);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    white-space: nowrap;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(230, 0, 0, 0.1);
}

.hero.market-style h1 {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.hero.market-style p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

/* Search Bar (Adaptive Theme) */
.hero-search-bar {
    background: var(--card-bg);
    border: 1px solid var(--border-main);
    padding: 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 1000px;
    box-shadow: var(--card-shadow);
    transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.search-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 25px;
    border-right: 1px solid var(--border-main);
}

.search-item:last-of-type {
    border-right: none;
}

.search-item label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.search-item select {
    background: transparent;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 1rem;
    width: 100%;
    cursor: pointer;
    outline: none;
}

.search-item select option {
    background: var(--card-bg);
    color: var(--text-main);
}

.search-btn-trigger {
    padding: 15px 40px !important;
    border-radius: 40px !important;
    font-weight: 700 !important;
}

/* Market Actions (Cards - Light Theme) */
.market-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1000px;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.action-card {
    background: var(--card-bg);
    border: 1px solid var(--border-main);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    transition: var(--transition);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.action-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.action-card h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.action-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.5;
}

.card-link {
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* Animations Re-use */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translate(-50%, 0);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, 15px);
    }
}

/* Category Tabs Styling */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.category-tab {
    padding: 12px 28px;
    border-radius: 50px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.category-tab:hover {
    transform: translateY(-2px);
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.category-tab.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.25);
}

/* --- Inventory Section Headers (Cyber-Luxe) --- */
.inventory-section {
    position: relative;
    padding-top: 1rem;
}

.inventory-section-header {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-main);
}

.inventory-section-header::before {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--primary-glow);
}

@media (max-width: 768px) {
    .inventory-section-header {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .inventory-section-header::before {
        width: 40px;
    }
}

/* Premium 3-Column Listings Section */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Upscale the Desktop Cards for the 2-Row layout */
.listings-grid .listing-card {
    border-radius: 15px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}

.listings-grid .listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.listings-grid .card-slider {
    height: auto;
    aspect-ratio: 16 / 10;
}

.listings-grid .card-content {
    padding: 1.8rem;
}

.listings-grid h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.listings-grid .price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
}

.listings-grid .details-grid {
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.listings-grid .detail-item {
    font-size: 0.95rem;
    padding: 8px 12px;
}

.listings-grid .card-description {
    font-size: 0.95rem;
    line-height: 1.7;
}

.listings-grid .btn-enquire {
    font-size: 1rem;
    padding: 14px 20px;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
}

@media (max-width: 600px) {
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .listings-grid .listing-card {
        margin-bottom: 20px;
        border-radius: var(--radius-md);
    }

    .listings-grid .card-content {
        padding: 1.5rem;
    }

    .listings-grid h3 {
        font-size: 1.25rem;
    }

    .listings-grid .price {
        font-size: 1.4rem;
        display: block;
    }

    .listings-grid .details-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 1.25rem !important;
    }

    .listings-grid .detail-item {
        display: flex !important;
        font-size: 0.75rem !important;
    }
    .listings-grid .slider-btn {
        width: 24px;
        height: 24px;
    }

    .listings-grid .slider-btn svg {
        width: 14px;
        height: 14px;
    }
}

/* Featured Horizontal Slider */
.featured-section {
    padding: 80px 0 40px;
    background: linear-gradient(to bottom, #fdfdfd, #f8f9fa);
}

.featured-carousel {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 5px 30px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

.featured-carousel::-webkit-scrollbar {
    display: none;
}

.featured-carousel .listing-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    height: auto;
}

@media (max-width: 768px) {
    .featured-carousel {
        padding-left: 0;
        gap: 16px;
    }

    .featured-carousel .listing-card {
        flex: 0 0 85%;
    }
}

/* Section Transitions */
.master-grid-section {
    padding: 60px 0 100px;
}

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.05), transparent);
    margin: 40px 0;
}

.card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 20px 40px rgba(230, 0, 0, 0.12);
    border-color: var(--primary-color);
    background: var(--card-hover-bg);
}

/* ── Share Button & Toast ──────────────────────────────────────── */
.listing-card {
    position: relative;
}

.card-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-top: 15px;
}

.card-actions .btn-primary {
    flex: 1;
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
}

.btn-share {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-alt);
    border: 1px solid var(--border-main);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    padding: 0;
}

.btn-share:hover {
    background: var(--primary-glow);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.08);
}

.btn-share:active {
    transform: scale(0.93);
}

.btn-details {
    display: inline-block;
    color: var(--primary-color) !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    margin-bottom: 5px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.btn-details:hover {
    color: var(--primary-dark) !important;
    text-decoration: underline !important;
}

.btn-details .chevron {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin-left: 6px;
    margin-bottom: 2px;
    transition: transform 0.3s ease;
}

.btn-details .chevron.up {
    transform: rotate(-135deg);
    margin-bottom: -1px;
}

/* Card Description Reveal */
.card-description {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-main);
    margin-top: 0;
    border-top: 1px solid transparent;
    padding-top: 0;
}

.card-description.active {
    max-height: 1000px;
    /* Large enough for any description */
    opacity: 1;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--glass-border);
}

.card-description p {
    margin: 0 0 10px 0;
    white-space: pre-wrap;
    /* Preserve line breaks from admin panel */
}

.btn-share svg {
    width: 17px;
    height: 17px;
    pointer-events: none;
    stroke: currentColor;
    fill: none;
}

/* Toast pop-up */
.share-toast {
    position: absolute;
    bottom: 76px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: var(--text-main);
    color: var(--bg-body);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.share-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Global Notification Toast */
.global-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    z-index: 10000;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: none;
}

.global-toast.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.global-toast .toast-content {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 0.95rem;
}

.global-toast.success .toast-content svg { color: #10b981; }
.global-toast.error .toast-content svg { color: #ef4444; }

[data-theme="dark"] .btn-share {
    background: rgba(255, 255, 255, 0.05);
}

.card-slider {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    overflow: hidden;
    background-color: #f8f9fa;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

/* Listings Badges */
.badge,
.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 7px 16px;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 4px; /* More modern, sharp look */
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    letter-spacing: 1px;
    pointer-events: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge-red,
.card-badge.badge-red {
    background: linear-gradient(135deg, #e60000 0%, #ff4d4d 100%);
}

/* Unified Gold/Amber Badge for Promos */
.badge-gold,
.badge-hot,
.badge-discount,
.card-badge.badge-gold,
.card-badge.badge-hot,
.card-badge.badge-discount {
    background: linear-gradient(135deg, #FFB800 0%, #FF8A00 100%);
    color: #000;
    box-shadow: 0 5px 15px rgba(255, 138, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.badge-hot::before,
.badge-discount::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #000;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse-dot 1.5s infinite;
}

@keyframes pulse-dot {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-size: 1.25rem;
    color: var(--text-main);
    margin-bottom: 0.4rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    /* Enforce single line always */
}

.price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    display: block;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 1rem 0;
    border-top: 1px solid var(--border-main);
    margin-bottom: 1.25rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.detail-item svg {
    color: var(--text-muted);
    opacity: 0.8;
}

.detail-item span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.card-content .btn-primary {
    border-radius: 10px;
    font-weight: 700;
    padding: 12px;
    font-size: 1rem;
    background-color: var(--primary-color);
    /* Brand Red */
    border: none;
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.2);
}

.card-content .btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(230, 0, 0, 0.3);
}

.card-cta-row {
    display: flex;
    gap: 10px;
    margin-top: auto;
    align-items: center;
}

.btn-enquire, .btn-view-details {
    flex: 1;
    padding: 12px 5px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}

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

.btn-view-details {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-main);
}

.btn-enquire:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-view-details:hover {
    background: var(--bg-alt);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-share {
    border-radius: 10px !important;
    background-color: var(--bg-alt) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-main) !important;
}

/* Category Tabs */
.category-tabs {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.65rem 1.8rem;
    border-radius: 50px;
    border: 2px solid var(--border-main);
    background-color: var(--card-bg);
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.category-tab.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Search Bar Styles */
.search-container {
    max-width: 800px;
    margin: 0 auto 3rem auto;
    position: relative;
    scroll-margin-top: 100px;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--card-bg);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: var(--transition);
}

.search-box:focus-within {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.search-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    margin-right: 1rem;
    display: block;
}

.search-box:focus-within .search-icon {
    color: var(--primary-color);
}

#car-search,
#inventory-search {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1.05rem;
    color: var(--text-main);
    padding: 0.8rem 0;
    font-family: var(--font-main);
    background: transparent;
    min-width: 0;
}

#car-search::placeholder,
#inventory-search::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.clear-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

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

.no-results-message {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
}

.no-results-message svg {
    width: 60px;
    height: 60px;
    color: var(--border-main);
    margin-bottom: 1rem;
}

.no-results-message h3 {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

/* Slider Styles */
.card-slider {
    position: relative;
    height: 240px;
    overflow: hidden;
    background-color: var(--black);
}

.slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide {
    min-width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    /* High-Definition Rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: high-quality;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Hardware Acceleration */
    filter: contrast(105%) brightness(102%);
    /* Professional Color Pop */
    transition: var(--transition);
}

/* Showroom Placeholder & Silhouettes */
.showroom-placeholder {
    position: relative;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.silhouette-img {
    opacity: 0.25;
    filter: grayscale(1) brightness(0.5) !important;
    transform: scale(0.9);
    transition: transform 0.5s ease;
}

.showroom-placeholder:hover .silhouette-img {
    transform: scale(0.95);
    opacity: 0.35;
}

.showroom-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    background: rgba(230, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(230, 0, 0, 0.2);
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    box-shadow: 0 0 30px rgba(230, 0, 0, 0.1);
    white-space: nowrap;
}

.showroom-overlay {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 4;
}

.showroom-overlay p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    padding: 0;
}

.slider-btn:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(230, 0, 0, 0.3);
}

.slider-prev {
    left: 10px;
}

.slider-next {
    right: 10px;
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 3px;
}

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: var(--transition);
}

.dot-active,
.dot:hover {
    background-color: var(--white);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Services Section */
.services-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 1100px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.modern-card {
    background-color: var(--card-bg);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    text-align: left;
    position: relative;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-main);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.modern-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.modern-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.modern-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.service-icon-wrap {
    width: 60px;
    height: 60px;
    background-color: rgba(230, 0, 0, 0.08);
    /* Faint red background */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.modern-icon {
    width: 30px;
    height: 30px;
    color: var(--primary-color);
}

.modern-card:hover .service-icon-wrap {
    background-color: var(--primary-color);
}

.modern-card:hover .modern-icon {
    color: var(--white);
}

.service-content h3 {
    font-size: 1.6rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.service-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.service-hover-arrow {
    align-self: flex-start;
    color: var(--primary-color);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: transparent;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
    opacity: 0;
    transform: translateX(-15px);
}

.modern-card:hover .service-hover-arrow {
    opacity: 1;
    transform: translateX(0);
    background-color: var(--primary-color);
    color: var(--white);
}

/* About Section */
.about-section {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow: hidden;
    padding: 100px 0;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

/* Left column */
.about-label {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.about-text h2 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.about-text h2 span {
    color: var(--primary-color);
}

.about-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 2.5rem;
}

/* Stats */
.about-stats {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.stat-plus {
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Skeleton Loaders */
@keyframes skeleton-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

.skeleton-card {
    background: var(--card-bg);
    border: 1px solid var(--border-main);
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--border-main);
}

.skeleton-content {
    padding: 1.5rem;
}

.skeleton-title {
    height: 24px;
    width: 80%;
    background: #eee;
    margin-bottom: 1rem;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-price {
    height: 20px;
    width: 40%;
    background: #eee;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

.skeleton-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.skeleton-detail {
    height: 15px;
    background: #eee;
    border-radius: 4px;
    animation: skeleton-pulse 1.5s infinite ease-in-out;
}

[data-theme="dark"] .skeleton-title,
[data-theme="dark"] .skeleton-price,
[data-theme="dark"] .skeleton-detail {
    background: #333;
}

/* Admin Status Glows */
.status-glow {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.status-available {
    background: #22c55e;
    color: white;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.4);
}

.status-sold {
    background: #ef4444;
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.sold-listing {
    position: relative;
    pointer-events: none;
    /* Disable interaction */
}

.sold-listing .card-slider {
    position: relative;
    filter: grayscale(0.6);
    /* Desaturate the car images */
    transition: filter 0.3s ease;
}

.sold-listing .card-slider::after {
    content: "SOLD";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(230, 0, 0, 0.95);
    color: var(--white);
    padding: 0.8rem 3rem;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sold-listing .badge {
    display: none;
    /* Hide standard badges for sold units */
}

.sold-listing .btn-enquire {
    background: var(--bg-alt) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-main) !important;
    cursor: not-allowed;
    pointer-events: none;
}

.sold-listing .price {
    opacity: 0.5;
    text-decoration: line-through;
}

/* Staggered reveal support for new design */
.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.about-features li {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 500;
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 900;
    flex-shrink: 0;
}

.about-cta {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Right column: Image */
.about-image-wrap {
    position: relative;
}

.about-img-frame {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 2;
    box-shadow: var(--card-shadow);
}

.about-img-frame img {
    width: 100%;
    height: 500px;
    object-fit: contain;
    background-color: var(--bg-alt);
    padding: 2rem;
    display: block;
    transition: transform 0.6s ease;
}

.about-img-frame:hover img {
    transform: scale(1.04);
}

.about-badge {
    position: absolute;
    bottom: -20px;
    left: -25px;
    z-index: 3;
    background: linear-gradient(135deg, #e60000, #a80000);
    color: var(--white);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(230, 0, 0, 0.4);
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.badge-icon {
    font-size: 1.5rem;
}

.about-decoration {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 160px;
    height: 160px;
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    z-index: 1;
    opacity: 0.35;
}

/* Contact Section */
#contact {
    background-color: var(--bg-body);
    color: var(--text-main);
}

.contact-container {
    text-align: center;
    max-width: 800px;
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.contact-info>p {
    font-size: 1.3rem;
    margin-bottom: 3.5rem;
    color: var(--text-muted);
}

.contact-details {
    display: flex;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background-color: var(--bg-alt);
    padding: 2.5rem 4rem;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--card-shadow);
}

.contact-item .icon {
    font-size: 2.5rem;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item .phone-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: 1px;
}

/* Footer Focus (Consistently Dark) */
.footer {
    background-color: #050505;
    color: var(--white);
    padding-top: 5rem;
    position: relative;
    border-top: 5px solid var(--primary-color);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 3rem;
    padding-bottom: 4rem;
}

.wa-group-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25d366;
    /* WhatsApp Green */
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    border: none;
    width: 100%;
}

.wa-group-btn:hover {
    background-color: #128c7e;
    /* Darker WA Green */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    color: white;
}

.brand-column .footer-logo {
    height: 70px;
    margin-bottom: 1.5rem;
    background-color: var(--white);
    padding: 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.footer-about {
    color: #aaaaaa;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-links a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    color: var(--white);
}

.footer-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.8rem;
    color: var(--white);
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.links-column ul li {
    margin-bottom: 0.8rem;
}

.links-column ul li a {
    color: #aaaaaa;
    transition: var(--transition);
    display: inline-block;
}

.links-column ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-column ul li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    color: #aaaaaa;
}

.contact-column ul li a {
    color: #aaaaaa;
}

.contact-column ul li a:hover {
    color: var(--white);
}

.contact-column ul li .icon {
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.footer-bottom {
    background-color: #000000;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #777777;
    font-size: 0.95rem;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 2rem;
    }
}

@media (max-width: 992px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .brand-column,
    .group-column {
        grid-column: 1 / -1;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .experience-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -80px;
    }

    .about-image {
        margin-bottom: 80px;
    }

    .hero-content h1 {
        font-size: 3.5rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 65px;
    height: 65px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 38px;
    height: 38px;
    fill: #FFF;
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 90px;
        /* Elevated to sit above the 70px bottom nav */
        right: 20px;
    }

    .scroll-to-top {
        bottom: 160px;
        /* Elevated to sit above the WhatsApp button */
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}

/* Image Gallery Preview */
.gallery-preview {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-main);
}

.gallery-preview a {
    flex: 1;
    display: block;
    height: 55px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-main);
    box-shadow: var(--card-shadow);
}

.gallery-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-preview a:hover img {
    transform: scale(1.15);
}

/* Hidden state for gallery */
.hidden-gallery {
    display: none !important;
}

/* Clickable main image overlay */
.clickable-gallery {
    cursor: pointer;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    text-align: center;
    padding: 0.6rem 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.clickable-gallery:hover .gallery-overlay {
    transform: translateY(0);
}

/* Details Modal */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.details-modal-container {
    background: var(--bg-body, #fff);
    max-width: 650px;
    margin: 2rem auto;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    width: 95%;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 4rem);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

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

.details-modal-header {
    background: var(--bg-body, #fff);
    padding: 1.2rem 1.5rem;
    z-index: 10;
    border-bottom: 1px solid var(--border-main, #eee);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.details-modal-title h2 {
    margin: 0;
    font-size: 1.4rem;
    color: var(--text-main, #333);
    line-height: 1.2;
}

.details-modal-title .price {
    color: var(--primary-color, #e60000);
    font-weight: 800;
    font-size: 1.15rem;
    margin-top: 0.3rem;
}

.details-modal-close {
    cursor: pointer;
    color: var(--text-main, #333);
    flex-shrink: 0;
    background: var(--bg-alt, #f9f9f9);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.2s ease;
}

.details-modal-close:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.details-modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex-grow: 1;
}

.details-modal-specs {
    margin-bottom: 1.5rem;
}

.details-modal-desc {
    margin-bottom: 2rem;
    line-height: 1.7;
    color: var(--text-muted, #666);
    font-size: 0.95rem;
}

.details-modal-images img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: block;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

@keyframes skeleton-bg-pulse {
    0% {
        background-color: var(--border-main);
        opacity: 0.6;
    }

    50% {
        background-color: var(--border-main);
        opacity: 1;
    }

    100% {
        background-color: var(--border-main);
        opacity: 0.6;
    }
}

.modal-img-skeleton {
    animation: skeleton-bg-pulse 1.5s infinite ease-in-out;
    background-color: var(--border-main);
}

.modal-img-skeleton.loaded {
    animation: none;
    background-color: transparent;
}

.details-modal-footer {
    padding: 1.2rem 1.5rem;
    border-top: 1px solid var(--border-main, #eee);
    background: var(--bg-body, #fff);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Modal Mobile Responsiveness */
@media (max-width: 600px) {
    .details-modal-container {
        margin: 0;
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .details-modal-header {
        padding: 1rem;
    }

    .details-modal-body {
        padding: 1rem;
    }

    .details-modal-footer {
        padding: 1rem;
        box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background-color: var(--bg-body);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition);
        box-shadow: inset 0 10px 10px -10px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 1.5rem 0;
    }

    .hero.market-style {
        padding: 120px 0 60px;
    }

    .hero-market-container {
        gap: 3rem;
    }

    .hero.market-style h1 {
        font-size: 3rem;
    }

    .hero.market-style p {
        font-size: 1.1rem;
    }

    .hero-search-bar {
        flex-direction: column;
        border-radius: 20px;
        padding: 20px;
        gap: 15px;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid var(--border-main);
        padding: 0 0 10px 0;
        width: 100%;
    }

    .search-btn-trigger {
        width: 100%;
    }

    .market-actions {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .action-card {
        padding: 30px 20px;
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
        border-left: none;
        border-top: 5px solid var(--primary-color);
        padding: 2rem;
    }

    .contact-info h2 {
        font-size: 2.5rem;
    }

    .contact-item .phone-number {
        font-size: 1.8rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    /* About section mobile */
    .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-text h2 {
        font-size: 2.2rem;
    }

    .about-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .about-img-frame img {
        height: 320px;
    }

    .about-badge {
        bottom: -15px;
        left: -10px;
    }

    .about-decoration {
        display: none;
    }
}

@media (max-width: 1024px) {
    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-text h2 {
        font-size: 2.5rem;
    }
}


/* --- Mobile UX Overrides & Enhancements --- */

/* Utility: Hide on Mobile / Show on Desktop */
.desktop-only {
    display: flex !important;
}

.bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }

    .hero-badge-small {
        font-size: 0.68rem;
        padding: 4px 10px;
        letter-spacing: 0.2px;
        max-width: calc(100vw - 40px);
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav-container {
        height: 80px;
    }

    .logo img {
        height: 55px !important;
    }

    .navbar.scrolled .nav-container {
        height: 65px;
    }

    .navbar.scrolled .logo img {
        height: 45px !important;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px;
        background-color: var(--nav-bg);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-top: 1px solid var(--glass-border);
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 0.7rem;
        font-weight: 600;
        transition: var(--transition);
        flex: 1;
        padding: 10px 0;
    }

    .nav-item svg {
        width: 24px;
        height: 24px;
    }

    /* Ensure body doesn't get cut off by bottom nav */
    body {
        padding-bottom: 80px;
    }

    /* Horizontal Scrollable Categories */
    .category-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 5px 0 15px;
        gap: 10px;
        scrollbar-width: none;
        /* Hide scrollbar Firefox */
        -ms-overflow-style: none;
        /* Hide scrollbar IE/Edge */
        margin-bottom: 1rem;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
        /* Hide scrollbar Chrome/Safari */
    }

    .category-tab {
        flex: 0 0 auto;
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    /* Optimized Hero for Mobile */
    .hero.market-style {
        padding: 100px 0 40px;
        min-height: auto;
    }

    .hero.market-style h1 {
        font-size: 2.4rem;
        margin-bottom: 1rem;
    }

    /* Touch-friendly listing cards */
    .listing-card {
        margin-bottom: 1.5rem;
    }

    .card-content {
        padding: 1.5rem;
    }

    .card-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
    }

    .price {
        font-size: 1.15rem;
        margin-bottom: 0.8rem;
    }

    .details {
        padding: 0.8rem 0;
        font-size: 0.85rem;
    }

    .details span {
        display: flex;
        align-items: center;
        gap: 4px;
    }

}

/* --- Premium Behavioral Enhancements (CarPlug254 Style) --- */

/* Smooth Slider Transition */
.slider-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
    aspect-ratio: 4 / 3;
    background: #111;
}

.slider-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

.card-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn {
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease, transform 0.2s;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--black);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--white);
    color: var(--primary-color);
    transform: scale(1.1);
}

/* Lightbox Enhancements */
.lightbox {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.lightbox-wrapper {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
    transition: 0.3s;
    line-height: 1;
    z-index: 5100;
}

.lightbox-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 30px;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    user-select: none;
    margin: 0 20px;
}

.lightbox-nav:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.lightbox-counter {
    color: #fff;
    margin-top: 20px;
    font-weight: 600;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .lightbox-wrapper {
        width: 100%;
        height: 60vh;
    }

    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 20px;
        margin: 0 10px;
    }

    .lightbox-close {
        top: 20px;
        right: 20px;
        font-size: 40px;
    }
}

/* --- TOUCH SWIPE OVERRIDES --- */
@media (max-width: 1024px) {
    .slider-btn {
        display: none !important;
    }
}

.card-slider .slider-container img {
    -webkit-user-drag: none;
    user-select: none;
}


/* Sold Stamp Overlay */
.is-sold {
    opacity: 0.85;
    /* Dim the card slightly */
}

.is-sold .slider-container img {
    filter: grayscale(100%);
    opacity: 0.6;
}

.sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    background-color: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    font-size: 1.8rem;
    font-weight: 900;
    border: 4px solid var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 20;
    letter-spacing: 2px;
    text-transform: uppercase;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: stampIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes stampIn {
    0% {
        transform: translate(-50%, -50%) rotate(-12deg) scale(2);
        opacity: 0;
    }

    100% {
        transform: translate(-50%, -50%) rotate(-12deg) scale(1);
        opacity: 1;
    }
}

/* Scroll To Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background-color: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(230, 0, 0, 0.4);
}

.scroll-to-top.visible {
    display: flex;
    opacity: 1;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 85px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* --- PERFORMANCE OPTIMIZATIONS --- */
.about-section,
.footer,
#contact {
    content-visibility: auto;
    contain-intrinsic-size: 500px;
}

/* Nav CTA Polish */
.nav-cta {
    margin-left: 15px;
}

.nav-cta a {
    background: var(--primary-color) !important;
    color: white !important;
    padding: 10px 24px !important;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.2);
    display: inline-block;
    text-decoration: none;
}

.nav-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(230, 0, 0, 0.35);
    background: var(--primary-dark) !important;
}

@media (max-width: 991px) {
    .nav-cta {
        margin-left: 0;
        margin-top: 25px;
        width: 100%;
        padding: 0 20px;
    }

    .nav-cta a {
        display: block;
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   MULTI-PAGE STYLES — Inner Page Hero, Browse Cards, etc.
   ============================================================ */

/* Inner Page Hero Banner (Cyber-Luxe) */
.page-hero {
    background: var(--bg-body);
    padding: 180px 0 80px;
    position: relative;
    overflow: hidden;
    text-align: center;
    transition: background-color 0.4s ease;
}

.page-hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 15vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--border-main);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
    letter-spacing: -2px;
    opacity: 0.6;
}

.page-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(230, 0, 0, 0.05) 0%, transparent 40%),
        linear-gradient(to bottom, var(--bg-body) 0%, var(--bg-alt) 100%);
    z-index: 2;
    transition: background 0.4s ease;
}

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

.page-hero .page-hero-badge {
    display: inline-block;
    background: rgba(230, 0, 0, 0.08);
    color: var(--primary-color);
    border: 1px solid rgba(230, 0, 0, 0.12);
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(230, 0, 0, 0.1);
}

.page-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -2px;
    margin-bottom: 1rem;
    line-height: 1;
}

.page-hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto 2rem;
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.page-breadcrumb a {
    color: var(--primary-color);
    font-weight: 700;
    transition: var(--transition);
}

.page-breadcrumb a:hover {
    color: var(--primary-dark);
    transform: translateX(-2px);
}

@media (max-width: 768px) {
    .page-hero {
        padding: 140px 0 60px;
    }

    .page-hero h1 {
        font-size: 2.8rem;
    }

    .page-hero p {
        font-size: 1.1rem;
    }
}

/* ============================================================
   BROWSE CATEGORY CARDS — Home Page
   ============================================================ */
.browse-section {
    padding: 5rem 0;
    background: var(--bg-body);
}

.browse-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 3rem;
}

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

.browse-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.35s ease;
}

.browse-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.browse-card.import-card {
    background: linear-gradient(135deg, #0f0c29 0%, #1a1a2e 40%, #16213e 100%);
    color: #fff;
}

.browse-card.used-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: #fff;
}

.browse-card::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.browse-card.import-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 0, 0, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.browse-card.used-card::after {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.browse-card-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.2rem;
    width: fit-content;
}

.import-card .browse-card-badge {
    background: rgba(230, 0, 0, 0.25);
    color: #ff8080;
    border: 1px solid rgba(230, 0, 0, 0.3);
}

.used-card .browse-card-badge {
    background: rgba(212, 175, 55, 0.25);
    color: #ffd700;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.browse-card h3 {
    font-size: 1.9rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
}

.browse-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.browse-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    width: fit-content;
    transition: background 0.3s, border-color 0.3s, transform 0.3s;
    backdrop-filter: blur(4px);
}

.import-card .browse-card-cta:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.used-card .browse-card-cta:hover {
    background: rgba(212, 175, 55, 0.4);
    border-color: rgba(212, 175, 55, 0.6);
    transform: translateX(4px);
}

.browse-card-icon {
    font-size: 3.5rem;
    position: absolute;
    bottom: 24px;
    right: 32px;
    opacity: 0.12;
    transform: rotate(-10deg);
    pointer-events: none;
    font-style: normal;
}

/* ============================================================
   INVENTORY PAGE — Sticky Filter + Enhanced Grid
   ============================================================ */
.inventory-controls {
    position: sticky;
    top: 90px;
    z-index: 500;
    background: var(--nav-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 18px 0;
    transition: var(--transition);
}

.inventory-controls.shadowed {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    background: var(--glass-bg);
}

.inventory-controls-inner {
    display: grid;
    grid-template-columns: 1.2fr auto;
    align-items: center;
    gap: 2rem;
}

/* Premium Search Box Styling */
.search-box {
    position: relative;
    width: 100%;
    min-width: 280px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    padding: 2px 20px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box:focus-within {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.15), inset 0 2px 10px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.search-box .search-icon {
    width: 22px;
    height: 22px;
    color: var(--text-muted);
    margin-right: 15px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-box:focus-within .search-icon {
    color: var(--primary-color);
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
    padding: 12px 0;
    font-size: 1rem;
    color: var(--text-main);
    font-family: inherit;
}

/* Premium Filter Tabs Styling */
.filter-tabs {
    display: flex;
    gap: 12px;
    background: rgba(15, 23, 42, 0.04);
    padding: 6px;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
}

.category-tab {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-tab:hover {
    color: var(--text-main);
}

.category-tab.active {
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #990000 100%);
    color: var(--white);
    box-shadow: 0 8px 15px rgba(230, 0, 0, 0.3);
}

@media (max-width: 992px) {
    .inventory-controls-inner {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .inventory-controls {
        top: 70px;
        padding: 15px 0;
    }

    .inventory-controls-inner {
        gap: 1rem;
    }

    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px;
        gap: 6px;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        flex: 1 0 auto;
        padding: 10px 18px;
        font-size: 0.8rem;
    }
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */
.services-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

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

/* --- Inventory Load More --- */
.load-more-container {
    text-align: center;
    padding: 3rem 0 5rem;
    /* Increased padding-bottom for better visibility/clearance */
    margin-bottom: 2rem;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-body);
    color: var(--text-main);
    border: 2px solid var(--primary-color);
    padding: 1.1rem 3.5rem;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 8px 20px rgba(230, 0, 0, 0.1);
}

.btn-load-more:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(230, 0, 0, 0.35);
}

.btn-load-more:active {
    transform: translateY(-1px);
}

.btn-load-more.loading {
    pointer-events: none;
    opacity: 0.7;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-load-more.loading .spinner {
    display: block;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.service-detail-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 2.5rem;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-detail-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.service-detail-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: rgba(230, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: background 0.3s;
}

.service-detail-card:hover .service-detail-icon {
    background: rgba(230, 0, 0, 0.15);
}

.service-detail-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-color);
}

.service-detail-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.service-detail-card p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-detail-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-detail-list li {
    color: var(--text-muted);
    font-size: 0.92rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-detail-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    flex-shrink: 0;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    align-items: start;
}

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

.contact-info-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--border-main);
    box-shadow: var(--card-shadow);
}

.contact-info-card h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.contact-info-card .subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-main);
}

.contact-method:last-of-type {
    border-bottom: none;
}

.contact-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(230, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-method-text h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}

.contact-method-text a,
.contact-method-text span {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
}

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

.wa-enquiry-card {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border-radius: 20px;
    padding: 2.5rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.wa-enquiry-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.wa-enquiry-card h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.wa-enquiry-card p {
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.wa-template-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
}

.wa-template-btn {
    display: block;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 14px 18px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s;
    text-align: left;
    line-height: 1.4;
    text-decoration: none;
}

.wa-template-btn:hover {
    background: rgba(37, 211, 102, 0.15);
    border-color: rgba(37, 211, 102, 0.4);
    color: #fff;
    transform: translateX(4px);
}

.wa-cta-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366;
    color: #fff;
    border-radius: 50px;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
}

.wa-cta-main:hover {
    background: #1ebe5d;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-page-section {
    padding: 5rem 0;
}

.about-full-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about-full-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .about-full-grid h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }

    .about-full-grid .about-features {
        text-align: left;
        display: inline-block;
    }
}

.about-features {
    margin-bottom: 2rem;
}

.about-features li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

.feature-icon {
    color: var(--primary-color);
    font-weight: 800;
    margin-right: 8px;
}

.why-choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 992px) {
    .why-choose-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .why-choose-grid {
        grid-template-columns: 1fr;
    }
}

.about-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    text-align: center;
}

@media (max-width: 480px) {
    .about-stats-grid {
        gap: 1rem;
    }

    .about-stats-grid span:first-child {
        font-size: 1.8rem !important;
    }
}

.about-visual-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid var(--border-main);
    box-shadow: var(--card-shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff4d4d);
}

/* Home Page — Quick Stats Strip */
.stats-strip {
    background: var(--bg-alt);
    padding: 3.5rem 0;
    border-top: 1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
}

.stats-strip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (max-width: 640px) {
    .stats-strip-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.stats-strip-item .stat-number {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary-color);
    letter-spacing: -1px;
    display: block;
}

.stats-strip-item .stat-label {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Text Glow */
.text-glow {
    color: var(--primary-color);
    text-shadow: 0 0 15px rgba(230, 0, 0, 0.5);
    font-weight: 800;
}

/* ============================================================
   COMPREHENSIVE MOBILE RESPONSIVENESS — All Pages
   ============================================================ */

/* --- Global: Prevent horizontal overflow on any screen --- */
/* ============================================================
   6. HOW IT WORKS & TEASER (Ready to Get Started)
   ============================================================ */

.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

.step-card {
    text-align: center;
    position: relative;
}

.step-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.step-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.step-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.section-about-teaser {
    background: radial-gradient(circle at 10% 20%, rgba(230, 0, 0, 0.03) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(230, 0, 0, 0.02) 0%, transparent 40%),
        var(--bg-body);
    position: relative;
    overflow: hidden;
}

.teaser-content {
    text-align: center;
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.teaser-title {
    font-size: 2.75rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.teaser-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .cta-flex {
        flex-direction: column;
        width: 100%;
    }

    .cta-flex .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ============================================================
   7. GLOBAL RESPONSIVE DESIGN (Consolidated)
   ============================================================ */

@media (max-width: 900px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .footer-container {
        grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .listings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .card-content {
        padding: 15px;
    }

    .card-content h3 {
        font-size: 1.15rem;
    }

    .price {
        font-size: 1.3rem;
    }

    .detail-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background-color: var(--glass-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding: 80px 2rem;
        transition: visibility 0.4s, opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered Animations */
    .nav-links.active li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.active li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.active li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.active li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links li a.active {
        color: var(--primary-color);
    }

    .nav-links li a.active::after {
        width: 40px;
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .nav-cta {
        width: 100%;
        max-width: 250px;
        margin-top: 1rem;
    }

    .nav-cta a {
        display: block !important;
        text-align: center;
        background-color: var(--primary-color) !important;
        color: var(--white) !important;
        padding: 1rem !important;
        border-radius: 50px !important;
        font-size: 1.1rem !important;
        box-shadow: 0 10px 25px var(--primary-glow);
    }

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

    .hero.market-style {
        padding: 100px 0 50px;
        text-align: center;
    }

    .hero.market-style h1 {
        font-size: 2.2rem;
    }

    .hero-search-bar {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 20px;
    }

    .search-item {
        border-right: none;
        border-bottom: 1px solid var(--border-main);
        width: 100%;
    }

    .browse-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 75px;
        background: var(--nav-bg);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-top: 1px solid var(--glass-border);
        z-index: 2000;
        justify-content: space-around;
        align-items: center;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
        padding-bottom: env(safe-area-inset-bottom);
    }

    .bottom-nav .nav-item {
        color: var(--text-muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 5px;
        transition: var(--transition);
        flex: 1;
    }

    .bottom-nav .nav-item.active {
        color: var(--primary-color);
    }

    .bottom-nav .nav-item svg {
        width: 22px;
        height: 22px;
    }

    .bottom-nav .nav-item span {
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .bottom-nav .nav-item.whatsapp {
        color: #25d366;
    }

    /* Home Page Responsive Home Fixes */
    .hero-btns {
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        gap: 1rem;
    }

    .hero-btns .btn {
        width: 100%;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem;
    }

    /* Site-Wide Responsiveness Fixes */
    .inventory-controls-inner {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .category-tabs {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 5px;
        -ms-overflow-style: none;
        scrollbar-width: none;
        display: flex;
        gap: 8px;
    }

    .category-tabs::-webkit-scrollbar {
        display: none;
    }

    .category-tab {
        flex: 0 0 auto;
        min-width: 120px;
        white-space: nowrap;
        font-size: 0.85rem;
        padding: 0.6rem 1rem;
    }

    .search-container {
        width: 100%;
    }

    .services-detail-grid,
    .how-it-works-grid,
    .contact-page-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .service-detail-card,
    .step-card,
    .contact-info-card,
    .wa-enquiry-card {
        min-height: auto;
        padding: 1.5rem;
    }

    .contact-method-text h4 {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .hero.market-style h1 {
        font-size: 1.8rem;
    }

    .stats-strip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }

    .featured-carousel .listing-card {
        flex: 0 0 92%;
    }
}

/* Extra tight viewport fix */
@media (max-width: 380px) {
    .stats-strip-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .hero.market-style h1 {
        font-size: 1.65rem;
    }
}

/* Performance Layer */
.navbar,
.footer,
.card,
.browse-card {
    contain: layout style;
}

.card-slider img {
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   HOME PAGE � COMPREHENSIVE MOBILE RESPONSIVENESS
   ========================================================= */

/* Hero Section: Typography and Layout */
@media (max-width: 768px) {
    .hero.market-style {
        padding: 110px 0 50px;
        min-height: auto;
        text-align: center;
    }

    .hero-bg-text {
        font-size: 30vw;
        letter-spacing: -2px;
    }

    .hero.market-style h1 {
        font-size: clamp(1.9rem, 8vw, 2.7rem);
        letter-spacing: -0.5px;
        line-height: 1.2;
        margin-bottom: 1rem;
    }

    .hero.market-style p {
        font-size: 0.97rem;
        line-height: 1.75;
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
        gap: 0.75rem;
    }

    .hero-btns .btn {
        width: 100%;
        text-align: center;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Stats Strip */
@media (max-width: 640px) {
    .stats-strip-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0;
    }

    .stats-strip-item {
        padding: 1rem 0.5rem;
        border-right: 1px solid var(--border-main);
    }

    .stats-strip-item:last-child {
        border-right: none;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.65rem;
    }
}

@media (max-width: 380px) {
    .stats-strip-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .stats-strip-item {
        border-right: none;
        border-bottom: 1px solid var(--border-main);
        padding: 0.85rem 1rem;
    }

    .stats-strip-item:last-child {
        border-bottom: none;
    }
}

/* Featured Hot Deals Carousel */
@media (max-width: 768px) {
    .featured-carousel {
        padding: 8px 0 24px;
        gap: 14px;
    }

    .featured-carousel .listing-card {
        flex: 0 0 88vw;
        max-width: 360px;
    }
}

/* Browse by Category */
@media (max-width: 768px) {
    .browse-section {
        padding: 2.5rem 0;
    }

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

    .browse-card {
        min-height: 160px;
        padding: 1.75rem 1.5rem;
    }

    .browse-card h3 {
        font-size: 1.3rem;
    }

    .browse-card p {
        font-size: 0.88rem;
    }

    .browse-card-icon {
        font-size: 3.5rem;
        bottom: 0.75rem;
        right: 1rem;
    }

    .browse-card-cta {
        font-size: 0.82rem;
    }
}

/* Services Section */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }

    .service-card.modern-card {
        padding: 1.25rem;
        gap: 1rem;
    }

    .service-content h3 {
        font-size: 1rem;
    }

    .service-content p {
        font-size: 0.88rem;
    }

    .service-icon-wrap {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }

    .service-hover-arrow {
        display: none;
    }
}

/* About Teaser (Who We Are) responsiveness */
@media (max-width: 768px) {
    .teaser-content {
        text-align: center;
        padding: 0 1.5rem;
        /* Increased comfort padding */
    }

    .teaser-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        letter-spacing: -0.75px;
        line-height: 1.25;
        margin-bottom: 1.25rem;
    }

    .teaser-text {
        font-size: 1.05rem;
        line-height: 1.7;
        margin-bottom: 2rem;
        padding: 0 5px;
    }

    .teaser-content .cta-flex {
        justify-content: center;
        align-items: center;
        /* Override global stretch for this specific section */
        gap: 1rem;
    }

    .teaser-content .btn {
        padding: 14px 32px;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        /* Extra safety for centering */
    }
}

/* Global: Section padding, titles, and CTA buttons on mobile */
@media (max-width: 768px) {
    .section {
        padding: 2.5rem 0;
    }

    .section-title {
        margin-bottom: 1.5rem;
    }

    .section-title h2 {
        font-size: clamp(1.4rem, 5vw, 1.8rem);
    }

    .section-title p {
        font-size: 0.9rem;
    }

    .cta-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .cta-flex .btn,
    .cta-flex>a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   CARD CTA BUTTONS � ENQUIRE NOW + SHARE ROW
   ========================================================= */
.card-cta-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 14px;
}

.card-cta-row .btn-enquire {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.card-cta-row .btn-enquire:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.card-cta-row .btn-share {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
    border: 1px solid var(--border-main);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    color: var(--text-muted);
}

.card-cta-row .btn-share:hover {
    background: rgba(230, 0, 0, 0.06);
    border-color: rgba(230, 0, 0, 0.25);
    color: var(--primary-color);
    transform: translateY(-1px);
}

.card-cta-row .btn-share svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* =========================================================
   HERO SEARCH BAR � COMPACT HEIGHT (ALL SCREEN SIZES)
   ========================================================= */
.hero-search-bar {
    padding: 6px 6px 6px 10px !important;
    border-radius: 40px !important;
    gap: 6px !important;
}

.search-item {
    padding: 4px 16px !important;
}

.search-item label {
    font-size: 0.65rem !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 2px !important;
}

.search-item select {
    font-size: 0.85rem !important;
    padding: 0 !important;
}

.search-btn-trigger {
    padding: 10px 28px !important;
    border-radius: 30px !important;
    font-size: 0.88rem !important;
}

/* Mobile: keep it as a compact pill even when stacked */
@media (max-width: 768px) {
    .hero-search-bar {
        padding: 8px 10px !important;
        border-radius: 16px !important;
        gap: 8px !important;
    }

    .search-item {
        padding: 2px 10px !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border-main);
    }

    .search-item:last-of-type {
        border-bottom: none !important;
    }

    .search-item label {
        font-size: 0.62rem !important;
    }

    .search-item select {
        font-size: 0.82rem !important;
    }

    .search-btn-trigger {
        padding: 10px 20px !important;
        border-radius: 10px !important;
        width: 100%;
    }
}

/* =========================================================
   FLOATING FILTER / SEARCH BAR � COMPACT HEIGHT FIX
   Desktop + Mobile
   ========================================================= */

/* Overall bar container */
.inventory-controls {
    padding: 8px 0 !important;
}

.inventory-controls.shadowed {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07) !important;
}

/* Inner row spacing */
.inventory-controls-inner {
    gap: 0.6rem !important;
}

/* Category tab pills � slimmer */
.category-tab {
    padding: 7px 18px !important;
    font-size: 0.82rem !important;
    border-radius: 30px !important;
}

/* Search box � thinner input height */
.search-box {
    padding: 0.25rem 1.1rem !important;
    border-radius: 40px !important;
}

#car-search {
    padding: 0.45rem 0 !important;
    font-size: 0.9rem !important;
}

.search-icon {
    width: 17px !important;
    height: 17px !important;
    margin-right: 0.6rem !important;
}

/* Mobile: compact too */
@media (max-width: 768px) {

    /* Vehicle Page Hero Mobile Sizing */
    .page-hero {
        padding: 100px 0 40px !important;
    }

    .page-hero h1 {
        font-size: 2.4rem !important;
        margin-bottom: 0.5rem !important;
    }

    .page-hero p {
        font-size: 0.95rem !important;
        padding: 0 15px !important;
        line-height: 1.5 !important;
    }

    .page-hero-bg-text {
        font-size: 18vw !important;
        top: 45% !important;
    }

    .inventory-controls {
        padding: 6px 0 !important;
    }

    .category-tab {
        padding: 6px 14px !important;
        font-size: 0.78rem !important;
    }

    .search-box {
        padding: 0.2rem 0.9rem !important;
    }

    #car-search {
        padding: 0.4rem 0 !important;
        font-size: 0.85rem !important;
    }
}

/* ============================================================
   VEHICLE COMPARISON ENGINE STYLING
   ============================================================ */

/* Floating Bar */
.compare-bar {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 93%;
    max-width: 550px;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: bottom 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
}

.compare-bar.active {
    bottom: 0;
}

.compare-bar.minimized {
    bottom: -125px;
}

.compare-bar-header {
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--primary-color);
    color: white;
}

.compare-bar-info {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-compare-minimize {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    transition: transform 0.4s;
    display: flex;
    align-items: center;
}

.compare-bar.minimized .btn-compare-minimize {
    transform: rotate(180deg);
}

.compare-bar-body {
    padding: 20px 24px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.compare-bar-thumbs {
    display: flex;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
}

.compare-bar-thumbs::-webkit-scrollbar {
    display: none;
}

.compare-thumb-wrapper {
    flex-shrink: 0;
    width: 70px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    position: relative;
}

.compare-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-bar-actions {
    display: flex;
    gap: 10px;
}

.btn-compare-now {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-compare-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(230, 0, 0, 0.4);
}

.btn-compare-clear {
    background: var(--bg-alt);
    color: var(--text-main);
    border: 1px solid var(--border-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-compare-clear:hover {
    background: #ff4444;
    color: white;
    border-color: #ff4444;
}

/* Modal Styling */
.compare-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    padding: 20px;
}

.compare-modal.active {
    opacity: 1;
    pointer-events: all;
}

.compare-modal-content {
    background: var(--bg-body);
    width: 100%;
    max-width: 1100px;
    max-height: 85vh;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.compare-modal-header {
    padding: 25px 40px;
    border-bottom: 1px solid var(--border-main);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-body);
}

.compare-title {
    margin: 0;
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.compare-modal-close {
    font-size: 2.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
    line-height: 1;
}

.compare-modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.compare-table-container {
    padding: 0 40px 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(85vh - 100px);
}

.compare-grid {
    display: grid;
    grid-template-columns: 180px repeat(auto-fill, minmax(260px, 1fr));
    min-width: 800px;
}

.compare-row-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-main);
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

.compare-cell {
    padding: 20px;
    border-bottom: 1px solid var(--border-main);
    border-left: 1px solid var(--border-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.vehicle-header {
    text-align: center;
    position: relative;
    background: var(--bg-body);
    padding-top: 35px;
}

.compare-vehicle-img {
    width: 100%;
    aspect-ratio: 16/11;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.compare-vehicle-name {
    font-weight: 900;
    font-size: 1.2rem;
    line-height: 1.2;
    color: var(--text-main);
}

.compare-remove-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff4444;
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: 900;
    box-shadow: 0 4px 10px rgba(255, 68, 68, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.compare-remove-btn:hover {
    background: #cc0000;
    transform: scale(1.1);
}

.price-cell {
    color: var(--primary-color);
    font-weight: 900;
    font-size: 1.3rem;
}

/* Card Toggle Enhancement */
.compare-toggle-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.compare-checkbox-label {
    background: rgba(0, 0, 0, 0.65);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.compare-checkbox-label:hover {
    background: var(--primary-color);
    box-shadow: 0 5px 20px var(--primary-glow);
}

.compare-checkbox-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.selected-for-compare {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 3px var(--primary-glow);
}

@media (max-width: 768px) {
    .compare-bar {
        width: 96%;
        border-radius: 20px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
    }

    .compare-bar.active {
        bottom: 85px; /* Sit above the 75px bottom nav menu */
    }

    .compare-bar.minimized {
        bottom: 40px; /* Peek out above nav bar when minimized */
    }

    .compare-bar-body {
        padding: 15px 15px 20px;
        gap: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .compare-bar-actions {
        justify-content: space-between;
        width: 100%;
        margin-top: 5px;
    }

    .btn-compare-now {
        flex: 1;
        padding: 10px 15px;
        font-size: 0.8rem;
    }

    .compare-modal-content {
        border-radius: 20px;
    }

    .compare-modal-header {
        padding: 20px;
    }

    .compare-table-container {
        padding: 0 20px 20px;
    }

    .compare-grid {
        grid-template-columns: 140px repeat(auto-fill, minmax(220px, 1fr));
    }
}

/* ── Articles Manager & Preview Styles ──────────────────── */
.editor-layout {
    transition: all 0.3s ease;
}

.editor-preview {
    position: sticky;
    top: 20px;
    height: fit-content;
}

#article-preview-container {
    perspective: 1000px;
}

#article-preview-container .article-card {
    margin: 0;
    max-width: 320px;
    pointer-events: none; /* Disable interaction in preview */
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.article-hero-media {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.manage-item:hover {
    border-color: var(--primary-color) !important;
    transform: translateX(5px);
}

#art-image-status {
    transition: all 0.2s ease;
}

/* Fallback rows styling */
#emoji-color-row {
    transition: opacity 0.3s ease;
}

@media (max-width: 1100px) {
    .editor-layout {
        grid-template-columns: 1fr !important;
    }
    .editor-preview {
        display: none; /* Hide preview on smaller screens in mobile admin */
    }
}

/* ── Modern Article Detail & Progressive UI ────────────────────────── */
.article-detail-view {
    animation: fadeIn 0.6s ease-out;
}

.article-progress-container {
    position: fixed;
    top: 60px; /* Below sticky nav */
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.article-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    width: 0%;
    box-shadow: 0 0 10px var(--primary-glow);
    transition: width 0.1s ease-out;
}

.glass-article-container {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-main);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
    margin-top: 2rem;
}

.btn-back-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-main);
    padding: 10px 20px;
    border-radius: 50px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-back-modern:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.article-content-body {
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--text-main);
}

.article-content-body p {
    margin-bottom: 1.75rem;
}

.article-content-body h2, .article-content-body h3, .article-content-body h4 {
    font-family: 'Playfair Display', serif;
    margin: 2.5rem 0 1.25rem;
    color: var(--text-main);
}

.article-content-body ul, .article-content-body ol {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.article-content-body li {
    margin-bottom: 0.75rem;
}

/* Premium Newsletter Card */
.articles-newsletter {
    margin: 6rem auto;
    max-width: 900px;
    background: linear-gradient(135deg, rgba(230,0,0,0.05) 0%, rgba(0,0,0,0.4) 100%);
    border: 1px solid var(--border-main);
    border-radius: 40px;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.articles-newsletter::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(230,0,0,0.1) 0%, transparent 70%);
    pointer-events: none;
}

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

.newsletter-input-group {
    display: flex;
    max-width: 500px;
    margin: 3rem auto 0;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-main);
    border-radius: 50px;
    padding: 6px;
    transition: var(--transition);
}

.newsletter-input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(230,0,0,0.2);
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0 1.5rem;
    color: white;
    font-size: 1rem;
}

.newsletter-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.newsletter-submit:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

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

/* ── Articles Grid & Component Styles ───────────────────────── */
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin: 3rem 0;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--border-main);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.4s ease;
    box-shadow: var(--shadow-sm);
    height: 100%;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,0.15);
}

.article-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.article-tag {
    background: rgba(230,0,0,0.1);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    line-height: 1.25;
    transition: color 0.3s ease;
}

.article-card:hover .article-title {
    color: var(--primary-color);
}

.article-excerpt {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    /* Limit to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Fallback icons when there is no cover image */
.article-hero-icon {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    background: linear-gradient(135deg, rgba(20,20,20,1) 0%, rgba(40,40,40,1) 100%);
    border-bottom: 1px solid var(--border-main);
}


.articles-page-header {
    padding-top: 140px;
}

@media (max-width: 768px) {
    .articles-page-header { padding-top: 80px; }
    .glass-article-container { 
        padding: 1rem; 
        border-radius: 20px; 
        margin-top: 0.5rem;
        box-shadow: 0 15px 40px rgba(0,0,0,0.2);
        border: none;
        background: var(--card-bg);
    }
    .article-title-main { 
        font-size: clamp(1.75rem, 8vw, 2.5rem) !important; 
        margin-bottom: 1.25rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.5px;
    }
    .article-content-body { 
        font-size: 1rem;
        line-height: 1.7;
    }
    .article-content-body p { margin-bottom: 1.25rem; }
    .articles-newsletter { margin: 3rem auto; padding: 2.5rem 1.25rem; border-radius: 24px; }
    .newsletter-input-group { flex-direction: column; background: transparent; border: none; padding: 0; gap: 10px; margin-top: 2rem; }
    .newsletter-input-group input { background: rgba(255,255,255,0.05); border: 1px solid var(--border-main); padding: 15px 20px; border-radius: 50px; }
    
    .article-grid { 
        grid-template-columns: 1fr;
        gap: 1.25rem; 
        margin: 1.5rem 0;
    }
    .article-content { padding: 1.25rem; }
    .article-title { font-size: 1.35rem; }
    .article-hero-media { height: 200px; }
    
    .btn-back-modern {
        margin-bottom: 1.5rem;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* --- MAGAZINE HERO SECTION --- */
.article-featured-wrapper {
    margin-bottom: 5rem;
    animation: fadeIn 1s ease;
}

.article-featured-hero {
    position: relative;
    width: 100%;
    min-height: 550px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--black);
    display: flex;
    align-items: flex-end;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-main);
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), box-shadow 0.6s ease;
    text-decoration: none;
}

.article-featured-hero:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.hero-img-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: opacity 0.6s, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.article-featured-hero:hover .hero-img-bg {
    opacity: 0.85;
    transform: scale(1.04);
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    pointer-events: none;
}

.hero-content-inner {
    position: relative;
    z-index: 2;
    padding: 4.5rem;
    width: 100%;
    max-width: 850px;
}

.hero-title {
    font-size: 3.8rem;
    line-height: 1.05;
    color: var(--white);
    margin: 1.5rem 0;
    font-weight: 900;
    font-family: var(--font-heading);
    text-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

.hero-excerpt {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--primary-color);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 20px var(--primary-glow);
    transition: var(--transition);
}

.article-featured-hero:hover .hero-cta {
    background: var(--white);
    color: var(--black);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-content-inner { padding: 3rem; }
    .article-featured-hero { min-height: 450px; }
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .article-featured-hero { min-height: 500px; text-align: center; align-items: center; }
    .hero-content-inner { padding: 2rem; display: flex; flex-direction: column; align-items: center; }
    .hero-excerpt { font-size: 1.15rem; }
}

/* Newsletter Section */
.articles-newsletter {
    background: var(--bg-alt);
    margin-top: 6rem;
    padding: 6rem 1rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid var(--border-main);
}

.newsletter-inner {
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-input-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding: 10px;
    background: var(--bg-body);
    border-radius: 50px;
    border: 1px solid var(--border-main);
    box-shadow: var(--shadow-sm);
}

.newsletter-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 1.5rem;
    font-size: 1rem;
    color: var(--text-main);
    outline: none;
}

.newsletter-submit {
    background: var(--black);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-submit:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

@media (max-width: 576px) {
    .newsletter-input-group { flex-direction: column; background: transparent; border: none; box-shadow: none; padding: 0; }
    .newsletter-input-group input { background: var(--bg-body); padding: 1rem 1.5rem; border-radius: 50px; border: 1px solid var(--border-main); width: 100%; margin-bottom: 1rem; }
}

/* --- 22. VEHICLE COMPARISON SYSTEM --- */
.compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 2000;
    background: rgba(230, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: white;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
}

.compare-bar.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.compare-bar.active.minimized {
    transform: translateY(calc(100% - 60px));
}

.compare-bar-header {
    padding: 15px 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.1);
    cursor: pointer;
}

.compare-bar-info {
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

#compare-count {
    background: white;
    color: var(--primary-color);
    padding: 2px 10px;
    border-radius: 20px;
    margin-right: 8px;
}

.compare-bar-body {
    padding: 20px 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    max-height: 180px;
    overflow-y: hidden;
}

.compare-bar-thumbs {
    display: flex;
    gap: 15px;
    flex: 1;
    overflow-x: auto;
    padding-bottom: 5px;
}

/* Scrollbar styling for thumbs */
.compare-bar-thumbs::-webkit-scrollbar {
    height: 4px;
}
.compare-bar-thumbs::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.compare-thumb-wrapper {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    flex-shrink: 0;
    background: #000;
}

.compare-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.compare-bar-actions {
    display: flex;
    gap: 10px;
}

.btn-compare-now {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-compare-now:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-compare-clear {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.btn-compare-clear:hover {
    background: #000;
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .compare-bar { 
        bottom: 74px; /* Above bottom nav */
    }
    .compare-bar-body { 
        padding: 15px 1rem;
        flex-direction: column; 
        gap: 15px; 
        max-height: none; 
    }
    .btn-compare-now { width: 100%; }
    .compare-bar-info { font-size: 0.8rem; }
}

