/*
Theme Name: CarLoc Modern
Theme URI: https://carloc.local
Author: CarLoc Team
Author URI: https://carloc.local
Description: Thème moderne et épuré pour la location de voiture
Version: 2.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: carloc-modern
Domain Path: /languages
*/

/* ========================================
   CSS Variables
   ======================================== */
:root {
    --primary: #e85d04;
    --primary-dark: #d45103;
    --primary-light: #f48c06;
    --secondary: #023e8a;
    --secondary-light: #0077b6;
    --accent: #f7931e;
    --text: #1a1a2e;
    --text-secondary: #64748b;
    --bg: #ffffff;
    --bg-alt: #f1f5f9;
    --bg-dark: #0f172a;
    --border: #e2e8f0;
    --whatsapp: #25D366;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,.1);
    --shadow-lg: 0 12px 32px rgba(0,0,0,.12);
    --shadow-xl: 0 20px 48px rgba(0,0,0,.18);
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --transition: .3s cubic-bezier(.4,0,.2,1);
}

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

html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

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

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header h2 {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}
.section-header .accent-line {
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px;
    margin: 1rem auto 0;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1.4;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-outline { background: transparent; color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

.btn-secondary { background: var(--secondary); border-color: var(--secondary); }
.btn-secondary:hover { background: var(--secondary-light); border-color: var(--secondary-light); }

.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); }
.btn-whatsapp:hover { background: #1ebe57; border-color: #1ebe57; }

.btn-white { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: rgba(255,255,255,.9); }

.btn-lg { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }

.btn-icon { width: 2.75rem; height: 2.75rem; padding: 0; border-radius: 50%; }

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.9rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding a { display: flex; align-items: center; gap: 0.2rem; }
.site-branding h1 {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--secondary);
    line-height: 1;
}
.site-branding h1 span { color: var(--primary); }

.main-nav ul { list-style: none; display: flex; align-items: center; gap: 0.25rem; }
.main-nav li a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}
.main-nav li a:hover,
.main-nav li.current-menu-item a {
    color: var(--primary);
    background: rgba(232,93,4,.06);
}

.header-cta { display: flex; align-items: center; gap: 0.75rem; }
.header-cta .btn { padding: 0.55rem 1.25rem; font-size: 0.85rem; }
.header-cta .btn i { margin-right: 0.45rem; }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background: var(--text);
    transition: var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Hero
   ======================================== */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0f172a 0%, var(--secondary) 50%, #023e8a 100%);
    color: #fff;
    overflow: hidden;
    padding-top: 4rem;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 40%, rgba(232,93,4,.15), transparent),
        radial-gradient(ellipse 40% 50% at 20% 80%, rgba(2,62,138,.3), transparent);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--bg-alt);
    clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 1.5rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.15);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}
.hero-text h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}
.hero-text h1 .highlight { color: var(--primary-light); }
.hero-text p {
    font-size: 1.15rem;
    line-height: 1.7;
    opacity: .85;
    margin-bottom: 2rem;
    max-width: 480px;
}
.hero-buttons { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}
.hero-visual .stat-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    max-width: 400px;
}
.stat-card {
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover { background: rgba(255,255,255,.14); transform: translateY(-4px); }
.stat-card .stat-icon { font-size: 2rem; margin-bottom: 0.5rem; }
.stat-card .stat-number { font-size: 1.75rem; font-weight: 800; display: block; }
.stat-card .stat-label { font-size: 0.8rem; opacity: .7; margin-top: 0.25rem; }

/* ========================================
   Features Strip
   ======================================== */
.features-strip {
    position: relative;
    z-index: 3;
    padding: 3.5rem 0 1rem;
    background: var(--bg-alt);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(232,93,4,.1), rgba(244,140,6,.1));
    font-size: 1.5rem;
}
.feature-item h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.feature-item p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ========================================
   Vehicles Section
   ======================================== */
.vehicles-section {
    padding: 5rem 0 6rem;
    background: var(--bg-alt);
}

.vehicles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}

/* ========================================
   Vehicle Card
   ======================================== */
.vehicle-card {
    position: relative;
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}
.vehicle-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.vehicle-image {
    position: relative;
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.vehicle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.vehicle-card:hover .vehicle-image img { transform: scale(1.06); }
.vehicle-image .no-image {
    font-size: 3.5rem;
    opacity: .4;
}

.vehicle-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(8px);
    color: var(--text);
    box-shadow: var(--shadow-sm);
}

.vehicle-price-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(232,93,4,.35);
}
.vehicle-price-badge small { font-weight: 400; font-size: 0.7rem; opacity: .85; }

.vehicle-content { padding: 1.25rem 1.5rem 1.5rem; }

.vehicle-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
    letter-spacing: -0.01em;
}
.vehicle-content h3 a { transition: var(--transition); }
.vehicle-content h3 a:hover { color: var(--primary); }

.vehicle-brand {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.vehicle-spec {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-alt);
    border-radius: 50px;
}
.vehicle-spec .spec-icon { font-size: 0.85rem; }

.vehicle-actions {
    display: flex;
    gap: 0.75rem;
}
.vehicle-actions .btn {
    flex: 1;
    text-align: center;
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
}

/* ========================================
   Single Vehicle
   ======================================== */
.single-vehicle-wrapper { padding: 7rem 0 4rem; }

.vehicle-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    transition: var(--transition);
}
.vehicle-back:hover { color: var(--primary); gap: 0.6rem; }

.vehicle-detail {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: start;
}

.vehicle-gallery {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--bg-alt);
    aspect-ratio: 4/3;
}
.vehicle-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.vehicle-gallery .no-image-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 5rem;
    color: var(--border);
}

.vehicle-info-panel { position: sticky; top: 6rem; }

.vehicle-info-panel .vehicle-title {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}
.vehicle-info-panel .vehicle-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.vehicle-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(232,93,4,.06), rgba(244,140,6,.06));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(232,93,4,.12);
    margin-bottom: 1.75rem;
}
.vehicle-price-block .price-amount {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.vehicle-price-block .price-unit {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.vehicle-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: var(--bg-alt);
    border-radius: var(--radius-md);
}
.spec-item .spec-item-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: #fff;
    box-shadow: var(--shadow-sm);
    font-size: 1.1rem;
    flex-shrink: 0;
}
.spec-item .spec-item-text { line-height: 1.3; }
.spec-item .spec-item-label { font-size: 0.72rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .04em; font-weight: 500; }
.spec-item .spec-item-value { font-size: 0.9rem; font-weight: 600; }

.vehicle-description {
    padding: 1.25rem 0;
    border-top: 1px solid var(--border);
    margin-bottom: 1.75rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

.vehicle-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.vehicle-cta .btn { width: 100%; justify-content: center; }
.vehicle-cta .btn-whatsapp { font-size: 1.05rem; padding: 1rem; }

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,.85);
    margin-top: 0;
}

.footer-top {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
}
.footer-brand h3 span { color: var(--primary-light); }
.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: .7;
    margin-bottom: 1.25rem;
}

.social-links { display: flex; gap: 0.5rem; }
.social-link {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    font-size: 1rem;
    transition: var(--transition);
}
.social-link:hover { background: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.social-link i { font-size: 1rem; line-height: 1; }

.footer-section h4 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #fff;
    margin-bottom: 1.25rem;
}
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 0.65rem; }
.footer-section a {
    font-size: 0.9rem;
    opacity: .65;
    transition: var(--transition);
}
.footer-section a:hover { opacity: 1; color: var(--primary-light); }

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}
.footer-contact-item .contact-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.06);
    flex-shrink: 0;
    font-size: 0.9rem;
}
.footer-contact-item span { opacity: .7; line-height: 1.5; }
.footer-contact-item .contact-icon i { font-size: 0.9rem; line-height: 1; }

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}
.footer-bottom p { font-size: 0.82rem; opacity: .45; }

/* ========================================
   Floating WhatsApp
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--whatsapp);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,.4);
    transition: var(--transition);
    font-size: 1.75rem;
    color: #fff;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5); }
.whatsapp-float i { font-size: 1.7rem; line-height: 1; }
.whatsapp-float .pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--whatsapp);
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(1); opacity: .6; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Empty State
   ======================================== */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 1rem; opacity: .4; }
.empty-state p { font-size: 1.1rem; }

/* ========================================
   Page Content (default)
   ======================================== */
.page-content {
    padding: 7rem 0 4rem;
}
.page-content .entry-content {
    max-width: 720px;
    margin: 0 auto;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero-text p { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual .stat-cards { max-width: 360px; margin: 0 auto; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .vehicle-detail { grid-template-columns: 1fr; }
    .vehicle-info-panel { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

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

    .nav-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        box-shadow: var(--shadow-xl);
        transition: right .35s cubic-bezier(.4,0,.2,1);
        z-index: 1001;
        padding: 5rem 1.5rem 2rem;
        overflow-y: auto;
    }
    .nav-wrapper.open { right: 0; }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 1000;
        backdrop-filter: blur(2px);
    }
    .nav-overlay.open { display: block; }

    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li a { padding: 0.85rem 0; font-size: 1rem; border-bottom: 1px solid var(--border); border-radius: 0; }
    .header-cta { display: none; }

    .hero { min-height: auto; padding-top: 5rem; }
    .hero-inner { padding: 3rem 1.5rem 4rem; }
    .hero-visual .stat-cards { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
    .stat-card { padding: 1rem; }
    .stat-card .stat-number { font-size: 1.3rem; }

    .features-grid { grid-template-columns: 1fr; }
    .vehicles-grid { grid-template-columns: 1fr; }

    .vehicle-specs-grid { grid-template-columns: 1fr; }

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

    .filters-sidebar { display: none; }
    .filters-sidebar.open-mobile {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1002;
        background: #fff;
        padding: 1.5rem;
        overflow-y: auto;
        animation: slideUp .3s ease;
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

    .filters-toggle-mobile { display: inline-flex; }
    .listing-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-text h1 { font-size: 1.75rem; }
    .section-header h2 { font-size: 1.6rem; }
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn { width: 100%; }
    .vehicle-price-badge { font-size: 0.78rem; }
    .quick-filters { gap: 0.4rem; }
    .filter-chip { font-size: 0.78rem; padding: 0.4rem 0.9rem; }
}

/* ========================================
   Quick Filters (Homepage)
   ======================================== */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1rem;
}
.filter-chip {
    padding: 0.5rem 1.25rem;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
}
.filter-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.filter-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.listing-link-row {
    text-align: center;
    margin-bottom: 2.5rem;
}

.vehicle-card.filter-hidden {
    display: none;
}

/* ========================================
   Listing Page
   ======================================== */
.listing-page { padding-bottom: 4rem; }

.listing-hero {
    background: linear-gradient(135deg, var(--secondary), #023e8a);
    color: #fff;
    padding: 7rem 0 3rem;
    text-align: center;
}
.listing-hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.listing-hero p {
    font-size: 1.05rem;
    opacity: .8;
}

.listing-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

/* Sidebar */
.filters-sidebar {
    background: #fff;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
    height: fit-content;
    position: sticky;
    top: 5.5rem;
}
.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}
.filters-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}
.filters-reset {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    transition: var(--transition);
}
.filters-reset:hover { text-decoration: underline; }

.filters-form { display: flex; flex-direction: column; gap: 1.25rem; }

.filter-group {}
.filter-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.filter-input,
.filter-select {
    width: 100%;
    padding: 0.6rem 0.85rem;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--bg-alt);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    appearance: auto;
}
.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(232,93,4,.1);
}
.filter-input-half { width: 100%; }
.filter-price-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.filter-price-sep { color: var(--text-secondary); font-weight: 500; flex-shrink: 0; }
.filter-hint {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
}

/* Results */
.listing-results { min-height: 400px; }

.listing-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}
.results-count {
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.results-count strong { color: var(--text); }

.filters-toggle-mobile { display: none; }

.vehicles-grid-listing {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}
.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--secondary);
    background: rgba(2,62,138,.07);
    border-radius: 50px;
}
.active-filter-clear {
    color: var(--primary);
    background: rgba(232,93,4,.07);
    cursor: pointer;
}
.active-filter-clear:hover { background: rgba(232,93,4,.14); }

/* Pagination */
.listing-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 3rem;
}
.listing-pagination a,
.listing-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--border);
    color: var(--text);
    background: #fff;
    transition: var(--transition);
}
.listing-pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.listing-pagination .current {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Mobile close btn for filters */
.filters-close-mobile {
    display: none;
    width: 100%;
    margin-bottom: 1rem;
}
.filters-sidebar.open-mobile .filters-close-mobile { display: block; }

@media (max-width: 1024px) {
    .listing-layout { grid-template-columns: 240px 1fr; }
}

/* ========================================
   Premium Listing Overhaul
   ======================================== */
:root {
    --lux-bg: #0a0a0b;
    --lux-bg-soft: #121315;
    --lux-panel: rgba(20, 21, 24, 0.84);
    --lux-panel-border: rgba(255, 255, 255, 0.12);
    --lux-text: #f2f2ee;
    --lux-text-soft: #b7b8b2;
    --lux-gold: #d4b06a;
    --lux-gold-strong: #f2d089;
    --lux-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    letter-spacing: 0.01em;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    letter-spacing: 0.02em;
}

.premium-listing {
    background:
        radial-gradient(800px 380px at 12% 10%, rgba(212, 176, 106, 0.17), transparent 65%),
        radial-gradient(1100px 520px at 88% 2%, rgba(255, 255, 255, 0.06), transparent 70%),
        linear-gradient(180deg, var(--lux-bg) 0%, #0f1013 48%, #0b0c0e 100%);
    color: var(--lux-text);
    min-height: 100vh;
}

.listing-hero.listing-hero-premium {
    background: transparent;
    text-align: left;
    padding: 8.2rem 0 3.2rem;
    color: var(--lux-text);
}

.listing-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.85rem;
    border: 1px solid rgba(212, 176, 106, 0.45);
    border-radius: 999px;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--lux-gold);
    margin-bottom: 0.9rem;
    background: rgba(212, 176, 106, 0.08);
}

.listing-hero-premium h1 {
    font-size: clamp(2.3rem, 4.6vw, 4rem);
    color: #fff;
    margin-bottom: 0.6rem;
    line-height: 1.05;
}

.listing-hero-premium p {
    color: var(--lux-text-soft);
    max-width: 680px;
    font-size: 1.05rem;
}

.premium-listing .listing-layout {
    margin-top: -1rem;
    grid-template-columns: minmax(285px, 320px) 1fr;
    gap: 2rem;
    align-items: start;
}

.premium-listing .filters-sidebar {
    position: sticky;
    top: 5.4rem;
    background: var(--lux-panel);
    border: 1px solid var(--lux-panel-border);
    box-shadow: var(--lux-shadow);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 1.25rem;
    padding: 1.3rem;
}

.premium-listing .filters-header {
    border-bottom-color: rgba(255, 255, 255, 0.12);
    margin-bottom: 1rem;
    padding-bottom: 0.9rem;
}

.premium-listing .filters-header h3 {
    color: #fff;
    font-size: 1.3rem;
}

.premium-listing .filters-reset {
    border: none;
    background: rgba(212, 176, 106, 0.11);
    color: var(--lux-gold);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
}

.premium-listing .filters-reset:hover {
    background: rgba(212, 176, 106, 0.22);
    color: var(--lux-gold-strong);
}

.premium-listing .filter-label {
    color: #d6d7d1;
    font-size: 0.72rem;
}

.premium-listing .filter-input,
.premium-listing .filter-select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.premium-listing .filter-select option {
    background: #16171b;
    color: #efefea;
}

.premium-listing .filter-input::placeholder {
    color: #8d8f93;
}

.premium-listing .filter-input:focus,
.premium-listing .filter-select:focus {
    border-color: rgba(212, 176, 106, 0.8);
    box-shadow: 0 0 0 3px rgba(212, 176, 106, 0.16);
}

.premium-listing .filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.premium-listing .filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.17);
    color: #d8d8d2;
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
}

.premium-listing .filter-chip:hover {
    border-color: rgba(212, 176, 106, 0.76);
    color: var(--lux-gold-strong);
}

.premium-listing .filter-chip.active {
    background: linear-gradient(120deg, rgba(212, 176, 106, 0.88), rgba(154, 120, 52, 0.95));
    color: #12110f;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(212, 176, 106, 0.22);
}

.premium-listing .filter-range-values {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.45rem;
    color: #fff;
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
}

.premium-listing .price-range-sep {
    color: #8e908f;
}

.premium-listing .filter-range-stack {
    display: grid;
    gap: 0.55rem;
}

.premium-listing input[type="range"] {
    width: 100%;
    accent-color: #cfac69;
}

.premium-listing .filter-hint {
    color: #8e908f;
}

.premium-listing .premium-toolbar {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 0.8rem 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.premium-listing .results-count {
    color: #cbcdc6;
}

.premium-listing .results-count strong {
    color: #fff;
}

.premium-listing .active-filters {
    margin-top: 1rem;
    margin-bottom: 1.2rem;
}

.premium-listing .active-filter {
    background: rgba(255, 255, 255, 0.08);
    color: #ecece7;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-listing .active-filter-clear {
    border: none;
    cursor: pointer;
    background: rgba(212, 176, 106, 0.14);
    color: var(--lux-gold-strong);
}

.listing-skeleton {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 0.2rem;
}

.skeleton-card {
    height: 360px;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 8%, rgba(255, 255, 255, 0.1) 20%, rgba(255, 255, 255, 0.05) 35%);
    background-size: 240% 100%;
    animation: skeletonShimmer 1.4s ease-in-out infinite;
}

@keyframes skeletonShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.premium-listing .vehicles-grid-listing {
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.3rem;
    transition: opacity 0.25s ease;
}

.premium-listing .vehicles-grid-listing.is-hydrating {
    opacity: 0;
    pointer-events: none;
}

.premium-listing .vehicle-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
    border-radius: 1.1rem;
    overflow: hidden;
}

.premium-listing .vehicle-card:hover {
    transform: translateY(-7px);
    border-color: rgba(212, 176, 106, 0.45);
    box-shadow: 0 28px 50px rgba(0, 0, 0, 0.44);
}

.premium-listing .vehicle-image {
    height: 220px;
    background: linear-gradient(160deg, #23262d, #15181e);
}

.premium-listing .vehicle-image img {
    filter: saturate(1.03) contrast(1.02);
}

.premium-listing .vehicle-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 9, 11, 0.6), rgba(8, 9, 11, 0.04) 55%);
    opacity: 0.9;
    transition: var(--transition);
    pointer-events: none;
}

.premium-listing .vehicle-card:hover .vehicle-image-overlay {
    opacity: 0.72;
}

.premium-listing .vehicle-badge {
    background: rgba(17, 18, 21, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.17);
    color: #f5f5f0;
}

.premium-listing .vehicle-price-badge {
    background: linear-gradient(130deg, rgba(212, 176, 106, 0.95), rgba(159, 123, 53, 0.95));
    color: #1a1712;
    box-shadow: 0 10px 20px rgba(212, 176, 106, 0.28);
    font-size: 0.8rem;
}

.premium-listing .vehicle-content {
    padding: 1.1rem 1rem 1rem;
}

.premium-listing .vehicle-content h3 a {
    color: #f9f9f5;
}

.premium-listing .vehicle-brand {
    color: #afb1ad;
}

.premium-listing .vehicle-spec {
    background: rgba(255, 255, 255, 0.06);
    color: #dddeda;
}

.premium-listing .vehicle-actions .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.62rem 0.9rem;
}

.premium-listing .vehicle-actions .btn-secondary {
    border-color: rgba(212, 176, 106, 0.64);
    background: transparent;
    color: var(--lux-gold-strong);
}

.premium-listing .vehicle-actions .btn-secondary:hover {
    background: rgba(212, 176, 106, 0.2);
    box-shadow: 0 10px 24px rgba(212, 176, 106, 0.15);
}

.premium-listing .vehicle-actions .btn-whatsapp {
    background: linear-gradient(135deg, #2bbf6e, #1e9956);
    border-color: transparent;
}

.premium-listing .vehicle-actions .btn-whatsapp:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(43, 191, 110, 0.35);
}

.premium-listing .no-image {
    color: #b8b9b3;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.premium-listing .empty-state {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: #cdcec8;
}

@media (max-width: 1024px) {
    .premium-listing .listing-layout {
        grid-template-columns: 1fr;
    }

    .premium-listing .filters-sidebar {
        position: static;
    }

    .premium-listing .listing-hero.listing-hero-premium {
        padding-top: 7.4rem;
    }
}

@media (max-width: 768px) {
    .premium-listing .listing-hero.listing-hero-premium {
        text-align: center;
        padding: 6.4rem 0 2.2rem;
    }

    .premium-listing .listing-hero-premium p {
        margin-left: auto;
        margin-right: auto;
    }

    .premium-listing .filters-sidebar.open-mobile {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1002;
        background: rgba(7, 7, 10, 0.96);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        padding: 1.2rem;
        overflow-y: auto;
    }

    .premium-listing .filters-close-mobile {
        display: inline-flex;
        margin-bottom: 0.8rem;
        border-color: rgba(255, 255, 255, 0.22);
        color: #f0f0eb;
    }

    .premium-listing .premium-toolbar {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .premium-listing .results-count {
        width: 100%;
    }

    .premium-listing .filters-toggle-mobile {
        display: inline-flex;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .premium-listing .vehicles-grid-listing {
        grid-template-columns: 1fr;
    }

    .premium-listing .vehicle-actions {
        flex-direction: column;
    }

    .premium-listing .vehicle-actions .btn {
        width: 100%;
    }
}

/* ========================================
   Global Premium Theme (Site-wide)
   ======================================== */
:root {
    --primary: #d4b06a;
    --primary-dark: #b9934f;
    --primary-light: #f2d089;
    --secondary: #101217;
    --secondary-light: #1a1d24;
    --accent: #d4b06a;
    --text: #f2f2ee;
    --text-secondary: #b7b8b2;
    --bg: #0a0a0b;
    --bg-alt: #121315;
    --bg-dark: #050506;
    --border: rgba(255,255,255,.14);
    --shadow-sm: 0 6px 18px rgba(0,0,0,.26);
    --shadow-md: 0 14px 30px rgba(0,0,0,.34);
    --shadow-lg: 0 20px 42px rgba(0,0,0,.42);
    --shadow-xl: 0 26px 56px rgba(0,0,0,.5);
}

body {
    background:
        radial-gradient(900px 500px at 15% 0%, rgba(212,176,106,.12), transparent 66%),
        radial-gradient(1100px 600px at 88% 0%, rgba(255,255,255,.04), transparent 70%),
        var(--bg);
    color: var(--text);
}

.site-header {
    background: rgba(11, 12, 14, .86);
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    border-bottom-color: rgba(255,255,255,.12);
    box-shadow: var(--shadow-sm);
}

.site-branding h1 { color: #fff; }
.site-branding h1 span { color: var(--primary); }

.main-nav li a {
    color: #e9e9e4;
}

.main-nav li a:hover,
.main-nav li.current-menu-item a {
    color: var(--primary-light);
    background: rgba(212,176,106,.12);
}

.btn {
    border-radius: 999px;
    background: linear-gradient(130deg, var(--primary), #a8823f);
    border-color: transparent;
    color: #15120e;
    box-shadow: 0 10px 20px rgba(212,176,106,.2);
}

.btn:hover {
    background: linear-gradient(130deg, var(--primary-light), #b7914d);
    color: #111;
}

.btn-outline {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(212,176,106,.45);
    color: var(--primary-light);
}

.btn-outline:hover {
    background: rgba(212,176,106,.2);
    border-color: rgba(212,176,106,.85);
    color: #111;
}

.btn-secondary {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(212,176,106,.5);
    color: var(--primary-light);
}

.btn-secondary:hover {
    background: rgba(212,176,106,.18);
    color: #111;
}

.hero {
    background: linear-gradient(135deg, #060708 0%, #0f1115 48%, #1b1f27 100%);
}

.hero::before {
    background:
        radial-gradient(ellipse 80% 60% at 75% 35%, rgba(212,176,106,.18), transparent),
        radial-gradient(ellipse 45% 55% at 20% 80%, rgba(255,255,255,.06), transparent);
}

.hero::after {
    background: var(--bg-alt);
}

.hero-text .hero-badge {
    border-color: rgba(212,176,106,.45);
    background: rgba(212,176,106,.1);
    color: var(--primary-light);
}

.hero-text h1 .highlight {
    color: var(--primary-light);
}

.stat-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
}

.features-strip,
.vehicles-section,
.page-content {
    background: transparent;
}

.feature-item,
.vehicle-card,
.spec-item,
.vehicle-price-block,
.listing-toolbar,
.active-filter,
.listing-pagination a,
.listing-pagination span,
.filters-sidebar {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.14);
    color: var(--text);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-item p,
.vehicle-brand,
.vehicle-spec,
.spec-item .spec-item-label,
.spec-item .spec-item-value,
.vehicle-description,
.results-count,
.filter-label,
.filter-hint,
.active-filter {
    color: var(--text-secondary);
}

.vehicle-content h3,
.vehicle-content h3 a,
.vehicle-info-panel .vehicle-title,
.results-count strong,
.section-header h2,
.listing-hero h1,
.empty-state p {
    color: #fff;
}

.vehicle-image {
    background: linear-gradient(135deg, #1a1e26, #0f131a);
}

.vehicle-price-badge {
    background: linear-gradient(130deg, var(--primary), #a8823f);
    color: #15120e;
    box-shadow: 0 8px 18px rgba(212,176,106,.28);
}

.vehicle-badge {
    background: rgba(18,20,24,.78);
    border: 1px solid rgba(255,255,255,.18);
    color: #f3f3ee;
}

.vehicle-spec {
    background: rgba(255,255,255,.06);
}

.filter-chip {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.2);
    color: #dddeda;
}

.filter-chip:hover {
    border-color: rgba(212,176,106,.75);
    color: var(--primary-light);
}

.filter-chip.active {
    background: linear-gradient(120deg, var(--primary), #9f7b35);
    color: #14110d;
    border-color: transparent;
}

.filter-input,
.filter-select {
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.16);
    color: #efefeb;
}

.filter-select option {
    background: #15171c;
    color: #efefeb;
}

.filter-input::placeholder {
    color: #8f9398;
}

.filter-input:focus,
.filter-select:focus {
    border-color: rgba(212,176,106,.8);
    box-shadow: 0 0 0 3px rgba(212,176,106,.16);
}

.listing-hero {
    background: linear-gradient(145deg, #090a0d, #151922);
}

.listing-pagination .current {
    background: linear-gradient(130deg, var(--primary), #9f7b35);
    color: #14110d;
    border-color: transparent;
}

.vehicle-back,
.footer-brand p,
.footer-section a,
.footer-contact-item span,
.footer-bottom p {
    color: var(--text-secondary);
}

.footer-brand h3 span,
.footer-section a:hover,
.vehicle-back:hover {
    color: var(--primary-light);
}

.footer-contact-item .contact-icon,
.social-link {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.14);
}

.social-link:hover {
    background: rgba(212,176,106,.22);
    border-color: rgba(212,176,106,.8);
    color: #111;
}

@media (max-width: 768px) {
    .nav-wrapper {
        background: rgba(11, 12, 14, .95);
        border-left: 1px solid rgba(255,255,255,.12);
    }

    .main-nav li a {
        border-bottom-color: rgba(255,255,255,.12);
        color: #ecece7;
    }

    .filters-sidebar.open-mobile {
        background: rgba(8, 9, 11, .96);
    }
}
