/* ── Outer wrapper ─────────────────────────────────────────── */
.flight-sector-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

/* ── Card ──────────────────────────────────────────────────── */
.flight-sector-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;        /* gray-200 — same as city card */
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease;
}

.flight-sector-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}

/* ── Header ────────────────────────────────────────────────── */
.flight-sector-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;  /* gray-100 */
  background: #ffffff;
}

.flight-sector-card__header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Badge — violet to match the HTML snippet */
.flight-step-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ede9fe;               /* violet-100 */
  color: #6d28d9;                    /* violet-700 */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
}

.flight-sector-card__title {
  font-size: 13px;
  font-weight: 600;
  color: #1f2937;                    /* gray-800 */
  letter-spacing: -0.01em;
}

/* Status badge — amber, same as city card "Incomplete" */
.flight-status-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #fffbeb;               /* amber-50 */
  color: #b45309;                    /* amber-700 */
  border: 1px solid #fde68a;         /* amber-200 */
  user-select: none;
}

/* ── Fields row ────────────────────────────────────────────── */
.flight-sector-card__fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
}

/* ── Individual field group ────────────────────────────────── */
.flight-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 168px;
}

.flight-field-group label {
  font-size: 11.5px;
  font-weight: 600;
  color: #6b7280;                    /* gray-500 */
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.flight-field-group label .flight-required {
  color: #ef4444;                    /* red-500 */
}

/* ── Select, date & text input — shared base ───────────────── */
.flight-select,
.flight-date-input,
.flight-text-input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  font-size: 13px;
  color: #1f2937;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}

.flight-select,
.flight-date-input {
  cursor: pointer;
}

/* Hardened rule: the admin theme's own utility classes (Tailwind-style,
   some of them !important) can strip the border/background/padding off
   a plain <input>. Repeat the essentials here with !important so this
   field always renders with a visible box like its siblings. */
.flight-text-input {
  box-sizing: border-box !important;
  height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  font-size: 13px !important;
  color: #1f2937 !important;
  width: 100% !important;
}

.flight-select {
  padding-right: 32px;               /* room for arrow */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.flight-select:hover,
.flight-date-input:hover {
  border-color: #d1d5db;             /* gray-300 */
}

.flight-text-input:hover {
  border-color: #d1d5db !important;  /* gray-300 */
}

.flight-select:focus,
.flight-date-input:focus {
  border-color: #7c3aed;             /* violet-600 — matches badge color */
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08);
}

.flight-text-input:focus {
  border-color: #7c3aed !important;  /* violet-600 — matches badge color */
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.08) !important;
}

.flight-text-input::placeholder {
  color: #9ca3af !important;         /* gray-400 */
}

.flight-select option[disabled] {
  color: #9ca3af;
}

/* ── Arrow divider between From → To ──────────────────────── */
.flight-arrow-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 6px;                /* align with inputs */
  color: #d1d5db;                    /* gray-300 */
}

/* ── Vertical separator (hidden on mobile) ─────────────────── */
.flight-v-separator {
  width: 1px;
  height: 36px;
  background: #f3f4f6;
  flex-shrink: 0;
  align-self: flex-end;
  margin: 0 4px;
}

@media (max-width: 767px) {
  .flight-v-separator {
    display: none;
  }
}

/* ── Footer ────────────────────────────────────────────────── */
.flight-sector-card__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 10px;
  border-top: 1px solid #f3f4f6;
  background: #ffffff;
}

/* ── Buttons — mirrors city-btn ────────────────────────────── */
.flight-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.flight-btn svg {
  flex-shrink: 0;
}

/* Add sector */
.flight-btn--default {
  color: #4b5563;                    /* gray-600 */
}

.flight-btn--default:hover {
  background: #f5f3ff;               /* violet-50 */
  border-color: #c4b5fd;             /* violet-300 */
  color: #6d28d9;                    /* violet-700 */
}

/* Remove */
.flight-btn--danger {
  border-color: #fca5a5;
  color: #b91c1c;

}

.flight-btn--danger:hover {
  background: #fef2f2;               /* red-50 */
  border-color: #fca5a5;             /* red-300 */
  color: #dc2626;                    /* red-600 */
}

/* ── Responsive stacking ───────────────────────────────────── */
@media (max-width: 640px) {
  .flight-field-group {
    min-width: 100%;
  }

  .flight-arrow-divider {
    transform: rotate(90deg);
    margin: 0;
  }

  .flight-sector-card__fields {
    gap: 10px;
  }
}
.airport-dropdown {
  position: relative;
  width: 100%;
}

.airport-input {
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  width: 100%;
  font-size: 13px;
}


.airport-dropdown-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 100%;

  max-height: 220px;
  overflow-y: auto;

  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;

  z-index: 9999;

  display: none;

  box-shadow: 0 8px 20px rgba(0,0,0,0.08); /* optional */
}

.airport-option {
  padding: 8px 10px;
  cursor: pointer;
}

.airport-option:hover {
  background: #f3f4f6;
}
.airport-code {
  color: #2563eb;   /* 🔵 blue-600 */
  font-weight: 600;
}