/**
 * @file
 * ulb_map.css — Styles for the ULB Leaflet map page and block.
 */

/* ---- Map container -------------------------------------------------------- */
#ulb-map-container {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
}

#ulb-leaflet-map,
.ulb-leaflet-map-block {
  width: 100%;
  height: 560px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-top: 12px;
}

.ulb-leaflet-map-block {
  height: 400px;
}

/* ---- Ctrl+scroll hint ----------------------------------------------------- */
.ulb-map-scroll-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 1000;
}

.ulb-map-scroll-hint.visible {
  opacity: 1;
}

/* ---- Zone filter bar ------------------------------------------------------ */
#ulb-zone-filter,
.ulb-zone-filter-block {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 10px 14px;
  background: #f5f7fa;
  border: 1px solid #dde1e7;
  border-radius: 6px;
}

#ulb-zone-filter label {
  margin-right: 6px;
  font-size: 0.95rem;
}

#zone-select,
.ulb-zone-select-block {
  padding: 6px 10px;
  border-radius: 4px;
  border: none;
  font-size: 1.2rem;
  min-width: 160px;
  width: 83%;
  padding: 15px;
}
.ulb-zone-info-block h3 {
	font-size: 1em;
	margin-bottom: 20px;
	margin-top: 15px;
}

#ulb-count-badge {
  display: inline-block;
  background: #2d5ca6;
  color: #fff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.82rem;
  margin-left: 6px;
}

/* ---- Legend --------------------------------------------------------------- */
#ulb-map-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dde1e7;
  border-radius: 6px;
  font-size: 0.88rem;
}

#ulb-map-legend h4 {
  margin: 0 8px 0 0;
  font-size: 0.9rem;
  color: #444;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
}

.legend-a { background: #e74c3c; }
.legend-b { background: #3498db; }
.legend-c { background: #2ecc71; }
.legend-d { background: #f39c12; }

/* ---- Marker icon ---------------------------------------------------------- */
.ulb-marker-icon {
  background: transparent !important;
  border: none !important;
}

/* ---- Popup styles --------------------------------------------------------- */
.ulb-popup-container .leaflet-popup-content-wrapper {
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  padding: 0;
}

.ulb-popup {
  padding: 4px 2px;
  min-width: 220px;
}

.ulb-popup-title {
  font-size: 1rem;
  margin: 0 0 8px;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ulb-class-badge {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 3px;
  font-size: 0.75rem;
  font-weight: bold;
  color: #fff;
}

.ulb-class-A { background: #e74c3c; }
.ulb-class-B { background: #3498db; }
.ulb-class-C { background: #2ecc71; }
.ulb-class-D { background: #f39c12; }

.ulb-popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.ulb-popup-table th,
.ulb-popup-table td {
  padding: 3px 6px;
  text-align: left;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}

.ulb-popup-table th{padding-left:0;}
.ulb-popup-table th {
  color: #555;
  width: 40%;
  font-weight: 600;
}

.ulb-popup-table a {
  color: #2d5ca6;
}

/* ---- Block wrapper -------------------------------------------------------- */
.ulb-map-block-wrapper {
  padding: 8px 0;
  position:relative;
}
