/* ===================================================
   DriveEase - Car Rental Website
   Premium Dark Theme with Glassmorphism
   =================================================== */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1a1a2e;
  --secondary: #0ed2f7;
  --accent: #0f3460;
  --gold: #f5a623;
  --bg-start: #16213e;
  --bg-end: #0f3460;
  --text-light: #ffffff;
  --text-muted: #a0aec0;
  --card-bg: rgba(255, 255, 255, 0.05);
  --card-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Outfit', sans-serif;
  --font-arabic: 'Cairo', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-primary);
  background: linear-gradient(135deg, var(--bg-start) 0%, var(--primary) 50%, var(--bg-end) 100%);
  color: var(--text-light);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
}

/* ---------- Animated Background ---------- */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-animation .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: floatOrb 20s infinite ease-in-out;
}

.bg-animation .orb:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.bg-animation .orb:nth-child(2) {
  width: 300px;
  height: 300px;
  background: var(--gold);
  bottom: -50px;
  left: -50px;
  animation-delay: -7s;
}

.bg-animation .orb:nth-child(3) {
  width: 250px;
  height: 250px;
  background: #6c63ff;
  top: 50%;
  left: 50%;
  animation-delay: -14s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(50px, -80px) scale(1.1); }
  50% { transform: translate(-30px, 60px) scale(0.9); }
  75% { transform: translate(70px, 40px) scale(1.05); }
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(26, 26, 46, 0.9);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 2px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-light);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.92);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.4s;
}

.navbar.show-nav-logo .nav-logo {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-logo:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.08);
}

.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}

.nav-logo span.highlight {
  color: var(--secondary);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-light);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  color: var(--text-light);
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  min-width: 140px;
  z-index: 100;
}

body[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown button {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: var(--transition);
  font-family: inherit;
}

body[dir="rtl"] .lang-dropdown button {
  text-align: right;
}

.lang-dropdown button:hover,
.lang-dropdown button.active {
  background: rgba(14, 210, 247, 0.2);
  color: var(--text-light);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 2px;
  background: var(--text-light);
  transition: var(--transition);
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section (Photorealistic Dark Studio) ---------- */
.hero {
  direction: ltr;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
  padding: 135px 5vw 48px;
  overflow: hidden;
  background: #08111f;
}

.hero-studio-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero-luxury-car.jpg') center center / cover no-repeat;
  z-index: -3;
  will-change: transform;
  animation: heroCarEntrance 1.5s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             heroStudioBreathe 10s ease-in-out 1.5s infinite alternate;
}

.hero-headlight-glow {
  position: absolute;
  top: 52%;
  left: 53%;
  width: 220px;
  height: 95px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(14, 210, 247, 0.34) 0%, rgba(14, 210, 247, 0.08) 45%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
  z-index: -2;
  animation: headlightPulse 3.6s ease-in-out infinite alternate;
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 17, 31, 0.35) 0%, transparent 25%, transparent 78%, var(--bg-start) 100%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  max-width: 620px;
  width: 100%;
  min-height: calc(100vh - 183px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  position: relative;
  z-index: 2;
  margin-top: 0;
}

.hero-brand-lockup {
  margin-top: 2vh;
  margin-bottom: 24px;
  animation: heroLogoSlideIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
  transition: opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-brand-lockup.hero-logo-scrolled-out {
  opacity: 0 !important;
  transform: translateY(-18px) scale(0.9) !important;
  pointer-events: none;
}

.hero-brand-logo {
  width: clamp(190px, 24vw, 310px);
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 24px rgba(14, 210, 247, 0.12));
  animation: logoSubtleShimmer 5s ease-in-out 1.4s infinite alternate;
}

.hero .hero-buttons {
  margin-top: auto;
  justify-content: flex-start;
  gap: 16px;
  animation: fadeInUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@keyframes heroCarEntrance {
  0% {
    opacity: 0;
    transform: scale(1.06) translateX(28px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateX(0);
  }
}

@keyframes heroStudioBreathe {
  0%   { transform: scale(1) translateX(0); }
  100% { transform: scale(1.028) translateX(-10px); }
}

@keyframes heroLogoSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-32px) scale(0.96);
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

@keyframes logoSubtleShimmer {
  0%   { filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 18px rgba(14, 210, 247, 0.08)); }
  100% { filter: drop-shadow(0 12px 34px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 28px rgba(201, 166, 107, 0.22)); }
}

@keyframes headlightPulse {
  0%   { opacity: 0.45; transform: translate(-50%, -50%) scale(0.92); }
  100% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.12); }
}

@media (max-width: 768px) {
  .hero {
    min-height: 88svh;
    padding: 84px 1.25rem 36px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background: #08111f;
  }
  .hero-studio-bg {
    background-size: 100% auto;
    background-position: center 54%;
  }
  .hero-headlight-glow {
    top: 54%;
    left: 52%;
    width: 150px;
    height: 65px;
  }
  .hero-vignette {
    background: linear-gradient(
      180deg,
      #08111f 0%,
      rgba(8, 17, 31, 0.78) 22%,
      transparent 34%,
      transparent 70%,
      rgba(8, 17, 31, 0.85) 82%,
      var(--bg-start) 100%
    );
  }
  .hero-content {
    max-width: 100%;
    height: 100%;
    min-height: calc(88svh - 120px);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    text-align: center;
  }
  .hero-brand-lockup {
    margin: 4px auto 0;
  }
  .hero-brand-logo {
    width: clamp(150px, 44vw, 220px);
    margin: 0 auto;
  }
  .hero .hero-buttons {
    margin-top: auto;
    width: 100%;
    justify-content: center;
    gap: 12px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 210, 247, 0.15);
  border: 1px solid rgba(14, 210, 247, 0.3);
  color: var(--secondary);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--secondary), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.3s both;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--secondary), #0ab4c7);
  color: white;
  box-shadow: 0 4px 20px rgba(14, 210, 247, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14, 210, 247, 0.5);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-light);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
  transform: translateY(-3px);
}

/* ---------- Section Styles ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-header .line {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary), var(--gold));
  border-radius: 2px;
  margin: 16px auto 0;
}

/* ---------- Fleet Section ---------- */
.fleet-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  box-shadow: 0 4px 15px rgba(14, 210, 247, 0.3);
}

.fleet-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  max-width: 1300px;
  margin: 0 auto;
}

/* Car Card */
.car-card {
  flex: 1 1 280px;
  max-width: 460px;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  opacity: 1;
  transform: translateY(0);
}

.car-card.hidden {
  display: none;
}

.car-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 210, 247, 0.4);
  box-shadow: var(--shadow);
}

.car-card-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.car-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.car-card:hover .car-card-image img {
  transform: scale(1.05);
}

.car-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

body[dir="rtl"] .car-category-badge {
  left: auto;
  right: 14px;
}

.car-category-badge.economy { background: rgba(46, 213, 115, 0.2); color: #2ed573; }
.car-category-badge.sedan { background: rgba(69, 170, 242, 0.2); color: #45aaf2; }
.car-category-badge.suv { background: rgba(253, 150, 68, 0.2); color: #fd9644; }
.car-category-badge.family { background: rgba(165, 94, 234, 0.2); color: #a55eea; }

.or-similar {
  position: absolute;
  bottom: 10px;
  right: 14px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  background: rgba(0,0,0,0.5);
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(5px);
}

body[dir="rtl"] .or-similar {
  right: auto;
  left: 14px;
}

.car-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.car-card-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.car-features {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 8px;
  margin-bottom: 20px;
  flex: 1;
}

.car-features span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.car-features span i {
  color: var(--gold);
  font-size: 0.7rem;
}

.car-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
}

.car-price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
}

.car-price small {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.btn-book {
  padding: 10px 22px;
  font-size: 0.85rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--secondary), #0ab4c7);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
}

.btn-book:hover {
  box-shadow: 0 4px 15px rgba(14, 210, 247, 0.4);
  transform: scale(1.05);
}

/* ---------- Booking Section ---------- */
.booking-section {
  max-width: 800px;
  margin: 0 auto;
}

.booking-form {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 40px;
}

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

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-light);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(14, 210, 247, 0.15);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group select option {
  background: var(--primary);
  color: var(--text-light);
}

.form-submit-wrapper {
  text-align: center;
  margin-top: 28px;
}

.form-submit-wrapper .btn {
  min-width: 240px;
}

.form-message {
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}

.form-message.success {
  display: block;
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
  border: 1px solid rgba(46, 213, 115, 0.3);
}

.form-message.error {
  display: block;
  background: rgba(231, 76, 60, 0.15);
  color: #e74c3c;
  border: 1px solid rgba(231, 76, 60, 0.3);
}

/* Booking Method Selector */
.booking-method-selector {
  display: flex;
  gap: 16px;
}

.method-option {
  flex: 1;
  cursor: pointer;
}

.method-option input[type="radio"] {
  display: none;
}

.method-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid var(--card-border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.method-option input[type="radio"]:checked + .method-label {
  border-color: var(--secondary);
  background: rgba(14, 210, 247, 0.1);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(14, 210, 247, 0.15);
}

.method-label i {
  font-size: 1.2rem;
}

.method-option:hover .method-label {
  border-color: rgba(14, 210, 247, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- Map Search & Interactive Location Picker ---------- */
.location-search-group {
  position: relative;
  z-index: 20;
}

.location-input-bar {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}

.location-search-field {
  flex: 1 1 280px;
  position: relative;
  display: flex;
  align-items: center;
}

.location-search-icon {
  position: absolute;
  inset-inline-start: 14px;
  color: var(--secondary);
  font-size: 0.9rem;
  pointer-events: none;
}

.location-search-field input {
  padding-inline-start: 38px !important;
  padding-inline-end: 34px !important;
}

.location-clear-btn {
  position: absolute;
  inset-inline-end: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: var(--transition);
}

.location-clear-btn:hover {
  background: rgba(231, 76, 60, 0.25);
  color: #fff;
}

.location-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 14px;
  min-height: 44px;
  background: rgba(14, 210, 247, 0.12);
  border: 1px solid rgba(14, 210, 247, 0.35);
  border-radius: var(--radius-sm);
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
  white-space: nowrap;
}

.location-action-btn:hover {
  background: rgba(14, 210, 247, 0.24);
  color: #fff;
  transform: translateY(-1px);
}

.location-action-btn.google-maps-link {
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.35);
  color: var(--gold);
}

.location-action-btn.google-maps-link:hover {
  background: rgba(245, 166, 35, 0.25);
  color: #fff;
}

.location-results-dropdown {
  position: absolute;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(15, 26, 48, 0.98);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(14, 210, 247, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55);
  max-height: 260px;
  overflow-y: auto;
  z-index: 200;
  display: none;
}

.location-results-dropdown.open {
  display: block;
}

.location-result-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-light);
  font-family: inherit;
  font-size: 0.88rem;
  text-align: start;
  cursor: pointer;
  transition: background 0.2s;
}

.location-result-item:last-child {
  border-bottom: none;
}

.location-result-item:hover {
  background: rgba(14, 210, 247, 0.16);
}

.location-result-item .loc-icon {
  color: var(--secondary);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.location-result-item .loc-text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-result-item .loc-badge {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  flex-shrink: 0;
}

.location-result-item .loc-badge.popular {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold);
}

.pickup-map-drawer {
  margin-top: 12px;
  border: 1px solid rgba(14, 210, 247, 0.35);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: rgba(10, 18, 34, 0.95);
}

.pickup-map-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(14, 210, 247, 0.12);
  font-size: 0.8rem;
  color: var(--text-light);
}

.pickup-map-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 2px 6px;
}

.pickup-map-close:hover {
  color: #fff;
}

.pickup-leaflet-map {
  width: 100%;
  height: 260px;
  z-index: 1;
}

/* ---------- Why Choose Us ---------- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

.why-card {
  background: var(--card-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 210, 247, 0.3);
  box-shadow: var(--shadow);
}

.why-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.why-card:nth-child(1) .why-icon {
  background: rgba(245, 166, 35, 0.15);
  color: var(--gold);
}

.why-card:nth-child(2) .why-icon {
  background: rgba(69, 170, 242, 0.15);
  color: #45aaf2;
}

.why-card:nth-child(3) .why-icon {
  background: rgba(46, 213, 115, 0.15);
  color: #2ed573;
}

.why-card:nth-child(4) .why-icon {
  background: rgba(165, 94, 234, 0.15);
  color: #a55eea;
}

.why-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.why-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 60px 2rem 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.footer-col h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

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

body[dir="rtl"] .footer-col h4::after {
  left: auto;
  right: 0;
}

.footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--secondary);
  transform: translateX(4px);
}

body[dir="rtl"] .footer-col ul li a:hover {
  transform: translateX(-4px);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-contact-item i {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 210, 247, 0.15);
  color: var(--secondary);
  border-radius: 8px;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--secondary);
  color: white;
  border-color: var(--secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .car-card {
    flex: 1 1 calc(50% - 28px);
    max-width: 380px;
  }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 1.3rem;
  }

  .lang-switcher {
    order: -1;
  }

  .car-card {
    flex: 1 1 100%;
    max-width: 420px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 60px 1rem;
  }

  .booking-form {
    padding: 24px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .car-card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  body[dir="rtl"] .car-card-footer {
    align-items: flex-end;
  }

  .btn-book {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ---------- Scrollbar Styling ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(14, 210, 247, 0.4);
  border-radius: 4px;
}

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

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

body[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
}
