/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Segoe UI', 'Heebo', 'Poppins', sans-serif;
  background-color: #111;
  color: white;
  direction: rtl; /* حذف هذا السطر إذا كنت تريد التصميم من اليسار لليمين */
}

/* === Navbar Modern RTL === */
/* الوضع العادي (حاسوب) */
/* === Navbar Modern RTL === */
/* الوضع العادي (حاسوب) */
.navbar {
  background-color: #000;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.6);
}

.navbar .logo a {
  font-size: 22px;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.navbar .menu {
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar .menu a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 5px;
  transition: background-color 0.3s, color 0.3s;
}

.navbar .menu a:hover {
  background-color: #f57c00;
  color: black;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.logo-image img {
  height: 40px;
  width: auto;
}

.logo-image {
  display: flex;
  align-items: center;
}

/* هاتف */
@media (max-width: 768px) {
  .navbar {
    justify-content: space-between;
    padding: 10px 15px;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .navbar .logo a {
    font-size: 20px;
    text-align: center;
  }

  .logo-image {
    position: relative;
    left: 0;
    margin-left: auto;
  }

  .logo-image img {
    height: 50px;
  }

  .hamburger {
    display: flex;
    margin-left: 10px;
  }

.navbar .menu {
  position: absolute;
  top: 60px;
  right: 0;
  width: 100%;
  flex-direction: column;
  background-color: #111;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.navbar .menu.active {
  max-height: 500px; /* enough height for all items */
}

.navbar .menu a {
  padding: 12px 20px;
  width: 100%;
  border-bottom: 1px solid #333;
}
}

.filter-form {
  margin-top: 100px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 20px;
}

.filter-form input[type="text"] {
  flex: 1.5;
  min-width: 250px;
  max-width: 400px;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background-color: #1f1f1f;
  color: white;
  font-size: 15px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: 0.3s ease;
}

.filter-form select {
  flex: 0.6;
  min-width: 160px;
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background-color: #1f1f1f;
  color: white;
  font-size: 15px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: 0.3s ease;
  cursor: pointer;
}

/* التصميم العام */
.filter-form input[type="text"],
.filter-form select {
  padding: 10px 15px;
  border: none;
  border-radius: 20px;
  background-color: #1f1f1f;
  color: white;
  font-size: 15px;
  box-shadow: 0 0 5px rgba(0,0,0,0.5);
  transition: 0.3s ease;
}
/* الحجم الافتراضي على الشاشات الكبيرة */
@media (min-width: 600px) {
  .filter-form input[type="text"] {
    flex: 2;
    min-width: 300px;
  }

  .filter-form select {
    flex: 1;
    min-width: 180px;
  }
}

/* على الشاشات الصغيرة: موبايل */
@media (max-width: 599px) {
  .filter-form input[type="text"],
  .filter-form select {
    width: 100%;
    flex: unset;
  }
}
.filter-wrapper {
  display: flex;
  gap: 10px;
  margin: 90px auto 30px auto; /* هامش من أعلى لتفادي الـnavbar */
  padding: 0 20px;
  max-width: 1000px;
}

.filter-wrapper input[type="text"] {
  flex: 2;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #222;
  color: white;
}

.filter-wrapper select {
  flex: 1;
  padding: 10px 15px;
  font-size: 16px;
  border-radius: 8px;
  border: 1px solid #444;
  background-color: #222;
  color: white;
}

/* تحسين الشكل في الشاشات الصغيرة */
@media (max-width: 600px) {
  .filter-wrapper {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .filter-wrapper input[type="text"],
  .filter-wrapper select {
    flex: 1 1 48%;
  }
}

/* Main Content */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.main-heading {
  font-size: 36px;
  margin-bottom: 30px;
  text-align: center;
  color: #f57c00;
}

.car-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.car-item {
  background-color: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.car-item:hover {
  transform: translateY(-5px);
}

.car-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.car-info {
  padding: 20px;
}

.car-info h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.price {
  font-size: 18px;
  color: #f57c00;
  margin-bottom: 15px;
}

.btn {
  display: inline-block;
  background-color: #f57c00;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: background-color 0.3s;
}

.btn:hover {
  background-color: #ff9800;
}
.filter-form select, 
.filter-form input[type="text"], 
.filter-form button {
  border: 1px solid #ccc;
  border-radius: 4px;
}

/* === Footer === */
.footer {
  background-color: #000;
  color: #ccc;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  font-size: 14px;
  border-top: 2px solid #f57c00;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.5);
}

.footer p {
  margin: 0;
  color: #aaa;
}

.footer p span {
  color: #f57c00;
  font-weight: bold;
}
footer a {
  color: #eee;           /* لون برتقالي موحد */
  text-decoration: none;    /* إزالة الخط */
  transition: color 0.3s;
  font-weight: 500;
}

footer a:hover {
  color: #ff9800;           /* لون أفتح عند التحويم */
  text-decoration: underline;
}

/* === Contact Form Styling === */
.contact-form-container {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  max-width: 350px;
  margin: 0 auto;
  text-align: right;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
}

.contact-form-container h4 {
  color: #f57c00;
  margin-bottom: 20px;
  font-size: 22px;
  text-align: center;
}

.contact-form-container input,
.contact-form-container textarea {
  width: 100%;
  padding: 10px 15px;
  margin-bottom: 12px;
  border: none;
  border-radius: 20px;
  font-size: 15px;
  background-color: #333;
  color: white;
}

.contact-form-container textarea {
  border-radius: 10px;
  resize: none;
}

.contact-form-container button {
  background-color: #f57c00;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
}

.contact-form-container button:hover {
  background-color: #ff9800;
}

#formResponse {
  margin-top: 12px;
  font-size: 15px;
  text-align: center;
}

#formResponse.success {
  color: #4CAF50;
}

#formResponse.error {
  color: #ff4444;
}

.car-item .btn {
    display: inline-block;
    margin-bottom: 5px;
}

@media (max-width: 480px) {
  .contact-form-container {
    padding: 20px;
    max-width: 90%;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .main-heading {
    font-size: 28px;
  }

  .car-info h2 {
    font-size: 18px;
  }

  .price {
    font-size: 16px;
  }
}
