/* ═══════════════════════════════════════════════
   MAP — wrapper, leaflet overrides, legend bar
═══════════════════════════════════════════════ */

/* ─── MAP WRAPPER ─── */
.map-wrapper {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 58%;
  height: 620px;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid rgba(201, 168, 76, 0.35);
  box-shadow:
    0 25px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(201,168,76,0.2),
    inset 0 0 40px rgba(56,178,172,0.08);
  animation: slideInRight 1s ease-out;
}

#tunisia-map {
  width: 100%;
  height: 100%;
}

.leaflet-container {
  background: #0a0806;
}

/* ─── LEAFLET OVERRIDES ─── */
.leaflet-control-zoom {
  border: 2px solid rgba(201, 168, 76, 0.4) !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, rgba(20,27,40,0.9), rgba(30,40,60,0.8)) !important;
  backdrop-filter: blur(15px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
  color: #c9a84c !important;
  background: transparent !important;
  border: none !important;
  width: 44px !important;
  height: 44px !important;
  line-height: 44px !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

.leaflet-control-zoom-in:hover,
.leaflet-control-zoom-out:hover {
  color: #ffffff !important;
  background: rgba(201, 168, 76, 0.2) !important;
  text-shadow: 0 0 12px rgba(201, 168, 76, 0.5) !important;
}

.leaflet-popup-content-wrapper {
  background: rgba(20, 27, 40, 0.95) !important;
  border: 2px solid rgba(201, 168, 76, 0.3) !important;
  border-radius: 12px !important;
  backdrop-filter: blur(10px);
}

.leaflet-popup-content {
  color: #e4e8f2 !important;
  font-family: 'IBM Plex Sans Arabic', sans-serif !important;
}

.leaflet-popup-tip {
  background: rgba(20, 27, 40, 0.95) !important;
  border: 2px solid rgba(201, 168, 76, 0.3) !important;
}

/* ─── MAP LEGEND BAR ─── */
.map-legend-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 18px 48px;
  background:
    linear-gradient(rgba(255,255,255,0.71), rgba(255,255,255,0.71)),
    url('../images/arabic-calligraphy_long.jpg') center / cover no-repeat;
  border-left: 2px solid rgba(201, 168, 76, 0.4);
  border-top: 1px solid rgba(201, 168, 76, 0.2);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  backdrop-filter: blur(12px);
   position: relative;
  top: -70px;
}
.map-legend-bar-seperate {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 18px 48px;
  background:transparent;

   position: relative;
  top: -70px;
}

.legend-bar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 700;
  color: #0c042b;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding-right: 32px;
  border-right: 1px solid rgba(201, 168, 76, 0.25);

}

.legend-bar-items {
  display: flex;
  align-items: center;
  gap: 24px;
}

.legend-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-bar-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.legend-bar-label {
  font-size: 14px;
  color: #111d3a;
  font-weight: 500;
  letter-spacing: 0.4px;
}

.legend-bar-divider {
  width: 1px;
  height: 20px;
  background: rgba(201, 168, 76, 0.2);
}
