.ahg-fill-master {
  max-width: 1180px;
  margin: 2rem auto;
  padding: 1.25rem;
  border: 1px solid rgba(47, 111, 78, 0.18);
  border-radius: 1.5rem;
  background: #fffef8;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.07);
}

.ahg-fill-master__header h2 {
  margin: 0.25rem 0;
  color: #17351f;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.ahg-fill-master__header p {
  color: #64748b;
  line-height: 1.6;
}

.ahg-fill-master__count {
  display: inline-flex;
  margin-top: 0.6rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
  border: 1px solid #bbf7d0;
}

.ahg-fill-master__group {
  margin: 1rem 0;
}

.ahg-fill-master__group h3 {
  margin: 0 0 0.55rem;
  color: #17351f;
}

.ahg-fill-master__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ahg-fill-master button,
.ahg-fill-master input {
  border: 1px solid rgba(47, 111, 78, 0.24);
  border-radius: 999px;
  padding: 0.62rem 0.85rem;
  background: #fff;
  color: #14532d;
  font-weight: 800;
}

.ahg-fill-master button {
  cursor: pointer;
}

.ahg-fill-master button[aria-pressed="true"] {
  background: #2f6f4e;
  color: #fff;
}

.ahg-fill-master input {
  width: min(520px, 100%);
  border-radius: 1rem;
  margin-top: 0.35rem;
}

.ahg-fill-master__results {
  min-height: 0;
  margin-top: 1.3rem;
}

.ahg-fill-master__blank {
  display: none;
}

.ahg-fill-master__status {
  color: #64748b;
  font-weight: 700;
  margin: 1rem 0;
}

.ahg-fill-master__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(225px, 1fr));
  gap: 1rem;
}

.ahg-fill-master__card {
  border: 1px solid rgba(47, 111, 78, 0.16);
  border-radius: 1.1rem;
  padding: 0.85rem;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
}

.ahg-fill-master__card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.9rem;
  background: #f7f3ea;
}

.ahg-fill-master__badge {
  display: inline-flex;
  margin-top: 0.6rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 0.78rem;
  font-weight: 800;
}

.ahg-fill-master__badge--danger {
  background: #fee2e2;
  color: #991b1b;
}

.ahg-fill-master__badge--veg {
  background: #fef9c3;
  color: #854d0e;
}

.ahg-fill-master__badge--herb {
  background: #dcfce7;
  color: #166534;
}

.ahg-fill-master__card h3 {
  margin: 0.65rem 0 0.15rem;
  color: #17351f;
}

.ahg-fill-master__card small {
  color: #64748b;
}

.ahg-fill-master__card p {
  color: #475569;
  line-height: 1.45;
}

.ahg-fill-master__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.ahg-fill-master__tag {
  display: inline-flex;
  padding: 0.22rem 0.45rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.72rem;
}

.ahg-fill-master__empty {
  padding: 1rem;
  border-radius: 1rem;
  background: #f8fafc;
  color: #64748b;
  border: 1px dashed #cbd5e1;
}

.ahg-fill-master__clear {
  background: #f8fafc !important;
  color: #334155 !important;
}


/* Indoor / Outdoor location filter update */
.ahg-fill-master__location-group {
  padding: 1rem;
  border: 1px solid rgba(47, 111, 78, 0.14);
  border-radius: 1.15rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #fffef8 100%);
}

.ahg-fill-master__hint,
.ahg-fill-master__mini-counts {
  color: #64748b;
  font-weight: 700;
  margin: 0.25rem 0 0.7rem;
}

.ahg-fill-master__location-buttons button,
.ahg-fill-master__location-button {
  border-width: 2px;
  font-size: 0.98rem;
}

.ahg-fill-master__location-buttons button[aria-pressed="true"] {
  background: #14532d;
  color: #fff;
  box-shadow: 0 10px 22px rgba(20, 83, 45, 0.2);
}

.ahg-fill-master__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.ahg-fill-master__badge--location {
  background: #e0f2fe;
  color: #075985;
  border: 1px solid #bae6fd;
}

.ahg-fill-master__badge--fruit {
  background: #fff7ed;
  color: #9a3412;
}
