.time-display {
  min-width: 140px;
  /* لضمان حجم موحد للأوقات */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.5px;
}

/* تنسيق أفضل لقائمة العناصر */
.professional-schedule .list-group-item {
  transition: background-color 0.3s ease;
  border-right: 5px solid transparent;
  /* شريط جانبي يظهر عند المرور */
}

.professional-schedule .list-group-item:hover {
  background-color: #f8f9fa;
  /* لون فاتح عند المرور */
  border-right-color: #0d6efd;
  /* تفعيل الشريط الجانبي باللون الأزرق */
  cursor: default;
}

/* 1. تصميم التبويبات (Tabs) بشكل أنظف */
.nav-tabs-pro .nav-link {
  color: #6c757d;
  /* لون النص العادي (رمادي) */
  font-weight: 600;
  border: 0;
  border-bottom: 2px solid transparent;
  padding-bottom: 0.75rem;
}

.nav-tabs-pro .nav-link.active,
.nav-tabs-pro .nav-link:hover {
  color: var(--bs-primary);
  /* اللون الأساسي عند التفعيل */
  border-bottom: 2px solid var(--bs-primary);
  background-color: transparent;
}

/* 2. تنسيق نص التفاصيل (للقراءة المريحة) */
.service-prose {
  line-height: 1.8;
  color: #495057;
}

.service-prose p {
  margin-bottom: 1rem;
}

/* 3. حاوية المخطط الزمني (الخلفية والعلائم) */
.timeline-pro-container {
  position: relative;
  background-color: #f8f9fa;
  /* خلفية رمادية فاتحة جداً */
  height: 18px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e9ecef;
}

/* 4. علامات ربع اليوم (للسياق) */
.timeline-pro-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
  /* خلف شريط البيانات */
}

/* علامة منتصف اليوم (أوضح) */
.timeline-pro-marker.midday {
  background-color: rgba(0, 0, 0, 0.2);
}

/* 5. شريط الوقت الفعلي */
.time-fill-pro {
  position: absolute;
  height: 100%;
  background-color: var(--bs-primary);
  z-index: 2;
  /* فوق العلامات */
  opacity: 0.85;
  /* تأثير حركة ناعم عند التحميل (اختياري) */
  transition: width 0.5s ease-out, left 0.5s ease-out;
}

/* 6. تصميم صف اليوم (مهم جداً) */
.day-schedule-row {
  display: flex;
  flex-wrap: wrap;
  /* للتجاوب على الموبايل */
  align-items: center;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 0.5rem;
  /* زوايا ناعمة */
  margin-bottom: 0.75rem;
  background-color: #fff;
}

.day-schedule-row .day-info {
  width: 140px;
  /* عرض ثابت لاسم اليوم (للمحاذاة) */
  flex-shrink: 0;
  /* يمنع التقلص */
}

.day-schedule-row .day-timeline {
  flex-grow: 1;
  /* يأخذ باقي المساحة */
  min-width: 200px;
  /* يمنع أن يصبح صغيراً جداً */
}

/* 7. تعديلات التجاوب (Mobile) */
@media (max-width: 576px) {
  .day-schedule-row {
    flex-direction: column;
    /* يجعل العناصر تحت بعضها */
    align-items: flex-start;
    /* المحاذاة لليمين */
  }

  .day-schedule-row .day-info {
    width: 100%;
    /* عرض كامل */
    margin-bottom: 0.75rem;
    /* هامش */
  }
}

.day-info {
  direction: ltr !important;
}

.worktime-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  list-style: none;
  direction: rtl;
}

.worktime-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.worktime-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.worktime-day {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #222;
  font-size: 1rem;
}

.worktime-day i {
  color: #0d6efd;
  font-size: 1.1rem;
}

.worktime-time {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  color: #198754;
  font-size: 0.95rem;
  background: #e8f5ec;
  padding: 6px 14px;
  border-radius: 50px;
  direction: ltr;
  /* يعالج مشكلة الوقت */
  unicode-bidi: isolate;
  /* يجعل الأرقام تظهر بالاتجاه الصحيح */
  font-family: "Courier New", monospace;
  white-space: nowrap;
}

.worktime-time i {
  color: #198754;
  font-size: 1rem;
}

/* 📱 تحسين مظهر الجوال */
@media (max-width: 600px) {
  .details-card {
    text-align-last: right !important;
    hyphens: none !important;
    word-spacing: 0 !important;
    letter-spacing: 0 !important;
    padding: 0px !important;
    max-width: 100% !important;
    font-size: 0.9rem !important;
  }

  .worktime-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .worktime-time {
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }

  .worktime-card {
    padding: 16px;
  }
}

/* Custom CSS for a modern gallery look */
.image-gallery-scroll-container {
  /* لإخفاء شريط التمرير الافتراضي في بعض المتصفحات مع الاحتفاظ بوظيفة التمرير */
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.image-gallery-scroll-container::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* تغيير نمط الخط وتكبير حجم النص */
/* إعدادات أساسية للعنوان */
.title {
  font-size: 28px;
  /* حجم مناسب للعناوين */
  font-weight: 600;
  /* وزن متوسط لإبراز العنوان */
  color: #2c3e50;
  /* لون نص حديث وأنيق */
  text-align: center;
  /* النص في المنتصف */
  margin: 20px 0;
  /* مسافة حول العنوان */
  line-height: 1.4;
  /* تحسين المسافات بين الأسطر */
  letter-spacing: 0.5px;
  /* تحسين المسافة بين الحروف */
}

/* تخصيص كل قسم */
.title .provider-name {
  color: #3498db;
  /* لون مزود الخدمة (أزرق) */
}

.title .service-name {
  color: #e74c3c;
  /* لون اسم الخدمة (أحمر) */
}

.title .city {
  color: #27ae60;
  /* لون المدينة (أخضر) */
}

/* تصميم الفاصل */
.title .separator {
  color: #95a5a6;
  /* لون رمادي فاتح للفاصل */
  font-size: 24px;
  /* حجم أصغر قليلاً للفاصل */
  margin: 0 5px;
  /* مسافة صغيرة حول الفاصل */
}

/* تأثيرات عند التحويم */
.title .provider-name:hover,
.title .service-name:hover,
.title .city:hover {
  text-decoration: underline;
  /* خط تحت النص عند التحويم */

  opacity: 0.9;
  /* تحسين التفاعل */
}

/* تغيير لون الزر وإضافة حدود */
.btn-link {
  color: #007bff;
  text-decoration: none;
  border: none;
  background-color: transparent;
}

.btn-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.star-rating {
  font-size: 25px;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.star-rating input {
  display: none;
}

.star-rating label {
  color: #ddd;
  cursor: pointer;
}

.star-rating input:checked ~ label {
  color: gold;
}

.star-rating label:hover,
.star-rating label:hover ~ label {
  color: gold;
}

/* تخفيض حجم الصورة وإضافة حواف مستديرة */
.card-body img {
  max-width: 100px;
  border-radius: 5px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* تغيير لون خلفية البطاقة وإضافة حدود */
.card {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* تغيير لون الحدود الداخلية */
.card-body {
  border-top: 1px solid #dee2e6;
}

/* تخفيض حجم الحقول النصية */
.form-control {
  font-size: 14px;
}

input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border: 1px solid #ced4da;
  border-radius: 3px;
  cursor: pointer;
  vertical-align: middle;
}

input[type="checkbox"]:checked {
  background-color: #007bff;
}

#dynamic_table1 th {
  text-wrap: nowrap;
  padding: 5px;
  margin: 5px;
  width: auto;
}

.floating-buttons {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.floating-buttons .btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-buttons .btn-edit {
  background-color: #28a745;
  color: white;
}

.floating-buttons .btn-delete {
  background-color: #dc3545;
  color: white;
}

/* تأثير التحويم */
.floating-buttons .btn:hover {
  opacity: 0.8;
}

#serviceStatus .badge {
  font-size: 1rem;
  padding: 0.5em 0.75em;
}

/* إضافة تأثير عند تمرير الماوس على الشارة */
#serviceStatus .badge:hover {
  opacity: 0.8;
  cursor: default;
  /* تغيير المؤشر */
}

.container {
  background-color: #fff;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 50px auto;
  transition: all 0.3s ease-in-out;
}

.details-card {
  background: linear-gradient(135deg, #f9f9f9 30%, #e9e9e9 100%);
  padding: 5px;
  border-radius: 15px;
  font-size: 1.2rem;
  line-height: 2.9;
  color: #444;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  text-align: justify;
}

.highlight {
  font-weight: bold;
  color: #0056b3;
  background-color: rgba(0, 123, 255, 0.1);
  padding: 0 5px;
  border-radius: 4px;
}

.btn-back {
  background-color: #007bff;
  color: #fff;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.text-end {
  text-align: right;
  margin-top: 30px;
}

.phone-icon {
  margin-right: 8px;
  color: #007bff;
}

#shareButton {
  background-color: #007bff;
  color: white;
  padding: 12px 25px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#shareButton:hover {
  background-color: #0056b3;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.custom-dropdown {
  position: relative;
  display: inline-block;
}

.custom-dropdown .dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1;
  right: 0;
}

.custom-dropdown .dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.custom-dropdown .dropdown-content a:hover {
  background-color: #f1f1f1;
}

.custom-dropdown .btn {
  cursor: pointer;
}

.custom-dropdown .btn .fa-chevron-down {
  margin-left: 8px;
}

.sticky-top {
  z-index: 100 !important;
}

.service-card {
  transition: all 0.3s ease-in-out;
  border: 1px solid #f1f1f1;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: #007bff25;
}
.service-card .card-title {
  font-size: 1.1rem;
}
.transition {
  transition: all 0.3s ease;
}

.btn-close {
  position: absolute; /* مرتبط بمحتوى المودال */
  top: 1rem;
  left: 1rem;
}

.report-section .card {
  border-radius: 15px;
  overflow: hidden;
}

.report-card-new {
  transition: transform 0.2s, box-shadow 0.2s;
  border-width: 2px !important;
}

.report-card-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.report-card-new .card-footer {
  background-color: #f8f9fa;
}

.report-card-new .badge {
  font-size: 0.85rem;
}

.card-header.bg-danger {
  background: linear-gradient(90deg, #e74c3c, #c0392b);
}
.card-header.bg-success {
  background: linear-gradient(90deg, #27ae60, #1e8449);
}
.card-header.bg-secondary {
  background: linear-gradient(90deg, #7f8c8d, #95a5a6);
}

.load-more-reports {
  min-width: 200px;
  transition: background 0.3s;
}

.load-more-reports:hover {
  background: #0d6efd;
  color: white;
}
/* بطاقات البلاغات */
.report-card-new {
  transition: all 0.4s ease;
  cursor: pointer;
}

.report-card-new:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Fade-in عند الإضافة */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.6s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Fade-out عند التجاهل */
.fade-out {
  opacity: 1;
  animation: fadeOut 0.6s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: scale(0.95);
    height: 0;
    margin: 0;
    padding: 0;
  }
}

.vote-btn.active-like {
  background-color: #28a745; /* لون أخضر للإعجاب النشط */
  color: #fff;
  border-color: #28a745;
}

.vote-btn.active-dislike {
  background-color: #dc3545; /* لون أحمر لعدم الإعجاب النشط */
  color: #fff;
  border-color: #dc3545;
}

.highlight-get {
  border: 3px solid #ffca2c !important;
  box-shadow: 0 0 25px rgba(255, 193, 7, 0.6), 0 0 10px rgba(255, 255, 255, 0.4) inset !important;
  background: linear-gradient(135deg, #fffbee, #fff7d6) !important;
  border-radius: 12px !important;
  transform: scale(1.015);
  transition: all 0.5s ease-in-out;
  position: relative;
  z-index: 50;
}

.highlight-get::after {
  content: "⭐";
  position: absolute;
  top: -12px;
  right: 20px;
  background: #ffca2c;
  color: #212529;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  animation: blinkBanner 1.2s ease-in-out infinite alternate;
}

@keyframes blinkBanner {
  from { opacity: 0.6; transform: translateY(1px); }
  to { opacity: 1; transform: translateY(-1px); }
}

#map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4); /* غطاء داكن */
    color: white;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer; 
    z-index: 1000; /* مهم: ليكون فوق الخريطة */
    transition: opacity 0.3s;
}