/* css/field-filter.css — Section filter pill bar (shared by map-view + presentation-viewer) */

.field-filter-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 6px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  border-bottom: 1px solid #eee;
  background: rgba(250, 251, 252, 0.95);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

/* In map-view: inline at the bottom alongside search drawer handle */
#map-wrapper > .field-filter-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2300;
  border-top: none;
  border-bottom: none;
  background: transparent;
  padding: 8px 8px 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
#map-wrapper > .field-filter-bar .field-pill {
  pointer-events: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
}
.field-filter-bar::-webkit-scrollbar { display: none; }

.field-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border: 1.5px solid #dee2e6;
  border-radius: 20px;
  background: #fff;
  color: #495057;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  flex-shrink: 0;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
}
.field-pill:hover {
  border-color: #adb5bd;
  background: #f0f4ff;
}
.field-pill.active {
  background: var(--menu-color, #0d6efd);
  color: #fff;
  border-color: var(--menu-color, #0d6efd);
}
.field-pill.active .field-pill-dot {
  border-color: #fff;
}

.field-pill-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.12);
  flex-shrink: 0;
}

.field-pill-here {
  border-style: dashed;
}
.field-pill-here.active {
  border-style: solid;
}

.field-pill-count {
  font-size: 0.7rem;
  font-weight: 600;
  color: #868e96;
  margin-left: 1px;
}
.field-pill.active .field-pill-count {
  color: rgba(255,255,255,.75);
}

/* Mobile: taller touch targets */
@media (max-width: 768px) {
  .field-filter-bar {
    padding: 5px 8px;
    gap: 5px;
  }
  .field-pill {
    padding: 7px 14px;
    font-size: 0.82rem;
  }
}
