/* Shared styles for the SearchableDropdown component (assets/js/searchable-dropdown.js).
   Used by both the Lands (maps.html) and LRS (lrs.html) pages. */

.sdd { position: relative; width: 100%; }
.sdd-control {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  background: #fff;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 !important; /* defend against global .btn margin if it leaks */
  text-align: left;
  line-height: 1.4;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.sdd-control:hover { border-color: #90a4ae; }
.sdd.is-open .sdd-control,
.sdd-control:focus {
  outline: none;
  border-color: #1565c0;
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}
.sdd.is-disabled .sdd-control {
  background: #f5f7fa;
  color: #90a4ae;
  cursor: not-allowed;
}
.sdd-control::before,
.sdd-control::after { content: none !important; } /* neutralize global .btn pseudo */

.sdd-value {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sdd-caret {
  font-size: 11px;
  color: #607d8b;
  transition: transform .2s ease;
}
.sdd.is-open .sdd-caret { transform: rotate(180deg); }

.sdd-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid #e5e9ef;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}
.sdd-search-wrap {
  position: relative;
  padding: 8px;
  border-bottom: 1px solid #eef1f5;
}
.sdd-search-wrap i {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #90a4ae;
  font-size: 12px;
}
.sdd-search {
  width: 100%;
  padding: 7px 10px 7px 30px;
  font-size: 13px;
  border: 1px solid #e5e9ef;
  border-radius: 6px;
  outline: none;
}
.sdd-search:focus { border-color: #1565c0; }

.sdd-options {
  list-style: none;
  padding: 4px 0;
  margin: 0;
  max-height: 240px;
  overflow-y: auto;
}
.sdd-options li {
  padding: 8px 14px;
  font-size: 13.5px;
  color: #1f2937;
  cursor: pointer;
  transition: background .1s ease;
}
.sdd-options li:hover { background: #f5f7fa; }
.sdd-options li.is-selected { background: #e3f2fd; color: #0d47a1; font-weight: 600; }
.sdd-options li.sdd-opt-all { color: #1565c0; font-weight: 600; border-bottom: 1px dashed #eef1f5; }
.sdd-options li.sdd-empty {
  color: #90a4ae;
  font-style: italic;
  text-align: center;
  cursor: default;
}
.sdd-options li.sdd-empty:hover { background: transparent; }
