/* ==============================================
   HERO SEARCH WIDGET — hero-search.css
   Floating tabbed search bar that overlaps the
   bottom edge of the hero slider on the front page.
   Enqueue via: wp_enqueue_style() — front page only.
   ============================================== */

#hero-search-widget {
  position: relative;
  z-index: 20;
  width: 100%;
}

#hero-search-widget .container {
  display: flex;
  justify-content: center;
}

.hs-panel {
  width: 100%;
  max-width: 980px;
  margin-top: -38px;           /* pulls the panel up to overlap the hero */
  background: var(--ts-white, #fff);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(13, 47, 110, 0.18);
  overflow: hidden;
}

/* ---------- Tabs ---------- */
.hs-tabs {
  display: flex;
  background: #f3f5f8;
  border-bottom: 1px solid #e9ecef;
}

.hs-tab {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--ts-blue, #0d2f6e);
  font-family: 'Montserrat', 'Oswald', sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 16px 12px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.hs-tab:hover {
  background: rgba(13, 47, 110, 0.06);
}

.hs-tab.is-active {
  background: var(--ts-blue, #0d2f6e);
  color: #fff;
}

/* ---------- Fields row ---------- */
.hs-fields {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 26px;
}

.hs-fields[hidden] {
  display: none;
}

.hs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  flex: 1 1 150px;
}

.hs-field--grow {
  flex: 2 1 220px;
}

.hs-field label {
  font-family: 'Nunito Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #8a94a6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hs-field select,
.hs-field input[type="date"] {
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: var(--ts-blue, #0d2f6e);
  background: #fff;
}

.hs-field select:focus,
.hs-field input[type="date"]:focus {
  outline: 2px solid var(--ts-gold, #f5a623);
  outline-offset: 1px;
}

/* ---------- Search button ---------- */
.hs-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ts-blue, #0d2f6e);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  padding: 12px 26px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.hs-search-btn:hover {
  background: var(--ts-gold-dark, #d4880c);
  color: #fff;
}

/* ---------- Placeholder panels (Flights / Hotels / Visa) ---------- */
.hs-fields--placeholder {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hs-fields--placeholder p {
  margin: 0;
  font-family: 'Nunito Sans', sans-serif;
  font-size: 14px;
  color: #5b6474;
  flex: 1 1 320px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .hs-panel { margin-top: -24px; border-radius: 12px; }
  .hs-tab { font-size: 12px; padding: 14px 6px; }
  .hs-tab span, .hs-tab i { font-size: 12px; }
  .hs-fields { padding: 18px; gap: 14px; }
  .hs-field { flex: 1 1 100%; }
  .hs-search-btn { width: 100%; }
  .hs-fields--placeholder { flex-direction: column; align-items: stretch; text-align: center; }
}
