/* Map container */
#at-map {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  margin-bottom: 16px;
}

/* Controls layout */
.at-map-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0;
}

/* Filter groups as columns */
.at-filter-group {
  border: none;
  padding: 8px 10px;
  margin: 0;
  border-radius: 6px;
  background: #fafafa;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 12px;
}
.at-filter-group.small {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.at-filter-group legend {
  font-weight: 600;
  margin-bottom: 4px;
  grid-column: 1 / -1;
}

.at-filter-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: normal;
  line-height: 1.3;
}

/* Reset + counter row */
.at-controls-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.at-filter-reset {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  cursor: pointer;
}

.at-map-count {
  font-weight: 600;
  color: #222;
  background: #eee;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 0.9rem;
}

.at-map-empty {
  margin: 8px 0;
  color: #666;
}

/* Legend styling */
.at-map-legend {
  background: rgba(255,255,255,0.9);
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.4;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
.at-map-legend img {
  vertical-align: middle;
  margin-right: 4px;
}
.at-map-legend strong {
  display: block;
  margin-bottom: 4px;
}
.at-map-legend hr {
  border: none;
  border-top: 1px solid #ddd;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
  .at-filter-group { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .at-filter-group { grid-template-columns: 1fr; }
}
