
/* ===== AddressBaza advanced search modal ===== */
#abAdvancedSearchModal{
  position:fixed;
  inset:0;
  z-index:99998;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  background:rgba(6,18,38,.58);
  backdrop-filter:blur(4px);
}
#abAdvancedSearchModal.show{display:flex}
.ab-adv-box{
  width:min(760px,100%);
  max-height:90vh;
  overflow:auto;
  background:#fff;
  border-radius:22px;
  padding:24px;
  box-shadow:0 30px 80px rgba(0,0,0,.25);
}
.ab-adv-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}
.ab-adv-head h2{
  margin:0;
  font-size:28px;
  color:#17233a;
}
.ab-adv-head p{
  margin:6px 0 0;
  color:#7b8799;
}
.ab-adv-close{
  width:40px;
  height:40px;
  border:1px solid #dfe6ef;
  border-radius:12px;
  background:#fff;
  font-size:24px;
  cursor:pointer;
}
.ab-adv-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.ab-adv-field label{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  font-weight:800;
  color:#66748a;
}
.ab-adv-field input,
.ab-adv-field select{
  width:100%;
  height:48px;
  border:1px solid #dce3ed;
  border-radius:11px;
  padding:0 12px;
  background:#fff;
  color:#17233a;
  font-size:15px;
  outline:none;
}
.ab-adv-checks{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-top:16px;
}
.ab-adv-check{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:48px;
  padding:10px 12px;
  border:1px solid #e1e7ef;
  border-radius:11px;
  background:#fafcff;
  cursor:pointer;
}
.ab-adv-check input{
  width:18px;
  height:18px;
}
.ab-adv-actions{
  display:flex;
  gap:10px;
  margin-top:20px;
}
.ab-adv-actions button{
  min-height:48px;
  border-radius:11px;
  padding:0 18px;
  font-weight:850;
  cursor:pointer;
}
#abAdvApply{
  flex:1;
  border:0;
  background:#1768ed;
  color:#fff;
}
#abAdvReset{
  border:1px solid #dfe6ef;
  background:#fff;
  color:#27354a;
}
@media(max-width:650px){
  .ab-adv-box{padding:18px}
  .ab-adv-head h2{font-size:23px}
  .ab-adv-grid{grid-template-columns:1fr}
  .ab-adv-checks{grid-template-columns:1fr}
  .ab-adv-actions{flex-direction:column}
}
