/* Compact route editing and seven-day navigation for individual-flight results. */
.results-search-shell {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 16px 20px 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
}

/* Top Meta Bar: Minimal Sleek Pill Chips (Google Flights style) */
.results-search-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.results-meta-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.quick-meta-pill {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: all 0.15s ease;
  font-family: inherit;
}
.quick-meta-pill:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}
.quick-meta-pill::after {
  content: ' ▾';
  font-size: 10px;
  margin-left: 5px;
  opacity: 0.65;
}
.quick-meta-chip-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #DCFCE7;
  color: #166534;
  border: 1px solid #BBF7D0;
  border-radius: 20px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}
.results-pricing-note {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
}

/* Main Search Deck: Cohesive unified clusters */
.results-quick-search {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

/* Route Cluster: [From ⇄ To] grouped as one container */
.quick-route-cluster {
  display: flex;
  align-items: stretch;
  flex: 1.6;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.quick-route-cluster:focus-within {
  border-color: #2D6A4F;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.quick-field-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 14px;
  min-width: 0;
  flex: 1;
}
.quick-field-label {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.6px;
  color: #64748B;
  text-transform: uppercase;
  margin-bottom: 3px;
  line-height: 1;
}
.quick-field-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.quick-field-input-row svg {
  flex-shrink: 0;
}
.quick-field-input-row input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F172A;
  padding: 0;
  min-width: 0;
}
.quick-field-input-row input::placeholder {
  color: #94A3B8;
  font-weight: 500;
}

/* Floating Center Swap Button */
.quick-swap-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  color: #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
  flex-shrink: 0;
  z-index: 2;
  margin: 0 -15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  transition: all 0.15s ease;
  padding: 0;
}
.quick-swap-btn:hover {
  background: #F1F5F9;
  border-color: #2D6A4F;
  color: #2D6A4F;
  transform: scale(1.1);
}

.quick-field-dest {
  padding-left: 22px;
}

/* Date Cluster: [Departure | Return] */
.quick-date-cluster {
  display: flex;
  align-items: stretch;
  flex: 1.2;
  background: #F8FAFC;
  border: 1.5px solid #CBD5E1;
  border-radius: 12px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.quick-date-cluster:focus-within {
  border-color: #2D6A4F;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
}

.quick-cluster-divider {
  width: 1px;
  background: #E2E8F0;
  margin: 8px 0;
}

/* Departure Date Input: Clean typography & no browser outlines */
.quick-field-date input[type="date"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: 1.4;
  width: 100%;
}
.quick-field-date input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.55;
  padding: 2px;
  margin-left: auto;
}
.quick-field-date input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 0.95;
}
.quick-field-date input[type="date"]::-webkit-datetime-edit {
  padding: 0;
  font-weight: 700;
  color: #0F172A;
}
.quick-field-date input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0;
}
.quick-field-date input[type="date"]::-webkit-datetime-edit-text {
  color: #64748B;
  padding: 0 1px;
}

.quick-return-btn {
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
  text-align: left;
  cursor: pointer;
  padding: 0;
  margin: 0;
  white-space: nowrap;
  line-height: 1.4;
}
.quick-return-btn:hover {
  color: #2D6A4F;
}

/* Search Submit Button */
.quick-search-submit {
  background: #194B37;
  color: #FFFFFF;
  border: none;
  border-radius: 12px;
  padding: 0 28px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 3px 12px rgba(25, 75, 55, 0.2);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.quick-search-submit:hover {
  background: #123829;
  box-shadow: 0 4px 16px rgba(25, 75, 55, 0.28);
  transform: translateY(-1px);
}
.quick-search-submit:active {
  transform: translateY(0);
}
.quick-search-submit:disabled {
  background: #94A3B8;
  box-shadow: none;
  cursor: wait;
}

/* Status message */
#quick-search-status {
  color: #2D6A4F;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  margin: 10px 0 0;
}
#quick-search-status:empty { display: none; }
#quick-search-status[data-error=true] { color: #DC2626; }

/* 7-Day Date Strip */
.results-date-navigation {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 28px;
  align-items: stretch;
  border: 1px solid #DFE8D8;
  border-radius: 10px;
  background: #FFFFFF;
  padding: 6px;
  gap: 6px;
}
.date-strip-arrow {
  border: 0;
  background: transparent;
  border-radius: 5px;
  font-size: 25px;
  font-weight: 400;
  color: #607F50;
  cursor: pointer;
}
.date-strip-arrow:hover { background: #F2F7ED; }
.date-strip-arrow:disabled { opacity: 0.35; cursor: default; }

.results-date-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-width: 0;
  gap: 4px;
}
.result-date-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  padding: 11px 4px;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 6px;
  background: #FFFFFF;
  text-align: center;
  font: inherit;
  cursor: pointer;
  color: #69825A;
}
.result-date-cell span { font-size: 11px; color: #7A8C6E; }
.result-date-cell strong { font-size: 14px; font-weight: 600; color: #3A603E; }
.result-date-cell small { font-size: 9px; color: #8A9A7F; }
.result-date-cell:hover { background: #F6F9F2; }
.result-date-cell.is-selected { background: #EDF4E6; border-bottom-color: #537A44; }
.result-date-cell.is-selected span,
.result-date-cell.is-selected strong { color: #214D32; }
.result-date-cell:disabled { cursor: wait; opacity: 0.6; }

.results-date-caption {
  font-size: 10px;
  line-height: 1.6;
  color: #829476;
  margin: 7px 0 24px;
}

.exact-results-header { margin-bottom: 20px; }
.exact-results-header h1 { font-size: clamp(24px, 2.5vw, 32px); }

/* Responsive behavior */
@media (max-width: 1080px) {
  .results-quick-search {
    flex-direction: column;
    gap: 10px;
  }
  .quick-search-submit {
    height: 44px;
  }
}
@media (max-width: 768px) {
  .quick-route-cluster, .quick-date-cluster {
    flex-direction: column;
  }
  .quick-swap-btn {
    align-self: center;
    margin: -10px 0;
  }
  .quick-field-dest {
    padding-left: 14px;
  }
  .quick-cluster-divider {
    width: 100%;
    height: 1px;
    margin: 0;
  }
  .results-date-strip {
    overflow-x: auto;
    grid-template-columns: repeat(7, minmax(90px, 1fr));
  }
}
