/* ============================================================
   ELHASSANE STUDIO - AI Construction Manager
   الملف: public/css/gis.css - أنماط الخريطة
   ============================================================ */

#map {
  background: #e5e7eb;
  border-radius: 8px;
}

.dark #map {
  background: #1a1a2e;
}

#map .leaflet-control-zoom {
  direction: ltr;
}

.leaflet-container {
  font-family: inherit;
  z-index: 0;
}

.project-marker {
  background: transparent;
}

.project-marker div {
  transition: all 0.2s;
}

.project-marker div:hover {
  transform: scale(1.2);
}

.nearby-marker {
  background: transparent;
}

/* أيقونة الطائرة المسيرة */
.gis-drone-icon {
  background: transparent;
  border: none;
  font-size: 26px;
  line-height: 32px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4));
}

.leaflet-popup-content-wrapper {
  border-radius: 10px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-tip {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.dark .leaflet-popup-content-wrapper {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

.dark .leaflet-popup-tip {
  background: #1e293b !important;
}

.leaflet-popup-content {
  font-family: 'Cairo', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.6;
  min-width: 180px;
}

.dark .leaflet-popup-content {
  color: #e2e8f0;
}

/* شريط البحث */
#searchInput {
  direction: rtl;
}

/* إحصائيات الخريطة */
.map-stats {
  position: absolute;
  bottom: 20px;
  right: 50%;
  transform: translateX(50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  pointer-events: none;
  z-index: 1000;
}

.map-stats span {
  margin: 0 8px;
}

.map-stats .count {
  font-weight: 700;
  color: #60a5fa;
}

@media (max-width: 1024px) {
  #map {
    height: 420px !important;
  }
}