/* Supplementary styles for the search widget upgrade (autocomplete,
   calendar). Kept separate from style.css (a purged Tailwind build from
   the static site) rather than hand-editing purged/minified output --
   these are new component classes with no Tailwind utility equivalent
   worth fighting the build pipeline for. */

.ac-wrap { position: relative; }

.ac-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e3e1db;
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(23, 49, 104, 0.16);
  z-index: 40;
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
}

.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.88rem;
}

.ac-item:hover,
.ac-item.active {
  background: #eef4fd;
}

.ac-code-badge {
  flex-shrink: 0;
  background: #1a73e8;
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 3px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.ac-main { color: #1a1a1a; line-height: 1.3; }
.ac-main small { color: #8a8f98; }

.ac-logo { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.ac-logo-placeholder { width: 20px; height: 20px; flex-shrink: 0; }
.ac-code { margin-left: auto; color: #8a8f98; font-size: 0.78rem; }

/* Top-level Flights / Hotels / Flight+Hotel tabs -- deliberately an
   underline style, NOT filled pills like .btn-tab below it. Stacking two
   rows of filled pill-buttons directly on top of each other reads as
   visually competing/noisy; giving each tab level its own distinct
   language (underline here, pill for trip-type) makes the hierarchy
   between "which product" and "which trip type" actually legible. */
.aw-widget-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e3e1db;
}

.aw-widget-tab {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: #5c6470;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 16px 12px;
  margin-bottom: -1px;
  cursor: pointer;
}

.aw-widget-tab:hover { color: #1a73e8; }

.aw-widget-tab.active {
  color: #1a73e8;
  border-bottom-color: #1a73e8;
}

/* Traveller summary text was wrapping to two lines and looking cramped
   next to the single-line date fields either side of it. */
#travelerSummary {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.92rem;
}

/* Flatpickr brand theme */
.flatpickr-calendar {
  box-shadow: 0 12px 28px rgba(23, 49, 104, 0.16) !important;
  border-radius: 12px !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
  background: #1a73e8 !important;
  border-color: #1a73e8 !important;
}
.flatpickr-day.inRange {
  background: #eef4fd !important;
  border-color: #eef4fd !important;
  box-shadow: -5px 0 0 #eef4fd, 5px 0 0 #eef4fd !important;
}
.flatpickr-day.today {
  border-color: #ffd400 !important;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
span.flatpickr-weekday {
  color: #173168 !important;
}
.flatpickr-day.selected.today {
  border-color: #1a73e8 !important;
}
