/* ============================================================
   FET EEH — Main Stylesheet
   Turo-inspired premium car rental design
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=Montserrat:wght@400;500;600;700;800&family=Cairo:wght@400;600;700;800&family=Amiri:wght@400;700&display=swap');

/* ---- CSS Variables ---- */
:root {
  --primary:      #0D0D0D;
  --secondary:    #1A1A2E;
  --accent:       #C9A84C;
  --accent-light: #F0D878;
  --accent-dark:  #A07830;
  --white:        #FFFFFF;
  --gray-50:      #F9FAFB;
  --gray-100:     #F3F4F6;
  --gray-200:     #E5E7EB;
  --gray-300:     #D1D5DB;
  --gray-400:     #9CA3AF;
  --gray-500:     #6B7280;
  --gray-600:     #4B5563;
  --gray-700:     #374151;
  --gray-900:     #1A1A1A;
  --success:      #10B981;
  --danger:       #EF4444;
  --warning:      #F59E0B;
  --info:         #3B82F6;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.10), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.10), 0 4px 6px rgba(0,0,0,.05);
  --shadow-xl:  0 20px 25px rgba(0,0,0,.15), 0 10px 10px rgba(0,0,0,.04);
  --shadow-gold: 0 4px 20px rgba(201,168,76,.35);
  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;
  --transition: .25s ease;
  --font:             'Montserrat', 'Cairo', sans-serif;
  --font-serif:       'Playfair Display', Georgia, serif;
  /* Arabic equivalents: Amiri ≈ Playfair Display, Cairo ≈ Montserrat */
  --font-ar:          'Cairo', sans-serif;
  --font-serif-ar:    'Amiri', 'Cairo', serif;
  --nav-height: 70px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--white);
  color: #1A1A1A;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global heading typography — Playfair Display for H1/H2 */
h1, h2 {
  font-family: var(--font-serif);
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -.025em;
  line-height: 1.2;
}
h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 700;
  color: #1A1A1A;
  letter-spacing: -.01em;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* ============================================================
   NAVIGATION
============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height);
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,.15);
  display: flex; align-items: center;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.4rem; font-weight: 800; color: var(--accent);
  letter-spacing: .04em; white-space: nowrap;
}
.nav-logo span { color: var(--white); font-weight: 300; font-size: 1rem; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  padding: 7px 16px; border-radius: var(--radius-full);
  font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.8);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--accent); background: rgba(201,168,76,.1);
}
.btn-nav-cta {
  padding: 9px 22px !important;
  background: var(--accent) !important;
  color: var(--primary) !important;
  font-weight: 700 !important; font-size: .88rem !important;
  border-radius: var(--radius-full) !important;
  transition: var(--transition) !important;
}
.btn-nav-cta:hover {
  background: var(--accent-light) !important;
  box-shadow: var(--shadow-gold) !important;
  transform: translateY(-1px);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}
.mobile-menu {
  display: none; position: fixed; top: var(--nav-height); left: 0; right: 0;
  background: rgba(10,10,10,.98); padding: 16px 24px 24px;
  flex-direction: column; gap: 4px; z-index: 999;
  border-bottom: 1px solid rgba(201,168,76,.2);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px; border-radius: var(--radius-md);
  color: rgba(255,255,255,.85); font-size: 1rem; font-weight: 500;
  transition: var(--transition);
}
.mobile-menu a:hover { background: rgba(201,168,76,.12); color: var(--accent); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; overflow: hidden;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A2E 50%, #0A0A0A 100%);
}
.hero-bg img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.6) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(201,168,76,.15); border: 1px solid rgba(201,168,76,.35);
  color: var(--accent); padding: 6px 18px; border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800; color: var(--white); line-height: 1.15;
  margin-bottom: 20px;
  font-family: 'Playfair Display', serif;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.75); max-width: 560px; margin: 0 auto 36px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  position: relative; z-index: 1;
  display: flex; gap: 40px; margin-top: 60px;
  flex-wrap: wrap; justify-content: center;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1;
}
.hero-stat .lbl {
  font-size: .8rem; color: rgba(255,255,255,.6);
  text-transform: uppercase; letter-spacing: .06em; margin-top: 4px;
}
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.4); font-size: .75rem; letter-spacing: .08em;
  animation: bounce 2s infinite;
}
.scroll-hint svg { width: 20px; height: 20px; }
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================================
   SEARCH BAR (hero search)
============================================================ */
.search-bar {
  position: relative; z-index: 1; width: 100%; max-width: 820px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
  padding: 10px 10px 10px 16px;
  display: flex; align-items: center; gap: 10px;
  flex-wrap: wrap; margin: 0 auto;
}
.search-field {
  flex: 1; min-width: 150px; display: flex; flex-direction: column;
  padding: 8px 12px; border-radius: var(--radius-md);
  border: 1.5px solid transparent; transition: var(--transition);
}
.search-field:focus-within { border-color: rgba(201,168,76,0.4); background: rgba(201,168,76,0.05); }
.search-field label {
  font-size: .7rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; opacity: .8;
}
.search-field input, .search-field select {
  border: none; outline: none; background: transparent;
  font-size: .92rem; font-weight: 500; color: rgba(255,255,255,0.85);
  color-scheme: dark;
}
.search-divider { width: 1px; height: 40px; background: rgba(201,168,76,0.2); flex-shrink: 0; }
.btn-search {
  padding: 14px 28px; background: var(--accent);
  color: var(--primary); font-weight: 700; font-size: .95rem;
  border-radius: var(--radius-lg); white-space: nowrap;
  transition: var(--transition); flex-shrink: 0;
}
.btn-search:hover {
  background: var(--accent-light); box-shadow: var(--shadow-gold);
  transform: translateY(-1px);
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .92rem; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--primary);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { background: var(--accent-light); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(255,255,255,.4);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark {
  background: var(--primary); color: var(--white);
}
.btn-dark:hover { background: var(--secondary); transform: translateY(-1px); }
.btn-ghost {
  background: var(--gray-100); color: var(--gray-700);
}
.btn-ghost:hover { background: var(--gray-200); }
.btn-sm { padding: 8px 18px; font-size: .82rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   SECTIONS & LAYOUT
============================================================ */
.section { padding: 80px 24px; }
.section-sm { padding: 48px 24px; }
.container { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 52px; }
.section-label {
  display: inline-block;
  font-size: .75rem; font-weight: 700;
  color: var(--accent); text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800; color: #1A1A1A; line-height: 1.2;
  margin-bottom: 14px;
  font-family: var(--font-serif);
  letter-spacing: -.025em;
}
.section-sub {
  font-size: 1rem; color: var(--gray-500); max-width: 520px; margin: 0 auto;
}
.bg-dark  { background: #0D0D0D;  color: var(--white); }
.bg-gray  { background: var(--gray-50);  color: var(--gray-900); }
.bg-white { background: var(--white);  color: var(--gray-900); }

/* ============================================================
   CAR CARDS GRID
============================================================ */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 28px;
}
.car-card {
  background: var(--white);
  color: var(--gray-900);         /* explicit — never inherits white from dark parents */
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition); position: relative;
}
.car-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
  transform: translateY(-4px);
}
.car-card-img {
  position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gray-100);
}
.car-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.car-card:hover .car-card-img img { transform: scale(1.05); }
.car-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: var(--primary);
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .04em;
}
.car-card-body { padding: 18px 20px; }
.car-meta {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 6px;
}
.car-category {
  font-size: .75rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em;
}
.car-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: .8rem; font-weight: 600; color: var(--gray-700);  /* #374151 — strong contrast */
}
.car-rating svg { color: var(--accent); }
.car-name {
  font-size: 1.1rem; font-weight: 700; color: #1A1A1A;
  margin-bottom: 4px; font-family: var(--font-serif);
  letter-spacing: -.015em;
}
.car-year-color {
  font-size: .82rem; color: var(--gray-600); margin-bottom: 14px;
}
.car-specs {
  display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.car-spec {
  display: flex; align-items: center; gap: 5px;
  font-size: .8rem; color: var(--gray-600);
}
.car-spec svg { width: 15px; height: 15px; color: var(--gray-500); flex-shrink: 0; }
.car-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; border-top: 1px solid var(--gray-200);
}
.car-price { display: flex; flex-direction: column; }
.car-price .amount {
  font-size: 1.2rem; font-weight: 800; color: var(--accent);
  font-family: 'Playfair Display', serif;
}
.car-price .per { font-size: .72rem; color: var(--gray-400); }
.btn-reserve {
  padding: 9px 22px;
  background: var(--primary); color: var(--white);
  border-radius: var(--radius-full); font-size: .85rem; font-weight: 600;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-reserve:hover {
  background: var(--accent); color: var(--primary);
}
/* Prevent child elements (emoji, text spans) from capturing clicks
   so e.target is always the .voir-btn button, not a child */
.voir-btn * { pointer-events: none; }
.voir-btn {
  cursor: pointer; border: none;
  -webkit-tap-highlight-color: transparent;
}
.car-unavailable .car-card-img::after {
  content: "Indisponible";
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-weight: 700; font-size: 1.1rem;
}

/* ============================================================
   FILTER BAR
============================================================ */
.filter-bar {
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  padding: 16px 24px; position: sticky; top: var(--nav-height); z-index: 100;
}
.filter-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.filter-chip {
  padding: 7px 18px; border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-200); font-size: .83rem; font-weight: 500;
  color: var(--gray-700); background: var(--white); transition: var(--transition);
}
.filter-chip:hover, .filter-chip.active {
  border-color: var(--accent); color: var(--primary);
  background: rgba(201,168,76,.08);
}
.filter-chip.active { font-weight: 700; }
.filter-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--primary);
  font-size: .68rem; font-weight: 700; margin-left: 6px;
}
.results-count {
  margin-left: auto; font-size: .85rem; color: var(--gray-500);
}

/* ============================================================
   CAR DETAIL PAGE
============================================================ */
.car-detail { padding-top: var(--nav-height); }
.gallery {
  display: grid; grid-template-columns: 1fr 300px; gap: 8px;
  max-height: 520px;
}
.gallery-main {
  border-radius: var(--radius-lg); overflow: hidden; cursor: zoom-in;
}
.gallery-main img { width: 100%; height: 420px; object-fit: cover; display: block; }
.gallery-thumbs {
  display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
}
.gallery-thumb {
  flex: 1; min-height: 0; border-radius: 0; overflow: hidden;
  cursor: pointer; opacity: .75; transition: var(--transition);
}
.gallery-thumb:first-child { border-radius: 0 var(--radius-lg) 0 0; }
.gallery-thumb:last-child  { border-radius: 0 0 var(--radius-lg) 0; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }
/* Horizontal thumbnail row (used in voiture.html) */
.gallery-thumbs-row {
  display: flex; gap: 8px; margin-top: 8px; overflow-x: auto;
}
.gallery-thumb-item {
  flex-shrink: 0; width: 88px; height: 60px; border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; opacity: .65; transition: var(--transition);
  border: 2px solid transparent;
}
.gallery-thumb-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb-item:hover { opacity: 1; }
.gallery-thumb-item.active { opacity: 1; border-color: var(--accent); }
.detail-layout {
  display: grid; grid-template-columns: 1fr 360px; gap: 40px;
  align-items: start; padding: 40px 0;
}
.detail-title { font-size: 2rem; font-weight: 800; margin-bottom: 4px; font-family: var(--font-serif); letter-spacing: -.025em; color: #1A1A1A; }
.detail-subtitle { color: var(--gray-500); font-size: 1rem; margin-bottom: 20px; }
.detail-rating {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.stars { display: flex; gap: 2px; }
.stars svg { width: 18px; height: 18px; fill: var(--accent); color: var(--accent); }
.trip-count { color: var(--gray-500); font-size: .88rem; }
.detail-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0;
}
.detail-spec {
  background: var(--gray-50); border-radius: var(--radius-md); padding: 16px;
  text-align: center; border: 1px solid var(--gray-200);
}
.detail-spec .icon { font-size: 1.5rem; margin-bottom: 6px; }
.detail-spec .val { font-size: .92rem; font-weight: 700; color: var(--gray-900); }
.detail-spec .key { font-size: .72rem; color: var(--gray-500); text-transform: uppercase; }
.features-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin: 24px 0;
}
.feature-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; color: var(--gray-700);
}
.feature-item::before { content: "✓"; color: var(--success); font-weight: 800; }
/* Booking widget */
.booking-widget {
  background: var(--white); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); padding: 28px; position: sticky; top: 90px;
}
.widget-price {
  font-size: 2rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px;
}
.widget-price span { font-size: 1rem; font-weight: 400; color: var(--gray-500); }
.widget-deposit {
  font-size: .82rem; color: var(--gray-500); margin-bottom: 24px;
}
.widget-form { display: flex; flex-direction: column; gap: 14px; }

/* ============================================================
   FORM ELEMENTS
============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: .82rem; font-weight: 600; color: var(--gray-700);
  text-transform: uppercase; letter-spacing: .04em;
}
.form-control {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--gray-200); border-radius: var(--radius-md);
  font-size: .92rem; color: var(--gray-900); background: var(--white);
  transition: var(--transition); outline: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201,168,76,.12); }
.form-control:invalid { border-color: var(--danger); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-hint { font-size: .75rem; color: var(--gray-500); margin-top: 2px; }
.form-error { font-size: .78rem; color: var(--danger); margin-top: 2px; display: none; }
.form-control.error { border-color: var(--danger); }
.form-control.error + .form-error { display: block; }

/* ============================================================
   FILE UPLOAD — Luxury B&W + Gold theme
============================================================ */
.file-upload {
  border: 2px dashed var(--gray-300); border-radius: var(--radius-lg);
  padding: 32px 20px; text-align: center;
  cursor: pointer; transition: var(--transition); background: var(--gray-50);
  position: relative;
  font-family: 'Montserrat', 'Cairo', sans-serif;
}
.file-upload:hover {
  border-color: var(--accent); background: #FFFBF0;
  box-shadow: 0 0 0 4px rgba(201,168,76,.10);
}
.file-upload:hover svg { stroke: var(--accent); }
.file-upload.has-file {
  border-color: #1A1A1A; background: var(--white);
  box-shadow: 0 0 0 4px rgba(26,26,26,.05);
}
.file-upload input { display: none; }
.file-upload-icon { font-size: 2.2rem; margin-bottom: 10px; display: block; }
.file-upload-title {
  font-size: .9rem; font-weight: 700; color: #1A1A1A; margin-bottom: 5px;
  font-family: 'Montserrat', sans-serif; letter-spacing: -.01em;
}
.file-upload-sub {
  font-size: .75rem; color: var(--gray-500);
  font-family: 'Montserrat', sans-serif; letter-spacing: .02em;
}
.file-upload p { font-size: .88rem; color: var(--gray-600); font-family: 'Montserrat', sans-serif; }
.file-upload strong { color: var(--accent); }
.file-preview { margin-top: 12px; display: none; }
.file-preview img { max-height: 180px; object-fit: contain; border-radius: var(--radius-md); margin: 0 auto; }

/* ============================================================
   LICENSE PHOTO PREVIEW — B&W + Gold success state
============================================================ */
.license-preview-wrap {
  display: none; margin-top: 12px;
  border-radius: var(--radius-md); overflow: hidden;
  border: 2px solid #1A1A1A; background: var(--white);
  box-shadow: var(--shadow-sm);
}
.license-preview-wrap img {
  width: 100%; max-height: 170px; object-fit: contain;
  display: block; background: var(--gray-50);
  padding: 8px 0;
}
.license-preview-wrap .lic-preview-label {
  padding: 8px 14px; background: #1A1A1A;
  color: var(--accent);                   /* gold text on black = luxury */
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .07em;
  display: flex; align-items: center; gap: 7px;
  font-family: 'Montserrat', sans-serif;
}

/* Price summary */
.price-summary {
  background: var(--gray-50); border-radius: var(--radius-md);
  padding: 18px; margin-top: 8px; border: 1px solid var(--gray-200);
}
.price-row {
  display: flex; justify-content: space-between;
  font-size: .88rem; color: var(--gray-700); padding: 5px 0;
  border-bottom: 1px solid var(--gray-200);
}
.price-row:last-child { border: none; }
.price-total {
  display: flex; justify-content: space-between;
  font-size: 1.1rem; font-weight: 800; color: var(--gray-900);
  padding-top: 12px; margin-top: 6px; border-top: 2px solid var(--gray-300);
}

/* ============================================================
   ADMIN / TABLE
============================================================ */
.admin-header {
  background: var(--primary); color: var(--white);
  padding: 28px 32px; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.admin-title { font-size: 1.5rem; font-weight: 800; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr));
  gap: 20px; margin-bottom: 32px;
}
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-md);
  display: flex; align-items: flex-start; gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.gold { background: rgba(201,168,76,.15); }
.stat-icon.green { background: rgba(16,185,129,.15); }
.stat-icon.blue  { background: rgba(59,130,246,.15); }
.stat-icon.red   { background: rgba(239,68,68,.15); }
.stat-val { font-size: 1.8rem; font-weight: 800; color: var(--gray-900); line-height: 1; }
.stat-lbl { font-size: .8rem; color: var(--gray-500); margin-top: 4px; }

/* Table */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
table { width: 100%; border-collapse: collapse; background: var(--white); }
thead { background: var(--gray-900); color: var(--white); }
th { padding: 14px 16px; text-align: left; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
td { padding: 14px 16px; font-size: .88rem; border-bottom: 1px solid var(--gray-100); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--gray-50); }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700; letter-spacing: .03em;
}
.badge-success { background: rgba(16,185,129,.12); color: #065F46; }
.badge-warning { background: rgba(245,158,11,.12); color: #92400E; }
.badge-danger  { background: rgba(239,68,68,.12);  color: #991B1B; }
.badge-info    { background: rgba(59,130,246,.12);  color: #1E40AF; }
.badge-gray    { background: var(--gray-100); color: var(--gray-700); }

/* Action buttons in table */
.action-btns { display: flex; gap: 6px; flex-wrap: nowrap; }
.btn-icon {
  width: 34px; height: 34px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem; transition: var(--transition);
  flex-shrink: 0;
}
.btn-icon.view   { background: rgba(59,130,246,.1);  color: var(--info); }
.btn-icon.print  { background: rgba(201,168,76,.1); color: var(--accent-dark); }
.btn-icon.cancel { background: rgba(239,68,68,.1);  color: var(--danger); }
.btn-icon.confirm{ background: rgba(16,185,129,.1); color: var(--success); }
.btn-icon:hover  { filter: brightness(.85); transform: scale(1.05); }

/* ============================================================
   CONTRACT PRINT
============================================================ */
.contract-page {
  max-width: 800px; margin: 0 auto; padding: 40px;
  background: var(--white); font-family: var(--font);
}
.contract-header {
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 3px solid var(--primary); padding-bottom: 20px; margin-bottom: 28px;
}
.contract-logo { display: flex; flex-direction: column; }
.contract-logo .brand { font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.contract-logo .sub   { font-size: .82rem; color: var(--gray-600); }
.contract-ref { text-align: right; }
.contract-ref h2 {
  font-size: 1.2rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.contract-ref .num { font-size: .95rem; color: var(--gray-600); }
.contract-section {
  margin-bottom: 24px; border: 1px solid var(--gray-200);
  border-radius: var(--radius-md); overflow: hidden;
}
.contract-section-title {
  background: var(--gray-900); color: var(--white);
  padding: 10px 18px; font-size: .82rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
}
.contract-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
}
.contract-field {
  padding: 12px 18px; border-bottom: 1px solid var(--gray-100);
}
.contract-field:nth-child(odd) { border-right: 1px solid var(--gray-100); }
.contract-field label { font-size: .72rem; color: var(--gray-500); text-transform: uppercase; display: block; margin-bottom: 2px; }
.contract-field span  { font-size: .92rem; font-weight: 600; }
.license-zone {
  padding: 18px; display: flex; gap: 20px; align-items: flex-start;
}
.license-img { max-width: 280px; border-radius: var(--radius-md); border: 2px solid var(--gray-200); }
.signature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 32px;
}
.sig-box {
  border: 1.5px solid var(--gray-300); border-radius: var(--radius-md);
  padding: 16px; min-height: 100px;
}
.sig-box label { font-size: .75rem; text-transform: uppercase; color: var(--gray-500); display: block; margin-bottom: 8px; }
.contract-conditions {
  font-size: .7rem; color: var(--gray-500); line-height: 1.6;
  border-top: 1px solid var(--gray-200); padding-top: 16px; margin-top: 24px;
}
@media print {
  .no-print { display: none !important; }
  body { background: var(--white); }
  .contract-page { padding: 20px; max-width: 100%; box-shadow: none; }
  .navbar, .footer { display: none; }
}

/* ============================================================
   SERVICES / FEATURES SECTION
============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px; text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-gold);
}
.service-icon {
  width: 64px; height: 64px; margin: 0 auto 18px;
  background: rgba(201,168,76,.1); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.service-title { font-size: 1rem; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; }
.service-desc  { font-size: .85rem; color: var(--gray-500); line-height: 1.6; }

/* ============================================================
   FOOTER
============================================================ */
.footer {
  background: var(--primary); color: rgba(255,255,255,.75);
  padding: 60px 24px 28px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand .logo { font-size: 1.5rem; font-weight: 800; color: var(--accent); margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: .85rem; font-weight: 700; color: var(--white); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.footer-col a { display: block; font-size: .85rem; padding: 4px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--accent); }
.contact-item { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: .85rem; }
.contact-item svg { color: var(--accent); flex-shrink: 0; }
.footer-bottom {
  max-width: 1280px; margin: 0 auto; padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: .78rem; color: rgba(255,255,255,.4);
}

/* ============================================================
   TOAST NOTIFICATIONS
============================================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-end;
}
.toast {
  background: var(--gray-900); color: var(--white);
  padding: 14px 20px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); display: flex; align-items: center; gap: 10px;
  font-size: .88rem; max-width: 340px; animation: slideIn .25s ease;
  border-left: 4px solid var(--accent);
}
.toast.success { border-color: var(--success); }
.toast.error   { border-color: var(--danger); }
.toast.warning { border-color: var(--warning); }
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 24px; opacity: 0; visibility: hidden; transition: var(--transition);
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--white); border-radius: var(--radius-xl);
  width: 100%; max-width: 560px; box-shadow: var(--shadow-xl);
  transform: scale(.95); transition: var(--transition);
  overflow: hidden; max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header {
  padding: 24px 28px 20px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--gray-200);
}
.modal-title { font-size: 1.15rem; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px; border-radius: var(--radius-md);
  background: var(--gray-100); display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gray-600); cursor: pointer; transition: var(--transition);
}
.modal-close:hover { background: var(--danger); color: var(--white); }
.modal-body { padding: 28px; }
.modal-footer { padding: 20px 28px; border-top: 1px solid var(--gray-200); display: flex; gap: 12px; justify-content: flex-end; }

/* ============================================================
   LOADING / EMPTY STATE
============================================================ */
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--gray-200); border-top-color: var(--accent);
  animation: spin .8s linear infinite; margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 24px; color: var(--gray-500); }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 16px; opacity: .5; }
.empty-state h3 { font-size: 1.1rem; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.empty-state p  { font-size: .88rem; }

/* ============================================================
   PAGE HERO (internal pages)
============================================================ */
.page-hero {
  background: var(--primary); padding: calc(var(--nav-height) + 40px) 24px 60px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.6rem, 4vw, 2.6rem); font-weight: 800; color: var(--white); margin-bottom: 10px; }
.page-hero p  { color: rgba(255,255,255,.65); font-size: 1rem; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; color: rgba(255,255,255,.5); margin-bottom: 14px;
  justify-content: center;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { opacity: .5; }

/* ============================================================
   SOCIAL ICON BUTTONS
============================================================ */
.social-icons { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.social-btn {
  width: 38px; height: 38px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: var(--white);
  transition: .25s ease; text-decoration: none; flex-shrink: 0;
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn.wb:hover  { background: #25D366; }
.social-btn.fb:hover  { background: #1877F2; }
.social-btn.tt:hover  { background: #000; }
/* Footer inline social links with icon */
.footer-col a.social-link {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0; font-size: .85rem;
}
.footer-col a.social-link svg { flex-shrink: 0; }

/* ============================================================
   WHATSAPP FLOAT BUTTON
============================================================ */
.wa-float {
  position: fixed; bottom: 28px; left: 28px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  transition: var(--transition); font-size: 1.5rem;
  animation: pulse 3s ease infinite;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,.8); }
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-thumbs { flex-direction: row; max-height: 80px; overflow-x: auto; overflow-y: hidden; }
  .gallery-thumb { min-width: 80px; }
  .gallery-main img { height: 380px; }
  .gallery-main, .gallery-thumb:first-child, .gallery-thumb:last-child { border-radius: var(--radius-lg); }
  .detail-layout { grid-template-columns: 1fr; }
  .booking-widget { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-height: 62px; }
  .nav-links, .nav-links .btn-nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero h1  { font-size: 1.9rem; }
  .search-bar { flex-direction: column; align-items: stretch; padding: 12px; }
  .search-divider { display: none; }
  .search-field { min-width: unset; }
  .btn-search { width: 100%; justify-content: center; padding: 14px; }
  .cars-grid { grid-template-columns: 1fr; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .detail-specs { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .contract-fields { grid-template-columns: 1fr; }
  .contract-header { flex-direction: column; gap: 16px; }
  .signature-row { grid-template-columns: 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .section { padding: 52px 16px; }
  .cars-grid { gap: 16px; }
  .hero-cta { flex-direction: column; }
  .btn-lg { padding: 14px 24px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   LANGUAGE SWITCHER
============================================================ */
.lang-switcher {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.08); border-radius: var(--radius-full);
  padding: 3px 4px;
}
.lang-btn {
  padding: 5px 11px; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 700; color: rgba(255,255,255,.55);
  transition: var(--transition); cursor: pointer; border: none; background: none;
  letter-spacing: .04em;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--accent); color: var(--primary); }

/* ============================================================
   RTL ARABIC SUPPORT
============================================================ */
[dir="rtl"] .nav-inner      { flex-direction: row-reverse; }
[dir="rtl"] .nav-links      { flex-direction: row-reverse; }
[dir="rtl"] .hero-content   { direction: rtl; }
[dir="rtl"] .search-bar     { direction: rtl; }
[dir="rtl"] .footer-grid    { direction: rtl; }
[dir="rtl"] .car-card-body  { direction: rtl; text-align: right; }
[dir="rtl"] .car-specs      { flex-direction: row-reverse; }
[dir="rtl"] .car-card-footer{ flex-direction: row-reverse; }
[dir="rtl"] .detail-specs   { direction: rtl; }
[dir="rtl"] .features-grid  { direction: rtl; }
[dir="rtl"] .filter-inner   { direction: rtl; }
[dir="rtl"] .price-row      { flex-direction: row-reverse; }
[dir="rtl"] .price-total    { flex-direction: row-reverse; }
[dir="rtl"] .form-group     { direction: rtl; text-align: right; }
[dir="rtl"] .stat-card      { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .contact-item   { flex-direction: row-reverse; }
[dir="rtl"] .service-card   { direction: rtl; }
[dir="rtl"] .breadcrumb     { flex-direction: row-reverse; }
[dir="rtl"] .sidebar-nav    { direction: rtl; }
[dir="rtl"] .nav-item       { flex-direction: row-reverse; }
[dir="rtl"] .action-btns    { flex-direction: row-reverse; }

/* ---- Additional RTL fixes ---- */

/* Step indicator (reservation form) — reverse the numbered steps */
[dir="rtl"] .step-indicator  { flex-direction: row-reverse; }
[dir="rtl"] .step            { flex-direction: row-reverse; }

/* Car preview row in reservation */
[dir="rtl"] #carPreview      { flex-direction: row-reverse; }

/* License upload grid — columns stay but text aligns right */
[dir="rtl"] .license-photos-grid { direction: rtl; }

/* Review cards */
[dir="rtl"] .review-card     { direction: rtl; text-align: right; }
[dir="rtl"] .review-quote    { right: auto; left: 20px; }

/* Mobile menu */
[dir="rtl"] .mobile-menu     { direction: rtl; text-align: right; }
[dir="rtl"] .mobile-menu a   { text-align: right; }

/* Hero stats row */
[dir="rtl"] .hero-stats      { flex-direction: row-reverse; }

/* How-it-works steps */
[dir="rtl"] .hero-stat       { direction: rtl; }

/* Booking widget summary rows */
[dir="rtl"] .price-summary   { direction: rtl; }

/* Form card body */
[dir="rtl"] .form-card-body  { direction: rtl; }
[dir="rtl"] .form-row        { direction: rtl; }

/* Section header — keep centered, just fix direction for labels */
[dir="rtl"] .section-header  { direction: rtl; }

/* Page hero */
[dir="rtl"] .page-hero       { direction: rtl; }
[dir="rtl"] .page-hero h1,
[dir="rtl"] .page-hero p     { text-align: center; }

/* Offer ribbon flips (already handled, keep it) */

/* Car card meta row */
[dir="rtl"] .car-meta        { flex-direction: row-reverse; }

/* Car category badge in grid */
[dir="rtl"] .car-badge       { left: auto; right: 12px; }
/* ============================================================
   ARABIC MODE — font overrides & letter-spacing reset
   Amiri (luxury Arabic serif) replaces Playfair Display
   Cairo (clean Arabic sans) replaces Montserrat
============================================================ */
body.rtl {
  font-family: var(--font-ar);
}

/* H1 / H2: Amiri gives the same elegant, luxury feel as Playfair Display */
body.rtl h1,
body.rtl h2,
body.rtl .section-title {
  font-family: var(--font-serif-ar);
  letter-spacing: 0;   /* Arabic script must NEVER have letter-spacing */
}

/* H3–H6 and all labels: Cairo */
body.rtl h3,
body.rtl h4,
body.rtl h5,
body.rtl h6 {
  font-family: var(--font-ar);
  letter-spacing: 0;
}

/* Reset letter-spacing globally in Arabic mode */
body.rtl * { letter-spacing: 0 !important; }

/* Car names stay Latin (proper nouns) — keep Playfair */
body.rtl .car-name { font-family: var(--font-serif); }

/* Navbar & buttons keep their shape but use Cairo */
body.rtl .nav-item,
body.rtl .btn,
body.rtl .filter-chip,
body.rtl .section-sub,
body.rtl .section-label,
body.rtl .form-label,
body.rtl .form-control { font-family: var(--font-ar); }

/* ============================================================
   SPECIAL OFFERS SECTION
============================================================ */
.offers-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 24px;
}
.offer-card {
  position: relative; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: var(--white); padding: 32px 28px;
  box-shadow: var(--shadow-xl); transition: var(--transition);
  border: 1px solid rgba(201,168,76,.2);
}
.offer-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,.3); }
.offer-ribbon {
  position: absolute; top: 20px; right: -8px;
  background: var(--accent); color: var(--primary);
  padding: 4px 18px 4px 14px; font-size: .8rem; font-weight: 800;
  clip-path: polygon(0 0, 100% 0, 92% 50%, 100% 100%, 0 100%);
}
[dir="rtl"] .offer-ribbon { right: auto; left: -8px; clip-path: polygon(8% 0, 100% 0, 100% 100%, 8% 100%, 0 50%); }
.offer-discount {
  font-size: 3rem; font-weight: 900; color: var(--accent); line-height: 1;
  margin-bottom: 8px;
}
.offer-title { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.offer-desc  { font-size: .88rem; color: rgba(255,255,255,.7); margin-bottom: 16px; line-height: 1.6; }
.offer-valid { font-size: .75rem; color: rgba(255,255,255,.5); margin-bottom: 20px; }
.offer-cars  { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.offer-car-tag {
  background: rgba(255,255,255,.1); padding: 3px 10px;
  border-radius: var(--radius-full); font-size: .72rem; color: rgba(255,255,255,.8);
}
.offer-stars { display: flex; gap: 6px; margin-bottom: 16px; }
.offer-star  { color: var(--accent); font-size: 1.2rem; }
.offer-price { font-size: .95rem; color: rgba(255,255,255,.9); margin-bottom: 6px; }
.offer-price strong { color: var(--accent); font-size: 1.1rem; }

/* ============================================================
   VIDEO SECTION
============================================================ */
.video-container {
  position: relative; width: 100%; border-radius: var(--radius-xl);
  overflow: hidden; background: var(--primary); box-shadow: var(--shadow-xl);
}
.video-container iframe,
.video-container video {
  width: 100%; aspect-ratio: 16/9; display: block; border: none;
}
.video-placeholder {
  width: 100%; aspect-ratio: 16/9; display: flex; align-items: center;
  justify-content: center; flex-direction: column; gap: 12px;
  background: linear-gradient(135deg,#1a1a2e,#0d0d0d);
  color: rgba(255,255,255,.4); font-size: .9rem;
}
.video-placeholder .play-icon { font-size: 3rem; color: var(--accent); opacity: .5; }

/* Car video in detail page */
.car-video-section { margin: 28px 0; }
.car-video-section h3 { font-size:1rem; font-weight:700; margin-bottom:14px; display:flex; align-items:center; gap:8px; }

/* ============================================================
   REVIEWS — Dynamic (from localStorage)
============================================================ */
.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 2px solid var(--accent);
  border-radius: var(--radius-xl); padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition); position: relative;
}
.review-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); border-color: var(--accent); }
.review-stars { display: flex; gap: 2px; margin-bottom: 12px; }
.review-star  { color: var(--accent); font-size: 1rem; }
.review-text  { font-size: .9rem; color: var(--gray-600); margin-bottom: 16px; font-style: italic; line-height: 1.7; }
.review-author { font-weight: 700; font-size: .88rem; color: var(--gray-900); }
.review-loc   { font-size: .78rem; color: var(--gray-500); }
.review-date  { font-size: .72rem; color: var(--gray-400); margin-top: 4px; }
.review-quote { position: absolute; top: 16px; right: 20px; font-size: 3rem; color: var(--gray-200); font-family: Georgia; line-height: 1; }
[dir="rtl"] .review-quote { right: auto; left: 20px; }

/* ============================================================
   ADMIN — New tabs styles
============================================================ */
.car-admin-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 18px;
}
.car-admin-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: var(--transition);
}
.car-admin-card:hover { box-shadow: var(--shadow-md); }
.car-admin-card img { width:100%; height:130px; object-fit:cover; }
.car-admin-body { padding: 14px 16px; }
.car-admin-body .car-admin-name { font-weight:700; font-size:.92rem; margin-bottom:4px; }
.car-admin-body .car-admin-price { color:var(--accent); font-weight:700; font-size:.85rem; }
.car-admin-actions { display:flex; gap:8px; padding:10px 14px; border-top:1px solid var(--gray-100); flex-wrap:wrap; }

/* Add Car Modal form */
.modal-lg { max-width: 780px !important; }
.img-preview-grid { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.img-preview-item {
  position:relative; width:90px; height:64px; border-radius:var(--radius-md);
  overflow:hidden; border:2px solid var(--gray-200);
}
.img-preview-item img { width:100%; height:100%; object-fit:cover; }
.img-preview-item .del-img {
  position:absolute; top:2px; right:2px; width:18px; height:18px;
  background:var(--danger); color:white; border-radius:50%; font-size:.65rem;
  display:flex; align-items:center; justify-content:center; cursor:pointer;
}

/* Offer admin cards */
.offer-admin-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 20px; box-shadow: var(--shadow-sm); border-left: 4px solid var(--accent);
  display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap;
}
.offer-admin-info { flex: 1; }
.offer-admin-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }

/* Settings section */
.settings-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(340px,1fr)); gap:20px; }
.settings-card { background:var(--white); border-radius:var(--radius-xl); padding:28px; box-shadow:var(--shadow-md); }
.settings-card h3 { font-size:.95rem; font-weight:700; margin-bottom:16px; display:flex; align-items:center; gap:8px; }

/* Contract upload preview */
.contract-upload-zone {
  border:2px dashed var(--gray-300); border-radius:var(--radius-lg);
  padding:32px; text-align:center; cursor:pointer; transition:var(--transition);
}
.contract-upload-zone:hover { border-color:var(--accent); background:rgba(201,168,76,.03); }
.contract-upload-zone.has-file { border-color:var(--success); background:rgba(16,185,129,.04); }

@media(max-width:768px) {
  .offers-grid { grid-template-columns: 1fr; }
  .car-admin-grid { grid-template-columns: 1fr 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  [dir="rtl"] .nav-inner { gap: 12px; }
}

/* ============================================================
   MOBILE OPTIMIZATION — Phone-first improvements
============================================================ */

/* ---- Général ---- */
@media (max-width: 768px) {
  /* Sections */
  .section { padding: 48px 16px; }
  .section-header { margin-bottom: 32px; }
  .section-title { font-size: 1.5rem; }
  .section-sub { font-size: .88rem; }

  /* Hero */
  .hero { padding: calc(var(--nav-height) + 24px) 16px 60px; min-height: auto; }
  .hero h1 { font-size: 1.85rem; line-height: 1.2; margin-bottom: 14px; }
  .hero p { font-size: .92rem; margin-bottom: 24px; }
  .hero-badge { font-size: .72rem; padding: 5px 14px; margin-bottom: 16px; }
  .hero-stats { gap: 20px; margin-top: 36px; }
  .hero-stat .num { font-size: 1.6rem; }
  .hero-stat .lbl { font-size: .72rem; }

  /* Search bar on mobile */
  .search-bar { padding: 10px; gap: 6px; border-radius: var(--radius-lg); }
  .search-field { padding: 8px 10px; }
  .search-field label { font-size: .65rem; }
  .search-field input, .search-field select { font-size: .88rem; }
  .btn-search { padding: 13px; font-size: .92rem; border-radius: var(--radius-md); }

  /* Car cards — 1 column with bigger images */
  .cars-grid { grid-template-columns: 1fr; gap: 16px; }
  .car-card-img { aspect-ratio: 16/8; }
  .car-card-body { padding: 14px 16px; }
  .car-card-footer { padding: 12px 16px; }
  .car-name { font-size: 1rem; }
  .btn-reserve { padding: 9px 18px; font-size: .82rem; }

  /* Contact grid — stack vertically */
  .contact-grid { grid-template-columns: 1fr !important; gap: 24px !important; }

  /* Services grid */
  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .service-card { padding: 20px 16px; }
  .service-icon { font-size: 2rem; }
  .service-title { font-size: .9rem; }

  /* Form controls — bigger for touch */
  .form-control { padding: 13px 14px; font-size: .95rem; }
  .form-label { font-size: .76rem; }

  /* Step indicator — compact */
  .step-label { font-size: .68rem; }
  .step-num { width: 28px; height: 28px; font-size: .75rem; }
  .step-line { margin: 0 4px; }

  /* Reservation sidebar — full width */
  .booking-widget { padding: 20px 16px; }

  /* Recap grid in step 3 */
  .recap-grid { grid-template-columns: 1fr !important; gap: 10px !important; }

  /* License photos — bigger on mobile */
  .file-upload { padding: 20px 14px; }

  /* Offer modal on mobile */
  #offerDetailOverlay { padding: 12px 8px; }
  #offerDetailBox { border-radius: var(--radius-lg); }
  #odMainImg { max-height: 220px; }
  #odCars > div { gap: 8px !important; padding: 9px 10px !important; }
  #odCars img { width: 70px !important; height: 50px !important; }

  /* Footer */
  .footer-grid { gap: 24px; }

  /* Page hero */
  .page-hero { padding: calc(var(--nav-height) + 20px) 16px 28px; }
  .page-hero h1 { font-size: 1.6rem; }
}

  /* Toast — bottom center on mobile */
  .toast-container { right: 12px; left: 12px; bottom: 16px; align-items: stretch; }
  .toast { max-width: 100%; font-size: .85rem; padding: 12px 16px; }

  /* Modal — full screen on mobile */
  .modal-overlay { padding: 0; align-items: flex-end; }
  .modal { max-width: 100%; border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92vh; }
  .modal-header { padding: 18px 20px 14px; }
  .modal-body { padding: 18px 20px; }
  .modal-footer { padding: 14px 20px; flex-direction: column-reverse; }
  .modal-footer .btn { width: 100%; justify-content: center; }

  /* Footer mobile */
  .footer { padding: 40px 16px 20px; }
  .footer-grid { gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }

  /* WA float button — adjust for mobile */
  .wa-float { width: 52px; height: 52px; bottom: 16px; left: 14px; }
}

/* ---- Small phones (< 480px) ---- */
@media (max-width: 480px) {
  /* Hero */
  .hero h1 { font-size: 1.5rem; }
  .hero-stats { gap: 12px; }
  .hero-stat .num { font-size: 1.4rem; }
  .hero-stat .lbl { font-size: .65rem; }

  /* Services — 1 column on very small screens */
  .services-grid { grid-template-columns: 1fr; }

  /* Car cards footer — stack price + button */
  .car-card-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
  .btn-reserve { width: 100%; justify-content: center; text-align: center; }

  /* Offer buttons — full width big tap target */
  .offer-card button.voir-btn { padding: 12px 16px !important; font-size: .9rem !important; }

  /* Form row — always single column */
  .form-row, .form-row-3 { grid-template-columns: 1fr !important; }

  /* Step indicator text — hide on very small */
  .step-label { display: none; }
  .step-num { width: 30px; height: 30px; }

  /* License photos side by side still ok on 375px+ */
  /* but collapse on tiny screens */
  .license-photos-grid { grid-template-columns: 1fr !important; }

  /* Reservation form padding */
  .form-card-body { padding: 18px 14px; }

  /* Summary widget */
  #summaryWidget { padding: 16px 14px; }

  /* Buttons full width on mobile */
  .btn-lg { padding: 13px 20px; font-size: .95rem; }

  /* Contract page */
  .contract-page { padding: 20px 14px; }
  .contract-fields { grid-template-columns: 1fr !important; }

  /* Admin grid */
  .car-admin-grid { grid-template-columns: 1fr; }

  /* Offer admin card */
  .offer-admin-card { flex-direction: column; }
  .offer-admin-actions { width: 100%; justify-content: flex-end; }

  /* Stats grid */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { padding: 16px; }
  .stat-val { font-size: 1.4rem; }

  /* Clients grid */
  .clients-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DARK SECTION — Force white text for bg-dark
============================================================ */
.bg-dark .section-title,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark .section-sub { color: rgba(255,255,255,.55); }
.bg-dark .section-label { color: var(--accent); }

/* ============================================================
   GLOBAL NAV — always dark regardless of page bg
============================================================ */
.navbar { color: var(--white); }
.nav-links a { color: rgba(255,255,255,.8); }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ============================================================
   MOBILE MENU — always dark
============================================================ */
.mobile-menu a { color: rgba(255,255,255,.85); }
.mobile-menu a:hover { background: rgba(201,168,76,.12); color: var(--accent); }

/* ============================================================
   CONTACT SECTION — always bg-gray (light), text dark
============================================================ */
#contact .section-title { color: var(--gray-900); }
#contact .section-sub { color: var(--gray-500); }

/* ============================================================
   HERO — always stays dark (image + overlay)
============================================================ */
.hero .section-title,
.hero h1 { color: var(--white); }
.hero p { color: rgba(255,255,255,.75); }

/* ============================================================
   PAGE HERO (inner pages)
============================================================ */
.page-hero { background: var(--primary); }
.page-hero h1 { color: var(--white); }
.page-hero p  { color: rgba(255,255,255,.65); }
.breadcrumb { color: rgba(255,255,255,.5); }

/* ============================================================
   FILTER BAR — stays light
============================================================ */
.filter-bar { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.filter-chip { background: var(--white); color: var(--gray-700); border-color: var(--gray-200); }
.filter-chip:hover, .filter-chip.active { border-color: var(--accent); color: var(--primary); }
.results-count { color: var(--gray-500); }

/* ============================================================
   CAR DETAIL PAGE — light
============================================================ */
.detail-title { color: var(--gray-900); }
.detail-subtitle { color: var(--gray-500); }
.trip-count { color: var(--gray-500); }
.feature-item { color: var(--gray-700); }
.detail-spec .val { color: var(--gray-900); }
.detail-spec .key { color: var(--gray-500); }

/* ============================================================
   RESPONSIVE — Supplemental mobile fixes
============================================================ */
@media (max-width: 600px) {
  /* Clients grid in admin */
  .client-lic-grid { grid-template-columns: 1fr 1fr; }
  .client-footer { flex-wrap: wrap; gap: 8px; }

  /* Reservation form */
  .license-photos-grid { grid-template-columns: 1fr !important; }

  /* Stats grid 2-col even on small phones */
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 400px) {
  .stats-grid { grid-template-columns: 1fr !important; }
}

