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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: var(--font-size);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   Header / Navbar
   ============================================ */
.header { position: sticky; top: 0; z-index: 1000; background: #fff; box-shadow: var(--shadow); }

.navbar .container {
    display: flex;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.logo-img { height: 38px; width: auto; }

.logo-auto {
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 3px;
    color: #333;
}


.nav-menu {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-left: auto;
    margin-right: 20px;
}

.nav-menu a {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
    background: rgba(231, 76, 60, 0.08);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-social { display: flex; align-items: center; gap: 6px; }
.navbar-social a {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; transition: var(--transition);
}
.navbar-social a[title="Instagram"] { background: linear-gradient(135deg,#f09433,#dc2743,#bc1888); color: #fff; }
.navbar-social a[title="WhatsApp"] { background: #25D366; color: #fff; }
.navbar-social a:hover { transform: scale(1.1); }

.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 5px; }
.mobile-menu-btn span { display: block; width: 25px; height: 3px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* Language Dropdown */
.lang-dropdown { position: relative; z-index: 1100; }
.lang-toggle {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 12px; background: transparent;
    border: 1.5px solid #ddd; border-radius: 8px;
    cursor: pointer; font-family: inherit; transition: var(--transition);
}
.lang-toggle:hover { border-color: var(--primary); }
.lang-dropdown.open .lang-toggle { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,153,204,0.15); }
.lang-flag { width: 22px; height: 16px; border-radius: 2px; flex-shrink: 0; }
.lang-code { font-size: 13px; font-weight: 700; color: #333; letter-spacing: .5px; }
.lang-arrow { font-size: 10px; color: #999; transition: transform .2s; margin-left: 2px; }
.lang-dropdown.open .lang-arrow { transform: rotate(180deg); }
.lang-menu {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    background: #fff; border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border: 1px solid #eee; min-width: 160px; overflow: hidden; z-index: 1200;
}
.lang-dropdown.open .lang-menu { display: block; }
.lang-option {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 16px; font-size: 14px; font-weight: 500;
    color: #333; text-decoration: none; transition: background .15s;
}
.lang-option:hover { background: #f8f8f8; }
.lang-option .lang-flag { width: 24px; height: 18px; border-radius: 3px; }
.lang-option.active { background: linear-gradient(135deg,rgba(0,153,204,0.08),rgba(0,153,204,0.15)); color: var(--primary-dark); font-weight: 600; }

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 15px 0;
    font-size: 14px;
}

.alert .container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

.alert-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 50%, #0099cc 100%);
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero-content { text-align: center; color: #fff; margin-bottom: 40px; }
.hero-content h1 { font-size: 42px; font-weight: 800; line-height: 1.2; margin-bottom: 15px; }
.hero-content .primary { color: var(--primary); }
.hero-content p { font-size: 18px; opacity: 0.8; }

.hero-buttons { display: flex; gap: 15px; justify-content: center; margin-top: 25px; }

.hero-search {
    max-width: 700px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 8px;
}

.search-form .search-row { display: flex; gap: 10px; }
.search-field { flex: 1; position: relative; }
.search-field i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-field input {
    width: 100%;
    padding: 14px 14px 14px 42px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 5px 20px rgba(231,76,60,0.3); }
.btn-secondary { background: #e9ecef; color: var(--text); }
.btn-secondary:hover { background: #dee2e6; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #219a52; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 8px; width: 34px; height: 34px; justify-content: center; }

/* ============================================
   Sections
   ============================================ */
.section { padding: 60px 0; }
.section-gray { background: var(--bg-gray); }

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
}

.section-header h2 { font-size: 28px; font-weight: 700; }
.section-header.center { justify-content: center; text-align: center; }
.primary { color: var(--primary); }

/* ============================================
   Brands Section
   ============================================ */
.brands-section { padding: 30px 0; border-bottom: 1px solid var(--border); }
.brands-slider { display: flex; gap: 15px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.brands-slider::-webkit-scrollbar { display: none; }
.brand-item {
    flex-shrink: 0;
    padding: 12px 24px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    text-align: center;
    transition: var(--transition);
    border: 1px solid var(--border);
}
.brand-item:hover { border-color: var(--primary); background: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.brand-name { font-weight: 600; font-size: 14px; display: block; }
.brand-count { font-size: 12px; color: var(--text-muted); }

/* ============================================
   Vehicle Cards
   ============================================ */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.vehicle-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.vehicle-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: block;
}

.vehicle-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vehicle-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--bg-gray);
}

.vehicle-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.vehicle-card:hover .vehicle-image img { transform: scale(1.05); }

.no-image {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #ccc; background: var(--bg-gray);
}

.vehicle-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}

.vehicle-badge.featured { background: var(--primary); }
.vehicle-badge.sold { background: rgba(0,0,0,0.7); }
.vehicle-badge.reserved { background: var(--warning); }

.vehicle-info { padding: 18px; }
.vehicle-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; line-height: 1.3; }

.vehicle-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.vehicle-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-gray);
    padding: 4px 8px;
    border-radius: 4px;
}

.vehicle-specs span i { font-size: 10px; color: var(--primary); }

.vehicle-price { border-top: 1px solid var(--border); padding-top: 12px; }
.price { font-size: 20px; font-weight: 700; color: var(--primary); }

/* ============================================
   Features Grid
   ============================================ */
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; }

.feature-card {
    text-align: center;
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.feature-icon {
    width: 60px; height: 60px;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 24px;
    color: var(--primary);
}

.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--text-light); }

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0;
    text-align: center;
    color: #fff;
}

.cta-content h2 { font-size: 32px; margin-bottom: 10px; }
.cta-content p { font-size: 18px; opacity: 0.9; margin-bottom: 25px; }
.cta-buttons { display: flex; gap: 15px; justify-content: center; }
.cta-buttons .btn-primary { background: #fff; color: var(--primary); }
.cta-buttons .btn-primary:hover { background: #f0f0f0; }

/* ============================================
   Page Banner
   ============================================ */
.page-banner {
    background: linear-gradient(135deg, #111111, #1a1a1a);
    padding: 50px 0;
    color: #fff;
}

.page-banner.compact { padding: 25px 0; }
.page-banner h1 { font-size: 32px; font-weight: 700; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; opacity: 0.8; margin-top: 8px; }
.breadcrumb a:hover { text-decoration: underline; }

/* ============================================
   Vehicles Layout (Sidebar + Content)
   ============================================ */
.vehicles-layout { display: grid; grid-template-columns: 280px 1fr; gap: 30px; }

.filter-sidebar {}
.filter-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 25px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.filter-card h3 { font-size: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.filter-group { margin-bottom: 15px; }
.filter-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-light); }
.filter-row-double { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-actions { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    background: #fff;
}

.form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(231,76,60,0.1); }

select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; }

.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.results-count { font-size: 14px; color: var(--text-light); }
.sort-options select { padding: 8px 12px; }

/* ============================================
   Vehicle Detail
   ============================================ */
.vehicle-detail-section { padding-top: 30px; }

.detail-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 30px;
    margin-bottom: 40px;
}

.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    background: var(--bg-gray);
}

.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.no-image.large { aspect-ratio: 16/10; }

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-top: 10px;
}

.gallery-thumbs .thumb {
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { border-color: var(--primary); }

.detail-header { margin-bottom: 20px; }
.detail-header h1 { font-size: 26px; font-weight: 700; margin-bottom: 5px; }
.reference-code { font-size: 13px; color: var(--text-muted); }

.detail-price {
    margin-top: 15px;
    padding: 15px 20px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
}

.price-value { font-size: 28px; font-weight: 800; color: var(--primary); }
.price-currency { font-size: 16px; color: var(--text-light); }

.status-banner {
    padding: 12px 20px;
    border-radius: var(--radius);
    margin: 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.status-banner.sold { background: #f8d7da; color: #721c24; }
.status-banner.reserved { background: #fff3cd; color: #856404; }

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-gray);
    border-radius: var(--radius);
    font-size: 13px;
}

.spec-item i { color: var(--primary); width: 16px; text-align: center; }
.spec-item span { color: var(--text-light); }
.spec-item strong { margin-left: auto; }

.extra-info { display: flex; flex-wrap: wrap; gap: 8px; margin: 15px 0; }
.info-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: var(--bg-gray);
    border: 1px solid var(--border);
}
.info-tag.success { background: #d4edda; border-color: #c3e6cb; color: #155724; }
.info-tag.info { background: #cce5ff; border-color: #b8daff; color: #004085; }

.contact-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

.detail-description {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.detail-description h2 { font-size: 22px; margin-bottom: 15px; }
.description-text { line-height: 1.8; color: var(--text-light); }

.inquiry-section {
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 30px;
}

.inquiry-section h2 { font-size: 22px; margin-bottom: 20px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.inquiry-result {
    margin-top: 15px;
    padding: 12px;
    border-radius: var(--radius);
    font-size: 14px;
}
.inquiry-result.success { background: #d4edda; color: #155724; }
.inquiry-result.error { background: #f8d7da; color: #721c24; }

.similar-section { margin-top: 40px; }
.similar-section h2 { font-size: 22px; margin-bottom: 20px; }

/* ============================================
   About Page
   ============================================ */
.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: start;
}

.about-text h2 { font-size: 28px; margin-bottom: 20px; }
.about-text p { margin-bottom: 15px; color: var(--text-light); line-height: 1.8; }

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    text-align: center;
    padding: 25px;
    background: var(--bg-gray);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.stat-box i { font-size: 28px; color: var(--primary); margin-bottom: 10px; }
.stat-box h3 { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-box p { font-size: 13px; color: var(--text-light); }

.mt-5 { margin-top: 50px; }

/* ============================================
   Contact Page
   ============================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-card {
    text-align: center;
    padding: 25px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.contact-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow); }

.contact-icon {
    width: 50px; height: 50px;
    background: rgba(231,76,60,0.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 15px;
    font-size: 20px;
    color: var(--primary);
}

.contact-icon.whatsapp { background: rgba(37,211,102,0.1); color: #25D366; }

.contact-card h3 { font-size: 16px; margin-bottom: 5px; }
.contact-card p { font-size: 14px; color: var(--text-light); }
.contact-card a { color: var(--primary); }

.contact-form-wrapper { max-width: 700px; margin: 0 auto; }
.contact-form-wrapper h2 { font-size: 24px; margin-bottom: 20px; text-align: center; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; color: var(--text-light); }

/* ============================================
   Pagination
   ============================================ */
.pagination-wrapper { display: flex; justify-content: center; margin-top: 30px; }

.pagination { display: flex; gap: 5px; }
.page-btn {
    padding: 8px 14px;
    border-radius: var(--radius);
    background: #fff;
    border: 1px solid var(--border);
    font-size: 14px;
    transition: var(--transition);
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ============================================
   Empty State
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { margin-bottom: 15px; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text); }
.empty-state p { margin-bottom: 15px; }

/* ============================================
   Footer
   ============================================ */
.footer-main {
    background: var(--dark);
    color: #ccc;
    padding: 50px 0;
}

.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }

.footer-logo { display: flex; align-items: center; gap: 6px; margin-bottom: 15px; }
.footer-logo-img { height: 34px; width: auto; }
.footer-logo-auto { font-size: 20px; font-weight: 300; letter-spacing: 3px; color: #fff; }

.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--primary); }

.contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.contact-list i { color: var(--primary); margin-top: 3px; }

.footer-social { display: flex; gap: 10px; margin-top: 15px; }
.footer-social a {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); transform: translateY(-3px); }

.footer-bottom {
    background: var(--darker);
    padding: 15px 0;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}
