/* ============================================================
   Trio Tour — Arama Formu & Autocomplete
   /assets/css/search-engine.css
   ============================================================ */

/* ── Form wrapper ── */
.search-form-modern {
  position: relative;
}

/* ── Fields grid: 2 alan + buton ── */
.search-fields-grid {
  display: grid;
  grid-template-columns: 1fr 220px auto;
  gap: 0;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--sh-md);
  overflow: visible;
  align-items: stretch;
}
@media (max-width: 767px) {
  .search-fields-grid {
    grid-template-columns: 1fr;
    border-radius: var(--r-lg);
    gap: 0;
  }
}

/* ── Tek alan ── */
.search-field {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem 1.25rem;
  position: relative;
  border-right: 1px solid var(--border);
}
.search-field:last-child { border-right: none; }

@media (max-width: 767px) {
  .search-field {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .search-field:last-child { border-bottom: none; }
}

/* ── Alan ikonu ── */
.field-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--p-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--p); font-size: .95rem;
}

/* ── Label + input ── */
.field-content { display: flex; flex-direction: column; gap: .1rem; flex: 1; min-width: 0; }
.field-label   { font-size: .65rem; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; }
.field-input   {
  border: none; outline: none; background: transparent;
  font-family: var(--font); font-size: .92rem; font-weight: 600; color: var(--dark);
  padding: 0; width: 100%;
}
.field-input::placeholder { color: var(--text3); font-weight: 400; }
.field-input option        { font-weight: 500; }

/* select sıfırla */
select.field-input {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  cursor: pointer;
}

/* ── Arama butonu ── */
.search-button-field {
  padding: .55rem .65rem;
  border-right: none;
}
.btn-search-main {
  display: flex; align-items: center; gap: .45rem;
  height: 100%; padding: .65rem 1.5rem;
  border-radius: calc(var(--r-xl) - 6px);
  background: linear-gradient(135deg, var(--p) 0%, var(--p-dk) 100%);
  color: #fff; border: none; cursor: pointer;
  font-family: var(--font); font-size: .92rem; font-weight: 800;
  white-space: nowrap;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(26,86,219,.35);
}
.btn-search-main:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(26,86,219,.45); }
.btn-search-main:active { transform: translateY(0); }

@media (max-width: 767px) {
  .search-button-field  { padding: .75rem 1.25rem; }
  .btn-search-main      { width: 100%; justify-content: center; border-radius: var(--r-lg); height: auto; padding: .82rem; }
}

/* ══ AUTOCOMPLETE DROPDOWN ══ */
.gt-autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  z-index: 900;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.gt-autocomplete-dropdown::-webkit-scrollbar { width: 5px; }
.gt-autocomplete-dropdown::-webkit-scrollbar-track { background: transparent; }
.gt-autocomplete-dropdown::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }

/* Grup başlığı */
.gt-ac-group {
  display: flex; align-items: center; gap: .4rem;
  padding: .55rem 1rem .35rem;
  font-size: .6rem; font-weight: 800; letter-spacing: .7px;
  color: var(--text3); text-transform: uppercase;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.gt-ac-group:first-child { border-top: none; }
.gt-ac-group i { color: var(--p); font-size: .72rem; }

/* Sonuç satırı */
.gt-ac-item {
  display: flex; align-items: center;
  padding: .65rem 1rem;
  text-decoration: none;
  transition: background .12s;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.gt-ac-item:last-child  { border-bottom: none; }
.gt-ac-item:hover,
.gt-ac-item.hover       { background: var(--p-bg); }

.gt-ac-title {
  font-size: .875rem; font-weight: 600; color: var(--dark);
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.gt-ac-item:hover .gt-ac-title,
.gt-ac-item.hover .gt-ac-title { color: var(--p); }

/* Boş durum */
.gt-ac-empty {
  padding: 1.25rem 1rem; text-align: center;
  font-size: .84rem; color: var(--text3);
  display: flex; align-items: center; justify-content: center; gap: .45rem;
}
