#map {
  width: 100%;
  height: 400px;
  max-width: 1200px;
  border: 1px solid #ccc;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  position: relative;
  top: 0;
  bottom: 0;
}
.map {
  margin: 30px;
  display: flex; /* يستخدم Flexbox لتمركز المحتوى */
  justify-content: center; /* تمركز أفقي */
  align-items: center;
}
.map h2 {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 2rem;
  text-align: center;
  padding: 0 0 20px;
  color: #7a884e;
}

.tooltip {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  z-index: 10;
  user-select: none;
  transition: opacity 0.25s ease;
  opacity: 0;
}

.tooltip.show {
  opacity: 1;
}

.mapboxgl-popup-content {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
  color: #111827;
  border-radius: 12px;
  padding: 1rem;
  max-width: 320px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  direction: rtl;
}

.mapboxgl-popup-content h3 {
  margin: 0 0 0.5rem 0;
  font-weight: 700;
  color: #2563eb;
}

.mapboxgl-popup-content p {
  margin: 0.25rem 0;
}

/* تجعل صور Popup تظهر في صف أفقي */
.image-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 0.75rem;
}

.image-gallery img {
  border-radius: 8px;
  max-width: 120px;
  height: 80px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  cursor: pointer;
}

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