/* ---------- Base (desktop / large) ---------- */
.bls-wrap {
  position: relative;
  width: 100%;
  max-width: 520px;
}

.bls-inputrow {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  flex-wrap: nowrap; /* default: på store skærme i én række */
}

.bls-input {
  width: 100%;
  min-width: 0; /* vigtigt i flex så input kan shrinke */
  padding: 10px 14px;
  outline: none;
  border-bottom: 1px solid #000;
  border-top: none;
  border-left: none;
  border-right: none;
}

.bls-input:focus { border-color: #b5b5b5; }

.bls-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  background-color: #fab408;
  color: #000;
  transition: ease-in-out 300ms;
  flex: 0 0 auto;
}

.bls-btn:hover {
  color: #000 !important;
  transform: scale(1.01);
}

/* Dropdown */
.bls-dd {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  overflow: hidden;
  z-index: 9999;
}

.bls-dd-head {
  padding: 10px 12px;
  border-bottom: 1px solid #efefef;
  font-weight: 600;
  color: #444;
}

.bls-dd-body {
  max-height: min(360px, 60vh); /* bedre på mobile */
  overflow: auto;
}

.bls-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
}

.bls-item:hover { background: #f7f7f7; }

.bls-img {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  flex: 0 0 34px;
}

.bls-title { font-weight: 600; }

.bls-empty {
  padding: 12px;
  color: #666;
}



@media (max-width: 1024px) {
  .bls-inputrow {
    flex-wrap: wrap;
  }

  .bls-input {
    flex: 1 1 260px;
  }

  .bls-btn {
    flex: 0 0 auto;
  }
}


/* ---------- Tablet portrait / small tablet (typisk <= 768px) ---------- */
/* Her er det oftest pænest at stacke */
@media (max-width: 768px) {
  .bls-inputrow {
    flex-direction: column;
    align-items: stretch;
  }

  .bls-btn {
    width: 100%;
  }
}


/* ---------- Mobil (typisk <= 480px) ---------- */
/* Lidt tighter spacing + sikrer full width */
@media (max-width: 480px) {
  .bls-inputrow {
    gap: 10px;
  }

  .bls-input {
    padding: 12px 14px;
  }

  .bls-btn {
    padding: 12px 14px;
    width: 100%;
  }

  .bls-dd-body {
    max-height: min(320px, 55vh);
  }
}


/* ---------- Mobil landscape (lav højde) ---------- */
/* Når der er lav højde (typisk landscape), begræns dropdown-højde */
@media (max-height: 480px) {
  .bls-dd-body {
    max-height: min(240px, 50vh);
  }
}