/* ============================================================
   Axtarışlı seçim (combobox)
   Adi <select>-i əvəz edir, dəyəri yenə select-də qalır.
   ============================================================ */
.combo{position:relative;width:100%}
.combo-btn{
  width:100%;min-height:46px;padding:10px 38px 10px 14px;border:1px solid var(--line);
  border-radius:var(--r);background:var(--surface);color:var(--text);font:inherit;font-size:16px;
  text-align:left;cursor:pointer;position:relative;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.combo-btn:focus-visible{outline:2px solid var(--brand);outline-offset:1px}
.combo-btn[aria-expanded="true"]{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-lt)}
.combo-btn.empty{color:var(--text-3)}
.combo-btn::after{
  content:'';position:absolute;right:14px;top:50%;width:9px;height:9px;margin-top:-6px;
  border-right:2px solid var(--text-3);border-bottom:2px solid var(--text-3);
  transform:rotate(45deg);
}
.combo-btn.sm{min-height:42px;font-size:14px;padding:6px 30px 6px 10px;border-radius:var(--r-sm)}
.combo-btn.sm::after{right:10px;width:7px;height:7px}

/* ---- açılan panel ---- */
.combo-pop{
  position:absolute;z-index:120;left:0;right:0;top:calc(100% + 5px);
  background:var(--surface);border:1px solid var(--line);border-radius:var(--r);
  box-shadow:var(--sh-3);overflow:hidden;display:flex;flex-direction:column;max-height:min(380px,60vh);
}
.combo-search{
  padding:9px;border-bottom:1px solid var(--line-2);background:var(--surface);flex:0 0 auto;
}
.combo-search input{
  width:100%;min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:var(--r-sm);
  background:var(--surface-2);font:inherit;font-size:16px;color:var(--text);outline:none;
}
.combo-search input:focus{border-color:var(--brand);background:var(--surface)}
.combo-list{overflow-y:auto;-webkit-overflow-scrolling:touch;flex:1;padding:4px 0}
.combo-opt{
  display:flex;align-items:center;gap:9px;width:100%;padding:11px 14px;border:0;background:transparent;
  font:inherit;font-size:15px;color:var(--text);text-align:left;cursor:pointer;
}
.combo-opt:hover,.combo-opt.cursor{background:var(--surface-2)}
.combo-opt[aria-selected="true"]{background:var(--brand-lt);color:var(--brand-dk);font-weight:650}
.combo-opt .tick{width:14px;flex:0 0 14px;color:var(--brand);font-size:13px}
.combo-opt .lbl{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.combo-opt .sub{font-size:12px;color:var(--text-3)}
.combo-empty{padding:18px 14px;text-align:center;color:var(--text-3);font-size:14px}
.combo-new{
  flex:0 0 auto;border-top:1px solid var(--line-2);padding:10px;background:var(--surface-2);
}
.combo-new button{
  width:100%;min-height:42px;border:1px dashed var(--brand);background:transparent;color:var(--brand-dk);
  border-radius:var(--r-sm);font:inherit;font-weight:650;font-size:14px;cursor:pointer;
}
.combo-new button:active{background:var(--brand-lt)}

/* ---- mobil: aşağıdan açılan tam vərəq ---- */
@media(max-width:719px){
  .combo-pop{
    position:fixed;left:0;right:0;bottom:0;top:auto;
    border-radius:var(--r-xl) var(--r-xl) 0 0;max-height:82vh;
    padding-bottom:var(--safe-b);border-left:0;border-right:0;border-bottom:0;
    animation:comboUp .22s cubic-bezier(.32,.72,0,1);
  }
  .combo-opt{padding:14px}
}
@keyframes comboUp{from{transform:translateY(100%)}to{transform:none}}
.combo-veil{position:fixed;inset:0;background:rgba(16,24,40,.35);z-index:119}
@media(min-width:720px){ .combo-veil{background:transparent} }
@media(prefers-reduced-motion:reduce){ .combo-pop{animation:none} }
