/* ============================================================
   Shared SearchBar Styles
   Applied globally so all searchBar components look identical.
   ============================================================ */

/* ── Outer wrapper (added in Hero1.vue Transition) ──────────── */
.searchbar-wrapper {
  width: 100%;
}

/* ── hero__filter: the full-width row containing the white card ─
   Capped at 1250px; centering is left to the parent row's
   justify-content (margin:auto fights Bootstrap's .row gutter
   math since .hero__filter also carries the .row class). ──────── */
.hero__filter {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 1250px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  height: auto !important;
  padding: 0 0 20px;
}

/* ── White card ── also self-centers, since some searchBar
   components (excursion/transfer/flight) use this as their root
   instead of being wrapped in .hero__filter. ───────────────────── */
.searchForm.-type-1 {
  position: static !important;
  transform: none !important;
  width: 100% !important;
  max-width: 1250px !important;
  margin-left: auto;
  margin-right: auto;
  border-radius: 100px;
  overflow: visible;
  padding: 0;
}

/* ── Inner flex row ─────────────────────────────────────────── */
.searchForm__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 6px 20px 6px 0;
}

/* ── Each field column ──────────────────────────────────────── */
.searchFormItem {
  position: relative;
}

/* ── Clickable button in each field ────────────────────────── */
.searchFormItem__button {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  cursor: pointer;
  width: 100%;
  min-height: 62px;
}

.searchFormItem__content {
  flex: 1;
  overflow: hidden;
}

.searchFormItem__content .js-select-control-chosen {
  font-size: 11px !important;
  color: #888;
  margin-bottom: 4px !important;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.searchFormItem__content h5 {
  font-size: 13px !important;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Vertical separator ─────────────────────────────────────── */
.searchLine {
  width: 1px;
  height: 50px;
  background-color: #ddd;
  flex-shrink: 0;
  margin-right: 10px;
}

/* ── Dropdown overlay ───────────────────────────────────────── */
.searchFormItem__dropdown {
  position: absolute;
  width: 320px;
  max-width: calc(100vw - 30px);
  padding: 16px;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  z-index: 300;
  margin-top: 6px;
}

/* ── Search / Zoeken button ─────────────────────────────────── */
.searchForm__button {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Guest counter ──────────────────────────────────────────── */
.counter-btn {
  width: 32px;
  height: 32px;
  border: 1px solid #ddd;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.counter-btn:hover:not(:disabled) {
  background: #f8f9fa;
  border-color: #bbb;
}
.counter-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.counter-value {
  min-width: 36px;
  text-align: center;
  font-weight: 500;
  font-size: 15px;
}

.guest-row {
  border-bottom: 1px solid #f0f0f0;
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.guest-row:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
}

/* ── Airport / Area dropdown internals ─────────────────────── */
.airport-dd {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.airport-dd__search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #eee;
  border-radius: 8px;
  outline: none;
  font-size: 14px;
}
.airport-dd__list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid #f3f3f3;
  border-radius: 8px;
}
.airport-dd__item {
  display: flex;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  align-items: center;
  transition: background 0.2s;
}
.airport-dd__item:hover {
  background: #f8f9fa;
}
.airport-dd__code {
  font-weight: 700;
  min-width: 44px;
  text-align: center;
  background: #f0f2f5;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 13px;
}
.airport-dd__meta {
  line-height: 1.3;
  overflow: hidden;
}
.airport-dd__name {
  font-weight: 600;
  font-size: 13px;
}
.airport-dd__city {
  font-size: 12px;
  color: #6b7280;
}
.airport-dd__group-label {
  padding: 8px 12px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #9ca3af;
}
.airport-dd__empty {
  padding: 14px;
  text-align: center;
  color: #6b7280;
  font-size: 13px;
}

/* ── Error message ──────────────────────────────────────────── */
.error-message {
  color: #e63b3b;
  font-size: 11px;
  margin-top: 3px;
  font-weight: 400;
}

/* ── Date display ───────────────────────────────────────────── */
.date-display {
  font-size: 12px;
  color: #1f2937;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS — identical for all searchBars
   ═══════════════════════════════════════════════════════════════ */

/* ── ≤ 1280px: remove hardcoded widths if any ─────────────── */
@media (max-width: 1280px) {
  .hero__filter {
    padding: 0 0 20px;
  }
  .searchForm.-type-1 {
    border-radius: 24px !important;
  }
}

/* ── ≤ 991px: tablet landscape ─────────────────────────────── */
@media (max-width: 991px) {
  .searchLine {
    display: none !important;
  }
  .searchForm.-type-1 {
    border-radius: 20px !important;
  }
  .searchForm__form {
    padding: 4px 10px;
  }
  .searchFormItem__dropdown {
    width: min(340px, calc(100vw - 24px));
  }
}

/* ── ≤ 767px: tablet portrait ──────────────────────────────── */
@media (max-width: 767px) {
  .hero__filter {
    padding: 0 0 16px;
  }
  .searchForm.-type-1 {
    border-radius: 16px !important;
  }
  .searchFormItem {
    position: relative;
  }
  .searchFormItem__button {
    padding: 10px 14px;
    min-height: 52px;
  }
  .searchFormItem__dropdown {
    position: absolute;
    width: calc(100vw - 40px);
    max-width: 420px;
    left: 0;
    top: 100%;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.13);
    z-index: 300;
  }
  /* Reizigers/guests panel doesn't need the full-width treatment */
  .searchFormItem__dropdown--guests {
    width: 75vw;
    max-width: 320px;
  }
  /* When the guests field sits in the right column of the 2-up mobile grid,
     anchor the panel to the right so it doesn't overflow past the card. */
  .searchFormItem__dropdown--guests-right {
    left: auto;
    right: 0;
  }
  .searchForm__form {
    justify-content: flex-start !important;
    padding: 2px 6px;
  }
  .searchForm__button {
    justify-content: stretch !important;
    padding: 4px 14px 10px;
  }
  .searchForm__button .button {
    width: 100%;
    border-radius: 12px !important;
    height: 46px;
    font-size: 15px;
  }
}

/* ── ≤ 575px: mobile ────────────────────────────────────────── */
@media (max-width: 575px) {
  .searchForm.-type-1 {
    border-radius: 14px !important;
  }
  .searchFormItem__dropdown {
    width: calc(100vw - 20px);
    max-width: none;
    left: 0;
    border-radius: 12px;
    padding: 12px;
  }
  .searchFormItem__dropdown--guests {
    width: 75vw;
    max-width: 280px;
  }
  .searchFormItem__dropdown--guests-right {
    left: auto;
    right: 0;
  }
  .searchFormItem__button {
    padding: 10px 12px;
    min-height: 50px;
  }
  .searchForm__button {
    padding: 4px 12px 12px;
  }
  .searchForm__button .button {
    width: 100%;
    border-radius: 10px !important;
    height: 46px;
    font-size: 14px;
  }
}

/* ── ≤ 360px: very small ────────────────────────────────────── */
@media (max-width: 360px) {
  .searchFormItem__dropdown {
    width: calc(100vw - 12px);
    border-radius: 10px;
    padding: 10px;
  }
  .searchFormItem__dropdown--guests {
    width: 75vw;
    max-width: 260px;
  }
  .searchFormItem__dropdown--guests-right {
    left: auto;
    right: 0;
  }
  .counter-btn {
    width: 30px;
    height: 30px;
  }
  .counter-value {
    min-width: 26px;
  }
}
