/*
 * Ana Sayfa Düzenleyici > Resmî Kurum Ara
 * Eski kompakt görünümü masaüstü / tablet / mobilde geri yükler.
 * Yalnız bu modülü kapsar; modülün seçilmiş yüzey/kart ayarına dokunmaz.
 */

/* Modül kabuğu eski davranışını korur; dış kart/yüzey parent .sp-hb-cell tarafından yönetilir. */
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search{
  display:block!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}

/* Eski kompakt modül başlığı: global büyük başlık/çizgi katmanından bağımsız. */
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search > .sp21-section-head{
  position:static!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  width:auto!important;
  min-height:0!important;
  margin:0 0 7px!important;
  padding:0!important;
  border:0!important;
  border-bottom:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  overflow:visible!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search > .sp21-section-head::before,
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search > .sp21-section-head::after{
  content:none!important;
  display:none!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search > .sp21-section-head > div{
  display:block!important;
  min-width:0!important;
  margin:0!important;
  padding:0!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search > .sp21-section-head h2{
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--sp-text,#172033)!important;
  font-family:inherit!important;
  font-size:18px!important;
  font-style:normal!important;
  font-weight:850!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

/* 1.0.21 masaüstü yerleşimi: arama + grup + yer + Ara tek satır. */
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form{
  display:grid!important;
  grid-template-columns:minmax(280px,2fr) minmax(190px,1fr) minmax(170px,.9fr) auto!important;
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
}

html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-query{
  position:relative!important;
  display:flex!important;
  align-items:center!important;
  min-width:0!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form input,
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form select,
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form button{
  box-sizing:border-box!important;
  min-width:0!important;
  min-height:46px!important;
  height:46px!important;
  margin:0!important;
  border:1px solid var(--sp-border,#d8dee8)!important;
  border-radius:10px!important;
  background:var(--sp-surface,#fff)!important;
  box-shadow:none!important;
  color:var(--sp-text,#172033)!important;
  font-family:inherit!important;
  font-size:14px!important;
  font-style:normal!important;
  font-weight:400!important;
  line-height:1.2!important;
  letter-spacing:0!important;
  text-transform:none!important;
}

html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-query .dashicons{
  position:absolute!important;
  left:12px!important;
  top:50%!important;
  z-index:2!important;
  width:20px!important;
  height:20px!important;
  margin:0!important;
  color:var(--sp-muted,#697586)!important;
  font-size:20px!important;
  line-height:20px!important;
  transform:translateY(-50%)!important;
  pointer-events:none!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-query input{
  width:100%!important;
  padding:0 12px 0 40px!important;
  outline:0!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form select{
  width:100%!important;
  padding:0 34px 0 12px!important;
  cursor:pointer!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form button{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:7px!important;
  width:auto!important;
  padding:0 18px!important;
  border-color:var(--sp-primary,#a51d31)!important;
  background:var(--sp-primary,#a51d31)!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:700!important;
  cursor:pointer!important;
  white-space:nowrap!important;
  -webkit-appearance:none!important;
  appearance:none!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form button .dashicons{
  position:static!important;
  width:18px!important;
  height:18px!important;
  margin:0!important;
  color:#fff!important;
  font-size:18px!important;
  line-height:18px!important;
  transform:none!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form input:focus,
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form select:focus{
  border-color:var(--sp-primary,#a51d31)!important;
  outline:0!important;
}

html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-all{
  display:inline-block!important;
  margin:10px 0 0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--sp-primary,#a51d31)!important;
  font-family:inherit!important;
  font-size:13px!important;
  font-weight:700!important;
  line-height:1.35!important;
  text-decoration:none!important;
}
html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-all:hover{
  text-decoration:underline!important;
}

/* Tablet — arama tam satır, iki filtre yan yana, Ara tam satır. */
@media(max-width:900px){
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  }
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-query{
    grid-column:1/-1!important;
  }
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form button{
    grid-column:1/-1!important;
    width:100%!important;
  }
}

/* Mobil — eski tek sütun düzeni. */
@media(max-width:600px){
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search > .sp21-section-head{
    margin-bottom:7px!important;
  }
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search > .sp21-section-head h2{
    font-size:16px!important;
  }
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form{
    grid-template-columns:minmax(0,1fr)!important;
    gap:8px!important;
  }
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-query,
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form button{
    grid-column:auto!important;
  }
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form input,
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form select{
    font-size:16px!important;
  }
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-form button{
    width:100%!important;
    font-size:13px!important;
  }
  html body:not(.wp-admin) .sp-hb-home .sp-hb-official-search .sp-hb-official-search-all{
    margin-top:9px!important;
    font-size:12px!important;
  }
}
