/* استيراد خط تجوال */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

/* الأساسيات */
body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f5f7fa;
  color: #333;
  line-height: 1.7;
  font-size: 16px;
}

:root {
  --primary: #007bff;
  --secondary: #6c757d;
  --light-bg: #f8f9fa;
  --card-border: #e0e0e0;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* دعم RTL و LTR */
:dir(rtl) body {
  direction: rtl;
  text-align: right;
}

:dir(ltr) body {
  direction: ltr;
  text-align: left;
}

/* الروابط */
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* العناوين */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #004085;
}

/* البطاقات العامة */
.card {
  border: none;
  border-radius: 10px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  background-color: #fff;
}
.card-body {
  padding: 20px;
}
.card-title {
  font-size: 1.25rem;
  margin-bottom: 15px;
}

/* صور الرحلة */
.package-img {
  border-radius: 10px;
  object-fit: cover;
  width: 100%;
  max-height: 400px;
}

/* صورة المرشد */
.guide-card {
  background-color: var(--light-bg);
}
.guide-card img {
  max-height: 150px;
  object-fit: cover;
  border-radius: 10px;
}

/* التبويبات */
.nav-tabs {
  border-bottom: 2px solid var(--card-border);
}
.nav-tabs .nav-link {
  border: none;
  color: #555;
  font-weight: 600;
  padding: 10px 15px;
}
.nav-tabs .nav-link.active {
  background-color: var(--primary);
  color: #fff;
  border-radius: 5px 5px 0 0;
}

/* محتوى التبويبات */
.tab-content {
  background-color: #fff;
  border: 1px solid var(--card-border);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 20px;
}

/* معرض الصور */
.gallery-thumb {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow);
}

/* الفيديو */
.video-thumb-container {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}
.video-thumb-container video {
  border-radius: 10px;
  filter: brightness(0.6);
}
.video-thumb-container img {
  position: absolute;
  z-index: 2;
}

/* النموذج */
form .form-control {
  border-radius: 6px;
  padding: 10px;
  border: 1px solid #ccc;
}
form button {
  border-radius: 6px;
  padding: 10px 20px;
  font-weight: 600;
  background-color: var(--primary);
  border: none;
}
form button:hover {
  background-color: #0056b3;
}

/* التقييمات */
.review-card {
  background-color: #fff;
  border: 1px solid var(--card-border);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: var(--shadow);
}
.review-card .star {
  color: gold;
  font-size: 1.2rem;
}

/* الرحلات المشابهة */
.similar-card {
  transition: all 0.3s ease-in-out;
  border-radius: 6px;
}
.similar-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow);
}
.similar-title {
  font-size: 15px;
  font-weight: bold;
  margin-top: 5px;
  color: #333;
}

/* الإضافات */
.addon, .day-details {
  background-color: #fdfdfd;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 10px 15px;
  margin-bottom: 15px;
}

/* الحقول الخاصة */
input[type="number"], input[type="date"] {
  direction: rtl;
}
:dir(ltr) input[type="number"],
:dir(ltr) input[type="date"] {
  direction: ltr;
}

/* الرسائل */
.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

/* زر حجز الآن */
.btn-book {
  background-color: #28a745;
  color: white;
  border-radius: 6px;
  font-weight: 600;
  padding: 10px 20px;
}
.btn-book:hover {
  background-color: #218838;
}

/* تحسين الشريط الجانبي */
.sidebar-box {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px;
}

/* Responsive */
@media (max-width: 768px) {
  .package-img {
    max-height: 250px;
  }
  .gallery-thumb {
    height: 100px !important;
  }
}

/* صورة المرشد */
.guide-img {
  border-radius: 10px;
  object-fit: cover;
  max-height: 150px;
}

/* شارة التقييم فوق صورة المرشد */
.badge-on-image {
  position: absolute;
  top: 8px;
  right: 8px; /* RTL */
  background-color: #ffc107;
  color: #000;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 10;
}

/* دعم RTL/LTR تلقائي */
:dir(rtl) .badge-on-image {
  right: 8px;
  left: auto;
}
:dir(ltr) .badge-on-image {
  left: 8px;
  right: auto;
}


