/* Bin Finder */
.ebb-bf {
  --bf-green: #6CC72B;
  --bf-green-dark: #4E9A1A;
  --bf-navy: #000F9F;
  --bf-text: #1F2A37;
  --bf-muted: #6B7280;
  --bf-line: #E5E7EB;
  font-family: "Open Sans", sans-serif;
  color: var(--bf-text);
}

.ebb-bf__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.ebb-bf__search { flex: 1 1 320px; }
.ebb-bf__region { flex: 0 1 240px; }
.ebb-bf__search input,
.ebb-bf__region select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #D1D5DB;
  border-radius: 999px;
  background: #fff;
  font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--bf-text);
}
.ebb-bf__search input:focus,
.ebb-bf__region select:focus {
  outline: none;
  border-color: var(--bf-navy);
  box-shadow: 0 0 0 3px rgba(0, 15, 159, .15);
}
.ebb-bf__near {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bf-navy);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.ebb-bf__near:hover,
.ebb-bf__near:focus-visible { background: var(--bf-green-dark); color: #fff; }
.ebb-bf__near.is-on { background: var(--bf-green-dark); }
.ebb-bf__near:disabled { opacity: .6; cursor: wait; }

.ebb-bf__status {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--bf-muted);
}

.ebb-bf__body {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: 16px;
  height: 620px;
}
.ebb-bf__body > * { min-width: 0; }
.ebb-bf__map {
  height: 100%;
  border-radius: 12px;
  border: 1px solid var(--bf-line);
  z-index: 0;
}
.ebb-bf__list {
  height: 100%;
  margin: 0;
  padding: 0 6px 0 0;
  list-style: none;
  overflow-y: auto;
}

.ebb-bf__item {
  margin: 0 0 10px;
  padding: 14px 16px;
  border: 1px solid var(--bf-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ebb-bf__item.is-active {
  border-color: var(--bf-green);
  box-shadow: 0 0 0 2px rgba(108, 199, 43, .35);
}
.ebb-bf__item-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  font: inherit;
  white-space: normal; /* theme buttons are nowrap — long names would widen the card */
  cursor: pointer;
}
.ebb-bf__item-main:hover,
.ebb-bf__item-main:focus { background: none; color: inherit; }
.ebb-bf__item-main:hover .ebb-bf__name { color: var(--bf-navy); text-decoration: underline; }
.ebb-bf__name,
.ebb-bf__popup strong {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  color: var(--bf-text);
}
.ebb-bf__place {
  font-size: 14px;
  color: var(--bf-muted);
}
.ebb-bf__distance {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--bf-green-dark);
}
.ebb-bf__type {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #EEF6E7;
  color: var(--bf-green-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.ebb-bf__detail {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #4B5563;
}

.ebb-bf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.ebb-bf__btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}
body .ebb-bf__btn--directions {
  border: 1px solid var(--bf-navy);
  color: var(--bf-navy);
}
body .ebb-bf__btn--directions:hover { background: var(--bf-navy); color: #fff; }
body .ebb-bf__btn--report {
  background: #25D366;
  color: #fff;
}
body .ebb-bf__btn--report:hover { background: #1DA851; color: #fff; }

.ebb-bf__empty {
  padding: 24px 16px;
  border: 1px dashed #D1D5DB;
  border-radius: 12px;
  color: var(--bf-muted);
  text-align: center;
}

/* Map markers & popups */
.ebb-bf-pin { background: none; border: 0; }
.ebb-bf-cluster {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(108, 199, 43, .3);
}
.ebb-bf-cluster span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bf-green, #6CC72B);
  color: #fff;
  font: 700 13px "Montserrat", sans-serif;
}
.ebb-bf__popup {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-family: "Open Sans", sans-serif;
}
.ebb-bf .leaflet-popup-content { margin: 14px 16px; }

/* Phones & tablets: map on top, list below (page scrolls) */
@media (max-width: 900px) {
  .ebb-bf__body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .ebb-bf__map {
    order: -1;
    height: 50vh;
    min-height: 300px;
  }
  .ebb-bf__list {
    height: auto;
    overflow: visible;
    padding: 0;
  }
  .ebb-bf__region { flex: 1 1 160px; }
  .ebb-bf__near { flex: 1 1 120px; }
}
