/* ========================================
   BH Performance - V03 Redesign
   Font: Myriad Pro
   Trilingual: English, Arabic, Chinese
   ======================================== */

/* @font-face declarations */
@font-face {
    font-family: 'Myriad Pro';
    src: url('fonts/MyriadPro-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('fonts/MyriadPro-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('fonts/MyriadPro-Semibold.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('fonts/MyriadPro-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro';
    src: url('fonts/MyriadPro-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro SemiExt';
    src: url('fonts/MyriadPro-LightSemiExt.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro SemiExt';
    src: url('fonts/MyriadPro-SemiExt.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro SemiExt';
    src: url('fonts/MyriadPro-SemiboldSemiExt.otf') format('opentype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro SemiExt';
    src: url('fonts/MyriadPro-BoldSemiExt.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Myriad Pro SemiExt';
    src: url('fonts/MyriadPro-BlackSemiExt.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --black: #0a0a0a;
    --dark-text: #4B4B4B;
    --gray-900: #171717;
    --gray-800: #262626;
    --gray-700: #404040;
    --gray-600: #525252;
    --gray-500: #737373;
    --gray-400: #a3a3a3;
    --gray-300: #d4d4d4;
    --gray-200: #e5e5e5;
    --gray-100: #f5f5f5;
    --gray-50: #fafafa;
    --white: #ffffff;
    --footer-text: #696969;

    --font-body: 'Myriad Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Myriad Pro SemiExt', 'Myriad Pro', sans-serif;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);

    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); font-size: 16px; line-height: 1.6; color: var(--dark-text); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; font-size: 0.9375rem; font-weight: 600;
    font-family: var(--font-body);
    transition: var(--transition-fast); white-space: nowrap;
}
.btn-primary { color: var(--white); background: var(--black); }
.btn-primary:hover { background: var(--gray-800); }
.btn-full { width: 100%; }

/* ========================================
   Top Navigation
   ======================================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: var(--black); transition: background 0.4s ease;
}
.navbar.transparent { background: transparent; }
.navbar.scrolled { background: var(--black); box-shadow: var(--shadow-lg); }

.logo img { height: 36px; width: auto; filter: brightness(0) invert(1); }

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 12px 32px;
}

.nav-left { display: flex; align-items: center; gap: 12px; flex: 1; }

.nav-hamburger {
    display: flex; flex-direction: column; gap: 5px; padding: 8px;
    cursor: pointer; z-index: 1002;
}
.nav-hamburger span {
    width: 22px; height: 2px; background: var(--white); transition: var(--transition-fast);
}
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-home {
    display: flex; align-items: center; justify-content: center;
    color: var(--white); padding: 4px;
}
.nav-home:hover { opacity: 0.7; }

.nav-right { display: flex; align-items: center; gap: 16px; flex: 1; justify-content: flex-end; }

.nav-icon {
    display: flex; align-items: center; justify-content: center;
    color: var(--white); padding: 6px; border-radius: var(--radius-full);
    transition: var(--transition-fast);
}
.nav-icon:hover { opacity: 0.7; }

.navbar.scrolled .nav-icon,
.navbar.scrolled .nav-home { color: var(--white); }
.navbar.scrolled .nav-hamburger span { background: var(--white); }

/* Hamburger Dropdown Menu */
.hamburger-menu {
    position: fixed; top: 0; left: 0; z-index: 999;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    padding: 80px 24px 24px; display: flex; flex-direction: column; gap: 4px;
    transform: translateY(-100%); transition: transform 0.3s ease;
    box-shadow: var(--shadow-lg); min-width: 280px;
}
.hamburger-menu.active { transform: translateY(0); }

.hamburger-menu a {
    display: block; padding: 16px 20px; font-size: 1.125rem; font-weight: 600;
    font-family: var(--font-body);
    color: var(--dark-text); border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-fast); letter-spacing: 0.02em;
}
.hamburger-menu a:hover { background: var(--gray-100); }
.hamburger-menu a:last-child { border-bottom: none; }

/* ========================================
   Hero Section (Homepage)
   ======================================== */
.hero-fullscreen {
    position: relative; min-height: 100vh; display: flex; flex-direction: column;
    justify-content: flex-end; overflow: hidden; background: var(--black);
}
.hero-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.15) 100%);
}
.hero-center-content {
    position: absolute; z-index: 3;
    inset: 0;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
}
.hero-tagline {
    font-family: var(--font-display);
    font-size: clamp(2.25rem, 5vw, 4rem); font-weight: 300; color: var(--white);
    letter-spacing: 0; line-height: 1.3;
    text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    width: 100%;
}

/* Hero Bottom Nav */
.hero-bottom-nav {
    position: absolute; z-index: 4; bottom: 40px; left: 0; right: 0;
    display: flex; justify-content: center; align-items: center; gap: 48px;
}
.hero-bottom-nav a {
    font-family: var(--font-body);
    font-size: 1rem; font-weight: 400; color: rgba(255,255,255,0.7);
    letter-spacing: 0.08em; text-transform: uppercase;
    transition: all 0.25s ease; padding: 8px 0;
    border-bottom: 1px solid transparent;
}
.hero-bottom-nav a:hover { color: var(--white); border-bottom-color: var(--white); }

/* ========================================
   Section Navigation Bar
   ======================================== */
.section-nav {
    display: flex; justify-content: center; align-items: center;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 0; position: sticky; top: 60px; z-index: 900;
}
.section-nav a {
    padding: 18px 32px; font-size: 0.875rem; font-weight: 600;
    font-family: var(--font-body);
    color: var(--dark-text); letter-spacing: 0.08em; text-transform: uppercase;
    transition: var(--transition-fast); border-bottom: 2px solid transparent;
}
.section-nav a:hover { color: var(--black); border-bottom-color: var(--black); }

/* ========================================
   Logo Section (below hero on homepage)
   ======================================== */
.logo-section {
    display: flex; justify-content: center; align-items: center;
    padding: 48px 24px; background: var(--white);
}
.logo-section-img {
    height: 90px; width: auto;
    filter: grayscale(100%) opacity(0.35);
}

/* ========================================
   Page Section Nav + Logo (inner pages)
   ======================================== */
.page-section-nav {
    display: flex; justify-content: center; align-items: center;
    background: var(--white); border-bottom: 1px solid var(--gray-200);
    padding: 0; margin-top: 60px;
}
.page-section-nav a {
    padding: 16px 32px; font-size: 0.875rem; font-weight: 400;
    font-family: var(--font-body);
    color: var(--dark-text); letter-spacing: 0.06em; text-transform: uppercase;
    transition: var(--transition-fast); border-bottom: 2px solid transparent;
}
.page-section-nav a:hover { color: var(--black); border-bottom-color: var(--black); }

.page-logo-section {
    display: flex; justify-content: center; align-items: center;
    padding: 32px 24px; background: var(--white);
}
.page-logo-section img {
    height: 70px; width: auto;
    filter: grayscale(100%) opacity(0.35);
}

/* ========================================
   CARS4SALE Homepage Banner
   ======================================== */
.cars4sale-home-banner {
    position: relative; width: 100%; overflow: hidden;
}
.cars4sale-home-banner a {
    display: block; position: relative; width: 100%; height: 70vh; min-height: 500px;
}
.cars4sale-home-banner img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease;
}
.cars4sale-home-banner a:hover img { transform: scale(1.02); }
.cars4sale-home-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 60px 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.cars4sale-home-overlay h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--white); line-height: 1; letter-spacing: 0.04em; font-weight: 400;
    margin-bottom: 12px;
}
.cars4sale-home-overlay p {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2.5vw, 1.75rem); color: var(--white); font-weight: 600;
    letter-spacing: 0.02em;
}

/* ========================================
   CARS4SALE Section / Page
   ======================================== */
.cars4sale { background: var(--white); }

.cars4sale-banner {
    position: relative; width: 100%; height: 70vh; min-height: 500px; overflow: hidden;
}
.cars4sale-banner img {
    width: 100%; height: 100%; object-fit: cover;
}
.cars4sale-banner-overlay {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: flex-end; padding: 60px 48px;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.cars4sale-banner-overlay h2 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--white); line-height: 1; letter-spacing: 0.04em; font-weight: 400;
    margin-bottom: 12px;
}
.cars4sale-banner-overlay p {
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 2.5vw, 1.75rem); color: var(--white); font-weight: 600;
    letter-spacing: 0.02em;
}

/* Brand Filter */
.cars-filter {
    display: flex; justify-content: center; align-items: center; gap: 12px;
    padding: 24px 24px 0; max-width: 1400px; margin: 0 auto;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 28px; font-family: var(--font-body);
    font-size: 0.9375rem; font-weight: 600; color: var(--dark-text);
    background: var(--gray-100); border: 2px solid transparent;
    letter-spacing: 0.04em; text-transform: uppercase;
    transition: var(--transition-fast); cursor: pointer;
}
.filter-btn:hover { border-color: var(--gray-300); }
.filter-btn.active { background: var(--black); color: var(--white); border-color: var(--black); }

/* Cars Grid */
.cars-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
    padding: 40px 24px; max-width: 1400px; margin: 0 auto;
}
.car-grid-item {
    display: block; transition: var(--transition-base);
}
.car-grid-item:hover { transform: translateY(-4px); }

.car-grid-image {
    width: 100%; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius-lg);
    background: var(--gray-100);
}
.car-grid-image img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.car-grid-item:hover .car-grid-image img { transform: scale(1.03); }

.car-grid-item h3 {
    font-family: var(--font-display);
    font-size: 1.125rem; font-weight: 600; color: var(--dark-text);
    margin-top: 12px; padding: 0 4px;
    transition: var(--transition-fast);
}
.car-grid-item:hover h3 { font-weight: 700; }

/* ========================================
   Contact Section
   ======================================== */
.contact-section {
    padding: 80px 0; background: var(--gray-100);
}
.contact-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400; color: var(--black); text-align: center; margin-bottom: 48px;
}

.contact-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}

.dealer-card {
    background: var(--gray-200); border-radius: var(--radius-xl); padding: 40px;
    text-align: center;
}
.dealer-logo { height: 48px; width: auto; margin: 0 auto 20px; }
.dealer-card h3 {
    font-family: var(--font-body);
    font-size: 1.5rem; font-weight: 600; color: var(--dark-text); margin-bottom: 16px;
}
.dealer-address {
    font-size: 1rem; color: var(--gray-600); margin-bottom: 24px;
}
.dealer-contacts { text-align: left; }
.dealer-contact-row {
    display: flex; gap: 40px; margin-bottom: 8px;
}
.contact-label {
    font-size: 0.8rem; font-weight: 600; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.05em;
}
.dealer-phones {
    display: flex; flex-direction: column; gap: 4px;
}
.dealer-phones a {
    font-size: 1rem; font-weight: 500; color: var(--dark-text);
    transition: var(--transition-fast);
}
.dealer-phones a:hover { color: var(--black); }

.contact-form {
    background: var(--white); padding: 32px; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 16px; }
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 14px 18px; font-size: 0.9375rem; font-family: var(--font-body);
    color: var(--dark-text); background: var(--gray-100);
    border: 2px solid transparent; border-radius: var(--radius-md);
    transition: var(--transition-fast);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none; border-color: var(--black); background: var(--white);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-500); }

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 48px 0 24px; background: var(--gray-200); color: var(--footer-text);
}
.footer-inner {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 24px; padding: 0 24px;
}
.footer-logo {
    height: 48px; width: auto;
    filter: grayscale(100%) opacity(0.4);
}
.footer-text {
    font-family: var(--font-body);
    font-size: 0.9375rem; font-weight: 700; color: var(--footer-text);
    max-width: 500px;
}
.footer-social {
    display: flex; gap: 16px; align-items: center;
}
.footer-social a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--radius-full);
    background: var(--gray-300); color: var(--footer-text);
    transition: var(--transition-fast);
}
.footer-social a:hover { background: var(--gray-400); color: var(--black); }
.footer-bottom-text {
    font-size: 0.8rem; color: var(--gray-400); margin-top: 16px;
}

/* Legacy footer grid (for pages that still use it) */
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px; margin-bottom: 32px;
}
.footer-brand img {
    height: 48px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 0.9375rem; color: var(--gray-400); max-width: 280px; }

.footer-links h4 {
    font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-size: 0.9375rem; color: var(--gray-400); transition: var(--transition-fast);
}
.footer-links a:hover { color: var(--white); }

.footer-bottom {
    padding-top: 24px; border-top: 1px solid var(--gray-200); text-align: center;
}
.footer-bottom p { font-size: 0.875rem; color: var(--gray-500); }

/* ========================================
   Search Overlay
   ======================================== */
.search-overlay {
    position: fixed; inset: 0; z-index: 1200;
    background: rgba(0,0,0,0.95); backdrop-filter: blur(10px);
    display: none; flex-direction: column; align-items: center;
    padding: 0 24px;
}
.search-overlay.active { display: flex; }

.search-close {
    position: absolute; top: 20px; right: 24px;
    background: none; border: none; color: var(--white);
    font-size: 2rem; cursor: pointer; width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
}
.search-close:hover { opacity: 0.7; }

.search-input-wrap {
    width: 100%; max-width: 700px; margin-top: 120px;
    border-bottom: 2px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; gap: 16px; padding-bottom: 12px;
}
.search-input-wrap svg { flex-shrink: 0; color: rgba(255,255,255,0.5); }
.search-input {
    width: 100%; background: none; border: none; outline: none;
    font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300; color: var(--white); letter-spacing: 0.02em;
}
.search-input::placeholder { color: rgba(255,255,255,0.3); }

.search-results {
    width: 100%; max-width: 700px; margin-top: 32px;
    display: flex; flex-direction: column; gap: 0;
    max-height: 60vh; overflow-y: auto;
}
.search-result-item {
    display: flex; align-items: center; gap: 20px;
    padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
    color: var(--white); text-decoration: none;
    transition: 150ms ease;
}
.search-result-item:hover { background: rgba(255,255,255,0.05); padding-left: 8px; padding-right: 8px; }
.search-result-img {
    width: 120px; height: 68px; object-fit: cover; border-radius: 4px;
    flex-shrink: 0; background: var(--gray-800);
}
.search-result-info { display: flex; flex-direction: column; gap: 4px; }
.search-result-name {
    font-family: var(--font-display);
    font-size: 1.125rem; font-weight: 600; color: var(--white);
}
.search-result-brand {
    font-size: 0.8rem; font-weight: 500; color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.06em;
}
.search-no-results {
    color: rgba(255,255,255,0.4); font-size: 1rem; padding: 24px 0;
}

/* ========================================
   Language Side Panel
   ======================================== */
.lang-panel-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1100;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.lang-panel-overlay.active { opacity: 1; visibility: visible; }

.lang-panel {
    position: fixed; top: 0; right: 0; bottom: 0; width: 320px; max-width: 90vw;
    background: var(--white); z-index: 1101; transform: translateX(100%);
    transition: transform 0.3s ease; display: flex; flex-direction: column;
}
.lang-panel.active { transform: translateX(0); }

.lang-panel-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 24px; border-bottom: 1px solid var(--gray-200);
}
.lang-panel-header h3 { font-size: 1.125rem; font-weight: 600; color: var(--black); }
.lang-panel-close {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; color: var(--gray-500);
    border-radius: var(--radius-full); transition: var(--transition-fast);
}
.lang-panel-close:hover { background: var(--gray-100); color: var(--dark-text); }

.lang-panel-options { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.lang-option {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px; background: var(--gray-100); border-radius: var(--radius-md);
    transition: var(--transition-fast); text-align: left;
}
.lang-option:hover { background: var(--gray-200); }
.lang-option.active { background: var(--black); color: var(--white); }
.lang-name { font-size: 1rem; font-weight: 500; }
.lang-check { opacity: 0; }
.lang-option.active .lang-check { opacity: 1; }

/* ========================================
   Car Detail Page
   ======================================== */
.detail-page .navbar { background: transparent; }
.detail-page .navbar.scrolled { background: var(--black); }

/* Fullscreen Hero Gallery */
.detail-hero-gallery {
    position: relative; width: 100%; height: 100vh;
    overflow: hidden; background: var(--gray-200);
}
.detail-hero-gallery > img {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 56px; height: 56px; display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.7); color: var(--black);
    cursor: pointer; transition: var(--transition-fast); z-index: 5;
    border: none; border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
}
.hero-gallery-nav:hover { background: var(--white); }
.hero-gallery-nav.prev { left: 24px; }
.hero-gallery-nav.next { right: 24px; }
.hero-gallery-counter {
    position: absolute; bottom: 32px; right: 40px;
    font-size: 1.5rem; font-weight: 300; color: var(--white);
    letter-spacing: 0.05em; text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

/* Detail Info Section */
.detail-info-section {
    background: var(--white);
}
.detail-top-bar {
    display: flex; justify-content: flex-start; align-items: center;
    padding: 16px 40px; background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}
.detail-top-bar a {
    font-family: var(--font-body);
    font-size: 0.8rem; font-weight: 500; color: var(--gray-500);
    text-transform: uppercase; letter-spacing: 0.05em;
    transition: var(--transition-fast);
}
.detail-top-bar a:hover { color: var(--black); }

/* Info Content */
.detail-info-content {
    max-width: 900px; padding: 48px 40px;
}
.detail-info-content h1 {
    font-family: var(--font-display);
    font-size: 2rem; font-weight: 600; color: var(--black); line-height: 1.2;
    margin-bottom: 32px;
}

.specs-table {
    width: 100%; margin-bottom: 32px;
}
.specs-row {
    display: flex; justify-content: space-between;
    padding: 12px 0; border-bottom: 1px solid var(--gray-300);
}
.specs-row:last-child { border-bottom: none; }
.spec-key { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; color: var(--dark-text); }
.spec-val { font-family: var(--font-body); font-size: 0.9375rem; color: var(--gray-600); }

.request-price-btn {
    display: inline-block; padding: 16px 40px;
    font-family: var(--font-body);
    font-size: 1rem; font-weight: 700; color: var(--black);
    border: 2px solid var(--black); background: transparent;
    letter-spacing: 0.05em; text-transform: uppercase;
    transition: var(--transition-fast); cursor: pointer;
}
.request-price-btn:hover { background: var(--black); color: var(--white); }

/* Dealer Info */
.detail-dealer {
    margin-top: 40px; padding: 32px; background: var(--gray-100);
    border-radius: var(--radius-lg);
}
.detail-dealer h3 {
    font-family: var(--font-body);
    font-size: 1.25rem; font-weight: 600; color: var(--dark-text); margin-bottom: 16px;
}
.detail-dealer .dealer-logo { margin-bottom: 12px; height: 36px; }
.detail-dealer p { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 12px; }

/* See Also */
.see-also {
    padding: 48px 24px; background: var(--white);
}
.see-also h3 {
    font-family: var(--font-display);
    font-size: 1.25rem; font-weight: 700; color: var(--black); margin-bottom: 20px;
    text-transform: uppercase; letter-spacing: 0.04em;
}
.see-also-grid {
    display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px;
}
.see-also-item {
    flex: 0 0 300px; border-radius: var(--radius-lg); overflow: hidden;
}
.see-also-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* Fullscreen Gallery */
.fullscreen-gallery {
    display: none; position: fixed; inset: 0; z-index: 2000;
    background: rgba(0,0,0,0.95); align-items: center; justify-content: center;
}
.fullscreen-gallery.active { display: flex; }
.fullscreen-gallery img {
    max-width: 90%; max-height: 85vh; object-fit: contain;
}
.fullscreen-gallery .gallery-nav {
    position: absolute; background: transparent; color: var(--white);
    font-size: 3rem;
}
.fullscreen-gallery .gallery-nav.prev { left: 24px; }
.fullscreen-gallery .gallery-nav.next { right: 24px; }
.fullscreen-counter {
    position: absolute; bottom: 32px; right: 32px;
    font-size: 1.5rem; font-weight: 300; color: var(--white);
}
.fullscreen-close {
    position: absolute; top: 24px; right: 24px;
    color: var(--white); font-size: 2rem; cursor: pointer; z-index: 10;
    background: none; border: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .section-nav a { padding: 14px 20px; font-size: 0.8rem; }
    .cars-grid { gap: 20px; padding: 32px 20px; }
    .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section-nav { display: none; }
    .cars-grid { grid-template-columns: 1fr; }
    .hero-bottom-nav { gap: 24px; bottom: 24px; }
    .hero-bottom-nav a { font-size: 0.75rem; }
    .hero-center-content { padding: 0 24px; }

    .nav-right .nav-icon:nth-child(2) { display: none; }

    .logo-section-img { height: 50px; }

    .detail-hero-gallery { height: 60vh; }
    .detail-info-content { padding: 32px 16px; }

    .footer-grid { grid-template-columns: 1fr; }
    .cars4sale-banner-overlay { padding: 32px 24px; }
}

@media (max-width: 480px) {
    .hero-tagline { font-size: 1.1rem; }
    .hero-bottom-nav { gap: 16px; }
    .hero-bottom-nav a { font-size: 0.65rem; }
}

/* ========================================
   RTL Support (Arabic)
   ======================================== */
html[dir="rtl"] {
    --font-body: 'Tajawal', 'Myriad Pro', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Tajawal', 'Myriad Pro SemiExt', sans-serif;
}
html[dir="rtl"] body { font-family: var(--font-body); text-align: right; }

html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4,
html[dir="rtl"] p, html[dir="rtl"] span, html[dir="rtl"] a, html[dir="rtl"] button,
html[dir="rtl"] li { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }

html[dir="rtl"] .car-grid-item h3 { text-align: right; }
html[dir="rtl"] .hero-tagline { letter-spacing: 0; }
html[dir="rtl"] .cars4sale-home-overlay h2,
html[dir="rtl"] .cars4sale-home-overlay p { letter-spacing: 0; text-align: right; }
html[dir="rtl"] .detail-car-title { text-align: right; letter-spacing: 0; }
html[dir="rtl"] .detail-section-nav a { letter-spacing: 0; }
html[dir="rtl"] .filter-btn { letter-spacing: 0; }
html[dir="rtl"] .detail-spec-label { letter-spacing: 0; }
html[dir="rtl"] .detail-request-btn { letter-spacing: 0; }
html[dir="rtl"] .footer-text,
html[dir="rtl"] .footer-bottom-text { letter-spacing: 0; }

html[dir="rtl"] .nav-container { flex-direction: row-reverse; }
html[dir="rtl"] .nav-left { flex-direction: row-reverse; }
html[dir="rtl"] .nav-right { flex-direction: row-reverse; }
html[dir="rtl"] .section-nav { flex-direction: row-reverse; }

html[dir="rtl"] .hamburger-menu { left: auto; right: 0; }
html[dir="rtl"] .hamburger-menu a { text-align: right; }

html[dir="rtl"] .cars4sale-banner-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
    align-items: flex-end; text-align: right;
}

html[dir="rtl"] .contact-grid { direction: rtl; }
html[dir="rtl"] .contact-form input,
html[dir="rtl"] .contact-form select,
html[dir="rtl"] .contact-form textarea { text-align: right; }

html[dir="rtl"] .footer { direction: rtl; }
html[dir="rtl"] .footer-grid { direction: rtl; }
html[dir="rtl"] .footer-brand { text-align: right; }
html[dir="rtl"] .footer-links { text-align: right; }
html[dir="rtl"] .footer-links ul { align-items: flex-end; }

html[dir="rtl"] .lang-panel { right: auto; left: 0; transform: translateX(-100%); }
html[dir="rtl"] .lang-panel.active { transform: translateX(0); }

html[dir="rtl"] .hero-bottom-nav { flex-direction: row-reverse; }

/* Chinese */
html[lang="zh"] body {
    font-family: 'Noto Sans SC', 'Myriad Pro', -apple-system, BlinkMacSystemFont, sans-serif;
}
