/* ==========================================================================
   LAGHRAD CAR - Luxury Moroccan Desert Car Rental Stylesheet (Bilingual AR/FR)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Cinzel:wght@700&display=swap');

:root {
  --primary-gold: #c58a2d;
  --gold-light: #e6b75c;
  --gold-bright: #f5cf7b;
  --gold-dark: #9e6b1d;
  --gold-gradient: linear-gradient(135deg, #c58a2d 0%, #f1c768 50%, #b87b28 100%);
  --gold-gradient-hover: linear-gradient(135deg, #d89935 0%, #fad478 50%, #c98a30 100%);
  --bg-deep: #070a12;
  --bg-card: #0e1526;
  --bg-card-hover: #131c33;
  --bg-surface: #152038;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-gold: #e2af4f;
  --border-gold: rgba(197, 138, 45, 0.25);
  --border-gold-hover: rgba(229, 172, 75, 0.55);
  --shadow-gold: 0 10px 30px -10px rgba(197, 138, 45, 0.35);
  --shadow-card: 0 15px 35px -5px rgba(0, 0, 0, 0.5), 0 0 20px -5px rgba(197, 138, 45, 0.1);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  color: var(--text-main);
  background-color: var(--bg-deep);
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-deep);
  background-image: 
    radial-gradient(circle at 85% 10%, rgba(197, 138, 45, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 15% 60%, rgba(197, 138, 45, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(20, 35, 65, 0.3) 0%, transparent 60%);
  background-attachment: fixed;
  transition: font-family 0.2s ease;
}

/* Arabic Mode (Default) */
html[lang="ar"] body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  direction: rtl;
}

html[lang="ar"] .font-heading {
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

html[lang="ar"] .custom-input {
  text-align: right;
  font-family: 'Cairo', sans-serif;
}

html[lang="ar"] .whatsapp-float {
  left: 28px;
  right: auto;
}

/* French Mode */
html[lang="fr"] body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  direction: ltr;
}

html[lang="fr"] .font-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

html[lang="fr"] .custom-input {
  text-align: left;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

html[lang="fr"] .whatsapp-float {
  right: 28px;
  left: auto;
}

.font-brand {
  font-family: 'Outfit', sans-serif;
}

/* Language Switcher Button Styling */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(14, 21, 38, 0.9);
  border: 1px solid rgba(197, 138, 45, 0.35);
  border-radius: 9999px;
  padding: 3px;
  gap: 3px;
}

.lang-btn {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  background: transparent;
  line-height: 1.2;
}

.lang-btn:hover {
  color: #ffffff;
}

.lang-btn.active {
  background: var(--gold-gradient);
  color: #0b0f19;
  box-shadow: 0 2px 8px rgba(197, 138, 45, 0.35);
}

/* Moroccan Geometric Pattern Accents */
.moroccan-pattern {
  background-color: transparent;
  background-image: radial-gradient(rgba(197, 138, 45, 0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}

.moroccan-pattern-dense {
  background-image: radial-gradient(rgba(212, 155, 56, 0.18) 1.5px, transparent 1.5px);
  background-size: 16px 16px;
}

/* Custom Gold Gradients & Text */
.text-gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gold-gradient {
  background: var(--gold-gradient);
}

.bg-gold-gradient-hover:hover {
  background: var(--gold-gradient-hover);
}

.gold-glow {
  box-shadow: 0 0 25px rgba(197, 138, 45, 0.3);
}

.gold-border-glow {
  border-color: var(--primary-gold);
  box-shadow: 0 0 20px rgba(197, 138, 45, 0.35);
}

/* Glassmorphism */
.glass-nav {
  background: rgba(7, 10, 18, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(197, 138, 45, 0.18);
}

.glass-card {
  background: linear-gradient(145deg, rgba(17, 26, 46, 0.85) 0%, rgba(11, 17, 31, 0.95) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: 1.25rem;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: var(--border-gold-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card);
}

/* Car Card Image Container */
.car-image-container {
  position: relative;
  overflow: hidden;
  height: 250px;
  border-radius: 1rem 1rem 0 0;
  background-color: #0b101d;
}

.car-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.glass-card:hover .car-image-container img {
  transform: scale(1.06);
}

/* Custom Form Styles */
.custom-input {
  background-color: rgba(10, 16, 30, 0.9);
  border: 1px solid rgba(197, 138, 45, 0.3);
  color: #f8fafc;
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  transition: all 0.25s ease;
  width: 100%;
  font-size: 0.95rem;
  font-family: 'Cairo', sans-serif;
  text-align: right;
}

.custom-input:focus {
  outline: none;
  border-color: var(--gold-light);
  box-shadow: 0 0 0 3px rgba(197, 138, 45, 0.2);
  background-color: rgba(14, 22, 40, 0.98);
}

.custom-input option {
  background-color: #0b1122;
  color: #f8fafc;
  padding: 10px;
  font-family: 'Cairo', sans-serif;
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  padding: 0.85rem 1.4rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: all 0.3s ease;
  text-decoration: none;
  font-family: 'Cairo', sans-serif;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #ffffff;
}

.whatsapp-pulse {
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
}

::-webkit-scrollbar-track {
  background: #070a12;
}

::-webkit-scrollbar-thumb {
  background: #25334d;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* Filter buttons */
.filter-btn {
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid rgba(197, 138, 45, 0.25);
  background: rgba(14, 21, 38, 0.7);
  color: #cbd5e1;
  transition: all 0.25s ease;
  cursor: pointer;
  white-space: nowrap;
  font-family: 'Cairo', sans-serif;
}

.filter-btn:hover {
  border-color: var(--gold-light);
  color: #ffffff;
  background: rgba(22, 33, 58, 0.9);
}

.filter-btn.active {
  background: var(--gold-gradient);
  border-color: var(--gold-light);
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(197, 138, 45, 0.35);
}

/* Badge tags */
.badge-gold {
  background: rgba(197, 138, 45, 0.15);
  border: 1px solid rgba(197, 138, 45, 0.4);
  color: #f5cf7b;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-ww {
  background: linear-gradient(135deg, #c58a2d 0%, #dfa23a 100%);
  color: #0b0f19;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* Modal lightbox */
.lightbox-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(4, 7, 15, 0.93);
  backdrop-filter: blur(10px);
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 850px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  border: 1px solid var(--border-gold);
  border-radius: 1rem;
  overflow: hidden;
  background: #0d1424;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(197, 138, 45, 0.25);
}

.lightbox-img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background-color: #070b14;
}

/* Hero Dunes Ambient Overlay */
.hero-dunes {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg-deep) 0%, transparent 100%);
  pointer-events: none;
}

/* ==========================================================================
   Compact License Plate Pill Badge (Discreet, 100% Clear Vehicle Photos)
   ========================================================================== */
.plate-censor {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 28px;
  padding: 2px 14px;
  width: auto;
  background: rgba(10, 15, 29, 0.9);
  border: 1px solid #d4af37;
  border-radius: 9999px;
  color: #f5cf7b;
  font-family: 'Outfit', 'Tajawal', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  direction: ltr; /* Keeps brand name, lock icon & WW aligned */
  transition: all 0.25s ease;
}

.glass-card:hover .plate-censor {
  border-color: #f1c768;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8), 0 0 10px rgba(212, 175, 55, 0.35);
  transform: translateX(-50%) scale(1.03);
}


