/**
 * POIPickerControl Styles
 * Designed to integrate seamlessly with MapLibre GL JS standard control groups.
 */

/* Main container: overrides default control group overflow to allow dropdown visibility */
.maplibre-control-poi-picker {
  overflow: visible !important;
}

/* Toggle button styling matching default MapLibre control dimensions */
.poi-picker-toggle-btn {
  background: white;
  border: none;
  width: 29px;
  height: 29px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poi-picker-toggle-btn:hover {
  background-color: #f4f4f4;
}

/* Dropdown panel container */
.poi-picker-panel {
  background: white;
  padding: 4px 12px 12px 12px;
  min-width: 170px;
  box-sizing: border-box;
}

/* Panel heading title (POI Picker) */
.poi-picker-panel h4 {
  margin: 4px 0 8px 0;
  font-size: 12px;
  font-family: sans-serif;
  color: #333;
}

/* Individual checkbox items */
.poi-picker-label-item {
  display: block;
  font-family: sans-serif;
  font-size: 10px; /* Fixed typo (10p  x -> 10px) */
  margin-bottom: 0px;
  cursor: pointer;
  user-select: none;
}

/* Emphasize top-level control items (Hide Name / Show All) */
.poi-picker-panel > .poi-picker-label-item {
  font-weight: bold;
}

/* Divider section below the global toggle */
.poi-picker-all-toggle {
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 8px;
}

/* Scrollable container for granular class filters */
.poi-picker-scroll-container {
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

/* Custom scrollbar track styling */
.poi-picker-scroll-container::-webkit-scrollbar {
  width: 5px;
}

.poi-picker-scroll-container::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 3px;
}