/* ========== الأساسيات العامة ========== */




body {
  font-family: 'Tajawal', sans-serif;
  background-color: #f8f9fa;
}

/* RTL Layout */
html[dir="rtl"] body {
  direction: rtl;
  text-align: right;
}

/* LTR Layout */
html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}


h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
}

a {
  color: #0d6efd;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========== الشريط العلوي (Navbar) ========== */
.navbar {
  background-color: rgb(42, 42, 233);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.2rem;
}

.navbar-nav .nav-link {
  padding-right: 1rem;
  padding-left: 1rem;
}

/* ========== الخريطة ========== */
.map-container {
  height: 200px;
  width: 100%;
}

#map {
  height: 300px;
  width: 100%;
  border-radius: 12px;
  border: 1px solid #ccc;
}

/* ========== عناصر التفاصيل في صفحة الإعلان ========== */
.info-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.info-item i {
  color: #555;
  margin-left: 5px;
}

.dropdown-toggle::after {
  margin-right: .5em;
}

/* ========== معرض الصور ========== */
.media-gallery a {
  margin: 5px;
  display: inline-block;
  width: 100px;
  height: 100px;
  overflow: hidden;
}

.media-gallery img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 5px;
  cursor: zoom-in;
}

/* ========== البطاقات (الإعلانات) ========== */
.place-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  height: 100%;
  width: 100%;
  text-align: center;
}

.place-card:hover {
  transform: scale(1.01);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.place-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  background-color: #dfadad;
}

.place-card h6 {
  font-size: 1rem;
  margin-top: 10px;
  color: #0d6efd;
}

.place-card p {
  font-size: 0.9rem;
  color: #666;
}

/* ========== أزرار ومكونات إضافية ========== */
.btn-outline-primary.dropdown-toggle {
  direction: ltr;
}

.btn-outline-success {
  font-weight: bold;
}

.form-control:focus {
  border-color: #86b7fe;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* ========== تحكم الصور (صفحة النتائج) ========== */
#image-controls {
  display: none;
  margin-top: 30px;
  margin-bottom: 30px;
  text-align: center;
}

/* ========== نظام الصفحات (pagination) ========== */
#pagination-buttons {
  display: none;
  justify-content: center;
  gap: 10px;
  margin-top: 1rem;
}

.pagination-buttons {
  display: none;
  justify-content: center;
  margin-top: 20px;
}

.pagination-buttons button {
  margin: 0 10px;
}

/* ========== زر "عرض المزيد" ========== */
#load-more-container {
  display: none;
  text-align: center;
  margin-top: 20px;
}

/* ========== الزر "العودة" ========== */
#back-button {
  margin-top: 20px;
  font-weight: bold;
}

/* ========== تحسين عرض الأعمدة في نتائج البحث ========== */
#results .col-md-4 {
  display: flex;
}
