/* Destination / Origin Popover Component (100% Dynamic from Hot Suggest) */
.destination-picker-popover {
  width: 340px;
  position: absolute;
  left: 24px;
  top: 124px;
  z-index: 9999 !important;
  display: none;
  animation: destFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.destination-picker-popover.is-open {
  display: block !important;
}

@keyframes destFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dest-popover-card {
  width: 100%;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.2), 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  box-sizing: border-box;
}

/* Destination Search Input Header */
.dest-search-header {
  padding: 10px 12px;
  background: #ffffff;
  border-bottom: 1px solid #eef2f6;
  position: sticky;
  top: 0;
  z-index: 10;
}

.dest-search-box {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  padding: 0 10px;
  height: 38px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.dest-search-box:focus-within {
  background: #ffffff;
  border-color: #2649aa;
  box-shadow: 0 0 0 3px rgba(38, 73, 170, 0.12);
}

.dest-search-icon {
  color: #64748b;
  flex-shrink: 0;
  margin-right: 8px;
  pointer-events: none;
}

.dest-search-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #1e293b;
  padding: 0;
  line-height: normal;
  width: 100%;
}

.dest-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.dest-search-clear {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #64748b;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  margin-left: 6px;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}

.dest-search-clear:hover {
  background: #cbd5e1;
  color: #1e293b;
}

.dest-popover-scroll {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
}

/* Custom Scrollbar matching user's screenshot */
.dest-popover-scroll::-webkit-scrollbar {
  width: 6px;
}

.dest-popover-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.dest-popover-scroll::-webkit-scrollbar-thumb {
  background-color: #00247d;
  border-radius: 4px;
}

.dest-popover-scroll::-webkit-scrollbar-thumb:hover {
  background-color: #1a3b8b;
}

/* Group container */
.dest-group {
  margin: 0;
  padding: 0;
}

/* Group Header - Solid dark navy blue banner */
.dest-group-header {
  background-color: #00247d;
  color: #ffffff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  padding: 8px 16px;
  position: sticky;
  top: 0;
  z-index: 2;
  user-select: none;
}

/* Airport list */
.dest-group-list {
  display: flex;
  flex-direction: column;
}

/* Individual Airport Item Row */
.dest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  cursor: pointer;
  background: #ffffff;
  border-bottom: 1px solid #f2f3f5;
  transition: background-color 0.15s ease;
  user-select: none;
}

.dest-item:last-child {
  border-bottom: none;
}

.dest-item:hover {
  background-color: #f0f4ff;
}

.dest-item:hover .dest-item-city {
  color: #2649aa;
}

.dest-item.is-selected {
  background-color: #edf2fc;
}

.dest-item.is-selected .dest-item-city {
  color: #2649aa;
  font-weight: 600;
}

.dest-item-city {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.3;
  color: #222222;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 12px;
}

.dest-item-code {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #2649aa;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Keyboard selection / highlight state */
.dest-item.is-highlighted {
  background-color: #e0e7ff !important;
}

.dest-item.is-highlighted .dest-item-city {
  color: #1e3a8a;
  font-weight: 600;
}

/* Highlight matching search characters - neutralized (no yellow background) */
.dest-highlight,
mark.dest-highlight {
  background-color: transparent !important;
  color: inherit !important;
  font-weight: inherit !important;
  border-radius: 0 !important;
  padding: 0 !important;
}

/* Empty search notice */
.dest-empty-notice {
  padding: 32px 16px;
  text-align: center;
  color: #64748b;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
}

.dest-empty-notice svg {
  display: block;
  margin: 0 auto 10px auto;
  color: #94a3b8;
}

.dest-empty-notice strong {
  color: #1e293b;
}

.from-select-place, .from-select-place2, .from-select-place3, .from-select-place-item, .multi-city-place, [class*="from-select-place"] {
  cursor: pointer;
  outline: none;
}

.from-select-place:focus-visible, .from-select-place2:focus-visible, .from-select-place3:focus-visible, .multi-city-place:focus-visible {
  box-shadow: 0 0 0 2px #2649aa;
}

/* Selected state for origin/destination labels */
.from-select-place .text6.has-value,
.from-select-place .text7.has-value,
.from-select-place .text4.has-value,
.from-select-place .text5.has-value,
.from-select-place2 .text4.has-value,
.from-select-place2 .text5.has-value,
.from-select-place3 .text4.has-value,
.from-select-place3 .text5.has-value,
.from-select-place-item .text4.has-value,
.from-select-place-item .text5.has-value,
.multi-city-place .text4.has-value,
.multi-city-place .text5.has-value,
[class*="from-select-place"] .text4.has-value,
[class*="from-select-place"] .text5.has-value,
[class*="from-select-place"] .text6.has-value,
[class*="from-select-place"] .text7.has-value {
  opacity: 1 !important;
  right: auto !important;
  width: auto !important;
  max-width: 200px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 500 !important;
  color: #222222 !important;
}

/* Selected state for depart/return date labels */
.depart-date .text2.has-value,
.depart-date .text.has-value,
.return-date .text3.has-value,
.depart-date2 .text.has-value,
.depart-date3 .text.has-value,
.depart-date-item .text.has-value,
.depart-date-item .text2.has-value,
.multi-city-date .text.has-value,
.multi-city-date .text2.has-value,
[class*="depart-date"] .text.has-value,
[class*="depart-date"] .text2.has-value {
  opacity: 1 !important;
  right: auto !important;
  width: auto !important;
  max-width: 180px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-weight: 500 !important;
  color: #222222 !important;
}

/* Datepicker day hover & click feedback */
.time [class^="_"] {
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
  user-select: none;
}

.time [class^="_"]:hover {
  color: #2649aa !important;
  font-weight: 700 !important;
  transform: scale(1.15);
}

