/* ═══════════════════════════════════════
   SEARCHABLE DROPDOWN (Country + Category)
═══════════════════════════════════════ */
.sdd-wrap { position: relative; }

.sdd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 400;
  color: #212529;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
  line-height: 1.5;
  height: 38px;
  max-width: 46vw;
}
.sdd-label { overflow: hidden; text-overflow: ellipsis; }
.sdd-btn:hover { background: #e2e6ea; border-color: #adb5bd; }
.sdd-wrap.open .sdd-btn { border-color: #198754; box-shadow: 0 0 0 3px rgba(25,135,84,.15); }
.sdd-arrow { font-size: 11px; color: #666; margin-left: 2px; }

/* When a filter is chosen: green button + ✕ to clear it */
.sdd-wrap.has-value .sdd-btn {
  background: #f0faf5;
  border-color: #198754;
  color: #146c43;
  font-weight: 600;
  padding-right: 36px;          /* room for the ✕ */
}
.sdd-wrap.has-value .sdd-arrow { display: none; }
.sdd-clear {
  display: none;
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.sdd-clear:hover { background: #146c43; }
.sdd-wrap.has-value .sdd-clear { display: flex; }

.sdd-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  max-width: 90vw;
  background: #fff;
  border: 1.5px solid #ced4da;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,.13);
  z-index: 1050;
  overflow: hidden;
}
.sdd-align-right .sdd-dropdown { left: auto; right: 0; }
.sdd-wrap.open .sdd-dropdown { display: block; }

.sdd-search-row { padding: 8px 10px 6px; border-bottom: 1px solid #f0f0f0; }
.sdd-search-input {
  width: 100%;
  border: 1.5px solid #ced4da;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 16px; /* 16px stops iPhone from zooming in on tap */
  outline: none;
  transition: border-color .18s;
}
.sdd-search-input:focus { border-color: #198754; }

.sdd-list {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
}
.sdd-list li {
  padding: 8px 14px;
  font-size: .85rem;
  cursor: pointer;
  color: #212529;
  transition: background .1s;
}
.sdd-list li:hover { background: #f0faf5; color: #198754; }
.sdd-list li.sdd-no-results { color: #aaa; cursor: default; font-style: italic; }
.sdd-list li.sdd-selected { background: #e6f4ec; color: #198754; font-weight: 700; }
.sdd-list li.sdd-selected::after { content: " ✓"; }
.sdd-list li mark { background: none; color: #198754; font-weight: 700; padding: 0; }

/* ═══════════════════════════════════════
   INFINITE SCROLL LOADER
═══════════════════════════════════════ */
.scroll-sentinel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60px;
  padding: 16px 0;
}
.scroll-end-note {
  font-size: .82rem;
  color: #999;
}
